@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700;900&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

@font-face {
    font-family: 'Roclette Pro';
    src: local('Roclette Pro');
    /* Fallbacks can be defined, but we rely on the font stack in :root if not installed */
}

:root {
    --color-white: #ffffff;
    --color-bg-primary: #ffffff;
    --color-bg-secondary: #f9fafb; /* Nordic light gray */
    --color-text-main: #1f2937; /* Nordic dark text */
    --color-text-muted: #4b5563; /* Nordic muted text */
    --color-accent: #00d2ff; /* Brand Cyan */
    --color-accent-light: #7b2ff7; /* Brand Purple */
    --color-accent-gradient: linear-gradient(135deg, #7b2ff7, #00d2ff);
    --color-border: #e5e7eb;
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    
    --font-text: 'Poppins', sans-serif;
    --font-heading: 'Roclette Pro', 'Playfair Display', serif; 
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-text);
    color: var(--color-text-main);
    background-color: var(--color-bg-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-text-main);
}

h1 {
    font-size: clamp(3rem, 5vw, 5rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    letter-spacing: -0.01em;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

/* Layout Classes */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: 8rem 0;
}

.section-light {
    background-color: var(--color-bg-primary);
}

.section-muted {
    background-color: var(--color-bg-secondary);
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid transparent;
    transition: var(--transition-smooth);
}

header.scrolled {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 55px;
    width: auto;
    transition: var(--transition-smooth);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-links li a {
    text-decoration: none;
    color: var(--color-text-main);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: relative;
    transition: var(--transition-smooth);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent-gradient);
    transition: var(--transition-smooth);
}

.nav-links li a:hover::after {
    width: 100%;
}

/* Dropdown Navigation Menu */
.nav-item-dropdown {
    position: relative;
}

.dropdown-trigger {
    cursor: pointer;
}

/* Dropdown Menu Container (Light Glassmorphism for Solid Scrolled Header) */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 15px); /* Space to clear header margin safely */
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    list-style: none;
    padding: 0.75rem 0;
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                visibility 0.4s;
    z-index: 200;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Invisible bridge layer to prevent hover-out loss between trigger and dropdown */
.nav-item-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 20px;
    display: block;
    z-index: 99;
}

.nav-item-dropdown:hover .dropdown-menu,
.nav-item-dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
    width: 100%;
    display: block;
}

.dropdown-menu li a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--color-text-main) !important;
    text-transform: none !important;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    border-bottom: none !important;
}

/* Prevent underline slide animation in dropdown links */
.dropdown-menu li a::after {
    display: none !important;
}

.dropdown-menu li a:hover,
.dropdown-menu li a:focus {
    background: rgba(123, 47, 247, 0.04);
    color: var(--color-accent-light) !important;
    padding-left: 1.75rem; /* Elegant nudge effect */
    outline: none;
}

/* Transparent Header Overrides (Dark Premium Glassmorphism Theme) */
header.header-transparent .dropdown-menu {
    background: rgba(15, 23, 42, 0.96);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
}

header.header-transparent .dropdown-menu li a {
    color: rgba(255, 255, 255, 0.85) !important;
}

header.header-transparent .dropdown-menu li a:hover,
header.header-transparent .dropdown-menu li a:focus {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-accent) !important;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    background-color: var(--color-accent-light); /* Purple primary */
    color: var(--color-white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: var(--radius-md);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    border: 2px solid transparent;
    outline: 2px solid transparent;
    outline-offset: -2px;
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-accent-light);
    border-color: var(--color-accent-light);
    outline-color: rgba(0, 210, 255, 0.5); /* Cyan glow */
    outline-offset: 4px;
    box-shadow: 0 10px 20px rgba(123, 47, 247, 0.15);
    transform: translateY(-2px);
}

.btn-link {
    display: inline-flex;
    align-items: center;
    color: var(--color-accent-light);
    font-weight: 600;
    text-decoration: none;
    margin-top: auto;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.btn-link:hover {
    color: var(--color-text-main);
}

.btn-link::after {
    content: '→';
    margin-left: 8px;
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.btn-link:hover::after {
    transform: translateX(5px);
}

/* Hero Slider */
.hero-slider {
    position: relative;
    min-height: 100vh;
    padding-top: 80px; /* offset for header */
    overflow: hidden;
    background-color: var(--color-bg-primary);
}

.slide {
    position: absolute;
    top: 80px; /* below header */
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    opacity: 0;
    transition: opacity 0.8s ease-in-out, visibility 0.8s;
    visibility: hidden;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 10;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero-content {
    max-width: 750px;
    padding-right: 2rem;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.6s ease 0.3s;
}

.slide.active .hero-content {
    transform: translateY(0);
    opacity: 1;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 4.5vw, 4rem);
    margin-bottom: 1.5rem;
    line-height: 1.15;
    text-wrap: balance;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 3rem;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    max-height: 65vh;
    overflow: hidden;
    border-radius: var(--radius-lg);
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.8s ease 0.2s;
}

.slide.active .hero-image-wrapper {
    transform: scale(1);
    opacity: 1;
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: grayscale(10%);
    transition: transform 10s ease;
}

.slide.active .hero-image-wrapper img {
    transform: scale(1.05);
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    max-width: 1400px;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    transform: translate(-50%, -50%);
    z-index: 20;
    pointer-events: none;
}

.slider-btn {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.7);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--color-text-main);
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: var(--color-white);
    color: var(--color-accent);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 20;
}

.dot {
    width: 40px;
    height: 3px;
    background-color: var(--color-border);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.dot.active, .dot:hover {
    background-color: var(--color-accent);
}

/* Services Section */
.services-intro {
    max-width: 800px;
    margin-bottom: 5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
}

.service-card {
    padding: 3rem 2.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background-color: var(--color-white);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    cursor: default;
    outline: 2px solid transparent;
    outline-offset: -2px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.service-card .btn-primary {
    margin-top: auto;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent-light);
    outline-color: rgba(0, 210, 255, 0.5); /* Cyan glow */
    outline-offset: 4px;
    box-shadow: 0 15px 30px rgba(123, 47, 247, 0.08);
}

.service-number {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-border);
    margin-bottom: 1.5rem;
    display: block;
    transition: var(--transition-smooth);
}

.service-card:hover .service-number {
    color: transparent;
    background: var(--color-accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.service-card p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

/* Features/Why Us */
.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.feature-image img {
    width: 100%;
    height: auto;
    filter: grayscale(10%);
    border-radius: var(--radius-lg);
}

.feature-list {
    list-style: none;
    margin-top: 3rem;
}

.feature-list li {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    position: relative;
    color: var(--color-text-main);
    font-weight: 500;
}

.feature-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--color-accent-light); /* Subtle purple for bullets */
}

/* Contact Section */
.contact-section {
    background-color: var(--color-text-main);
    color: var(--color-white);
    text-align: center;
}

.contact-section h2 {
    color: var(--color-white);
}

.contact-section p {
    color: rgba(255, 255, 255, 0.7);
}

.contact-form {
    max-width: 600px;
    margin: 4rem auto 0;
    text-align: left;
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--color-white);
    font-family: var(--font-text);
    font-size: 1.125rem;
    transition: var(--transition-smooth);
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    padding-right: 2rem;
}

.form-group select option {
    background-color: var(--color-white);
    color: var(--color-text-main);
    font-family: var(--font-text);
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-bottom: 2px solid var(--color-accent-light) !important;
}

.form-group label {
    position: absolute;
    top: 1rem;
    left: 0;
    color: rgba(255, 255, 255, 0.5);
    transition: var(--transition-smooth);
    pointer-events: none;
}

.form-group input:focus ~ label,
.form-group input:valid ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:valid ~ label,
.form-group select ~ label {
    top: -1.25rem;
    font-size: 0.85rem;
    color: var(--color-white);
}

.form-group.select-group::after {
    content: '▼';
    font-size: 0.65rem;
    position: absolute;
    right: 5px;
    top: 1.25rem;
    color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
    transition: var(--transition-smooth);
}

.form-group select:focus ~ .form-group.select-group::after {
    color: var(--color-accent-light);
}

.btn-submit {
    background-color: var(--color-white);
    color: var(--color-text-main);
    border: 2px solid transparent;
    width: 100%;
    padding: 1.25rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    outline: 2px solid transparent;
    outline-offset: -2px;
}

.btn-submit:hover {
    background-color: var(--color-text-main);
    color: var(--color-white);
    border-color: var(--color-white);
    outline-color: rgba(255, 255, 255, 0.3);
    outline-offset: 4px;
}

/* Footer */
footer {
    padding: 4rem 0;
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.footer-logo {
    height: 65px;
    margin-bottom: 2rem;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.footer-logo:hover {
    opacity: 1;
}

.footer-copy {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* Responsive & Mobile Menu Drawer Styles */
.hamburger-btn {
    display: none; /* Hidden by default on Desktop/Wide */
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1002;
    padding: 0;
    margin-left: 1.5rem;
    outline: none;
}

.hamburger-bar {
    width: 100%;
    height: 2px;
    background-color: var(--color-text-main);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 2px;
}

/* White bars for transparent header style */
header.header-transparent .hamburger-bar {
    background-color: var(--color-white);
}

/* Active hamburger transitions */
.hamburger-btn.active .hamburger-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-btn.active .hamburger-bar:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.hamburger-btn.active .hamburger-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Drawer Overlay styling */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s;
}

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

/* Mobile Drawer Container styling */
.mobile-menu-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 320px;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-menu-drawer.active {
    right: 0;
}

.drawer-header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--color-border);
}

.drawer-logo img {
    height: 45px;
    width: auto;
}

.drawer-close {
    background: none;
    border: none;
    font-size: 2.2rem;
    color: var(--color-text-main);
    cursor: pointer;
    line-height: 1;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.drawer-close:hover {
    color: var(--color-accent-light);
    background-color: rgba(123, 47, 247, 0.05);
}

.drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-item {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 1rem;
}

.mobile-nav-item:last-child {
    border-bottom: none;
}

.mobile-dropdown-toggle {
    width: 100%;
    background: transparent;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-text);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-text-main);
    cursor: pointer;
    padding: 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dropdown-chevron {
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--color-text-muted);
    border-bottom: 2px solid var(--color-text-muted);
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    margin-right: 5px;
}

.mobile-dropdown-toggle[aria-expanded="true"] .dropdown-chevron {
    transform: rotate(-135deg);
}

.mobile-dropdown-menu {
    list-style: none;
    padding-left: 1rem;
    margin-top: 0.5rem;
    display: none;
    flex-direction: column;
    gap: 0.8rem;
}

.mobile-dropdown-menu.active {
    display: flex;
}

.mobile-dropdown-menu li a {
    text-decoration: none;
    color: var(--color-text-muted);
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    display: block;
    padding: 0.4rem 0;
}

.mobile-dropdown-menu li a:hover {
    color: var(--color-accent-light);
    padding-left: 5px;
}

.drawer-footer {
    margin-top: auto;
    padding-top: 2rem;
}

.mobile-drawer-btn {
    width: 100%;
    padding: 1rem;
    text-align: center;
    font-size: 1rem;
}

/* Full Background Slider Extension (V2) */
.full-bg-slider .slide {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    top: 0; /* Override the 80px top from V1 to prevent bottom overflow */
    padding-top: 80px; /* offset for header */
}

.full-bg-slider .slide-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    z-index: -2;
    transform: scale(1.05);
    transition: transform 10s ease;
}

.full-bg-slider .slide.active .slide-bg {
    transform: scale(1);
}

.full-bg-slider .slide-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to right, rgba(31, 41, 55, 0.6), rgba(0, 0, 0, 0.8));
    z-index: -1;
}

.full-bg-slider .hero-full,
.video-hero .hero-full {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
}

.full-bg-slider .hero-content.text-center,
.video-hero .hero-content.text-center {
    text-align: center;
    max-width: 900px;
    padding-right: 0;
    padding-left: 0;
    margin: 0 auto;
    width: 100%;
}

.full-bg-slider .hero-content.text-left,
.video-hero .hero-content.text-left {
    text-align: left;
    max-width: 850px;
    padding: 3rem 0;
    margin: 0;
    width: 100%;
}

@media (max-width: 991px) {
    .full-bg-slider .hero-content.text-left,
    .video-hero .hero-content.text-left {
        max-width: 90%;
    }
}

@media (max-width: 576px) {
    .full-bg-slider .hero-content.text-left,
    .video-hero .hero-content.text-left {
        max-width: 100%;
    }
}



.text-white {
    color: #ffffff !important;
}

.text-white-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

.full-bg-slider .slider-controls button {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.full-bg-slider .slider-controls button:hover {
    background-color: var(--color-accent);
}

.full-bg-slider .slider-dots .dot {
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: transparent;
}

.full-bg-slider .slider-dots .dot.active,
.full-bg-slider .slider-dots .dot:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
}

.full-bg-slider .btn-primary:hover,
.video-hero .btn-primary:hover {
    color: var(--color-white);
}

/* V3 Video Hero Extension */
.video-hero {
    background-color: transparent;
}

.video-hero .video-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    z-index: -2;
}

.video-hero .slide-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(15, 20, 30, 0.6), rgba(0, 0, 0, 0.8));
    z-index: -1;
}

.video-hero .slide {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    top: 0; /* Override the 80px top from V1 */
    padding-top: 0;
}

.video-hero .slider-dots {
    bottom: 3.5rem; /* Increase space from the bottom button */
}

/* Services Carousel (V3) */
.carousel-container {
    overflow: hidden;
    position: relative;
    padding: 1rem 10px 3rem; /* 10px lateral padding prevents outline clipping */
    margin: 0 -10px;         /* Compensate padding so layout remains centered */
}

.services-carousel {
    display: flex;
    gap: 3rem;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.services-carousel .service-card {
    flex: 0 0 calc((100% - 6rem) / 3);
    min-width: 0;
}

.carousel-controls-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 4rem;
}

.carousel-btn {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    color: var(--color-text-main);
    width: 45px; height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    font-size: 1.2rem;
}

.carousel-btn:hover {
    background: var(--color-accent-light);
    color: var(--color-white);
    border-color: var(--color-accent-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(123, 47, 247, 0.15);
}

.carousel-lines {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.carousel-line {
    width: 30px;
    height: 4px;
    background: var(--color-border);
    cursor: pointer;
    transition: all 0.4s ease;
    border-radius: 2px;
}

.carousel-line.active, .carousel-line:hover {
    background: var(--color-accent-light);
    width: 50px;
}



/* Transparent Header Extension */
header.header-transparent {
    background-color: transparent;
    border-bottom-color: transparent;
    backdrop-filter: none;
}

header.header-transparent .nav-links li a {
    color: var(--color-white);
}

header.header-transparent .nav-links li a::after {
    background-color: var(--color-white);
}

header.header-transparent .btn-primary:hover {
    color: var(--color-white);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: var(--color-white);
    padding: 2.25rem 2.5rem;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    max-height: 95vh;
    overflow-y: auto;
}

.modal-content h2 {
    font-size: clamp(1.4rem, 2.5vw, 1.85rem);
    margin-bottom: 0.5rem;
    color: var(--color-text-main);
}

.modal-content p {
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    line-height: 1.4;
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    font-size: 1.75rem;
    color: var(--color-text-main);
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
    transition: var(--transition-smooth);
}

.modal-close:hover {
    color: var(--color-accent-light);
    transform: rotate(90deg);
}

.modal .contact-form {
    margin-top: 0.75rem;
}

.modal .contact-form .form-group {
    margin-bottom: 1.56rem; /* Increased by 5px (25px total) */
}

.modal .contact-form .form-group input,
.modal .contact-form .form-group textarea,
.modal .contact-form .form-group select {
    color: var(--color-text-main);
    border-bottom-color: var(--color-border);
    padding: 0.6rem 0;
    font-size: 1rem;
}

.modal .contact-form .form-group label {
    color: var(--color-text-muted);
    top: 0.6rem;
    font-size: 1rem;
}

.modal .contact-form .form-group input:focus ~ label,
.modal .contact-form .form-group input:valid ~ label,
.modal .contact-form .form-group textarea:focus ~ label,
.modal .contact-form .form-group textarea:valid ~ label,
.modal .contact-form .form-group select ~ label {
    color: var(--color-accent-light);
    top: -1rem;
    font-size: 0.8rem;
}

.modal .contact-form .form-group.select-group::after {
    color: var(--color-text-muted);
}

.modal .btn-submit {
    width: auto;
    padding: 0.85rem 2rem;
    font-size: 0.95rem;
    background-color: var(--color-accent-light);
    color: var(--color-white);
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.modal .btn-submit:hover {
    background-color: transparent;
    color: var(--color-accent-light);
    border-color: var(--color-accent-light);
    box-shadow: 0 10px 20px rgba(123, 47, 247, 0.15);
    transform: translateY(-2px);
    outline: 2px solid rgba(0, 210, 255, 0.5);
    outline-offset: 4px;
}

/* Custom Phone Field with Country Selector Styles */
.phone-container {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
}

.country-code-select {
    position: relative;
    width: 110px;
    flex-shrink: 0;
}

.country-code-select select {
    padding-right: 1.5rem !important;
    text-align: left;
    cursor: pointer;
}

.country-arrow {
    position: absolute;
    right: 0;
    bottom: 1rem;
    font-size: 0.65rem;
    color: var(--color-text-muted);
    pointer-events: none;
    transition: var(--transition-smooth);
}

.country-code-select select:focus ~ .country-arrow {
    color: var(--color-accent-light);
}

.phone-input-wrapper {
    position: relative;
    flex-grow: 1;
}

.phone-input-wrapper input {
    width: 100%;
}


.clients-section {
    background-color: var(--color-bg-primary);
    padding: 3rem 0;
    border-bottom: 1px solid var(--color-border);
    overflow: hidden;
    width: 100%;
}

.clients-track {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    width: max-content;
    animation: scrollLogos 30s linear infinite;
}

.clients-track:hover {
    animation-play-state: paused;
}

.client-logo {
    flex: 0 0 auto;
    width: 120px;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: var(--transition-smooth);
    cursor: pointer;
    margin: 0 3rem; /* Perfectly symmetric horizontal margins to ensure a 100% mathematically seamless infinite loop */
}

.client-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: translateY(-2px);
}

.client-logo svg {
    width: 100%;
    height: auto;
}

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

/* Stats Section */
.stats-section {
    padding: 6rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--color-border);
    transition: var(--transition-smooth);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--color-accent-light);
}

.stat-value {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 1rem;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    color: transparent;
    background: var(--color-accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    line-height: 1;
}

.stat-unit {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin-left: 0.5rem;
}

.stat-desc {
    font-size: 1rem;
    color: var(--color-text-muted);
    font-weight: 500;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
/* Language Selector */
.lang-selector {
    display: flex;
    gap: 0.5rem;
    margin-left: 1.5rem;
    align-items: center;
}

.lang-btn {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--color-text-main);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    transition: var(--transition-smooth);
}

header.header-transparent .lang-btn {
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--color-white);
}

.lang-btn.active {
    background: var(--color-accent-light);
    color: var(--color-white) !important;
    border-color: var(--color-accent-light);
}

.lang-btn:hover:not(.active) {
    background: rgba(123, 47, 247, 0.1);
}

/* i18n support */
[data-i18n] {
    transition: opacity 0.3s ease;
}

.lang-switching [data-i18n] {
    opacity: 0;
}

/* --- Projects & Industries Section V3 --- */
.projects-intro {
    max-width: 800px;
    margin-bottom: 4rem;
}

/* Premium Filter Bar */
.filter-bar {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
    margin-bottom: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    position: relative;
    z-index: 50; /* Ensure dropdowns float over lower elements */
}

.filter-dropdown-group {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.75rem;
    flex-grow: 1;
}

/* Custom Select Dropdowns */
.custom-select {
    position: relative;
    flex: 1 1 auto;
    min-width: 120px;
    max-width: 230px;
    user-select: none;
    cursor: pointer;
}

.select-trigger {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    padding: 0.65rem 0.9rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
    transition: var(--transition-smooth);
}

.select-trigger:hover {
    border-color: var(--color-accent-light);
    background: var(--color-white);
}

.custom-select.active .select-trigger {
    border-color: var(--color-accent-light);
    background: var(--color-white);
    box-shadow: 0 0 0 3px rgba(123, 47, 247, 0.1);
}

.select-label {
    color: var(--color-text-muted);
    font-weight: 400;
}

.select-current {
    font-weight: 600;
}

.select-arrow {
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--color-text-muted);
    border-bottom: 2px solid var(--color-text-muted);
    transform: rotate(45deg);
    transition: var(--transition-smooth);
    margin-top: -4px;
}

.custom-select.active .select-arrow {
    transform: rotate(-135deg);
    margin-top: 2px;
}

.select-options {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-smooth);
    z-index: 100;
    max-height: 250px;
    overflow-y: auto;
}

.custom-select.active .select-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.select-options .option {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    transition: var(--transition-smooth);
}

.select-options .option:hover {
    background: var(--color-bg-secondary);
    color: var(--color-accent-light);
    padding-left: 1.5rem;
}

.select-options .option.active {
    background: rgba(123, 47, 247, 0.05);
    color: var(--color-accent-light);
    font-weight: 600;
}

/* Clear Filters Button */
.btn-clear-filters {
    background: transparent;
    border: 1px solid transparent;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    transition: var(--transition-smooth);
    white-space: nowrap;
    opacity: 0.5;
    pointer-events: none;
}

.btn-clear-filters.active {
    opacity: 1;
    pointer-events: auto;
    color: #ff3b30;
    border-color: rgba(255, 59, 48, 0.2);
}

.btn-clear-filters.active:hover {
    background: rgba(255, 59, 48, 0.05);
    transform: translateY(-1px);
}

.clear-icon {
    font-size: 1.2rem;
    line-height: 1;
}

/* Projects Grid & Cards */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 3rem;
    transition: var(--transition-smooth);
}

.project-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.3s ease, 
                box-shadow 0.3s ease;
    transform-origin: center;
    opacity: 1;
}

/* Dynamic filter animations */
@keyframes projectCardFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.97) translateY(10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.project-card.fade-out {
    display: none !important;
}

.project-card.fade-in {
    display: flex !important;
    animation: projectCardFadeIn 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent);
    box-shadow: 0 15px 35px rgba(0, 210, 255, 0.08);
}

.project-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.project-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-img-wrapper img {
    transform: scale(1.06);
}

.project-tags {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.project-tag {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    color: var(--color-white);
}

.tag-cyan {
    background: rgba(0, 210, 255, 0.25);
    border: 1px solid rgba(0, 210, 255, 0.4);
}

.tag-purple {
    background: rgba(123, 47, 247, 0.25);
    border: 1px solid rgba(123, 47, 247, 0.4);
}

/* Confidential badge overlay on project image */
.confidential-badge {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(30, 41, 59, 0.9);
    color: #f1f5f9;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.3rem 0.7rem;
    border-radius: 50px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    z-index: 12;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

/* Client name shown in card below title */
.project-client-name {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
    margin-top: -0.25rem;
}

.project-card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-card-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    transition: var(--transition-smooth);
}

.project-card:hover .project-card-title {
    color: var(--color-accent-light);
}

.project-card-desc {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.5;
    flex-grow: 1;
}

.project-meta-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.meta-icon-svg {
    width: 14px;
    height: 14px;
    color: var(--color-text-muted);
    opacity: 0.85;
    flex-shrink: 0;
}

.meta-text {
    font-size: 0.85rem;
    color: var(--color-text-main);
    font-weight: 500;
    white-space: nowrap;
}

/* No Results State */
.no-results {
    text-align: center;
    padding: 6rem 2rem;
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-bg-secondary);
}

.no-results p {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: 0;
}



/* Pagination Styling */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-top: 4rem;
}

.pagination-btn {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    color: var(--color-text-main);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.pagination-btn:hover:not(:disabled) {
    background: var(--color-accent-light);
    border-color: var(--color-accent-light);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(123, 47, 247, 0.15);
}

.pagination-btn.active {
    background: var(--color-accent-light);
    border-color: var(--color-accent-light);
    color: var(--color-white);
    box-shadow: 0 6px 15px rgba(123, 47, 247, 0.2);
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: none;
}

/* Final CTA Section */
.cta-section {
    padding: 8rem 0;
    background-color: var(--color-bg-primary);
    position: relative;
    overflow: hidden;
}

.cta-card {
    position: relative;
    background: linear-gradient(135deg, #0d0f14 0%, #171c26 100%);
    border-radius: var(--radius-lg);
    padding: 6rem 4rem;
    overflow: hidden;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* Subtle background glow elements for premium micro-animations */
.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(123, 47, 247, 0.15) 0%, rgba(0, 210, 255, 0.05) 50%, transparent 100%);
    opacity: 0.8;
    pointer-events: none;
    animation: ctaGlowRotate 20s linear infinite;
}

@keyframes ctaGlowRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.cta-card h2 {
    color: var(--color-white);
    font-size: clamp(2rem, 3.5vw, 3rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

/* Flat accent text */
.cta-card h2 span {
    color: var(--color-accent);
}

.cta-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: clamp(1rem, 1.25vw, 1.25rem);
    line-height: 1.6;
    margin-bottom: 3rem;
    font-weight: 400;
}

.cta-card .btn-primary {
    padding: 1.2rem 3.5rem;
    font-size: 1rem;
    background-color: var(--color-accent-light);
    border-color: var(--color-accent-light);
    color: var(--color-white);
    letter-spacing: 0.08em;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(123, 47, 247, 0.3);
}

.cta-card .btn-primary:hover {
    background-color: transparent;
    color: var(--color-accent);
    border-color: var(--color-accent);
    outline-color: rgba(0, 210, 255, 0.4);
    box-shadow: 0 15px 30px rgba(0, 210, 255, 0.25);
}



/* Accessibility & Keyboard Navigation Styles */
.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-accent-light);
    color: var(--color-white);
    padding: 0.8rem 2rem;
    font-family: var(--font-text);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    z-index: 99999;
    box-shadow: 0 10px 30px rgba(123, 47, 247, 0.3);
    transition: top 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Premium Focus Indicators */
:focus-visible {
    outline: 1.5px solid var(--color-accent-light) !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 8px rgba(123, 47, 247, 0.25) !important;
}

/* Delicate bottom-line focus behavior for form inputs (avoids floating rectangular box outline) */
.form-group input:focus-visible,
.form-group textarea:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

/* Custom Select Keyboard Highlight */
.select-options .option.highlighted {
    background: var(--color-bg-secondary);
    color: var(--color-accent-light);
    padding-left: 1.5rem;
}

/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99999;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--color-accent-light);
    color: white !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.floating-whatsapp i {
    font-size: 32px;
    line-height: 1;
}

.floating-whatsapp:hover {
    transform: scale(1.05);
    background-color: #5c1cd4; /* Darker Purple for hover */
    box-shadow: 0 6px 20px rgba(123, 47, 247, 0.4);
}

.floating-whatsapp:focus-visible {
    outline: 3px solid var(--color-accent-light) !important;
    outline-offset: 3px !important;
    box-shadow: 0 0 15px rgba(123, 47, 247, 0.5) !important;
}


/* ==========================================================================
   WIDE SCREEN BREAKPOINT (min-width: 1440px)
   ========================================================================== */
@media (min-width: 1440px) {
    .container {
        max-width: 1600px;
        padding: 0 4%;
    }
    
    .section {
        padding: 9rem 0;
    }
    
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 3rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8rem;
    }
    
    .full-bg-slider .hero-content.text-center,
    .video-hero .hero-content.text-center {
        padding: 0 6rem;
    }
}

/* ==========================================================================
   DESKTOP SCREEN BREAKPOINT (min-width: 1024px) and (max-width: 1439px)
   ========================================================================== */
@media (min-width: 1024px) and (max-width: 1439px) {
    .container {
        max-width: 1200px;
        padding: 0 5%;
    }
    
    .section {
        padding: 7rem 0;
    }
    
    /* Narrower navigation gap to prevent overlap on smaller desktop screens */
    .nav-links {
        gap: 1.75rem;
    }
    
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.25rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.25rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
    
    .full-bg-slider .hero-content.text-center,
    .video-hero .hero-content.text-center {
        padding: 0 5rem;
    }
    
    .hamburger-btn {
        display: none !important;
    }
}

/* ==========================================================================
   TABLET & MOBILE GENERAL OVERRIDES (max-width: 1023px)
   ========================================================================== */
@media (max-width: 1023px) {
    /* Hide desktop horizontal menu and CTA button in header */
    .nav-links,
    .nav-container > .btn-primary {
        display: none !important;
    }
    
    /* Make the accessible hamburger button visible */
    .hamburger-btn {
        display: flex;
    }
    
    .section {
        padding: 6rem 0;
    }
    
    /* Responsive custom filter bar inside Projects section */
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
        padding: 1.5rem;
        gap: 1.5rem;
    }
    
    .filter-dropdown-group {
        flex-wrap: wrap;
        justify-content: stretch;
    }
    
    .custom-select {
        width: calc(50% - 0.5rem);
        max-width: none;
        flex: 1 1 calc(50% - 0.5rem);
    }
    
    .btn-clear-filters {
        justify-content: center;
        width: 100%;
    }
    
    /* Slider specific adjustments */
    .full-bg-slider .hero-content.text-center,
    .video-hero .hero-content.text-center {
        padding: 0 1.5rem;
    }
    
    .slider-controls {
        display: none !important; /* Hide arrows, rely on dot controls */
    }
    
    /* Section specific padding and card optimizations */
    .cta-section {
        padding: 5rem 0;
    }
    
    .cta-card {
        padding: 4rem 3rem;
    }
    
    /* Reposition Floating Widgets to sit neatly above mobile navigation elements */
    .floating-whatsapp {
        bottom: 85px;
        right: 20px;
        width: 56px;
        height: 56px;
    }
    
    .floating-whatsapp i {
        font-size: 28px;
    }
    
    /* Services grid stacking */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        max-width: 600px;
        margin: 0 auto;
    }
    
    /* Why Us features grid stacking */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    
    .feature-image {
        max-width: 600px;
        margin: 0 auto;
    }
    
    /* Services carousel fallback styling */
    .services-carousel .service-card {
        flex: 0 0 calc((100% - 3rem) / 2);
    }
}

/* ==========================================================================
   TABLET ONLY BREAKPOINT (min-width: 641px) and (max-width: 1023px)
   ========================================================================== */
@media (min-width: 641px) and (max-width: 1023px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* ==========================================================================
   MOBILE ONLY BREAKPOINT (max-width: 640px)
   ========================================================================== */
@media (max-width: 640px) {
    /* Scale down hero typography with safe clamp fluid bounds */
    h1 {
        font-size: clamp(2rem, 8vw, 2.75rem) !important;
    }
    
    h2 {
        font-size: clamp(1.75rem, 6vw, 2.25rem) !important;
        margin-bottom: 1rem;
    }
    
    p {
        font-size: 1rem;
    }
    
    .section {
        padding: 5rem 0;
    }
    
    /* Stack stats and projects in a single fluid column */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .custom-select {
        width: 100%;
        flex: 1 1 100%;
    }
    
    /* Prevent container side padding from consuming too much space on very narrow viewports */
    .container {
        padding: 0 6%;
    }
    
    /* CTA card padding reduction to maximize copy and prevent overflow */
    .cta-card {
        padding: 3rem 1.5rem;
    }
    
    .cta-card h2 {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }
    
    .cta-card p {
        margin-bottom: 2rem;
    }
    
    .cta-card .btn-primary {
        padding: 1rem 2.5rem;
        width: 100%;
    }
    
    /* Services carousel mobile fallback */
    .services-carousel .service-card {
        flex: 0 0 100%;
    }
    
    /* Accessibility Widget mobile overrides */
    .accessibility-widget .accessibility-trigger {
        width: 50px;
        height: 50px;
    }
}

/* Respect for Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto !important;
    }
    * {
        animation-delay: 0s !important;
        animation-duration: 0s !important;
        animation-iteration-count: 1 !important;
        transition-delay: 0s !important;
        transition-duration: 0s !important;
        scroll-behavior: auto !important;
    }
    .cta-card::before {
        animation: none !important;
    }
    .project-card:hover {
        transform: none !important;
    }
    .project-card:hover .project-img-wrapper img {
        transform: none !important;
    }
    .btn-primary:hover {
        transform: none !important;
    }
    .stat-card:hover {
        transform: none !important;
    }
    .service-card:hover {
        transform: none !important;
    }
    .floating-widget:hover,
    .floating-whatsapp:hover {
        transform: none !important;
    }
    .project-card.fade-in {
        animation: none !important;
    }
}

/* ==========================================================================
   Internal Pages & Firm Page Custom Styles
   ========================================================================== */

/* Internal Page Hero */
.hero-internal {
    min-height: 45vh;
    padding-top: 140px;
    padding-bottom: 5rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    color: var(--color-white);
}

.hero-internal::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(123, 47, 247, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.hero-internal h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--color-white);
    margin-bottom: 1rem;
    text-wrap: balance;
}

.hero-internal p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 800px;
    margin-bottom: 0;
}

/* Timeline Layout (Desktop & Responsive) */
.timeline-section {
    position: relative;
    padding: 8rem 0;
    overflow: hidden;
}

.timeline-container {
    position: relative;
    margin-top: 4rem;
    padding: 2rem 0;
    transition: var(--transition-smooth);
}

@media (min-width: 1025px) {
    .timeline-container {
        padding-bottom: 180px; /* Vertical room for the unified card at the bottom */
    }
}

.timeline-line {
    position: absolute;
    top: 32px; /* Perfect alignment with dots */
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(123, 47, 247, 0.12); /* Subtle platinum axis line */
    transform: translateY(-50%);
    z-index: 1;
}

/* Active progress bar overlay */
.timeline-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--timeline-progress, 0%);
    background: var(--color-accent-gradient);
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
}

.timeline-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.timeline-node {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    outline: none;
    transition: var(--transition-smooth);
}

@media (min-width: 1025px) {
    .timeline-grid {
        position: static;
    }
    
    .timeline-node {
        position: static; /* Let cards position relative to the timeline-container */
        flex: 1 1 0px;    /* Force exact equal flex width distribution */
        min-width: 0;     /* Prevent flex layout expansion from nested cards */
        width: 0;
    }
}

.timeline-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-white);
    border: 1.5px solid rgba(123, 47, 247, 0.3);
    border-radius: 50%;
    position: relative;
    z-index: 5;
    transition: var(--transition-smooth);
}

.timeline-node:hover .timeline-dot,
.timeline-node.active .timeline-dot {
    transform: scale(1.35);
    border-color: #7b2ff7;
    box-shadow: 0 0 15px rgba(123, 47, 247, 0.5);
}

/* Concentric indicator for the active year */
.timeline-node.active .timeline-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #7b2ff7;
}

.timeline-icon {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    color: var(--color-text-muted);
    transition: var(--transition-smooth);
}

@media (min-width: 1025px) {
    .timeline-icon {
        display: none; /* Hide icons on desktop to achieve an ultra-sober axis */
    }
}

.timeline-year {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
    transition: var(--transition-smooth);
}

.timeline-node:hover .timeline-year,
.timeline-node.active .timeline-year {
    color: #7b2ff7;
    font-weight: 700;
}

.timeline-card {
    background: var(--color-white);
    border: 1px solid rgba(123, 47, 247, 0.12);
    border-radius: var(--radius-lg);
    padding: 1.75rem 2rem; /* Mobile/base padding */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.03);
    z-index: 10;
    position: relative;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s;
}

/* Left gradient border accent on the card */
.timeline-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: var(--color-accent-gradient);
    border-top-left-radius: var(--radius-lg);
    border-bottom-left-radius: var(--radius-lg);
}

@media (min-width: 1025px) {
    .timeline-card {
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translate(-50%, 20px) scale(0.97);
        width: 100%;
        max-width: 580px;
        padding: 1.25rem 2rem;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        text-align: left;
    }
    
    .timeline-node.active .timeline-card {
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, 0) scale(1);
        pointer-events: auto;
    }
}
.timeline-card-year {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-accent-light);
    margin-bottom: 0.4rem;
    font-family: var(--font-text);
    display: block;
}

.timeline-card-title {
    font-size: 1.15rem;
    color: var(--color-text-main);
    margin-bottom: 0.5rem;
    font-weight: 700;
}
.timeline-card-title:last-child {
    margin-bottom: 0;
}

.timeline-card-desc {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Sustainability side-by-side layout */
.sustainability-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 6rem;
    align-items: center;
}

.sustainability-images {
    position: relative;
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.overlapping-img-frame {
    position: absolute;
    width: 70%;
    aspect-ratio: 4/5;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    transition: var(--transition-smooth);
}

.overlapping-img-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.frame-back {
    top: 0;
    left: 5%;
    z-index: 1;
    transform: scale(0.95);
    opacity: 0.85;
}

.frame-front {
    bottom: 0;
    right: 5%;
    z-index: 2;
    border: 8px solid var(--color-white);
}

.sustainability-images:hover .frame-back {
    transform: scale(1) translateY(-10px) translateX(-10px);
    opacity: 1;
    z-index: 3;
}

.sustainability-images:hover .frame-front {
    transform: translateY(10px) translateX(10px) scale(0.95);
    z-index: 1;
}

/* Presence Section SVG Interactive Map */
.presence-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
    margin-top: 4rem;
}

.office-info-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 120px;
    transition: var(--transition-smooth);
    min-height: 450px;
    display: flex;
    flex-direction: column;
}

.office-card-header {
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.office-card-title {
    font-size: 1.75rem;
    color: var(--color-text-main);
    margin-bottom: 0;
}

.office-card-country {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    background: var(--color-accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.office-detail-item {
    display: flex;
    align-items: start;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.office-detail-icon {
    font-size: 1.2rem;
    color: var(--color-accent-light);
    margin-top: 0.2rem;
}

.office-detail-content {
    font-size: 1.05rem;
    color: var(--color-text-muted);
}

.office-detail-content strong {
    display: block;
    color: var(--color-text-main);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.office-wa-btn {
    margin-top: auto;
    width: 100%;
}

.map-container {
    position: relative;
    /* background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); */
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.4), 0 20px 40px rgba(0, 0, 0, 0.1); */
    overflow: hidden;
    aspect-ratio: 4/5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.map-svg {
    width: 100%;
    height: 100%;
    max-height: 700px;
    z-index: 1;
}

/* Styled map nodes instead of raw complex country outlines for ultra-high-fidelity premium tech look */
.map-pins-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 2;
    pointer-events: none;
}

.map-pin {
    position: absolute;
    width: 18px;
    height: 18px;
    transform: translate(-50%, -50%);
    cursor: pointer;
    pointer-events: auto;
    z-index: 10;
}

.map-pin-circle {
    width: 100%;
    height: 100%;
    background-color: var(--color-accent);
    border: 3px solid var(--color-white);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.8);
    transition: var(--transition-smooth);
}

.map-pin-pulse {
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.3) 0%, transparent 70%);
    animation: mapPinRadar 2s infinite ease-out;
    pointer-events: none;
}

.map-pin:hover .map-pin-circle,
.map-pin.active .map-pin-circle {
    background-color: var(--color-accent-light);
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(123, 47, 247, 0.8);
}

.map-pin:hover .map-pin-pulse,
.map-pin.active .map-pin-pulse {
    animation-duration: 1.2s;
    background: radial-gradient(circle, rgba(123, 47, 247, 0.4) 0%, transparent 70%);
}

.map-label {
    position: absolute;
    left: calc(100% + 8px);
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-sm);
    color: var(--color-white);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    white-space: nowrap;
    opacity: 0.8;
    pointer-events: none;
    transition: var(--transition-smooth);
    backdrop-filter: blur(4px);
}

.map-pin:hover .map-label,
.map-pin.active .map-label {
    opacity: 1;
    background: rgba(123, 47, 247, 0.95);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) translateX(2px);
}

@keyframes mapPinRadar {
    0% {
        transform: scale(0.3);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

/* Map Labels positioning based on PRESENCIA image references */
/* México coordinates in relative % (top-left aligned, CDMX approx coords) */
.pin-mexico { top: 32%; left: 34%; }
.pin-guatemala { top: 40%; left: 44%; }
.pin-elsalvador { top: 43%; left: 46%; }
.pin-costarica { top: 48%; left: 50%; }
.pin-colombia { top: 56%; left: 59%; }
.pin-ecuador { top: 62%; left: 56%; }
.pin-peru { top: 71%; left: 58%; }
.pin-chile { top: 88%; left: 63%; }
.pin-argentina { top: 92%; left: 68%; }
.pin-brasil { top: 70%; left: 88%; }
.pin-uruguay { top: 88%; left: 78%; }

/* Left aligned labels for right pins, right aligned labels for left pins */
.pin-brasil .map-label,
.pin-uruguay .map-label {
    left: auto;
    right: calc(100% + 8px);
}

/* Details card transition */
.fade-transition {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.fade-transition.hidden {
    opacity: 0;
    transform: translateY(10px);
}

/* Executive Cards Layout */
.team-row {
    margin-top: 4rem;
}

.executive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.executive-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    outline: 2px solid transparent;
    outline-offset: -2px;
}

.executive-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-accent-light);
    outline-color: rgba(0, 210, 255, 0.5);
    outline-offset: 4px;
    box-shadow: 0 15px 35px rgba(123, 47, 247, 0.08);
}

.executive-img {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    background-color: var(--color-bg-secondary);
    position: relative;
}

/* Pastel tint overlay to unify color palette and colorize black-and-white images */
.executive-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(253, 244, 235, 0.4), rgba(235, 230, 250, 0.35)); /* Soft peach to warm lavender */
    mix-blend-mode: multiply;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.executive-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    filter: sepia(25%) saturate(115%) brightness(103%) contrast(96%);
    transition: transform 0.5s ease, filter 0.5s ease;
}

.executive-card:hover .executive-img img {
    transform: scale(1.05);
    filter: sepia(15%) saturate(125%) brightness(105%) contrast(98%);
}

.executive-card:hover .executive-img::after {
    opacity: 0.75;
}

.executive-info {
    padding: 2rem;
    text-align: center;
}

.executive-name {
    font-size: 1.35rem;
    color: var(--color-text-main);
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.executive-role {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-accent-light);
    margin-bottom: 1.5rem;
}

.executive-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.executive-link-icon {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    transition: var(--transition-smooth);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.executive-link-icon:hover {
    color: var(--color-white);
    background-color: var(--color-accent-light);
}

.executive-link-icon.linkedin:hover {
    background-color: #0077b5; /* LinkedIn Color */
}

/* Collaborators Directory Styles */
.directory-section {
    padding-top: 4rem;
    border-top: 1px solid var(--color-border);
    margin-top: 6rem;
}

.directory-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.directory-title {
    font-size: 2rem;
    margin-bottom: 0;
}

.search-box {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.search-input {
    width: 100%;
    padding: 0.85rem 1.5rem 0.85rem 3rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: var(--font-text);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.search-input:focus {
    outline: none;
    border-color: var(--color-accent-light);
    box-shadow: 0 0 10px rgba(123, 47, 247, 0.1);
}

.search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    pointer-events: none;
}

.table-responsive {
    width: 100%;
    overflow: visible;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background-color: var(--color-white);
}

.collaborators-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.collaborators-table th {
    background-color: var(--color-bg-secondary);
    padding: 1.25rem 2rem;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    color: var(--color-text-main);
    border-bottom: 2px solid var(--color-border);
}

.collaborators-table td {
    padding: 1.25rem 2rem;
    border-bottom: 1px solid var(--color-border);
    font-size: 1rem;
    color: var(--color-text-muted);
    transition: var(--transition-smooth);
    vertical-align: middle;
}

.collaborators-table tr:last-child td {
    border-bottom: none;
}

.collaborators-table tr {
    transition: var(--transition-smooth);
    position: relative;
}

.collaborators-table tr:hover td {
    background-color: rgba(123, 47, 247, 0.02);
    color: var(--color-text-main);
}

.collaborators-table a {
    color: var(--color-accent-light);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.collaborators-table a:hover {
    color: var(--color-text-main);
}

.collaborators-table td.collab-name {
    font-weight: 600;
    color: var(--color-text-main);
}

.collaborators-table td.collab-linkedin {
    text-align: center;
}

.collaborators-table td.collab-linkedin a {
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--color-bg-secondary);
    color: var(--color-text-muted);
}

.collaborators-table tr:hover td.collab-linkedin a {
    color: var(--color-white);
    background-color: #0077b5;
}

/* Photo Column Styles */
.collab-photo-cell {
    position: relative;
    padding: 0.75rem 2rem !important;
}

.photo-thumbnail-container {
    position: relative;
    width: 50px;
    height: 50px;
    display: inline-block;
}

.collab-thumb {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-accent-light);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.photo-large-preview {
    position: absolute;
    left: 95px;
    top: 50%;
    transform: translateY(-50%) scale(0.8);
    width: 160px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 100;
    text-align: center;
}

.collab-large {
    width: 100%;
    height: 160px;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Hover effects */
.collaborators-table tr:hover .photo-large-preview {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

.collaborators-table tr:hover .collab-thumb {
    transform: scale(1.1);
    border-color: var(--color-accent);
}

/* Mail icon link style */
.collab-email {
    text-align: center;
}

.collab-email a {
    font-size: 1.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--color-bg-secondary);
    color: var(--color-text-muted);
    transition: var(--transition-smooth);
}

.collaborators-table tr:hover td.collab-email a {
    color: var(--color-white);
    background-color: var(--color-accent-light);
}

.collaborators-table tr:hover td.collab-email a:hover {
    background-color: var(--color-accent);
}

.directory-empty {
    padding: 4rem 2rem;
    text-align: center;
    font-size: 1.1rem;
    color: var(--color-text-muted);
    border-top: 1px solid var(--color-border);
}

/* Responsive Media Overrides */
@media (max-width: 1024px) {
    .timeline-line {
        display: none;
    }
    
    .timeline-grid {
        flex-direction: column;
        gap: 3rem;
        align-items: start;
        padding-left: 2rem;
    }
    
    .timeline-grid::before {
        content: '';
        position: absolute;
        top: 0;
        left: 31px;
        width: 2px;
        height: 100%;
        background: var(--color-accent-gradient);
        z-index: 1;
    }
    
    .timeline-node {
        flex-direction: row;
        align-items: start;
        text-align: left;
        width: 100%;
        gap: 2rem;
    }
    
    .timeline-dot {
        margin-top: 0.5rem;
        order: 1;
    }
    
    .timeline-icon {
        margin-bottom: 0;
        font-size: 1.75rem;
        margin-top: 0.3rem;
    }
    
    .timeline-year {
        margin-bottom: 0.5rem;
    }
    
    .timeline-card {
        position: relative;
        width: 100%;
        max-width: 500px;
        opacity: 1;
        visibility: visible;
        transform: none !important;
        pointer-events: auto;
        margin-top: 1rem;
        top: auto !important;
        bottom: auto !important;
        left: auto !important;
    }
    
    .timeline-node:nth-child(odd) .timeline-card,
    .timeline-node:nth-child(even) .timeline-card {
        top: auto;
        bottom: auto;
    }
    
    .timeline-node-content {
        display: flex;
        flex-direction: column;
        flex: 1;
        order: 2;
    }
    
    .sustainability-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .sustainability-images {
        height: 380px;
        order: -1;
    }
    
    .presence-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .office-info-card {
        position: static;
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .directory-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        max-width: 100%;
    }
}

/* ==========================================================================
   Clean Hero (Variant 2) - Minimalist Premium Hero
   ========================================================================== */

.clean-hero {
    background-color: var(--color-bg-primary); /* White */
    background-image: 
        radial-gradient(rgba(123, 47, 247, 0.04) 1.5px, transparent 1.5px),
        radial-gradient(rgba(0, 210, 255, 0.04) 1.5px, transparent 1.5px);
    background-size: 50px 50px;
    background-position: 0 0, 25px 25px;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

.clean-hero .slide {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 100vh;
    top: 0; /* Align directly under or behind the header */
    padding-top: 80px; /* Offset for header height */
    background-color: transparent;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
    visibility: hidden;
}

.clean-hero .slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 10;
}

.clean-hero .hero-full {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
}

.clean-hero .hero-content {
    text-align: left;
    max-width: 850px;
    padding: 3rem 0 3rem 3rem;
    margin: 0;
    border-left: 4px solid transparent;
    border-image: linear-gradient(to bottom, var(--color-accent-light), var(--color-accent)) 1;
    transform: translateX(-30px);
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s, 
                opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

.clean-hero .slide.active .hero-content {
    transform: translateX(0);
    opacity: 1;
}

/* Animations for premium sequence */
@keyframes fadeInUpClean {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.clean-hero .hero-content h1 {
    color: var(--color-text-main) !important;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.15;
    text-wrap: balance;
    opacity: 0;
}

.clean-hero .hero-content p {
    color: var(--color-text-muted) !important;
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 680px;
    opacity: 0;
}

.clean-hero .hero-content .btn-primary {
    opacity: 0;
}

.clean-hero .slide.active .hero-content h1 {
    animation: fadeInUpClean 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.clean-hero .slide.active .hero-content p {
    animation: fadeInUpClean 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.35s forwards;
}

.clean-hero .slide.active .hero-content .btn-primary {
    animation: fadeInUpClean 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .clean-hero .hero-content {
        padding-left: 2rem;
        max-width: 90%;
    }
}

@media (max-width: 576px) {
    .clean-hero .hero-content {
        padding-left: 1.25rem;
        max-width: 100%;
        border-left-width: 3px;
    }
    .clean-hero .hero-content h1 {
        font-size: 2.25rem;
    }
    .clean-hero .hero-content p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
}


