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

body {
   font-family: 'Arial', sans-serif;
    background: url('../Image/bg.png') center center/cover fixed;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}


@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 0;
    background: rgba(10, 22, 40, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.scroll-shadow {
    position: fixed;
    top: 50px; /* Adjust this to match your navbar height */
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(180deg, rgba(1, 1, 1, 0.8) 0%, transparent 100%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 999;
}

.scroll-shadow.visible {
    opacity: 1;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    height: 80px; /* Set your fixed navbar height here */
    overflow: hidden; /* Prevent logo from overflowing */
}

.logo-icon {
    width: 150px;
    height: 150px;
    background: url('../Image/logo.png') center center/contain no-repeat;
    object-fit: contain;
    transform: scale(1.0); /* Visually enlarge */
    transform-origin: center;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
}

nav a:hover {
    color: #9669FF;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #9669FF);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Language selector */
.language-selector {
    display: flex;
    align-items: center;
    gap: 5px;
    position: relative;
    z-index: 1010; /* Higher than header */
}

.language-selector.dropdown {
    position: relative;
}

.flag {
    width: 24px;
    height: 16px;
    background: linear-gradient(transparent 40%, #C8102E 40% 60%, transparent 60%),
        linear-gradient(to right, transparent 45%, #C8102E 45% 55%, transparent 55%),
        linear-gradient(transparent 35%, #FFF 35% 65%, transparent 65%),
        linear-gradient(to right, transparent 42.25%, #FFF 42.25% 57.75%, transparent 42.25%),
        linear-gradient(25deg, transparent 47.5%, #C8102E 47.5% 52.5%, transparent 52.5%),
        linear-gradient(-25deg, transparent 47.5%, #C8102E 47.5% 52.5%, transparent 52.5%),
        linear-gradient(25deg, transparent 45%, #FFF 45% 55%, transparent 55%),
        linear-gradient(-25deg, transparent 45%, #FFF 45% 55%, transparent 55%);
    background-color: #012169;
    position: relative;
    cursor: pointer;
}

.flag::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, transparent 45%, #C8102E 45%, #C8102E 55%, transparent 55%),
        linear-gradient(-45deg, transparent 45%, #C8102E 45%, #C8102E 55%, transparent 55%);
}

/* Mobile menu */
.mobile-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px; /* Increased gap */
    padding: 10px; /* Added padding for larger touch target */
}

.mobile-menu span {
    width: 24px;
    height: 2px; /* Reduced height */
    background: white;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Main content */
main {
     display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 140px 20px 60px; /* Increased top padding from 100px to 140px */
    text-align: center;
    flex: 1;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    line-height: 1;
    letter-spacing: 0;
    vertical-align: middle;
}

.hero-content {
    max-width: 600px;
    animation: fadeInUp 1s ease-out;
    margin-top: 40px; /* Added margin to push content down */
}

.hero-logo {
    width: 250px;
    height: auto;
    margin-bottom: 30px;
}

.hero-title {
    font-size: clamp(4rem, 8vw, 8rem);
    font-weight: 600;
    margin-bottom: 20px;
    background: linear-gradient(#FFFFFF, #FFFFFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    margin-bottom: 30px;
    color: #cbd5e0;
    font-weight: 300;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.3rem);
    line-height: 1;
    margin-bottom: 20px;
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 0;
    text-align: center;
    vertical-align: middle;
}

.hero-tagline {
    font-size: clamp(1rem, 2vw, 1.3rem);
    line-height: 1.6;
    margin-bottom: 40px;
    color: #FFFFFF;
    font-style: italic;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    letter-spacing: 0;
    text-align: center;
    vertical-align: middle;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(45deg, #9669FF, #7F56D9);
    color: white;
    padding: 16px 40px;           /* Increased padding for larger size */
    border-radius: 5px;          /* Reduced from 30px for less rounded look */
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.4px;        /* Added letter spacing for better readability */
    text-transform: uppercase;     /* Added to match your image */
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(108, 92, 231, 0.4);
}

/* Footer */
footer {
    position: relative;
    width: 100%;
    padding: 5px 40px;
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.95), rgba(15, 30, 50, 0.9));
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.3);
    opacity: 0.60;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 60px; /* Ensure minimum height for logo */
}

.footer-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    height: 60px; /* Match the footer-top min-height */
}

.footer-logo .logo-icon {
    width: 120px;
    height: 55px;
    background: url('../Image/logo.png') center center/contain no-repeat;
    filter: brightness(1.1);
}

.social-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e2e8f0;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.social-links a:hover::before {
    left: 100%;
}

.social-links a:hover {
    background: rgba(150, 105, 255, 0.2);
    border-color: rgba(150, 105, 255, 0.4);
    transform: translateY(-2px) scale(1.05);
    color: #9669FF;
    box-shadow: 0 6px 20px rgba(150, 105, 255, 0.3);
}

.footer-links {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.footer-links a {
    color: #cbd5e0;
    text-decoration: underline;
    text-decoration-color: rgba(203, 213, 224, 0.5);
    text-underline-offset: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    padding: 8px 0;
    white-space: nowrap;
}

.footer-links a:hover {
    color: #9669FF;
    text-decoration-color: #9669FF;
    transform: translateY(-1px);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* FIXED: Dropdown menus */
.dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    top: 100%; /* This ensures it appears below the parent */
    left: 0;
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001; /* Higher than header but lower than language selector */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content a {
    display: block;
    padding: 12px 20px;
    color: #e2e8f0;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background: rgba(162, 155, 254, 0.1);
    color: #9669FF;
    padding-left: 25px;
}

/* FIXED: Language dropdown specific styling */
.language-selector .dropdown-content {
    z-index: 1012 !important; /* Highest priority for language dropdown */
    right: 0; /* Align to right edge instead of left */
    left: auto; /* Override the left: 0 from general dropdown */
}

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

/* Mobile responsive */
@media (max-width: 768px) {
     body {
        min-height: 90vh;
    }
    .nav-container {
        padding: 0 15px;
    }

    nav ul {
        display: none;
    }

    .mobile-menu {
        display: flex;
    }

    main {
        padding: 100px 15px 60px;
        flex: 1 0 auto;
    }

    footer {
        padding: 15px 20px 30px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .footer-logo {
        order: 1;
    }
    
    .social-links {
        order: 2;
        justify-content: center;
    }
    
    .footer-links {
        order: 3;
        flex-direction: row;
        gap: 15px;
        text-align: center;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .copyright {
        order: 4;
        margin-top: 10px;
        padding-top: 15px;
    }

    /* FIXED: Mobile dropdown positioning */
    .dropdown-content {
        position: fixed;
        top: 80px;
        left: 50%;
        transform: translateX(-50%) translateY(-10px);
        width: 90%;
        max-width: 300px;
        z-index: 1002; /* Higher z-index for mobile */
    }

    .dropdown:hover .dropdown-content {
        transform: translateX(-50%) translateY(0);
    }

    /* FIXED: Mobile language dropdown */
    .language-selector .dropdown-content {
        right: 10px; /* Small margin from right edge */
        left: auto;
        transform: translateY(-10px); /* Remove translateX for language dropdown */
    }

    .language-selector:hover .dropdown-content {
        transform: translateY(0); /* Remove translateX for language dropdown */
    }

    .logo {
        font-size: 30px;
        height: 60px; /* Adjusted for mobile */
        overflow: hidden; /* Prevent logo from overflowing */
    }

    .logo-icon {
        width: 120px;
        height: 120px;
    }
}

/* Mobile menu overlay - Updated to slide from right */
.mobile-nav {
    position: fixed;
    top: 70px; /* Adjusted for smaller header */
    right: -100%; /* Use percentage instead of fixed pixels */
    width: 280px; /* Much smaller width */
    max-width: 60vw; /* Further reduced max-width */
    height: calc(100vh - 70px);
    background: rgba(49, 49, 49, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    padding: 20px 0 20px 0; /* Reduced bottom padding */
    transition: right 0.3s ease;
    z-index: 998;
    overflow-y: auto;
    transition: right 0.3s ease;
}

body.mobile-nav-open .main-container {
    filter: blur(30px);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Darker overlay */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 997;
    backdrop-filter: blur(8px); /* Added blur effect */
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile navigation sections */
.mobile-nav-section {
    margin-bottom: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* Thinner border */
}

.mobile-nav-title {
    color: white;
    font-size: 12px; /* Further reduced font size */
    font-weight: 200;
    padding: 12px 15px 8px 15px; /* Much smaller padding */
    text-transform: uppercase;
    letter-spacing: 0.5px; /* Reduced letter spacing */
    background: rgba(0, 0, 0, 0.2);
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav-item {
    color: #cbd5e0;
    text-decoration: none;
    font-size: 10px; /* Much smaller font size */
    font-weight: 400;
    display: block;
    padding: 20px 15px; /* Much smaller padding */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    font-style: italic;
    background: transparent;
}

.mobile-nav-item:hover {
    color: #9669FF;
    background: rgba(150, 105, 255, 0.1);
}

.mobile-nav-item.active {
    color: #9669FF;
    background: rgba(150, 105, 255, 0.15);
    border-left: 3px solid #9669FF;
}

/* Language section at bottom */
.mobile-language-section {
    margin-top: auto;
    padding-top: 0;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
}

.mobile-language-title {
    display: flex;
    align-items: center;
    gap: 6px; /* Much smaller gap */
    color: white;
    font-size: 10px; /* Much smaller font size */
    font-weight: 700;
    padding: 12px 15px 8px 15px; /* Much smaller padding */
    text-transform: uppercase;
    letter-spacing: 0.5px; /* Reduced letter spacing */
    background: rgba(0, 0, 0, 0.2);
    margin: 0;
}

.mobile-flag {
    width: 16px; /* Smaller flag */
    height: 11px; /* Smaller flag */
    background: linear-gradient(to bottom, #012169 33%, white 33%, white 66%, #C8102E 66%);
    position: relative;
}

.mobile-flag::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(transparent 40%, #C8102E 40% 60%, transparent 60%),
        linear-gradient(to right, transparent 45%, #C8102E 45% 55%, transparent 55%),
        linear-gradient(transparent 35%, #FFF 35% 65%, transparent 65%),
        linear-gradient(to right, transparent 42.25%, #FFF 42.25% 57.75%, transparent 42.25%),
        linear-gradient(25deg, transparent 47.5%, #C8102E 47.5% 52.5%, transparent 52.5%),
        linear-gradient(-25deg, transparent 47.5%, #C8102E 47.5% 52.5%, transparent 52.5%),
        linear-gradient(25deg, transparent 45%, #FFF 45% 55%, transparent 55%),
        linear-gradient(-25deg, transparent 45%, #FFF 45% 55%, transparent 55%);
}

/* Responsive adjustments */
@media (min-width: 481px) and (max-width: 768px) {
    .mobile-nav {
        width: 220px; /* Much smaller for tablets */
        max-width: 45vw; /* Further reduced max-width */
    }
}

@media (min-width: 769px) {
    .mobile-nav {
        width: 240px; /* Much smaller for larger screens */
        max-width: 30vw; /* Further reduced max-width */
    }
}

@media (max-width: 480px) {
    .mobile-nav {
        width: 180px; /* Much smaller for small screens */
        max-width: 65vw; /* Further reduced max-width */
    }
    
    .footer-links {
        gap: 20px;
    }
    
    .social-links {
        gap: 12px;
    }
    
    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 13px;
    }
}

/* Mobile hamburger menu animation */
.mobile-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Add this to your existing CSS - Black overlay with low opacity when mobile menu is open */
body.mobile-nav-open main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
    transition: all 0.3s ease;
}

body.mobile-nav-open main {
    position: relative;
    filter: blur(3px);
}

body.mobile-nav-open footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
    transition: all 0.3s ease;
}

body.mobile-nav-open footer {
    position: relative;
    filter: blur(3px);
}