@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --primary-navy: #0B192C;
    --secondary-white: #FFFFFF;
    --accent-gray: #F3F4F6;
    --transition-speed: 0.3s;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--secondary-white);
    color: var(--primary-navy);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- Navigation Bar --- */
.navbar {
    position: fixed;
    top: 0;
    font-family: 'Montserrat', sans-serif;
    width: 100%;
    background-color: var(--secondary-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-navy);
}

.desktop-menu {
    display: none;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.desktop-menu a {
    font-weight: 600;
    font-size: 1rem;
    transition: color var(--transition-speed) ease;
}

.desktop-menu a:hover {
    color: #3b5998;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--secondary-white);
    list-style: none;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 1rem 0;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-menu li a {
    display: block;
    padding: 0.75rem 1.5rem;
    font-weight: 400;
}

.dropdown-menu li a:hover {
    background-color: var(--accent-gray);
}

/* --- Mobile wala Hamburger --- */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    font-family: 'Montserrat', sans-serif ;
    cursor: pointer;
    z-index: 1001;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary-navy);
    transition: all var(--transition-speed) ease;
}

/* Hamburger Animation */
.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background-color: var(--secondary-white);
}
.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}
.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background-color: var(--secondary-white);
}

/* --- Mobile menu hai bhai dont forget it --- */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--primary-navy);
    color: var(--secondary-white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-speed) ease;
    z-index: 999;
}

.mobile-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-links {
    list-style: none;
    width: 100%;
    text-align: center;
}

.mobile-links > li {
    margin: 1.5rem 0;
}

.mobile-links a, .accordion-toggle {
    font-size: 1.2em;
    font-weight: 500;
}

/* Mobile Accordion */
.accordion-toggle {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-family: inherit;
    width: 100%;
}

.accordion-content {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-speed) ease-out;
}

.accordion-content li {
    margin: 1rem 0;
}

.accordion-content a {
    font-size: 1.1rem;
    font-weight: 400;
    color: #a0aec0;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 2rem;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    filter: brightness(0.5);
    width: 100%;
    height: 100%;
    object-fit: cover; 
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 25, 44, 0.65);
    z-index: -1;
}

.hero-content {
    position: relative; 
    width: 100%;
    font-size: 1.2rem;
    max-width: 1400px;
    margin: 60px auto 0;
    color: var(--secondary-white);
}

.hero .quote {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 300;
    color: var(--accent-gray); /* Lighter color so it pops against the dark overlay */
    margin-bottom: 2.5rem;
    max-width: 800px;
}


/* --- CTA Button --- */
.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--primary-navy);
    color: var(--secondary-white);
    font-weight: 400;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    border-radius: 8px;
    border: 2px solid var(--primary-navy);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-speed) ease;
}

.btn-primary:hover {
    background-color: var(--secondary-white);
    color: var(--primary-navy);
    box-shadow: 0 0 15px rgba(11, 25, 44, 0.2);
}

/* --- Desktop Media Queries --- */
@media (min-width: 768px) {
    .hamburger {
        display: none;
    }
    
    .desktop-menu {
        display: flex;
    }
    
    .hero-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hero-content h1 {
        font-size: 4em;
    }
    
}

.about-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 120px 2rem 4rem 2rem; /* Top padding accounts for fixed navbar */
}

.about-card {
    background-color: var(--primary-navy);
    width: 100%;
    max-width: 1000px; /* Limits width to ~60-70% on large screens */
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Typography & Content Styling */
.about-text h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--secondary-white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--secondary-white);
    line-height: 1.8;
}

/* Image Styling */
.about-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* --- Animations --- */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-slide-up {
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-in {
    opacity: 0; /* Starts hidden */
    animation: fadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards; /* 0.3s delay */
}

/* --- Responsive Media Queries --- */
@media (max-width: 992px) {
    .about-card {
        padding: 3rem;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .about-section {
        padding: 100px 1rem 3rem 1rem;
    }

    .about-card {
        grid-template-columns: 1fr; /* Single column on mobile */
        padding: 2rem;
        gap: 2rem;
    }

    .about-text {
        text-align: left; /* Maintains left alignment as requested */
    }

}

/* --- Why Us Section --- */
.whyus-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 100vh;
    padding: 120px 2rem 4rem 2rem;
    background-image: linear-gradient(rgba(11, 25, 44, 0.65), rgba(11, 25, 44, 0.65)), url('/static/mineral-2.jpg');
    background-size: cover;
    background-position: center;
}

.whyus-section h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    color: var(--secondary-white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.whyus-section p {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--secondary-white);
    line-height: 1.8;
    max-width: 800px;
    font-weight: 300;
    opacity: 0; 
}

/* --- Contact Us Page Styles --- */
.contact-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 140px 2rem 5rem 2rem;
    background-color: var(--accent-gray);
    width: 100%;
}

.contact-header {
    text-align: center;
    margin-bottom: 3.5rem;
    max-width: 700px;
}

.contact-header h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 1rem;
}

.contact-header p {
    font-size: 1.1rem;
    color: #4b5563;
    line-height: 1.6;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 35fr 65fr;
    width: 100%;
    max-width: 1100px;
    gap: 3rem;
    align-items: stretch;
}

.contact-info-card {
    background-color: var(--primary-navy);
    color: var(--secondary-white);
    padding: 3.5rem 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(11, 25, 44, 0.1);
    display: flex;
    max-height: 60vh;
    flex-direction: column;
    gap: 2.5rem;
}

.info-group h2, .social-panel h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 20px;
    margin-bottom: 0.75rem;
    letter-spacing: 0.5px;
    color: var(--secondary-white);
}

.info-group p {
    font-size: 1rem;
    line-height: 1.6;
    color: #cbd5e1;
}

.social-icons {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    margin-top: 0.5rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    transition: background-color var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.social-icons a svg {
    width: 20px;
    height: 20px;
    fill: var(--secondary-white);
    transition: fill var(--transition-speed) ease;
}

.social-icons a:hover {
    background-color: var(--secondary-white);
    transform: translateY(-3px);
}

.social-icons a:hover svg {
    fill: var(--primary-navy);
}

.contact-form-container {
    background-color: var(--secondary-white);
    padding: 3.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-navy);
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    background-color: var(--accent-gray);
    border: 1px solid rgb(214, 214, 214);
    border-radius: 8px;
    color: var(--primary-navy);
    transition: border-color var(--transition-speed) ease, background-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.form-group textarea {
    resize: vertical; /* Blocks horizontal tearing deformation */
}

/* Form Interaction Animations */
.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    background-color: var(--secondary-white);
    border-color: var(--primary-navy);
    box-shadow: 0 0 0 4px rgba(11, 25, 44, 0.08);
}

.contact-form-container .btn-primary {
    align-self: flex-start; /* Aligns naturally matching modern structural forms */
    cursor: pointer;
}

/* --- Contact Page Structural Breakpoints --- */
@media (max-width: 1024px) {
    .contact-wrapper {
        grid-template-columns: 40fr 60fr;
        max-width: 90%; /* Matches tablet sizing blueprint requirements */
        gap: 2rem;
    }
    
    .contact-form-container {
        padding: 2.5rem;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 110px 1rem 4rem 1rem;
    }

    .contact-header {
        margin-bottom: 2.5rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr; /* Triggers the uniform single-column fallback hierarchy */
        max-width: 100%;
        gap: 2rem;
    }

    .contact-info-card {
        padding: 2.5rem 2rem;
        order: 1; /* Aligns Information Card layout sequence sequentially after description */
    }

    .contact-form-container {
        padding: 2.5rem 1.5rem;
        order: 2; /* Positions the Contact Form sequence beneath the information structural block */
    }

    .contact-form-container .btn-primary {
        width: 100%; /* Adapts primary button sizing seamlessly across strict viewport changes */
        text-align: center;
    }
}