:root {
    --primary: #22355C;       
    --secondary: #234F90;     
    --accent: #B2D7F2;        
    --text-dark: #242424;     
    --text-grey: #999A9A;     
    --bg-light: #F0F6FB;      
    --bg-white: #FFFFFF;
    --radius: 20px;
    --container: 1200px;
}

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

body {
    font-family: 'Raleway', sans-serif;
    background-color: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- DYNAMIC ISLAND HEADER (iOS Glass Style) --- */
.nav-island {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    
    width: 90%;
    max-width: 900px;
    height: 70px;
    
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px 0 25px;
    
    z-index: 1000;
    
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 100px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

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

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s;
    position: relative;
}

.nav-menu li a:hover {
    color: var(--primary);
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    width: 4px;
    height: 4px;
    background-color: var(--primary);
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-menu li a:hover::after {
    transform: translateX(-50%) scale(1);
}

.contact-wrapper {
    position: relative;
}

.contact-pill {
    cursor: pointer;
    background-color: var(--primary);
    color: white;
    padding: 14px 32px; 
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(34, 53, 92, 0.3);
}

.contact-pill:hover {
    transform: scale(1.05);
    background-color: var(--secondary);
    box-shadow: 0 6px 20px rgba(35, 79, 144, 0.4);
}

.contact-pill:active {
    transform: scale(0.95);
}

.contact-dropdown {
    position: absolute;
    top: 60px;
    right: 0;
    width: 180px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 10px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    border-radius: 12px;
    transition: background 0.2s;
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background-color: var(--bg-light);
    color: var(--primary);
}

@media (max-width: 768px) {
    .nav-menu { display: none; }
    .nav-island { justify-content: space-between; padding: 0 20px; }
}

/* --- HERO SECTION RESTRUCTURE --- */
.hero {
    /* Keeps your background logic */
    position: relative;
    /* CHANGED: Reduced to 75vh so the content below is clearly seen */
    height: 75vh; 
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* The Overlay to ensure text is readable */
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; 
    width: 100%; height: 100%;
    /* Dark Blue Overlay */
    background: linear-gradient(90deg, rgba(34, 53, 92, 0.9) 0%, rgba(34, 53, 92, 0.7) 100%);
    z-index: 1;
}

/* Container fix */
.container {
    position: relative;
    z-index: 2; /* Sits on top of overlay */
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Flex Layout: Left Text, Right Image */
.hero-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px; /* Space between text and image */
}

/* Text Content */
.hero-content {
    flex: 1;
    max-width: 600px;
    color: white;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero p {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Right Side Image Area */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

/* The Minimalist Image Style */
.minimal-hero-img {
    width: 100%;
    /* Kept big as requested */
    max-width: 750px; 
    height: auto;
    border-radius: 20px; 
    
    /* Minimalist floating effect */
    box-shadow: 0 20px 40px rgba(0,0,0,0.2); 
    
    /* Optional: Subtle border */
    border: 1px solid rgba(255, 255, 255, 0.1);
    
    /* Kept contain so it doesn't get cut */
    object-fit: contain;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero-flex {
        flex-direction: column-reverse; /* Stack them */
        text-align: center;
        padding-top: 80px;
    }
    
    .hero-visual {
        justify-content: center;
        margin-bottom: 30px;
    }

    .minimal-hero-img {
        max-width: 100%;
    }
}

.btn {
    padding: 16px 32px; background: var(--secondary); color: white; border: none;
    border-radius: 50px; font-weight: 700; cursor: pointer; transition: 0.2s;
}
.btn:hover { background: var(--primary); transform: scale(1.05); }
.btn:active { transform: scale(0.95); }

.section-label { font-size: 0.8rem; text-transform: uppercase; color: var(--text-grey); letter-spacing: 2px; margin-bottom: 20px; }

.values { padding: 120px 0; }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 60px; }
.value-item h3 { font-size: 1.8rem; margin-bottom: 15px; }

.projects { padding: 120px 0; background-color: var(--bg-light); }
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.project-card { background: white; border-radius: var(--radius); overflow: hidden; transition: 0.3s; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.project-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.project-img { height: 220px; width: 100%; object-fit: cover; background: #eee; }
.project-info { padding: 30px; }

/* --- PARTNERS SECTION (3-Row Flow) --- */
.partners {
    padding: 100px 0;
    overflow: hidden; /* Hides the scrolling edges */
    background: white;
}

.marquee-stack {
    display: flex;
    flex-direction: column;
    gap: 30px; /* Space between the 3 rows */
}

.marquee-row {
    width: 100%;
    overflow: hidden; /* Crops the long list */
    white-space: nowrap;
    position: relative;
}

/* The long strip of logos */
.marquee-track {
    display: flex;
    align-items: center;
    gap: 80px; /* Space between logos */
    width: max-content; /* Allows it to stretch infinitely */
    will-change: transform; /* Optimizes performance */
}

/* Logos Styling */
.marquee-track img {
    height: 40px; /* Consistent height */
    width: auto;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.marquee-track img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* --- ANIMATIONS --- */

/* Standard: Move Left */
.scroll-left {
    animation: scrollLeft 60s linear infinite;
}

/* Reverse: Move Right */
.scroll-right {
    animation: scrollRight 60s linear infinite;
}

@keyframes scrollLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes scrollRight {
    /* Starts at -50% and moves to 0 to simulate right movement seamlessly */
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* --- NEW CONTACT SECTION (Minimalist & Direct) --- */
.contact {
    padding: 120px 0;
    text-align: center;
}

.contact-box {
    background-color: #F7F9FC; /* Light Grey Card */
    border: 1px solid rgba(34, 53, 92, 0.05);
    box-shadow: 0 20px 50px rgba(0,0,0,0.03);
    color: var(--primary);
    
    padding: 100px 60px;
    border-radius: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.contact h2 {
    color: var(--primary);
    font-size: 3rem;
    margin-bottom: 10px; /* Reduced space */
    font-weight: 800;
}

.contact p {
    font-size: 1.3rem;
    color: var(--text-grey);
    margin-bottom: 50px; /* Space before links */
    font-weight: 500;
}

/* --- THE NEW LINKS ROW --- */
.contact-links {
    display: flex;
    justify-content: center;
    gap: 20px; /* Space between the pills */
    flex-wrap: wrap; /* Wraps nicely on mobile */
}

/* The Individual Link Pill */
.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    
    background: white; /* Clean white pill */
    padding: 16px 32px;
    border-radius: 50px;
    
    text-decoration: none;
    color: var(--primary); /* Dark Navy Text */
    font-weight: 700;
    font-size: 1rem;
    
    box-shadow: 0 5px 15px rgba(34, 53, 92, 0.05); /* Soft shadow */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(255,255,255,0); /* Invisible border for later */
}

/* Hover Effect: Lifts up and shadow grows */
.contact-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(34, 53, 92, 0.15);
    color: var(--secondary); /* Text turns brighter blue */
}

/* --- New Contact Details Text --- */
.contact-details {
    margin-top: 40px;          /* Space between buttons and text */
    font-size: 0.9rem;         /* Slightly smaller than main text */
    color: var(--text-grey);   /* Use your grey variable for subtlety */
    font-weight: 500;
    opacity: 0.8;              /* Makes it look more premium/minimal */
    word-break: break-word;    /* Ensures long email doesn't break mobile layout */
}

/* Optional: Stack the text nicely on mobile screens if it gets too squeezed */
@media (max-width: 768px) {
    .contact-details {
        font-size: 0.85rem;
        padding: 0 10px;
        line-height: 1.8;
    }
}

/* The Arrow Animation */
.arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

/* When you hover the link, the arrow shoots up-right */
.contact-link:hover .arrow {
    transform: translate(3px, -3px);
}

/* --- FOOTER (Video Signature Style - Thinner & Black) --- */
.site-footer {
    padding: 20px 0 40px; /* Reduced padding for a thinner look */
    background-color: black; /* Black background */
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Subtle light border for black bg */
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px; /* Reduced gap */
}

/* The Container for the Video - Thinner */
.video-wrapper {
    height: 35px; /* Thinner height */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* The actual Video Element */
.brand-video {
    height: 100%;
    width: auto;
    object-fit: contain;
    /* Removed mix-blend-mode as it's not needed for black bg */
}

.copyright p {
    font-size: 0.7rem;
    color: white; /* White text for contrast */
    font-weight: 500;
    margin: 0;
}

/* Adjusting the subtitle opacity for the black background */
.copyright p:last-child {
    opacity: 0.5; 
}

/* --- AI Button --- */
.ai-pill {
    position: fixed; bottom: 30px; right: 30px;
    background: #000; color: #fff; /* Black button */
    padding: 12px 24px; border-radius: 50px;
    cursor: pointer; z-index: 9999; 
    display: flex; align-items: center; gap: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}
.ai-pill:hover { transform: scale(1.05); }

/* --- Chat Window --- */
.ai-window {
    display: none; /* Hidden by default */
    position: fixed; bottom: 85px; right: 30px;
    width: 350px; height: 500px;
    background: #fff; border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    z-index: 9999; flex-direction: column; overflow: hidden;
    border: 1px solid #eee; font-family: sans-serif;
}
.ai-window.active { display: flex; }

.ai-header {
    background: #fff; border-bottom: 1px solid #f0f0f0;
    padding: 15px 20px; display: flex; justify-content: space-between; align-items: center;
}
.ai-title { font-weight: 700; font-size: 1rem; color: #000; }
.close-btn { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: #999; }

.ai-mode-switch {
    display: flex; padding: 10px; background: #fafafa; gap: 8px; border-bottom: 1px solid #f0f0f0;
}
.mode-btn {
    flex: 1; padding: 8px; border: none; background: transparent; 
    font-size: 0.85rem; font-weight: 600; color: #999; cursor: pointer; border-radius: 6px;
}
.mode-btn.active { background: #fff; color: #000; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }

.ai-messages { flex: 1; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.ai-msg { padding: 12px 16px; border-radius: 12px; font-size: 0.9rem; line-height: 1.5; max-width: 85%; }
.ai-intro { background: #f5f5f5; color: #333; align-self: flex-start; }
.user-msg { background: #000; color: #fff; align-self: flex-end; }
.bot-msg { background: #f5f5f5; color: #333; align-self: flex-start; }

.ai-input-area { padding: 15px; border-top: 1px solid #f0f0f0; display: flex; gap: 10px; }
.ai-input-area input { flex: 1; padding: 12px; border: 1px solid #eee; border-radius: 25px; outline: none; }
.send-btn { background: #000; color: #fff; width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer; }

/* Styling for the File Upload Button */
.file-btn {
    background: transparent;
    border: none;
    color: var(--text-grey); /* Starts off gray */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

/* Hover effect: Background turns light blue, icon turns dark blue */
.file-btn:hover {
    background-color: var(--bg-light);
    color: var(--primary);
    transform: scale(1.05);
}

/* Make sure the input area aligns everything neatly to the center */
.ai-input-area { 
    padding: 15px; 
    border-top: 1px solid #f0f0f0; 
    display: flex; 
    gap: 10px; 
    align-items: center; /* Centers the button with the text box */
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This crops the photo perfectly to fit the box */
    object-position: center; /* Ensures the focus is on the top part of the image */
}