/* CSS Reset and Variables */
:root {
    --primary-blue: #1e40af;
    --primary-blue-hover: #1e3a8a;
    --secondary-blue: #dbeafe;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --white: #ffffff;
    --dark-overlay: rgba(0, 0, 0, 0.6);
    --red-accent: #ef4444;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background-color: var(--white);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu ul li {
    position: relative;
}

.nav-menu ul li a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu ul li a:hover {
    color: var(--primary-blue);
    background-color: #f8fafc;
    transform: translateY(-1px);
}

.nav-menu ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-blue);
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-menu ul li a:hover::after {
    width: 100%;
    left: 0;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 2rem;
    color: var(--primary-blue);
    padding: 10px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.hamburger:hover {
    background-color: #f3f4f6;
}

/* Mobile Menu */
.mobile-menu {
    display: none; /* Hidden by default on desktop */
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--white);
    transition: left 0.3s ease;
    z-index: 999;
    padding: 2rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    left: 0;
    display: block; /* Only show when active on mobile */
}

/* Show mobile menu only on mobile devices */
@media (max-width: 768px) {
    .mobile-menu {
        display: block;
    }
}

.mobile-menu ul {
    display: flex;
    flex-direction: column;
    gap: 0;
    text-align: center;
    list-style: none; /* Remove bullet points */
    padding: 0;
    margin: 0;
}

.mobile-menu ul li {
    border-bottom: 1px solid #e5e7eb;
}

.mobile-menu ul li:last-child {
    border-bottom: none;
}

.mobile-menu ul li a {
    font-size: 1.5rem;
    padding: 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
    font-weight: 600;
}

.mobile-menu ul li a:hover {
    background-color: var(--secondary-blue);
    color: var(--primary-blue);
    transform: translateX(10px);
}

.mobile-menu ul li a::after {
    content: '→';
    margin-left: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease, margin-left 0.3s ease;
}

.mobile-menu ul li a:hover::after {
    opacity: 1;
    margin-left: 1.5rem;
}

/* Hero Section */
.hero {
    height: 100vh;
    background-image: linear-gradient(var(--dark-overlay), var(--dark-overlay)), 
                      url('images/herobd.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    
    /* Performance optimizations */
    will-change: transform;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Add loading state for hero section */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #1e40af;
    z-index: -1;
    transition: opacity 0.5s ease;
}

.hero.loaded::before {
    opacity: 0;
    pointer-events: none;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 1rem 3rem;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    border: 2px solid var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    background-color: var(--primary-blue-hover);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

/* Floating Transition Icon */
.transition-icon {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.checkmark-circle {
    width: 60px;
    height: 60px;
    background-color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    box-shadow: var(--box-shadow);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Benefits Section */
.benefits {
    padding: 100px 0;
    background-color: #f8fafc;
}

.benefits h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.benefit-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--primary-blue);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.benefit-card .icon {
    width: 60px;
    height: 60px;
    background-color: var(--secondary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.benefit-card .icon i {
    font-size: 1.5rem;
    color: var(--primary-blue);
}

.benefit-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.benefit-card p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
}

/* Application Form Section */
.application {
    padding: 100px 0;
    background-color: var(--white);
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.form-header h2 {
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.form-header h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--red-accent);
    border-radius: 2px;
}

.security-notice {
    background-color: var(--secondary-blue);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 1rem;
    border-left: 4px solid var(--primary-blue);
}

.security-notice i {
    color: var(--primary-blue);
    font-size: 1.2rem;
}

.security-notice p {
    color: var(--text-dark);
    font-size: 0.9rem;
    margin: 0;
}

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

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #fafafa;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
    background-color: var(--white);
}

.upload-section {
    margin: 3rem 0;
    padding: 2rem;
    background-color: #f8fafc;
    border-radius: var(--border-radius);
    border: 2px dashed #e5e7eb;
}

.upload-section h3 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-size: 1.5rem;
}

.upload-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.upload-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    border: 2px dashed #e5e7eb;
    transition: all 0.3s ease;
}

.upload-card:hover {
    border-color: var(--primary-blue);
    background-color: #f0f9ff;
}

.upload-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background-color: var(--primary-blue);
    color: var(--white);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.upload-btn:hover {
    background-color: var(--primary-blue-hover);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.upload-btn i {
    font-size: 1.2rem;
}

input[type="file"] {
    display: none;
}

.file-name {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.submit-btn {
    width: 100%;
    padding: 1.5rem;
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 2rem;
}

.submit-btn:hover {
    background-color: var(--primary-blue-hover);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.submit-btn:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Footer */
footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 3rem 0 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.quick-links {
    flex: 1;
}

.quick-links h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--white);
    border-bottom: 2px solid var(--primary-blue);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.quick-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-links ul li {
    margin-bottom: 0.5rem;
}

.quick-links ul li a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quick-links ul li a:hover {
    color: var(--white);
    transform: translateX(5px);
}

.quick-links ul li a::before {
    content: '→';
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.quick-links ul li a:hover::before {
    opacity: 1;
    transform: translateX(2px);
}

.footer-copyright {
    text-align: center;
    padding-top: 1rem;
}

.footer-copyright p {
    font-size: 0.9rem;
    color: #94a3b8;
    margin: 0;
}

/* Footer Responsive Design */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .quick-links {
        order: 1;
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .footer-copyright {
        order: 2;
        text-align: center;
        padding-top: 0;
        margin-top: 0;
    }
    
    .quick-links h3 {
        text-align: center;
    }
    
    .quick-links ul li a {
        justify-content: center;
    }
}

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

.benefits-grid > * {
    animation: fadeIn 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .nav-menu {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .upload-grid {
        grid-template-columns: 1fr;
    }
    
    .form-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .security-notice {
        width: 100%;
    }
    
    .transition-icon {
        bottom: -20px;
    }
    
    .checkmark-circle {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .cta-button {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
    
    .benefits h2,
    .application h2 {
        font-size: 2rem;
    }
    
    .benefit-card {
        padding: 1.5rem;
    }
    
    .security-notice {
        padding: 0.8rem 1rem;
    }
    
    .security-notice i {
        font-size: 1rem;
    }
}

/* Scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
*:focus {
    outline: 3px solid transparent;
    outline-offset: 2px;
}

*:focus-visible {
    outline-color: var(--primary-blue);
}
