/* --- Global Reset and Variables --- */
:root {
    /* Color Palette */
    /* Color Palette */
    --color-white: #ffffff;
    --color-off-white: #f8f9fa;
    --color-light-blue: #e0f2fe;
    /* Light Blue */
    --color-light-blue-dark: #bae6fd;
    /* Slightly darker Light Blue for gradients */
    --color-text-main: #0f172a;
    /* Slate 900 for dark text */
    --color-text-muted: #475569;
    /* Slate 600 for softer text */
    --color-gold-start: #D4AF37;
    --color-gold-end: #F9E27E;
    --color-brand-accent: #ffe600;
    --color-black: #0a0c10;
    /* Premium deep black */
    --color-navbar-bg: rgba(10, 12, 16, 0.95);
    --color-dark-blue: #000814;
    /* Midnight Dark Blue */

    /* Typography */
    --font-primary: 'Outfit', sans-serif;
    --font-secondary: 'Inter', sans-serif;

    /* Effects */
    --transition-fast: 0.3s ease;
    --transition-smooth: 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

html {
    scroll-behavior: smooth;
    box-sizing: border-box;
}

*,
*:before,
*:after {
    box-sizing: inherit;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-secondary);
    color: var(--color-text-main);
    background-color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
    border-top: 6px solid var(--color-dark-blue) !important;
    /* Top Border */
    border-bottom: 6px solid var(--color-dark-blue);
    /* Bottom Border */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
    font-weight: 800;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

/* --- Typography & Utilities --- */
.gold-text {
    background: linear-gradient(135deg, var(--color-gold-start), var(--color-gold-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    /* Fallback */
    display: inline-block;
}

.bg-white {
    background-color: var(--color-white);
    color: var(--color-text-main);
}

.bg-light-blue {
    background-color: var(--color-light-blue);
    color: var(--color-text-main);
}

.section {
    padding: 100px 20px;
    position: relative;
    z-index: 1;
}

.pb-large {
    padding-bottom: 150px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.title-dark h2 {
    color: var(--color-text-main);
}

.underline {
    height: 4px;
    width: 60px;
    background: linear-gradient(90deg, var(--color-gold-start), var(--color-gold-end));
    margin: 0 auto;
    border-radius: 2px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 30px;
    cursor: pointer;
    border: none;
    outline: none;
    text-align: center;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-gold-start), var(--color-gold-end));
    color: var(--color-text-main);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover,
.btn-lift:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--color-text-main);
    border: 2px solid var(--color-gold-start);
}

.btn-secondary:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.btn-block {
    display: block;
    width: 100%;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 0;
    background: var(--color-navbar-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: all var(--transition-smooth);
}

.navbar.scrolled {
    padding: 10px 0;
    background: var(--color-black);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border-bottom: 2px solid var(--color-dark-blue);
}

.nav-container {
    max-width: 1200px;
    width: 100%; /* This is the fix */
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: 2rem;
    background: linear-gradient(135deg, var(--color-gold-start), var(--color-gold-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.3));
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links li a {
    color: var(--color-white);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-primary);
    position: relative;
    text-transform: capitalize;
}

.nav-links li a:not(.nav-btn):hover {
    color: var(--color-gold-start);
}

.nav-links li a:not(.nav-btn)::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    background: var(--color-gold-start);
    bottom: -5px;
    left: 0;
    transition: width var(--transition-fast);
}

.nav-links li a:not(.nav-btn):hover::after {
    width: 100%;
}

.nav-btn {
    padding: 10px 24px;
    border: 1px solid var(--color-gold-start);
    border-radius: 20px;
    color: var(--color-gold-start) !important;
}

.nav-btn:hover {
    background: var(--color-gold-start);
    color: var(--color-text-main) !important;
}

/* Replace .mobile-menu with this .hamburger block */
.hamburger {
    display: none; /* Hidden on desktop */
    color: var(--color-gold-start); /* Gold color for visibility */
    font-size: 1.8rem;
    cursor: pointer;
    padding: 5px;
}

/* --- Dropdown Menus --- */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-black);
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-smooth);
    border-top: 3px solid var(--color-dark-blue);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    z-index: 1001;
    padding: 10px 0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu li a {
    padding: 12px 25px;
    display: block;
    color: var(--color-white) !important;
    font-size: 0.85rem !important;
    font-weight: 400 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.3s ease;
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

.dropdown-menu li a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-brand-accent) !important;
    padding-left: 30px;
    /* Slight shift on hover */
}

.dropdown-toggle i {
    font-size: 0.7rem;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

/* --- Hero Slider --- */
.hero-section {
    height: 80vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    position: relative;
    overflow: hidden;
    background: var(--color-black);
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

.ey-tagline {
    color: var(--color-white);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.hero-title {
    font-size: 4rem;
    color: var(--color-white);
    margin-bottom: 25px;
    line-height: 1.1;
    max-width: 700px;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--color-white);
    margin-bottom: 40px;
    font-weight: 300;
    max-width: 600px;
    border-left: 4px solid var(--color-dark-blue);
    padding-left: 20px;
}

/* --- Glassmorphism & Neo-morphism Cards --- */
.glass-card {
    border-radius: 20px;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
    overflow: hidden;
}

.neo-morphism-light {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow:
        10px 10px 30px rgba(0, 0, 0, 0.05),
        -10px -10px 30px rgba(255, 255, 255, 0.8);
}

/* --- About Section --- */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--color-text-main);
}

.about-text p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 20px;
    text-align: justify;
}

.about-image {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-light-blue) 0%, var(--color-white) 100%);
}

.team-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-placeholder {
    text-align: center;
    color: var(--color-text-main);
}

.gold-icon {
    background: linear-gradient(135deg, var(--color-gold-start), var(--color-gold-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.service-card {
    padding: 50px 30px;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(212, 175, 55, 0.3);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 25px;
    background: linear-gradient(135deg, var(--color-gold-start), var(--color-gold-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--color-text-main);
}

.service-card p {
    color: var(--color-text-muted);
    font-size: 1rem;
}

/* --- Career Section --- */
.career-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 40px;
    text-align: center;
}

.career-content h3 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--color-text-main);
}

.career-content p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 35px;
}

.career-benefits {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

/* --- Career Simple Redesign --- */
.career-simple-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.career-info h3 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--color-text-main);
}

.career-benefits {
    display: flex;
    gap: 30px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.benefit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--color-text-main);
    font-weight: 600;
}

.benefit i {
    font-size: 1.8rem;
    color: var(--color-gold-start);
}

.wave-image-container {
    position: relative;
    width: 350px;
    /* Exact square width */
    height: 350px;
    /* Exact square height */
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.wave-image-container::before,
.wave-image-container::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 0;
    /* Exact square */
    background: var(--color-gold-start);
    opacity: 0.2;
    z-index: 0;
    animation: exact-square-wave 4s ease-in-out infinite;
}

.wave-image-container::after {
    animation-delay: -2s;
    background: var(--color-gold-end);
    opacity: 0.1;
}

.wave-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    /* Exact square */
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border: 5px solid #fff;
    position: relative;
    z-index: 1;
}

@keyframes exact-square-wave {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.2;
    }

    50% {
        transform: scale(1.15);
        opacity: 0.4;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@media (max-width: 768px) {
    .career-simple-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .section-title.text-left {
        text-align: center;
    }

    .underline.left {
        margin: 0 auto;
    }

    .career-benefits {
        justify-content: center;
    }
}

/* --- Contact Section --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    margin-top: 20px;
}

.contact-info,
.contact-form {
    padding: 50px;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--color-text-main);
}

.contact-info p {
    color: var(--color-text-muted);
    margin-bottom: 35px;
    font-size: 1.1rem;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    color: var(--color-text-main);
    font-weight: 600;
}

.contact-list i {
    color: var(--color-gold-start);
    font-size: 1.4rem;
    width: 25px;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gold-start);
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-smooth);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.social-icon:hover {
    background: linear-gradient(135deg, var(--color-gold-start), var(--color-gold-end));
    color: var(--color-white);
    transform: translateY(-5px);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--color-text-main);
    font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 25px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #ffffff;
    color: var(--color-text-main);
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: all var(--transition-fast);
    line-height: 1.5;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-gold-start);
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.1);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 18px;
    cursor: pointer;
    color: #999;
    height: 58px;
    /* Fixed height to match inputs exactly */
}

.form-group select:focus {
    color: var(--color-text-main);
}

.form-group select option {
    color: var(--color-text-main);
    background: #fff;
}

/* --- Section Divider --- */
.section-divider {
    height: 30px;
    background: var(--color-light-blue-dark);
    width: 100%;
    margin: 0;
}

/* --- Footer --- */
.footer {
    background: var(--color-dark-blue);
    /* Dark Background */
    color: var(--color-white);
    /* White Text */
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .about-content,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .about-image {
        height: 300px;
    }
}

@media (max-width: 768px) {
    /* --- Your Original Layout Settings --- */
    .hero-title {
        font-size: 2.8rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .section {
        padding: 60px 20px;
    }

    /* --- The Menu Fixes --- */
    
    /* 1. Show the hamburger icon (matches your HTML ID/Class) */
    .hamburger {
        display: block;
    }

    /* 2. Format the main menu for mobile */
    .nav-links {
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 100%; 
        left: 0;
        width: 100%;
        background: var(--color-navbar-bg);
        padding: 20px 0;
        text-align: center;
        gap: 15px;
        border-bottom: 2px solid var(--color-dark-blue);
    }

    /* 3. The JS toggle state: forces the menu to show when clicked */
    .nav-links.active {
        display: flex !important;
    }

    /* 4. Format the inner dropdown menus to stack vertically */
    .dropdown-menu {
        position: static;
        display: none; 
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.05);
        border-top: none;
        margin-top: 10px;
    }

    /* 5. The JS toggle state for the sub-menus */
    .dropdown-menu.show {
        display: block;
    }


    .contact-wrapper {
        grid-template-columns: 1fr;
        display: flex; /* Fallback */
        flex-direction: column;
        gap: 30px;
    }

    /* 2. Stack the form input rows vertically */
    .form-row {
        grid-template-columns: 1fr;
        display: flex; /* Fallback */
        flex-direction: column;
        gap: 0; /* The .form-group handles the margin */
    }

    /* 3. Reduce padding so the cards fit nicely on small phone screens */
    .contact-info,
    .contact-form {
        padding: 30px 20px;
    }

    /* 4. Center the contact info text for better mobile readability */
    .contact-info {
        text-align: center;
    }

    .contact-list li {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }
}