/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #212529;
    overflow-x: hidden;
}

/* Custom Colors */
:root {
    --primary-color: #1A2C42;
    --secondary-color: #28A745;
    --accent-color: #007bff;
    --light-bg: #F8F9FA;
    --white: #FFFFFF;
    --text-dark: #212529;
    --text-muted: #6c757d;
    --gradient-primary: linear-gradient(135deg, #1A2C42 0%, #2C4A6B 100%);
    --gradient-secondary: linear-gradient(135deg, #28A745 0%, #20C997 100%);
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* Bootstrap Overrides */
.bg-primary {
    background: var(--gradient-primary) !important;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2C4A6B 0%, #1A2C42 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Header Styles */
.navbar {
    padding: 1rem 0;
    box-shadow: var(--shadow-light);
    backdrop-filter: blur(10px);
    background: var(--gradient-primary) !important;
}

.navbar-brand {
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.logo-container {
    width: 50px;
    height: 50px;
    background: var(--gradient-secondary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: var(--shadow-light);
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.brand-subtitle {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
}

.nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: var(--secondary-color);
    transition: all 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
    left: 0;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--light-bg) 0%, #E9ECEF 100%);
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: -50%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 0%, rgba(40, 167, 69, 0.1) 50%, transparent 100%);
    transform: rotate(-15deg);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-weight: 400;
}

/* CTA Section */
.cta-section {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
    text-align: center;
    border: 1px solid #E9ECEF;
}

.cta-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.cta-description {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.btn-cta {
    background: var(--gradient-secondary);
    border: none;
    color: white;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
}

.btn-cta:hover {
    background: linear-gradient(135deg, #20C997 0%, #28A745 100%);
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
    color: white;
}

/* Hero Image - Dashboard Preview */
.hero-image {
    position: relative;
    z-index: 2;
}

.dashboard-preview {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-heavy);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: all 0.3s ease;
}

.dashboard-preview:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.dashboard-header {
    background: var(--gradient-primary);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dashboard-controls {
    display: flex;
    gap: 0.5rem;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control.red { background: #FF5F56; }
.control.yellow { background: #FFBD2E; }
.control.green { background: #27CA3F; }

.dashboard-title {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.dashboard-content {
    padding: 2rem;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    text-align: center;
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-new { background: linear-gradient(135deg, #28A745, #20C997); color: white; }
.stat-progress { background: linear-gradient(135deg, #FFC107, #FFB300); color: white; }
.stat-resolved { background: linear-gradient(135deg, #007bff, #0056b3); color: white; }
.stat-delayed { background: linear-gradient(135deg, #DC3545, #C82333); color: white; }

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.8rem;
    opacity: 0.9;
}

.chart-placeholder {
    height: 100px;
    background: var(--light-bg);
    border-radius: 12px;
    display: flex;
    align-items: end;
    justify-content: center;
    padding: 1rem;
}

.chart-bars {
    display: flex;
    gap: 0.5rem;
    align-items: end;
    height: 100%;
}

.bar {
    width: 20px;
    background: var(--gradient-secondary);
    border-radius: 4px 4px 0 0;
    transition: all 0.3s ease;
}

.bar:hover {
    background: var(--gradient-primary);
}

/* Features Section */
.features-section {
    background: white;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-light);
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid #E9ECEF;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-secondary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: var(--gradient-primary);
    transform: scale(1.1);
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-description {
    color: var(--text-muted);
    line-height: 1.6;
}

/* CTA Bottom Section */
.cta-section-bottom {
    background: var(--gradient-primary);
    color: white;
    text-align: center;
}

.cta-bottom-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-bottom-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Contact Section */
.contact-section {
    background: var(--light-bg);
    text-align: center;
}

.contact-description {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.btn-outline-primary {
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

/* Footer */
.footer {
    background: var(--primary-color) !important;
}

/* Modal Styles */
.modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: var(--shadow-heavy);
}

.modal-header {
    background: var(--gradient-primary);
    color: white;
    border-radius: 20px 20px 0 0;
    border-bottom: none;
}

.btn-close {
    filter: invert(1);
}

.form-control {
    border-radius: 12px;
    border: 2px solid #E9ECEF;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .access-buttons {
        flex-direction: column;
    }
    
    .btn-access {
        width: 100%;
    }
    
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-bottom-title {
        font-size: 2rem;
    }
    
    .dashboard-preview {
        transform: none;
        margin-top: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .stats-row {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        margin-bottom: 1rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content > * {
    animation: fadeInUp 0.6s ease forwards;
}

.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.2s; }
.hero-content > *:nth-child(3) { animation-delay: 0.3s; }
.hero-content > *:nth-child(4) { animation-delay: 0.4s; }

.feature-card {
    animation: fadeInUp 0.6s ease forwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* 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); }
}

/* Login Modal Styles */
.login-modal {
    border-radius: 20px;
    border: none;
    box-shadow: var(--shadow-heavy);
    overflow: hidden;
}

.login-header {
    background: var(--gradient-primary);
    color: white;
    border-bottom: none;
    padding: 2rem;
}

.login-header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.login-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    backdrop-filter: blur(10px);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.login-subtitle {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
}

.btn-close-white {
    filter: invert(1);
    opacity: 0.8;
}

.btn-close-white:hover {
    opacity: 1;
}

.login-body {
    padding: 2rem;
    background: white;
}

.login-input {
    border-radius: 12px;
    border: 2px solid #E9ECEF;
    padding: 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #F8F9FA;
}

.login-input:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
    background: white;
}

.form-floating > label {
    color: var(--text-muted);
    font-weight: 500;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--secondary-color);
}

.btn-login {
    background: var(--gradient-secondary);
    border: none;
    color: white;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
}

.btn-login:hover {
    background: linear-gradient(135deg, #20C997 0%, #28A745 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    color: white;
}

.btn-login:active {
    transform: translateY(0);
}

.login-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #E9ECEF;
}

/* Header Login Button Styles */
.nav-link[data-bs-target="#loginModal"] {
    background: var(--gradient-secondary);
    color: white !important;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
    margin-left: 1rem;
}

.nav-link[data-bs-target="#loginModal"]:hover {
    background: linear-gradient(135deg, #20C997 0%, #28A745 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    color: white !important;
}

.nav-link[data-bs-target="#loginModal"]:hover::after {
    display: none;
}

/* Modal Animation */
.modal.fade .modal-dialog {
    transform: scale(0.8) translateY(-50px);
    transition: all 0.3s ease;
}

.modal.show .modal-dialog {
    transform: scale(1) translateY(0);
}

/* Loading Animation for Login Button */
.btn-login .loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

/* Responsive adjustments for login modal */
@media (max-width: 576px) {
    .login-header {
        padding: 1.5rem;
    }
    
    .login-body {
        padding: 1.5rem;
    }
    
    .login-header-content {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .login-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .modal-title {
        font-size: 1.3rem;
    }
}