@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800;900&display=swap');

:root {
    --sage: #95c0c2;
    --peach: #FFD2C2;
    --dark-void: #1A1F2B;
    --glass: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.05);
    --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

html {
    scroll-behavior: smooth;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-font-smoothing: antialiased; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--dark-void);
    color: #ffffff;
    line-height: 1.6;
}

/* --- PREMIUM SCROLL BUTTON STACKING --- */
.scroll-btn {
    display: inline-flex !important;
    flex-direction: column; /* Stacks text and arrow vertically */
    align-items: center;
    justify-content: center;
    gap: 8px; /* Space between text and arrow */
    padding: 15px 40px !important; /* Adjusted padding for better proportions */
}

.btn-arrow {
    font-size: 1.2rem;
    line-height: 1;
    transition: var(--transition);
}

/* Optional: Subtle bounce effect to encourage scrolling */
.scroll-btn:hover .btn-arrow {
    transform: translateY(3px);
    color: var(--peach);
}

/* --- NEW CLEAN-SLATE LAYOUT --- */
.stack-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 80px auto;
    gap: 50px;
}

.stack-row.reverse { flex-direction: row-reverse; }

.stack-text { flex: 1; }
.stack-image { 
    flex: 1; 
    height: 400px; 
    background-size: cover; 
    background-position: center; 
    border-radius: 30px; 
    border: 1px solid var(--glass-border);
}

/* --- THE FORCE STACK (MOBILE) --- */
@media (max-width: 992px) {
    .stack-row, .stack-row.reverse {
        display: block !important; /* Forces vertical flow */
        margin-bottom: 50px !important;
    }

    .stack-image {
        width: 100% !important;
        height: 250px !important;
        margin-bottom: 20px !important;
    }

    .stack-text {
        width: 100% !important;
        text-align: center !important;
    }
}
/* --- HERO & VIDEO ENGINE --- */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;

    background-image: url('Images/hero 5.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


.hero-overlay {
    position: absolute;
    inset: 0;
    margin-bottom: -100%;
    z-index: 1;
    background: rgba(169, 255, 255, 0.05);
    backdrop-filter: blur(3.5px);
}

/* --- FLOATING NAVIGATION --- */
/* --- HIGH TRANSPARENCY TOP PANEL --- */
.top-panel {
    position: fixed;
    top: 30px; 
    left: 50%;
    transform: translateX(-50%);
    width: 90%; 
    max-width: 1200px;
    
    /* Lowered from 0.75 to 0.25 for high transparency */
    background: rgba(10, 15, 15, 0.25); 
    
    /* Stronger blur keeps the text readable even when very transparent */
    backdrop-filter: blur(3px) saturate(150%); 
    
    /* Subtle border defines the edge without being a solid line */
    border: 1px solid rgba(255, 255, 255, 0.08); 
    
    border-radius: 100px;
    padding: 18px 40px;
    z-index: 1000;
    transition: var(--transition);
}

/* Optional: Slight darken effect on scroll or hover to ensure usability */
.top-panel:hover {
    background: rgba(10, 15, 15, 0.116);
    border-color: rgba(255, 255, 255, 0.15);
}
.header { display: flex; justify-content: space-between; align-items: center; }

.nav a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 15px; font-weight: 600;
    margin: 0 22px; text-transform: uppercase;
    transition: var(--transition);
}

.nav a:hover { color: var(--peach); }

/* --- HERO CONTENT & CARDS --- */
.hero-content { position: relative; z-index: 10; text-align: center; margin-bottom:-50px;}
.hero-content h1 {
    font-size: clamp(3rem, 9vw, 6rem);
    font-weight: 900; line-height: 0.9;
    text-shadow: 0 6px 30px rgba(0, 0, 0, 0.6);
    background: linear-gradient(to bottom, #fff, var(--peach));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    margin-bottom: 25px;
}

.hero-content h2 {
    font-size: clamp(3rem, 9vw, 6rem);
    font-weight: 900; line-height: 0.9;
    text-shadow: 0 6px 30px rgba(0, 0, 0, 0.6);
    background: linear-gradient(to bottom, #fff, var(--peach));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    margin-bottom: 25px;
}

.action-card {
    display: inline-block;
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px 40px;
    color: #fff; text-decoration: none;
    font-weight: 600; text-transform: uppercase;
    transition: var(--transition);
    margin: 10px;
}

.action-card:hover {
    transform: translateY(-12px);
    border-color: var(--peach);
    background: rgba(255, 255, 255, 0.1);
}
/* --- about section --- */



/* --- PREMIUM CARD GRID SYSTEM --- */
.section {
    padding: 80px 8%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* This container forces the side-by-side layout */
.card-grid {
    display: grid;
    /* This creates 3 columns if space permits, otherwise scales down */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px; /* Space between the cards */
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(15px);
    border: 1px solid #FFD2C2;
    border-radius: 24px;
    padding: 40px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    
    /* Ensures all cards in a row have the same height */
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-12px) scale(1.02);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--peach);
}


/* --- Industry Carousel --- */

/* INDUSTRY CAROUSEL ENGINE */
.industry-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    /* Soft fade on edges */
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.industry-track {
    display: flex;
    width: max-content; /* Critical for side-by-side layout */
    gap: 25px;
    animation: industryScroll 30s linear infinite;
}

/* Pause on hover for better UX */
.industry-carousel:hover .industry-track {
    animation-play-state: paused;
}

.industry-card {
    flex: 0 0 320px; /* Fixed width for cards */
    height: 180px;
    border-radius: 20px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    border: 1px solid var(--glass-border);
    position: relative;
    transition: var(--transition);
}

.industry-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* The floating label inside the card */
.industry-card span {
    background: rgba(10, 15, 15, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
}

/* INFINITE SCROLL ANIMATION */
@keyframes industryScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Moves exactly half the track length */
}


/* --- UPDATED TEAM CARDS (PERMANENT TEXT) --- */
.team-card {
    position: relative;
    background: var(--premium-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 25px;
    height: auto; /* Changed from fixed height to auto */
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    
    max-width: 520px;
width: 100%;
}

.license-info {
    flex: 1;
}

/* --- UNIFORM LICENSE PHOTOS --- */
.license-photo {
    width: 100px;  /* Fixed width */
    height: 125px; /* Fixed height (Classic 4:5 ID ratio) */
    object-fit: cover; /* Ensures image fills the area without stretching */
    object-position: center top; /* Keeps faces centered in the frame */
    border-radius: 12px;
    border: 1px solid rgba(203, 213, 225, 0.3); /* Metallic silver border */
    background: var(--deep-slate);
    flex-shrink: 0; /* Prevents the image from being squished by text */
}

.card-identity {
    display: flex;
    gap: 25px;
    align-items: flex-start; /* Keeps photo and text aligned at the top */
}

.team-description {
    margin-top: 15px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7); /* Muted silver/grey */
}

/* === OPERATIONS / LOCATIONS SECTION === */
.locations-wrapper {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.location-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px 25px;
    min-width: 260px;
    text-align: center;
    backdrop-filter: blur(12px);
    transition: var(--transition);
}

.location-card h3 {
    margin-bottom: 60px;
    font-size: 1.1rem;
}

.location-card p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.location-card:hover {
    transform: translateY(-8px);
    border-color: var(--peach);
    background: rgba(255, 255, 255, 0.08);
}

/* === OPERATIONS / LOCATIONS SECTION === */
.locations-section {
    width: 100%;
    padding: 80px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* === LOCATION MAP BACKGROUND (EU) === */
.location-card.eu {
    position: relative;
    overflow: hidden;
}

.location-card.eu::after {
    content: "";
    position: absolute;
    right: 15px;
    bottom: 15px;
    width: 140px;
    height: 140px;
    background-image: url("Images/europe.svg");
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.30;
    pointer-events: none;
}

/* Remove or comment out these hover reveal rules */
.card-reveal {
    display: none;
}

/* Updated hover: subtle lift instead of a blur/reveal */
.team-card:hover {
    transform: translateY(-10px);
    border-color: var(--peach);
    background: rgba(255, 255, 255, 0.08);
}

/* === STEP 2: TEAM WRAPPER (SAFE SIZE CONTROL) === */
.team-wrapper {
    max-width: 1400px;
    width: 100%;

     display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

/* === TEAM ROW LAYOUT === */
.team-row {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

/* Founders (top row) */
.team-row--founders .team-card {
    max-width: 520px;
    width: 100%;
}

/* Team members (bottom row) */
.team-row--team .team-card {
    max-width: 430px;
    width: 100%;
}
/* --- FOOTER --- */
.footer { padding: 100px 8% 40px; background: #1A1F2B; border-top: 1px solid var(--glass-border); }
.footer-container { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 60px; }
.footer-col h3 { color: var(--peach); margin-bottom: 20px; font-size: 1.8rem; }
.footer-col h4 { color: #fff; margin-bottom: 25px; text-transform: uppercase; font-size: 0.9rem; }
.footer-col p, .footer-col li { color: rgba(255, 255, 255, 0.6); font-size: 0.9rem; line-height: 1.8; }
.footer-col ul { list-style: none; }
.footer-col li:hover { color: var(--peach); cursor: pointer; }
.footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 30px; }

/* --- POPUPS --- */
.popup {
    display: none; position: fixed; top: 100px; right: 5%;
    width: 320px; background: rgba(10, 15, 15, 0.95);
    backdrop-filter: blur(20px); border: 1px solid var(--peach);
    border-radius: 20px; padding: 30px; z-index: 2000;
}
.popup input, .popup textarea { 
    width: 100%; background: rgba(255,255,255,0.05); 
    border: 1px solid var(--glass-border); border-radius: 8px; 
    padding: 10px; color: #fff; margin-bottom: 10px; 
}
.popup button { 
    width: 100%; padding: 10px; background: var(--peach); 
    color: var(--dark-void); border: none; font-weight: 700; cursor: pointer; 
}

/* --- UPDATED ICON BUTTONS --- */
.icon-btn { 
    background: none; 
    border: 1px solid var(--glass-border); 
    color: #fff; 
    border-radius: 50%; 
    
    /* Increase width and height for a larger circular button */
    width: 52px; 
    height: 52px; 
    
    /* Increase font-size to make the actual icons (✉, ✆) larger */
    font-size: 2.5rem; 
    
    /* Center the icons perfectly inside the larger circle */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    
    cursor: pointer; 
    transition: var(--transition);
}

/* Add a subtle glow on hover to match your premium aesthetic */
.icon-btn:hover {
    border-color: var(--peach);
    background: rgba(255, 255, 255, 0.05);
    transform: scale(1.1);
}


/* --- UNIVERSAL RESPONSIVENESS --- */

/* 1. Global Scaling & Layout */
@media (max-width: 1200px) {
    .hero-content h1 { font-size: clamp(2.5rem, 8vw, 4.5rem); } /* Shrink hero text slightly */
    .section { padding: 80px 5%; } /* Reduce side padding */
}

/* 2. Tablet & Large Phones (The Card Grid Fix) */
@media (max-width: 992px) {
    .top-panel { 
        width: 95%; 
        padding: 10px 20px;
        border-radius: 50px; /* Slimmer look for mobile */
    }
    
    .nav { display: none; } /* Hide desktop nav; ideally replace with a hamburger later */
    
    .card-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Force cards into readable columns */
        gap: 20px;
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr; /* 2x2 grid for footer */
    }

    .team-card { height: auto; min-height: 180px; } /* Allow team cards to expand vertically */

        .locations-wrapper {
        flex-direction: column;
        align-items: center;
    }
}

/* 3. Small Mobile Devices */
/* --- MOBILE MENU STYLES --- */
.mobile-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

.mobile-nav {
    display: none; /* Hidden by default */
    flex-direction: column;
    padding: 20px 0;
    border-top: 1px solid var(--glass-border);
    margin-top: 15px;
}

.mobile-nav a {
    color: #fff;
    text-decoration: none;
    padding: 12px 0;
    font-size: 1.1rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

@media (max-width: 992px) {
    .mobile-toggle { display: block; } /* Show hamburger */
    .nav { display: none; } /* Hide horizontal links */
    
    .header {
        grid-template-columns: auto 1fr auto; /* Adjust for 3 items */
        display: flex;
        justify-content: space-between;
    }

    .mobile-nav.active {
        display: flex; /* Shown when toggled */
        animation: slideDown 0.4s ease forwards;
    }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 4. Touch Device Polish */
@media (hover: none) {
    .card:hover, .action-card:hover {
        transform: none; /* Prevent sticky hover states on touch screens */
    }
    
    .card-reveal {
        position: relative; /* Make team descriptions always visible on mobile */
        opacity: 1;
        transform: none;
        background: transparent;
        padding-top: 15px;
    }
    
    .team-card { height: auto; }
}

.hero-overlay-2 {
    position: absolute;
    inset: 0;
    /* 20% opacity black tint */
    background: rgba(10, 15, 15, 0.2); 
    
    /* Strong blur creates the "Glass" effect */
    backdrop-filter: blur(1px); 
    
    /* Adds a subtle saturation boost to the image colors behind the glass */
    -webkit-backdrop-filter: blur(15px) saturate(160%); 
    
    z-index: 1;
}

/* GLASSY INPUT ENGINE */
input, select, textarea {
    background: rgba(255, 255, 255, 0.05) !important; /* Subtle tint */
    backdrop-filter: blur(5px); /* Frosty effect inside the box */
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    padding: 15px !important;
    color: #ffffff !important;
    font-family: inherit;
    transition: var(--transition);
}

/* Hover & Focus States */
input:hover, select:hover, textarea:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

input:focus, select:focus, textarea:focus {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: var(--peach) !important;
    outline: none;
    box-shadow: 0 0 15px rgba(255, 210, 194, 0.2);
}

/* Style the dropdown arrow and options */
select option {
    background: var(--dark-void); /* Prevents white flash on dropdown */
    color: #fff;
}

/* Mobile fix for the name grid */
@media (max-width: 600px) {
    .form-grid-mobile {
        grid-template-columns: 1fr !important;
    }
}
/* === STEP 5: RESPONSIVE TEAM RESET === */
@media (max-width: 1100px) {

    .team-wrapper {
        max-width: 100%;
    }

    .team-wrapper .team-card {
        max-width: 100%;
    }


/* === MOBILE FIX: LOCATIONS / COUNTRIES CARDS === */
@media (max-width: 768px) {
    .locations-wrapper {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .location-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
    }
}

/* === MOBILE FIX: HEADER ICON BUTTONS === */
@media (max-width: 768px) {
    .icon-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

/* === MOBILE FIX: PHONE & EMAIL LINK COLORS === */
a[href^="tel"],
a[href^="mailto"] {
    color: inherit;
    text-decoration: none;
    font-weight: inherit;
}

a[href^="tel"]:hover,
a[href^="mailto"]:hover {
    color: var(--peach);
}