/* Global Styles */
:root {
    --primary-color: #800000; /* Bordo */
    --secondary-color: #FF0000; /* Czerwony */
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --font-montserrat: 'Montserrat', sans-serif;
    --font-poppins: 'Poppins', sans-serif;
}

body {
    font-family: var(--font-poppins);
    color: var(--dark-color);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-montserrat);
    font-weight: 700;
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-family: var(--font-montserrat);
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: white;
}

.navbar-dark .navbar-nav .nav-link.btn {
    padding: 0.375rem 0.75rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Hero Section with Parallax */
.hero-section {
    position: relative;
    background: linear-gradient(rgba(128, 0, 0, 0.8), rgba(255, 0, 0, 0.6)), url('../img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 500px;
    max-height: 500px;
    display: flex;
    align-items: center;
    color: white;
}

.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Login Form */
.login-form {
    max-width: 400px;
    margin: 0 auto;
    color: black !important;
}

.login-form h3 {
    color: black !important;
}

.login-form .form-label {
    color: black !important;
    font-weight: 500;
}

.login-form .form-control {
    color: black !important;
    background-color: white;
    border: 1px solid #ced4da;
}

.login-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(128, 0, 0, 0.25);
    color: black !important;
    background-color: white;
}

.login-form .form-check-label {
    color: black !important;
}

.login-form .form-check-input {
    background-color: white;
    border-color: #ced4da;
}

.login-form .text-decoration-none {
    color: var(--primary-color);
}

.login-form .text-decoration-none:hover {
    color: var(--secondary-color);
}

/* Register Form */
.register-form {
    max-width: 600px;
    margin: 0 auto;
}

.register-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(128, 0, 0, 0.25);
}

/* Buttons */
.btn-danger {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    font-family: var(--font-montserrat);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-outline-danger {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
    font-family: var(--font-montserrat);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-danger:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Cards */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.card-header {
    background-color: var(--primary-color);
    border-bottom: none;
}

.card-header.bg-danger {
    background-color: var(--secondary-color) !important;
}

/* Features Section */
.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 0, 0, 0.1);
}

/* Pricing Section */
.pricing-card {
    position: relative;
    transition: transform 0.3s ease;
}

.pricing-card:hover {
    transform: scale(1.05);
}

/* Team Section */
.team-card .card-img-top {
    height: 250px;
    object-fit: cover;
}

/* Contact Section */
.contact-info i {
    color: var(--secondary-color);
}

/* Footer */
footer {
    background-color: var(--dark-color) !important;
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--secondary-color) !important;
}

/* Form Styles */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(128, 0, 0, 0.25);
}

.input-group-text {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

/* Animation Delays */
.animate__delay-1s {
    animation-delay: 0.2s;
}

.animate__delay-2s {
    animation-delay: 0.4s;
}

.animate__delay-3s {
    animation-delay: 0.6s;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero-section {
        background-attachment: scroll;
        text-align: center;
    }
    
    .hero-content {
        margin-bottom: 2rem;
    }
    
    .login-form {
        margin-bottom: 2rem;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success and Error Messages */
.alert {
    border-radius: 0;
    border: none;
    font-family: var(--font-poppins);
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border-left: 4px solid #dc3545;
}

/* Badge Styles */
.badge {
    font-family: var(--font-montserrat);
    font-weight: 600;
}

/* List Group Styles */
.list-group-item {
    border: none;
    padding: 0.75rem 1.25rem;
}

.list-group-item i {
    color: #28a745;
}