/**
 * MEGA ZVUK - Main Stylesheet
 * ===========================
 * 
 * TABLE OF CONTENTS:
 * ------------------
 * 1.  CSS Reset & Base Styles
 * 2.  CSS Variables (:root)
 * 3.  Common Elements (buttons, containers, sections)
 * 4.  Top Info Banner
 * 5.  Navigation Bar
 * 6.  Mobile Menu
 * 7.  Hero Section
 * 8.  Services Section
 * 9.  Partners/Logos Slider
 * 10. About Section
 * 11. Values Section
 * 12. Portfolio Section
 * 13. Testimonials Section
 * 14. Contact Section & Form
 * 15. Footer
 * 16. Scroll to Top Button
 * 17. Responsive Styles
 * 18. Service Carousel (Mobile)
 * 19. Feature Lightbox
 * 20. Team Photo Modal
 * 21. Animations & Transitions
 */

/* ====== 1. CSS RESET & BASE STYLES ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* ====== 2. CSS VARIABLES ====== */
:root {
    --primary-dark: #0a1a34;
    --primary-blue: #1a365d;
    --accent-orange: #ff6b35;
    --accent-orange-hover: #e55a2b;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --text-dark: #333;
    --text-light: #6c757d;
    --white: #ffffff;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --container-width: 1200px;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    scroll-padding-top: 115px;
}

body {
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease, background-color 0.3s ease, opacity 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.section {
    padding: 80px 0;
}

/* Offset anchors for fixed header + banner */
[id] {
    scroll-margin-top: 115px;
}
.client-company-logo {
    width: 96px;
    height: auto;
    max-height: 110px;
    object-fit: contain;
    display: inline-block;
    transition: transform 0.22s ease, opacity 0.22s ease;
}
.testimonial-meta {
    margin-top: 20px;
}

.testimonial-meta .testimonial-project {
    color: var(--accent-orange);
    font-weight: 600;
    text-decoration: none;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-dark);
    text-align: center;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--accent-orange);
    color: white;
    border-radius: var(--border-radius);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
}

.btn:hover {
    background-color: var(--accent-orange-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--accent-orange);
    color: var(--accent-orange);
}

.btn-outline:hover {
    background-color: var(--accent-orange);
    color: white;
}

/* ====== TOP INFO BANNER ====== */
.top-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #0f1f3a 0%, #1a3a5e 100%);
    color: white;
    padding: 6px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1001;
}

.top-banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.contact-info-banner {
    display: flex;
    gap: 25px;
    align-items: center;
}

.contact-info-banner span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.9);
}

.contact-info-banner i {
    color: var(--accent-orange);
    font-size: 0.9rem;
}

.social-links-banner {
    display: flex;
    gap: 12px;
    align-items: center;
    position: relative;
}

.social-toggle {
    display: none; /* Hidden by default, shown on mobile */
}

.social-dropdown {
    display: flex;
    gap: 12px;
    align-items: center;
}

.social-links-banner a,
.social-dropdown a {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.social-links-banner a:hover,
.social-dropdown a:hover {
    background: var(--accent-orange);
    transform: translateY(-2px);
}

.social-links-banner .olx-icon,
.social-dropdown .olx-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.social-links-banner .olx-link:hover .olx-icon,
.social-dropdown .olx-link:hover .olx-icon {
    filter: brightness(1) invert(0) sepia(1) saturate(5) hue-rotate(0deg);
}

@media (max-width: 992px) {
    .work-hours-banner {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .top-banner {
        padding: 6px 0;
    }
    
    header {
        top: 38px;
        overflow: visible; /* Allow mobile menu to extend below */
    }
    
    .top-banner-content {
        flex-direction: row;
        justify-content: space-between;
        gap: 10px;
        align-items: center;
    }
    
    .contact-info-banner {
        flex-direction: row;
        gap: 8px;
        font-size: 0.7rem;
        flex-wrap: nowrap;
        overflow: hidden;
    }
    
    .contact-info-banner span {
        display: flex;
        align-items: center;
        gap: 4px;
        white-space: nowrap;
    }
    
    .contact-info-banner span i {
        font-size: 0.8rem;
        flex-shrink: 0;
    }
    
    .social-links-banner {
        justify-content: flex-end;
        gap: 8px;
        flex-shrink: 0;
    }
    
    .social-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        background: rgba(255, 255, 255, 0.1);
        border: none;
        border-radius: 50%;
        color: white;
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 0.9rem;
    }
    
    .social-toggle:hover {
        background: var(--accent-orange);
    }
    
    .social-dropdown {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        margin-top: 8px;
        background: rgba(20, 20, 30, 0.98);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        padding: 8px;
        gap: 8px;
        flex-direction: column;
        min-width: 50px;
        z-index: 1000;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
    
    .social-dropdown.active {
        display: flex;
    }
    
    .social-dropdown a {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .social-dropdown .olx-icon {
        width: 18px;
        height: 18px;
    }
    
    .social-links-banner a {
        width: 26px;
        height: 26px;
        font-size: 0.8rem;
    }
}

@media (max-width: 992px) and (min-width: 769px) {
    .contact-info-banner {
        gap: 15px;
        font-size: 0.8rem;
    }
    
    .contact-info-banner span {
        gap: 5px;
    }
}

/* ====== NAVIGATION BAR WITH SCROLL EFFECT ====== */
/* Base header style - starts transparent */
header {
    position: fixed;
    top: 38px;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

/* Scrolled state - becomes dark blue */
header.scrolled {
    background-color: var(--primary-dark);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

/* Logo circle wrapper */
.logo-circle {
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    min-height: 60px;
    max-height: 80px;
    position: relative; /* Make navbar the positioning context for mobile menu */
}

/* Logo styling for both states */
.logo {
    font-size: 1.8rem;
    font-weight: 700;
    transition: var(--transition);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.logo-img {
    height: 55px;
    width: auto;
    transition: filter 0.3s ease;
    filter: brightness(0) saturate(100%) invert(50%) sepia(85%) saturate(2000%) hue-rotate(360deg) brightness(100%) contrast(101%);
}

.logo-text-mega {
    display: inline;
    color: var(--accent-orange);
    transition: color 0.3s ease;
}

.logo-text-zvuk {
    display: inline;
    color: white;
    transition: color 0.3s ease;
}

header:not(.scrolled) .logo {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Shake animation */
@keyframes shake {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    10% { transform: translate(-8px, -6px) rotate(-2deg); }
    20% { transform: translate(8px, 6px) rotate(2deg); }
    30% { transform: translate(-8px, 6px) rotate(-1deg); }
    40% { transform: translate(8px, -6px) rotate(1deg); }
    50% { transform: translate(-6px, 8px) rotate(-2deg); }
    60% { transform: translate(6px, -8px) rotate(2deg); }
    70% { transform: translate(-6px, -6px) rotate(-1deg); }
    80% { transform: translate(6px, 6px) rotate(1deg); }
    90% { transform: translate(-4px, 4px) rotate(-1deg); }
}

/* Hover effects - all change together */
.logo:hover .logo-img {
    filter: brightness(0) invert(1);
    animation: shake 0.3s ease-in-out;
}

.logo:hover .logo-text-mega {
    color: white;
    animation: shake 0.3s ease-in-out;
}

.logo:hover .logo-text-zvuk {
    color: var(--accent-orange);
    animation: shake 0.3s ease-in-out;
}

/* Navigation links */
.nav-links {
    display: flex;
    gap: 30px;
    position: relative;
}

.nav-links a {
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

/* Link colors when NOT scrolled (transparent background) */
header:not(.scrolled) .nav-links a {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Link colors when scrolled (dark background) */
header.scrolled .nav-links a {
    color: white;
}

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

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

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-orange);
}

.has-dropdown > a.active {
    color: var(--accent-orange);
}

/* Dropdown Menu - Desktop */
.has-dropdown {
    position: relative;
}

.has-dropdown > a {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--primary-dark);
    min-width: 220px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    padding: 10px 0;
    z-index: 1000;
    pointer-events: none;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 12px 25px;
    color: white;
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--accent-orange);
    padding-left: 30px;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Mobile toggle button */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    transition: var(--transition);
}

header:not(.scrolled) .mobile-toggle {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

header.scrolled .mobile-toggle {
    color: white;
}

/* Contact button */
.nav-cta .btn {
    transition: var(--transition);
}

header:not(.scrolled) .nav-cta .btn {
    background-color: rgba(255, 107, 53, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

header.scrolled .nav-cta .btn {
    background-color: var(--accent-orange);
}

/* ====== MOBILE MENU - NO SCROLLBAR FROM UNDERLINE ====== */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary-dark);
        flex-direction: column;
        padding: 0 !important;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        z-index: 1002;
        max-height: 0;
        overflow: hidden;
        gap: 0 !important;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        max-height: none !important;
        overflow: visible !important; /* Changed from auto to visible */
        padding: 0 !important;
        /* Prevent any scrollbar */
        -ms-overflow-style: none; /* IE and Edge */
        scrollbar-width: none; /* Firefox */
    }
    
    /* Hide scrollbar for Chrome, Safari and Opera */
    .nav-links.active::-webkit-scrollbar {
        display: none;
    }
    
    /* Make dropdown ALWAYS visible */
    .has-dropdown .dropdown-menu {
        position: static !important;
        background-color: rgba(255, 255, 255, 0.03);
        box-shadow: none;
        border-radius: 0;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        padding: 0 0 0 35px !important;
        max-height: none !important;
        overflow: visible !important;
        margin: 0 !important;
        border-top: none !important;
        display: block !important;
        transition: none !important;
    }
    
    /* Tight menu items */
    .nav-links > li {
        width: 100%;
        border-bottom: none !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block;
        line-height: 1;
        /* Prevent underline from affecting layout */
        overflow: hidden;
    }
    
    .nav-links > li > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 20px;
        width: 100%;
        color: white;
        position: relative;
        min-height: 44px;
        font-size: 0.95rem;
        margin: 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        box-sizing: border-box;
        /* CRITICAL FIX: Contain the underline within the link */
        overflow: hidden;
    }
    
    .nav-links > li:last-child > a {
        border-bottom: none;
    }
    
    /* FIXED UNDERLINE - Won't cause scrollbar */
    .nav-links > li > a:after {
        content: '';
        position: absolute;
        width: 0;
        height: 1px;
        bottom: 8px; /* Keep it well inside the link */
        left: 20px;
        background-color: var(--accent-orange);
        transition: width 0.3s ease; /* Only animate width */
        display: block;
        /* Ensure it doesn't extend beyond parent */
        max-width: calc(100% - 40px);
        box-sizing: border-box;
    }
    
    .nav-links > li > a:hover:after,
    .nav-links > li > a.active:after {
        width: calc(100% - 40px); /* Already limited by max-width */
    }
    
    /* Hide chevron on mobile */
    .has-dropdown > a i {
        display: none !important;
    }
    
    /* Dropdown items - also prevent overflow */
    .dropdown-menu a {
        padding: 8px 20px;
        border-left: 2px solid transparent;
        color: rgba(255, 255, 255, 0.7);
        display: flex;
        align-items: center;
        position: relative;
        min-height: 40px;
        font-size: 0.9rem;
        margin: 0 !important;
        border-bottom: 0.5px solid rgba(255, 255, 255, 0.08);
        box-sizing: border-box;
        overflow: hidden; /* Prevent any overflow */
    }
    
    .dropdown-menu li:last-child a {
        border-bottom: none;
    }
    
    .dropdown-menu a:hover {
        background-color: rgba(255, 255, 255, 0.08);
        border-left-color: var(--accent-orange);
        padding-left: 20px;
        color: var(--accent-orange);
    }
    
    .dropdown-menu a:after {
        display: none !important;
    }
    
    .dropdown-menu a.active {
        color: var(--accent-orange);
        border-left-color: var(--accent-orange);
        background-color: rgba(255, 255, 255, 0.04);
        font-weight: 500;
    }
    
    /* Contact button - hide in mobile */
    .nav-cta {
        margin-top: 10px;
        padding: 0 20px;
    }
    
    .nav-cta .btn {
        display: none;
    }
    
    header:not(.scrolled) .nav-links.active {
        background-color: rgba(10, 26, 52, 0.98);
        backdrop-filter: blur(15px);
    }
    
    .mobile-toggle {
        display: block;
        font-size: 1.3rem;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    padding-top: 138px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(10, 26, 52, 0.6) 0%, rgba(26, 54, 93, 0.6) 100%), url('includes/mix/megazvuk_hr_title.avif');
    background-size: cover;
    background-position: center;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0;
    transition: opacity 1s ease-in;
}

.hero-video.loaded {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 26, 52, 0.85) 0%, rgba(26, 54, 93, 0.85) 100%);
    z-index: 1;
}

/* Hero logo sound-wave effect */
.hero-logo-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    height: 80px; /* match logo height to keep it vertically centered with text */
}

.hero-logo {
    position: relative;
    z-index: 3;
    transition: transform 0.45s cubic-bezier(0.2,0.8,0.2,1);
    display: block; /* ensure consistent box behavior inside flex */
    transform-origin: center center;
}

.hero-logo-wrap::before,
.hero-logo-wrap::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.6);
    width: 120px;
    height: 120px;
    border-radius: 999px;
    pointer-events: none;
    opacity: 0;
    border: 2px solid rgba(255, 165, 60, 0.12);
    aspect-ratio: 1 / 1;
}

@keyframes hero-wave {
    0% { transform: translate(-50%, -50%) scale(0.6); opacity: 0.7; }
    60% { transform: translate(-50%, -50%) scale(1.5); opacity: 0.12; }
    100% { transform: translate(-50%, -50%) scale(1.9); opacity: 0; }
}

@keyframes hero-logo-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.06); }
    100% { transform: scale(1); }
}

/* Active state - run continuous waves while active */
.hero-logo-wrap.wave-active::before {
    animation: hero-wave 1.8s ease-out infinite;
    border-color: rgba(255,165,60,0.18);
}

.hero-logo-wrap.wave-active::after {
    animation: hero-wave 2.6s ease-out 0.45s infinite;
    border-color: rgba(255,165,60,0.10);
    width: 160px;
    height: 160px;
}

.hero-logo-wrap.wave-active .hero-logo {
    animation: hero-logo-pulse 1.2s ease-in-out infinite;
}

.hero .container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.hero-logo {
    height: 80px;
    width: auto;
    filter: brightness(0) invert(1);
}

.motto {
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    color: var(--accent-orange);
    font-style: italic;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-content .btn {
    display: inline-block;
    margin: 0;
    white-space: nowrap;
}

.hero-buttons {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 0;
}

/* Services Section */
.services {
    background-color: var(--light-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-top-color: var(--accent-orange);
}

.service-icon {
    font-size: 3rem;
    color: var(--accent-orange);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.service-card p {
    color: var(--text-light);
}

/* Detailed Services */
.detailed-services {
    background-color: white;
}

/* Reveal animation classes (stronger build-up effect) */
.sub-grid {
    perspective: 1200px; /* give 3D depth for rotateX */
}

.service-feature {
    will-change: transform, opacity;
    transform-origin: center bottom;
}

.reveal-init {
    opacity: 0 !important;
    transform: translateY(100px) scale(0.92) rotateX(12deg) rotateZ(-3deg) !important;
    filter: blur(8px);
}

.reveal {
    opacity: 1 !important;
    transform: translateY(0) scale(1) rotateX(0) !important;
    transition: transform 0.9s cubic-bezier(0.2, 0.9, 0.2, 1), opacity 0.65s ease;
}

/* Slight pop/shine on reveal to emphasize build-up */
.service-feature.reveal {
    box-shadow: 0 18px 40px rgba(0,0,0,0.28);
    border-bottom: 3px solid var(--accent-orange);
    padding-bottom: 10px;
    display: inline-block;
}

.service-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.service-feature {
    background: var(--light-gray);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.service-feature h4 {
    color: var(--accent-orange);
    margin-bottom: 10px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
}

/* Values Section */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.value-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    border-left: 4px solid var(--accent-orange);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.value-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.portfolio-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.portfolio-img {
    height: 200px;
    background-color: var(--medium-gray);
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-img i {
    font-size: 4rem;
    color: var(--accent-orange);
    opacity: 0.3;
}

.portfolio-content {
    padding: 25px;
}

.portfolio-content h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.portfolio-content p {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.portfolio-tag {
    display: inline-block;
    background-color: rgba(255, 107, 53, 0.1);
    color: var(--accent-orange);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

/* Testimonials Section */
.testimonials {
    background-color: var(--light-gray);
    position: relative;
    padding: 80px 0;
}

.testimonials .container {
    overflow: visible;
}

.testimonial-slider {
    max-width: 900px;
    margin: 50px auto 0;
    position: relative;
    padding: 0 80px;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-slide {
    min-width: 100%;
    padding: 0 20px;
}

.testimonial-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
}

/* Make the whole testimonial card interactive (hover + click-toggle) */
.testimonial-card {
    transition: transform 0.28s ease, box-shadow 0.28s ease, background-color 0.28s ease;
    cursor: pointer;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    background-color: rgba(26,54,93,0.03);
}

.testimonial-card.testimonial-active {
    transform: translateY(-6px) scale(1.01);
    box-shadow: var(--shadow-hover);
    background-color: rgba(255,107,53,0.06);
}

/* Ensure links inside card keep their normal pointer cursor */
.testimonial-card a {
    cursor: pointer;
}

.testimonial-card:before {
    content: '"';
    position: absolute;
    top: 8px;
    right: 18px;
    font-size: 7.5rem;
    color: var(--accent-orange);
    opacity: 0.36;
    font-family: Georgia, serif;
    pointer-events: none;
    transform: rotate(8deg);
    text-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.client-avatar {
    display: inline-block;
    margin: 0 auto 18px;
    width: auto;
    padding: 0;
    background: transparent;
    border-radius: 0;
    vertical-align: middle;
}

.client-avatar:hover {
    transform: scale(1.04);
}

.client-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--primary-dark);
}

.client-role {
    color: var(--accent-orange);
    font-size: 0.9rem;
    margin-bottom: 20px;
    font-weight: 500;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-light);
    line-height: 1.8;
}

.slider-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: white;
    border: 2px solid var(--accent-orange);
    color: var(--accent-orange);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    z-index: 10;
}

.slider-btn-prev {
    left: -70px;
}

.slider-btn-next {
    right: -70px;
}

.slider-btn:hover {
    background-color: var(--accent-orange);
    color: white;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 100px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--medium-gray);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background-color: var(--accent-orange);
    transform: scale(1.2);
}

/* Contact Section */
#contact {
    background: linear-gradient(135deg, #0a1a34 0%, #1a2d4d 100%);
    background-image: 
        radial-gradient(circle at 15% 30%, rgba(255, 107, 53, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 85% 70%, rgba(100, 200, 255, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 50% 90%, rgba(255, 107, 53, 0.04) 0%, transparent 35%),
        linear-gradient(135deg, #0a1a34 0%, #1a2d4d 100%);
}

#contact .section-title,
#contact .section-subtitle {
    color: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 50px;
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: white;
}

.contact-info p {
    color: rgba(255, 255, 255, 0.9);
}

.contact-info-list {
    margin-top: 30px;
}

.contact-info-list li {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9) !important;
}

.contact-info-list li .multiline-text {
    display: block;
    flex-basis: 100%;
    margin-left: 35px;
    line-height: 1.6;
}

.contact-info-list li strong {
    color: white !important;
}

.contact-info-list li strong::after {
    content: '\00a0';
}

/* Address anchor inside the block multiline-text: only the text is clickable
   Keep the surrounding layout unchanged by leaving .multiline-text as the block element */
.address-link {
    color: rgba(255,255,255,0.95);
    text-decoration: none;
    transition: color 0.18s ease;
    display: inline; /* inline inside the block so only text is clickable */
}
.address-link:hover,
.address-link:focus {
    color: var(--accent-orange);
    text-decoration: none;
}

/* Contact email link styling (no underline, orange on hover, no shift) */
.contact-info-list li a.contact-email {
    color: rgba(255,255,255,0.95);
    text-decoration: none;
    transition: color 0.18s ease;
}
.contact-info-list li a.contact-email:hover,
.contact-info-list li a.contact-email:focus {
    color: var(--accent-orange);
    text-decoration: none;
    transform: none;
}

/* Footer address: orange on hover, no underline, no shift */
footer .contact-info a {
    color: rgba(176,183,195,1);
    text-decoration: none;
    transition: color 0.18s ease;
}
footer .contact-info a:hover,
footer .contact-info a:focus {
    color: var(--accent-orange);
    text-decoration: none;
    transform: none;
}

.contact-info-list i {
    color: var(--accent-orange) !important;
    margin-right: 15px;
    margin-top: 5px;
    font-size: 1.1rem;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

/* Why choose us section in contact */
#contact .contact-info h3 {
    color: white !important;
}

#contact .contact-info ul li {
    color: rgba(255, 255, 255, 0.9) !important;
}

.contact-form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Make contact form labels readable on dark glass background */
#contact .contact-form label {
    color: #ffffff;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

#contact .contact-form .checkbox-label span {
    color: #ffffff;
}

/* Contact form title underline (orange) */
.contact-form h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
    margin-bottom: 20px;
    color: white;
}

.contact-form h2::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 4px;
    bottom: 0;
    background: linear-gradient(90deg, var(--accent-orange), var(--accent-orange-hover));
    transform: scaleX(1);
    transform-origin: left;
}

.form-group {
    margin-bottom: 25px;
}

.client-company-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    display: block;
    border-radius: 50%;
    background: white;
    padding: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

/* company logo styling inside testimonial */
.client-avatar img.client-company-logo {
    width: 96px;
    height: auto;
    max-height: 110px;
    object-fit: contain;
    display: block;
    border-radius: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    opacity: 0.85;
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.client-avatar:hover img.client-company-logo {
    opacity: 1;
    transform: scale(1.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--accent-orange);
    outline: none;
    background-color: rgba(255, 255, 255, 0.15);
}

.form-group select option {
    background-color: var(--primary-dark);
    color: white;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* Date input wrapper: place calendar icon inside the visible text input */
.date-input-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.date-input-wrapper input[type="text"] {
    width: 100%;
    padding-right: 42px; /* make room for the calendar icon */
}

.date-picker-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: rgba(255,255,255,0.12);
    color: white;
    font-size: 1.1rem;
    padding: 6px 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}

.date-picker-btn:hover {
    color: var(--accent-orange);
    background: rgba(255,255,255,0.18);
}

/* Checkbox Group */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 2px 10px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.checkbox-label:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    cursor: pointer;
    accent-color: var(--accent-orange);
}

.checkbox-label span {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

/* Mission Section */
.mission-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 50px;
}

.mission-card, .vision-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 40px;
    /* stronger shadow for emphasis */
    box-shadow: 0 18px 40px rgba(10, 26, 52, 0.18);
    border-top: 5px solid var(--accent-orange);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.mission-card:hover, .vision-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 60px rgba(10, 26, 52, 0.24);
}

.mission-card h3, .vision-card h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

/* Footer */
footer {
    background-color: var(--primary-dark);
    color: white;
    padding: 80px 0 30px;
}

footer .dropdown-menu {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 50px;
    margin-bottom: 50px;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: white;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background-color: var(--accent-orange);
    bottom: 0;
    left: 0;
}

.footer-links li {
    margin-bottom: 12px;
    list-style: none;
}

.footer-links a {
    color: #b0b7c3;
    transition: none;
    text-decoration: none;
    outline: none;
    -moz-outline: none;
}

.footer-links a:hover {
    color: var(--accent-orange);
    transition: none;
    outline: none;
}

.footer-links a:focus {
    outline: none;
    box-shadow: none;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    color: #b0b7c3;
}

.contact-info i {
    color: var(--accent-orange);
    margin-right: 15px;
    margin-top: 5px;
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--accent-orange);
    transform: translateY(-3px);
}

.social-links .olx-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.social-links .olx-link:hover .olx-icon {
    filter: brightness(1) invert(0) sepia(1) saturate(5) hue-rotate(0deg);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #b0b7c3;
    font-size: 0.9rem;
    gap: 20px;
}

.footer-bottom-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-left: 30px;
}

.footer-bottom-left p {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
}

.copyright-logo {
    height: 20px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.7;
    vertical-align: middle;
}

.footer-bottom-right {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-left: auto;
    margin-right: 90px;
}

.footer-bottom-right a {
    color: #b0b7c3;
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.footer-bottom-right a:hover {
    color: var(--accent-orange);
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding-left: 0;
        padding-right: 0;
        padding-top: 20px;
    }
    
    .footer-bottom-left {
        margin-left: 0;
        order: 2;
        align-items: center;
        text-align: center;
        width: 100%;
        padding-left: 0;
    }
    
    .footer-bottom-left p:first-child {
        display: block;
        text-align: center;
    }
    
    .footer-bottom-left .rights-text {
        display: block;
        margin-top: 6px;
    }
    
    .footer-bottom-right {
        display: flex !important;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: center;
        gap: 10px;
        margin-right: 0;
        margin-left: 0;
        order: 1;
        width: 100%;
        padding: 0 20px 15px 20px;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .footer-bottom-right a {
        display: inline-block !important;
        color: #b0b7c3;
        font-size: 0.9rem;
        padding: 6px 8px;
        visibility: visible !important;
        white-space: nowrap;
    }
}

.dev-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease;
}

/* Use a mask-based icon so the logo can take currentColor */
.dev-logo-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: currentColor; /* will color the icon */
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    -webkit-mask-image: url('images/edindedic_logo.png');
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    mask-image: url('images/edindedic_logo.png');
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
    opacity: 0.9;
}

.dev-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: inherit; /* match parent (copyright) */
    font-family: inherit;
    line-height: 1;
}

.dev-logo-icon {
    /* ensure alignment inside text */
    vertical-align: middle;
}

.dev-logo-icon {
    width: 16px;
    height: 16px;
}

.dev-link:hover {
    color: var(--accent-orange);
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--accent-orange);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background-color: #d97706;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.scroll-to-top:active {
    transform: translateY(-1px);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .section-title {
        font-size: 2.2rem;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero-logo {
        height: 60px;
    }
    
    .motto {
        font-size: 1.5rem;
    }
    
    .contact-content,
    .mission-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .slider-btn {
        display: flex;
        top: 40%;
    }
    
    .slider-btn-prev {
        left: 10px;
    }
    
    .slider-btn-next {
        right: 10px;
    }
    
    .testimonials {
        padding: 60px 0;
    }
    
    .testimonial-slider {
        padding: 0 20px;
    }
    
    .testimonial-slide {
        padding: 0 10px;
    }
    
    .testimonial-card {
        padding: 30px 20px;
    }
    
    .slider-btn {
        width: 45px;
        height: 45px;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
    
    .hero {
        min-height: 100vh;
        padding-top: 80px;
        align-items: flex-start;
        padding-bottom: 40px;
    }
    
    .hero .container {
        padding-top: 60px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-logo {
        height: 50px;
    }
    
    .motto {
        font-size: 1.3rem;
    }
    
    .hero p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-content .btn {
        margin: 0;
        padding: 9px 12px;
        font-size: 0.82rem;
        white-space: nowrap;
        display: inline-block;
        min-width: auto;
    }
    
    .hero-buttons {
        gap: 6px;
        flex-wrap: nowrap;
        margin-top: 0.5rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .footer-column:nth-child(1) {
        grid-column: 1 / -1;
    }
    
    .footer-column:nth-child(4) {
        grid-column: 1 / -1;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 400px) {
    .hero-content .btn {
        padding: 8px 10px;
        font-size: 0.78rem;
    }
    
    .hero-buttons {
        gap: 5px;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-logo {
        height: 40px;
    }
    
    .motto {
        font-size: 1.1rem;
    }
    
    .btn {
        padding: 10px 20px;
    }
    
    .hero .btn {
        display: inline-block;
        margin: 5px 10px;
        width: auto;
        max-width: none;
    }
    
    .hero .btn-outline {
        margin-left: 10px;
    }
}

/* ============================================================================
   Services Section - Responsive Grid & Mobile Carousel
   ============================================================================ */
.services-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1023px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile: hide grid and show carousel */
.services-carousel {
    display: none;
    overflow: hidden;
    position: relative;
}

@media (max-width: 767px) {
    .services-grid {
        display: none;
    }
    .services-carousel {
        display: block;
    }
    
    .services-carousel .carousel-track {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: stretch;
        -ms-flex-align: stretch;
        align-items: stretch;
    }
    
    .services-carousel .slide {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
    }
}

.services-carousel .carousel-track {
    display: flex;
    transition: transform 0.35s ease-in-out;
}

.services-carousel .slide {
    flex: 0 0 100%;
    box-sizing: border-box;
    padding: 16px;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
}

.carousel-controls button {
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    border: none;
    padding: 8px 10px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.25s ease;
}

.carousel-controls button:hover {
    background: rgba(0, 0, 0, 0.65);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    margin-top: 12px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    margin: 0 6px;
    cursor: pointer;
    border: none;
    transition: background 0.25s ease;
}

.carousel-dot.active {
    background: var(--accent-orange, #ff6b35);
}

/* ============================================================================
   Service Cards - Background Images & Improved Readability
   ============================================================================ */
.service-card {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
    min-height: 260px;
    border-radius: 8px;
    overflow: hidden;
    color: #fff;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.6));
    z-index: 1;
}

.service-card > * {
    position: relative;
    z-index: 2;
}

.service-card h3 {
    color: #fff;
    font-size: 1.35rem;
    margin: 0 0 8px;
    font-weight: 700;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
}

.service-card p {
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.45;
    margin: 0 0 12px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.service-card .service-icon {
    font-size: 28px;
    color: var(--accent-orange, #ff6b35);
    margin-bottom: 12px;
}

.service-card .btn {
    z-index: 3;
}

@media (max-width: 767px) {
    .service-card {
        min-height: 320px;
        height: auto !important;
        padding: 20px;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-pack: end;
        -ms-flex-pack: end;
        justify-content: space-between;
        box-sizing: border-box;
    }
    
    .service-card p {
        -webkit-box-flex: 0;
        -ms-flex-positive: 0;
        flex-grow: 0;
        display: block;
        margin-bottom: 12px;
    }
    
    .service-card .btn {
        margin-top: auto;
    }
}

/* ============================================================================
   Partners Logo Slider - Responsive, Draggable, with Individual Logo Widths
   ============================================================================ */
.partners {
    padding: 18px 0;
    background: transparent;
}

.partners h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--accent-orange);
    width: fit-content;
}

.partners-slider {
    overflow: hidden;
    position: relative;
    padding: 0 40px;
    min-height: 80px;
    display: flex;
    align-items: center;
    cursor: grab;
}

.partners-slider:active {
    cursor: grabbing;
}

.partners-track {
    display: flex;
    gap: 28px;
    align-items: center;
    white-space: nowrap;
}

.partner {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

/* =========================================================================
   ABOUT SECTION - DUAL SUBSECTION DESIGN WITH VALUES & COMPANY STORY
   ========================================================================= */

.about-subsection {
    margin-bottom: 40px;
}

.about-subsection .section-title {
    text-align: center;
}

.about-subsection .section-subtitle {
    text-align: center;
}

/* VALUES GRID WITH ICONS */
.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 50px;
}

.value-card {
    background: white;
    padding: 35px 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.value-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.92);
    z-index: 0;
    transition: background 0.4s ease;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-orange), var(--accent-orange-hover));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.value-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 50px rgba(255, 107, 53, 0.15), 0 10px 30px rgba(0,0,0,0.1);
}

.value-card:hover::before {
    transform: scaleX(1);
}

.value-card:hover::after {
    background: rgba(255, 255, 255, 0.88);
}

.value-card > * {
    position: relative;
    z-index: 1;
}

.value-icon {
    font-size: 2.5rem;
    color: var(--accent-orange);
    margin-bottom: 20px;
    display: inline-block;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255, 107, 53, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.value-card:hover .value-icon {
    background: rgba(255, 107, 53, 0.2);
    transform: scale(1.1) rotate(10deg);
}

.value-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--primary-dark);
    font-weight: 700;
}

.value-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* GET TO KNOW US SECTION - SPLIT LAYOUT */
.get-to-know-us {
    background: linear-gradient(135deg, #0a1a34 0%, #1a2d4d 100%);
    background-image: 
        radial-gradient(circle at 15% 30%, rgba(255, 107, 53, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 85% 70%, rgba(100, 200, 255, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 50% 90%, rgba(255, 107, 53, 0.04) 0%, transparent 35%),
        linear-gradient(135deg, #0a1a34 0%, #1a2d4d 100%);
    padding: 80px 0;
    /* Full width - extend to edges of viewport */
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
    position: relative;
    overflow: hidden;
}

.get-to-know-us::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(45deg, transparent 48%, rgba(255, 255, 255, 0.03) 49%, rgba(255, 255, 255, 0.03) 51%, transparent 52%);
    background-size: 60px 60px, 100px 100px;
    background-position: 0 0, 0 0;
    pointer-events: none;
}

.get-to-know-us .section-title,
.get-to-know-us .section-subtitle {
    color: white;
    position: relative;
    z-index: 1;
}

.get-to-know-us .about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 60px;
    position: relative;
    z-index: 1;
}

.about-text {
    flex: 1;
    position: relative;
    z-index: 1;
}

.about-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

.about-text p:first-child {
    font-weight: 600;
    font-size: 1.15rem;
    color: white;
}

/* STATS GRID */
.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 30px;
    max-width: 100%;
    width: 100%;
}

.stat-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 25px 18px;
    border-radius: 12px;
    text-align: center;
    border-left: 5px solid var(--accent-orange);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.15);
    border-left-color: var(--accent-orange-hover);
}

/* Team Photo Item */
.team-photo-item {
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    border-left: none;
}

.team-photo-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.team-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.team-photo-item:hover .team-photo {
    transform: scale(1.1);
}

.team-photo-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 26, 52, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
}

.team-photo-item:hover .team-photo-overlay {
    opacity: 1;
}

.team-photo-overlay i {
    font-size: 2.5rem;
    color: var(--accent-orange);
}

.team-photo-overlay span {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Fullscreen Photo Modal */
.team-photo-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999 !important;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-photo-fullscreen.active {
    display: flex;
    opacity: 1;
}

.team-photo-fullscreen.active ~ .top-banner,
.team-photo-fullscreen.active ~ header {
    display: none !important;
}

body:has(.team-photo-fullscreen.active) .top-banner,
body:has(.team-photo-fullscreen.active) header {
    display: none !important;
}

.team-photo-fullscreen.active ~ .scroll-to-top {
    display: none !important;
}

.fullscreen-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: zoomIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.fullscreen-image {
    max-width: 80vw;
    max-height: 70vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.close-fullscreen {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 140, 0, 0.95);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 2.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    transition: all 0.3s ease;
    padding: 0;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.close-fullscreen:hover {
    background: #d97706;
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.gallery-prev,
.gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 140, 0, 0.9);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.gallery-prev {
    left: 20px;
}

.gallery-next {
    right: 20px;
}

.gallery-prev:hover,
.gallery-next:hover {
    background: var(--accent-orange-hover);
    transform: translateY(-50%) scale(1.1);
}

.gallery-counter {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 600;
    z-index: 10;
}

.fullscreen-watermark {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: none;
    opacity: 0.9;
    white-space: nowrap;
}

.watermark-logo {
    height: 20px;
    width: auto;
    filter: brightness(0) saturate(100%) invert(52%) sepia(98%) saturate(2595%) hue-rotate(1deg) brightness(103%) contrast(104%);
}

/* Service Feature Lightbox */
.service-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.service-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.service-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(5px);
}

.service-lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: serviceLightboxZoom 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes serviceLightboxZoom {
    from {
        transform: scale(0.85);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.service-lightbox-close {
    position: absolute;
    top: -15px;
    right: -15px;
    background: var(--accent-orange);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.service-lightbox-close:hover {
    background: var(--accent-orange-hover);
    transform: scale(1.1) rotate(90deg);
}

/* Navigation arrows */
.service-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent-orange);
    color: white;
    border: none;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    font-size: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    box-shadow: 0 6px 25px rgba(255, 107, 53, 0.4), 0 2px 10px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.service-lightbox-nav i {
    font-size: 1.8rem;
    line-height: 1;
    color: white;
}

.service-lightbox-prev {
    left: 30px;
}

.service-lightbox-next {
    right: 30px;
}

.service-lightbox-nav:hover {
    background: var(--accent-orange-hover);
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 8px 35px rgba(255, 107, 53, 0.6), 0 4px 15px rgba(0, 0, 0, 0.4);
}

.service-lightbox-nav:active {
    transform: translateY(-50%) scale(1.05);
}

/* Counter */
.service-lightbox-counter {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 26, 52, 0.9);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.service-lightbox-image-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
}

.service-lightbox-image {
    max-width: 80vw;
    max-height: 60vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.service-lightbox-info {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
    color: white;
    padding: 24px 32px;
    border-radius: 12px;
    margin-top: 20px;
    max-width: 80vw;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.service-lightbox-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--accent-orange);
}

.service-lightbox-info p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* Hide header and scroll button when service lightbox is open */
body:has(.service-lightbox.active) .top-banner,
body:has(.service-lightbox.active) header,
body:has(.service-lightbox.active) .scroll-to-top {
    display: none !important;
}

/* Service feature clickable indicator */
.service-feature[data-bg] {
    cursor: pointer;
}

.service-feature[data-bg]::after {
    content: '';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: rgba(255, 107, 53, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    z-index: 2;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 24 24'%3E%3Cpath d='M15 3l2.3 2.3-2.89 2.87 1.42 1.42L18.7 6.7 21 9V3h-6zM3 9l2.3-2.3 2.87 2.89 1.42-1.42L6.7 5.3 9 3H3v6zm6 12l-2.3-2.3 2.89-2.87-1.42-1.42L5.3 17.3 3 15v6h6zm12-6l-2.3 2.3-2.87-2.89-1.42 1.42 2.89 2.87L15 21h6v-6z'/%3E%3C/svg%3E");
    background-size: 18px;
    background-position: center;
    background-repeat: no-repeat;
}

.service-feature[data-bg]:hover::after {
    opacity: 1;
    transform: scale(1);
}

/* Responsive adjustments for service lightbox */
@media (max-width: 768px) {
    .service-lightbox-content {
        max-width: 95vw;
        padding: 10px;
    }
    
    .service-lightbox-image {
        max-width: 95vw;
        max-height: 50vh;
    }
    
    .service-lightbox-info {
        max-width: 95vw;
        padding: 18px 20px;
    }
    
    .service-lightbox-info h3 {
        font-size: 1.2rem;
    }
    
    .service-lightbox-info p {
        font-size: 0.9rem;
    }
    
    .service-lightbox-close {
        top: -10px;
        right: -10px;
        width: 42px;
        height: 42px;
        font-size: 1.6rem;
    }
    
    .service-lightbox-nav {
        width: 55px;
        height: 55px;
    }
    
    .service-lightbox-nav i {
        font-size: 1.5rem;
    }
    
    .service-lightbox-prev {
        left: 15px;
    }
    
    .service-lightbox-next {
        right: 15px;
    }
    
    .service-lightbox-counter {
        top: 10px;
        padding: 6px 16px;
        font-size: 0.85rem;
    }
    
    .service-feature[data-bg]::after {
        width: 28px;
        height: 28px;
        top: 8px;
        right: 8px;
        background-size: 14px;
    }
}

.stat-number {
    font-size: 5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

/* RESPONSIVE */
/* Large desktop - optimize layout for best viewing experience */
@media (min-width: 1401px) {
    .get-to-know-us .about-content {
        grid-template-columns: 1fr 1fr;
        gap: 100px;
        align-items: start;
        max-width: 1600px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .about-text {
        padding-right: 30px;
    }
    
    .about-stats {
        gap: 35px;
        grid-template-rows: repeat(2, 1fr);
    }
    
    .stat-item {
        aspect-ratio: 1 / 1;
        padding: 35px 25px;
    }
    
    .stat-number {
        font-size: 4.5rem;
    }
    
    .stat-label {
        font-size: 1rem;
    }
}

@media (max-width: 1400px) {
    .about-stats {
        gap: 15px;
    }
    
    .stat-item {
        padding: 16px 12px;
        aspect-ratio: auto;
        width: auto;
        height: auto;
    }
    
    .stat-number {
        font-size: 4.5rem;
    }
}

@media (max-width: 1200px) {
    .about-stats {
        gap: 12px;
    }
    
    .stat-item {
        padding: 14px 12px;
    }
    
    .stat-number {
        font-size: 4rem;
    }
}

@media (max-width: 1024px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .get-to-know-us .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .get-to-know-us .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        max-width: 100%;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-item {
        padding: 20px 12px;
        min-width: 0;
        width: 100%;
    }
    
    .stat-number {
        font-size: 3.5rem;
    }
    
    .value-card {
        padding: 25px 20px;
    }
    
    .close-fullscreen {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }
    
    .fullscreen-image {
        max-width: 90vw;
        max-height: 60vh;
    }
    
    .gallery-prev,
    .gallery-next {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .gallery-prev {
        left: 10px;
    }
    
    .gallery-next {
        right: 10px;
    }
    
    .gallery-counter {
        top: 10px;
        font-size: 0.9rem;
    }
}
.partner img {
    height: 64px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.75);
    transition: filter 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
    display: block;
    user-select: none;
    cursor: pointer;
}

.partner img:hover {
    filter: none;
    opacity: 1;
    transform: scale(1.08);
}

@media (max-width: 1023px) {
    .partners-slider {
        padding: 0 30px;
        min-height: 72px;
    }
    .partner img {
        height: 56px;
        width: auto;
    }
}

/* -------------------------------------------------------------------------
   Sub-grid (service features) styling and reveal animation
   - Makes small feature cards visually rich with background images + overlay
   - Featured card stands out on larger screens; on mobile all are 2 columns
   - Reveal animation applied when scrolled into view
   ------------------------------------------------------------------------- */
.sub-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 20px;
}

.service-feature {
    position: relative;
    min-height: 130px;
    border-radius: 12px;
    overflow: visible;
    color: white;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow);
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, opacity 0.6s ease;
    border-top: 4px solid transparent;
}

.service-feature::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.75) 70%);
    z-index: 0;
    transition: opacity 0.25s ease;
}

.service-feature.featured {
    /* All cards uniform - no special styling */
    border-top-color: transparent;
}

/* Restore section headings and spacing */
.service-detail {
    margin-top: 80px;
    margin-bottom: 50px;
    padding-top: 40px;
    padding-bottom: 40px;
}

.service-detail h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

/* Restore section headings and spacing */
.service-detail {
    margin-top: 20px;
    margin-bottom: 20px;
    padding-top: 20px;
    padding-bottom: 20px;
}

.service-detail h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--accent-orange);
    display: inline-block;
}

/* Service description inline link styling (portfolio link) */
.service-detail p a {
    color: var(--accent-orange);
    display: inline-block;
    position: relative;
    text-decoration: none;
    padding-bottom: 6px; /* more room for a bolder underline */
    font-weight: 400; /* normal weight */
}

.service-detail p a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 2px; /* slightly bolder underline */
    bottom: 0;
    background: var(--accent-orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-detail p a:hover::after,
.service-detail p a:focus::after {
    transform: scaleX(1);
}

.service-feature:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-top-color: var(--accent-orange);
}

/* Ensure featured doesn't break the mobile minimum 2-per-row rule */
@media (max-width: 1024px) {
    .sub-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .service-feature.featured {
        grid-column: span 1;
        grid-row: auto;
        min-height: 160px;
    }
}

@media (max-width: 768px) {
    .sub-grid {
        grid-template-columns: repeat(2, 1fr); /* ensure minimum 2 per row on mobile */
        gap: 14px;
        align-items: stretch;
        grid-auto-rows: auto;
    }
    .service-feature {
        min-height: 180px;
        padding: 16px;
        height: auto;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        overflow: visible;
    }
    .service-feature::before {
        border-radius: 12px;
    }
    .service-feature h4 {
        margin-bottom: 10px;
        font-size: 1.1rem;
    }
    .service-feature p {
        flex-grow: 1;
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

/* Reveal animation classes */
.reveal-init {
    opacity: 0 !important;
    transform: translateY(100px) scale(0.92) rotateX(12deg) rotateZ(-3deg) !important;
    filter: blur(8px);
}

.reveal {
    opacity: 1 !important;
    transform: translateY(0) scale(1) rotateX(0) rotateZ(0) !important;
    filter: blur(0);
    transition: transform 1s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.7s ease, filter 0.6s ease;
}

/* New animation for About section - Fade and Scale In */
.about-fade-in {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.about-fade-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Slide in from sides for stat items */
.about-slide-in {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.about-slide-in:nth-child(odd) {
    transform: translateX(-60px);
}

.about-slide-in:nth-child(even) {
    transform: translateX(60px);
}

.about-slide-in.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Bright pop shadow and orange glow on reveal */
.service-feature.reveal {
    box-shadow: 0 20px 50px rgba(255, 107, 53, 0.25), 0 10px 30px rgba(0,0,0,0.3);
}

/* small text adjustments inside cards */
.service-feature h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    font-weight: 700;
    color: white;
    text-shadow: 0 3px 10px rgba(0,0,0,0.8);
    position: relative;
    z-index: 1;
    padding-bottom: 8px;
    border-bottom: 3px solid var(--accent-orange);
    display: inline-block;
}
.service-feature p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.98);
    text-shadow: 0 3px 8px rgba(0,0,0,0.8);
    position: relative;
    z-index: 1;
}

/* Force uniform heights via grid row size and full-height children - removed for mobile flexibility */
.sub-grid {
    grid-auto-rows: auto;
}
.service-feature {
    height: auto;
}

@media (max-width: 767px) {
    .partners-slider {
        padding: 0 20px;
        min-height: 64px;
    }
    .partner img {
        height: 48px;
        width: auto;
    }
}

/* ========================================================================= */
/* PORTFOLIO CAROUSEL */
/* ========================================================================= */

.portfolio-carousel-container {
    position: relative;
    margin-top: 50px;
    border-radius: 0;
    overflow: visible;
    background: none;
}

.portfolio-carousel-container::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 480px;
    background: 
        linear-gradient(180deg, rgba(10, 26, 52, 0.85) 0%, rgba(10, 26, 52, 0.92) 55%, rgba(10, 26, 52, 0.85) 100%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1600' height='600' viewBox='0 0 1600 600'%3E%3Cdefs%3E%3ClinearGradient id='lg1' x1='0%25' y1='0%25' x2='100%25' y2='0%25'%3E%3Cstop offset='0%25' style='stop-color:%23ffffff;stop-opacity:0.08'/%3E%3Cstop offset='50%25' style='stop-color:%23ffffff;stop-opacity:0.04'/%3E%3Cstop offset='100%25' style='stop-color:%23ffffff;stop-opacity:0.08'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg%3E%3Cpath d='M0 250 Q 400 180 800 250 T 1600 250' stroke='url(%23lg1)' stroke-width='1.5' fill='none'/%3E%3Cpath d='M0 350 Q 500 280 1000 350 T 1600 350' stroke='url(%23lg1)' stroke-width='1' fill='none' opacity='0.7'/%3E%3Ccircle cx='300' cy='200' r='3' fill='%23ffffff' opacity='0.15'/%3E%3Ccircle cx='750' cy='280' r='2.5' fill='%23ffffff' opacity='0.12'/%3E%3Ccircle cx='1100' cy='320' r='3.5' fill='%23ffffff' opacity='0.18'/%3E%3Ccircle cx='1450' cy='240' r='2' fill='%23ffffff' opacity='0.1'/%3E%3Crect x='500' y='150' width='40' height='40' rx='6' fill='none' stroke='%23ffffff' stroke-width='1' opacity='0.1' transform='rotate(20 520 170)'/%3E%3Crect x='1200' y='380' width='35' height='35' rx='5' fill='none' stroke='%23ffffff' stroke-width='0.8' opacity='0.08' transform='rotate(-15 1217 397)'/%3E%3Cline x1='200' y1='300' x2='240' y2='330' stroke='%23ffffff' stroke-width='1' opacity='0.1'/%3E%3Cline x1='900' y1='200' x2='950' y2='220' stroke='%23ffffff' stroke-width='0.8' opacity='0.08'/%3E%3Cpath d='M600 400 L630 380 L650 410 Z' fill='none' stroke='%23ffffff' stroke-width='1' opacity='0.08'/%3E%3C/g%3E%3C/svg%3E");
    background-size: cover;
    background-position: center;
    z-index: -1;
}

@media (min-width: 1025px) {
    .portfolio-carousel-container::before {
        height: 560px;
    }
}

.portfolio-carousel {
    overflow: hidden;
    border-radius: 0;
    background: transparent;
}

.portfolio-carousel-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 8px 0 4px;
    -webkit-overflow-scrolling: touch;
    /* Hide scrollbar */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.portfolio-carousel-track::-webkit-scrollbar {
    display: none;
}

.portfolio-carousel-item {
    flex: 0 0 calc((100% - 48px) / 3);
    min-width: calc((100% - 48px) / 3);
    max-width: calc((100% - 48px) / 3);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
    height: 360px;
    border: 1px solid rgba(10, 26, 52, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.98) 100%);
}

@media (max-width: 1024px) {
    .portfolio-carousel-item {
        flex: 0 0 calc((100% - 24px) / 2);
        min-width: calc((100% - 24px) / 2);
        max-width: calc((100% - 24px) / 2);
    }
}

@media (max-width: 767px) {
    .portfolio-carousel-item {
        flex: 0 0 100%;
        min-width: 100%;
        max-width: 100%;
    }
}

.portfolio-carousel-item:hover {
    transform: translateY(-20px) scale(1.06);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.24);
    z-index: 5; /* lift above neighbors */
}

.portfolio-carousel-item .portfolio-img {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.85);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

.portfolio-carousel-item .portfolio-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.12);
    transition: background 0.3s ease;
    border-radius: inherit;
}

.portfolio-carousel-item:hover .portfolio-img::after {
    background: linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0.28));
    backdrop-filter: brightness(1.05) saturate(1.02);
}

/* View overlay for portfolio carousel items */
.portfolio-view-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(10, 26, 52, 0.7);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    border-radius: inherit;
}

.portfolio-view-overlay i {
    font-size: 2.5rem;
    color: white;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.portfolio-view-overlay span {
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: translateY(10px);
    transition: transform 0.3s ease 0.05s;
}

.portfolio-carousel-item:hover .portfolio-view-overlay {
    opacity: 1;
}

.portfolio-carousel-item:hover .portfolio-view-overlay i,
.portfolio-carousel-item:hover .portfolio-view-overlay span {
    transform: translateY(0);
}

/* Always visible corner badge */
.portfolio-view-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: var(--accent-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    box-shadow: 0 3px 12px rgba(255, 107, 53, 0.5);
    transition: all 0.3s ease;
    animation: badgePulse 2s ease-in-out infinite;
    padding: 6px;
}

.portfolio-badge-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.portfolio-view-badge i {
    font-size: 0.95rem;
    color: white;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); box-shadow: 0 3px 12px rgba(255, 107, 53, 0.5); }
    50% { transform: scale(1.1); box-shadow: 0 4px 18px rgba(255, 107, 53, 0.7); }
}

.portfolio-carousel-item:hover .portfolio-view-badge {
    opacity: 0;
    transform: scale(0.8);
}

.portfolio-carousel-item .portfolio-img i {
    position: relative;
    z-index: 1;
}

.portfolio-info {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 1) 100%);
    padding: 18px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid rgba(10, 26, 52, 0.06);
}

.portfolio-info .portfolio-tag {
    display: inline-block;
    background: var(--accent-orange);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.portfolio-info .portfolio-meta {
    display: inline-block !important;
    white-space: nowrap !important;
    line-height: 1 !important;
    margin-bottom: 6px !important;
    vertical-align: top !important;
}

.portfolio-info .portfolio-meta .portfolio-tag,
.portfolio-info .portfolio-meta .portfolio-year {
    display: inline-block !important;
    vertical-align: baseline !important;
    margin-right: 8px !important;
    line-height: 1.2 !important;
    padding: 4px 12px !important;
    border-radius: 20px !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    background: var(--accent-orange) !important;
    color: white !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.portfolio-info .portfolio-meta .portfolio-year {
    margin-right: 0 !important;
    text-transform: none !important;
}

/* Responsive: reduce pill size on small screens so they fit on one row */
@media (max-width: 520px) {
    .portfolio-info .portfolio-tag,
    .portfolio-info .portfolio-year {
        padding: 3px 8px;
        font-size: 0.68rem;
        border-radius: 16px;
    }

    .portfolio-info .portfolio-meta {
        gap: 6px;
    }

    .portfolio-info h3 {
        margin-top: 6px;
        font-size: 1rem;
    }
}

/* Combined pill - HIDDEN per user request */
.portfolio-meta-combined {
    display: none !important;
}

@media (max-width: 420px) {
    /* Keep individual pills visible even on small screens */
    .portfolio-info .portfolio-tag,
    .portfolio-info .portfolio-year {
        display: inline-block;
    }

    .portfolio-meta-combined {
        display: none !important;
        background: var(--accent-orange);
        color: white;
        padding: 6px 12px;
        border-radius: 20px;
        font-size: 0.78rem;
        font-weight: 600;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        margin-bottom: 6px;
    }

    .portfolio-info h3 {
        margin-top: 8px;
    }
}

.portfolio-info .portfolio-year {
    display: inline-block;
    background: var(--accent-orange);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.5px;
}

.portfolio-info h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.4;
    margin: 0;
}

.portfolio-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent-orange);
    color: white;
    border: none;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    opacity: 0.9;
}

.portfolio-carousel-nav:hover {
    background: var(--accent-orange-hover);
    transform: translateY(-50%) scale(1.08);
    opacity: 1;
}

.portfolio-carousel-nav.prev {
    left: 12px;
}

.portfolio-carousel-nav.next {
    right: 12px;
}

.portfolio-view-all {
    text-align: center;
    margin-top: 12px;
}

/* Portfolio fade-in animation */
.portfolio-item-fade {
    opacity: 0;
    animation: fadeInUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.portfolio-item-fade:nth-child(1) { animation-delay: 0s; }
.portfolio-item-fade:nth-child(2) { animation-delay: 0.1s; }
.portfolio-item-fade:nth-child(3) { animation-delay: 0.2s; }
.portfolio-item-fade:nth-child(4) { animation-delay: 0.3s; }
.portfolio-item-fade:nth-child(5) { animation-delay: 0.4s; }
.portfolio-item-fade:nth-child(6) { animation-delay: 0.5s; }
.portfolio-item-fade:nth-child(7) { animation-delay: 0.6s; }
.portfolio-item-fade:nth-child(8) { animation-delay: 0.7s; }
.portfolio-item-fade:nth-child(9) { animation-delay: 0.8s; }
.portfolio-item-fade:nth-child(10) { animation-delay: 0.9s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================================================= */
/* PORTFOLIO PAGE STYLES */
/* ========================================================================= */

.portfolio-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1a2d4d 100%);
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(100, 200, 255, 0.05) 0%, transparent 50%),
        linear-gradient(135deg, var(--primary-dark) 0%, #1a2d4d 100%);
    color: white;
    padding: 180px 0 80px;
    text-align: center;
}

.portfolio-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    font-weight: 800;
}

.portfolio-hero p {
    font-size: 1.2rem;
    opacity: 0.95;
}

/* Legal Pages Hero Section - Same style as portfolio-hero */
.legal-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1a2d4d 100%);
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(100, 200, 255, 0.05) 0%, transparent 50%),
        linear-gradient(135deg, var(--primary-dark) 0%, #1a2d4d 100%);
    color: white;
    padding: 180px 0 80px;
    text-align: center;
}

.legal-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    font-weight: 800;
    font-style: italic;
}

.legal-hero p {
    font-size: 1.2rem;
    opacity: 0.95;
}

.legal-content-section {
    padding: 60px 0;
    min-height: 50vh;
}

.legal-content-section .container {
    max-width: 800px;
}

.legal-content-section h2 {
    color: var(--primary-dark);
    font-size: 1.4rem;
    margin-top: 35px;
    margin-bottom: 15px;
    font-weight: 700;
}

.legal-content-section h2:first-child {
    margin-top: 0;
}

.legal-content-section p {
    line-height: 1.8;
    color: #444;
}

@media (max-width: 768px) {
    .legal-hero {
        padding: 140px 0 50px;
    }
    
    .legal-hero h1 {
        font-size: 2.2rem;
    }
    
    .legal-hero p {
        font-size: 1rem;
    }
    
    .legal-content-section {
        padding: 40px 0;
    }
    
    .legal-content-section h2 {
        font-size: 1.2rem;
    }
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 10px 24px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-btn:hover {
    background: rgba(255, 107, 53, 0.9);
    border-color: var(--accent-orange);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
}

.portfolio-section {
    padding: 80px 0;
}

.portfolio-project {
    margin-bottom: 100px;
    position: relative;
}

.project-counter {
    font-size: 0.9rem;
    color: var(--accent-orange);
    font-weight: 700;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.project-grid:nth-child(2) {
    grid-template-columns: 1fr 1fr;
}

.portfolio-project:nth-child(even) .project-grid {
    grid-template-columns: 1fr 1fr;
    direction: rtl;
}

.portfolio-project:nth-child(even) .project-grid > * {
    direction: ltr;
}

.project-content {
    animation: fadeInLeft 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.project-category {
    display: inline-block;
    background: var(--accent-orange);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.project-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.project-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 30px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tag {
    background: rgba(255, 107, 53, 0.1);
    color: var(--accent-orange);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(255, 107, 53, 0.2);
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: var(--accent-orange);
    color: white;
    border-color: var(--accent-orange);
}

.project-images {
    animation: fadeInRight 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.project-main-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.project-main-image:hover {
    transform: scale(1.02);
    box-shadow: 0 30px 80px rgba(255, 107, 53, 0.2);
}

.portfolio-fade-in {
    opacity: 0;
    transform: scale(0.85);
}

.portfolio-fade-in.visible {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.portfolio-cta {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1a2d4d 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.portfolio-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.portfolio-cta p {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 30px;
}

.btn-large {
    padding: 16px 50px;
    font-size: 1.1rem;
}

/* Responsive Portfolio */
@media (max-width: 1024px) {
    .portfolio-carousel-item {
        flex: 0 0 calc(50% - 10px);
        height: 320px;
        border: 1.5px solid rgba(10, 26, 52, 0.25);
        box-shadow: 0 12px 30px rgba(0,0,0,0.15);
        background: transparent;
    }

    .project-title {
        font-size: 2rem;
    }

    .project-main-image {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .portfolio-carousel-item {
        flex: 0 0 calc(100% - 10px);
        height: 280px;
        border: 1.5px solid rgba(10, 26, 52, 0.25);
        box-shadow: 0 10px 26px rgba(0,0,0,0.15);
        background: transparent;
    }

    .portfolio-carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .portfolio-carousel-nav.prev {
        left: 10px;
        top: 140px;
    }

    .portfolio-carousel-nav.next {
        right: 10px;
        top: 140px;
    }

    .portfolio-hero {
        padding: 140px 0 50px;
    }

    .portfolio-hero h1 {
        font-size: 2.5rem;
    }

    .project-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .portfolio-project:nth-child(even) .project-grid {
        direction: ltr;
    }

    .project-title {
        font-size: 1.6rem;
    }

    .project-main-image {
        height: 280px;
    }

    .project-images {
        order: -1;
    }

    .portfolio-cta h2 {
        font-size: 1.8rem;
    }
}
/* Language Switcher */
.language-switcher {
    position: relative;
    display: inline-block;
    margin-right: 15px;
}

.lang-button {
    background: white;
    border: 1px solid #e0e0e0;
    color: #333;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 60px;
    height: 32px;
}

.lang-button:hover {
    border-color: var(--accent-orange, #ff6b35);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.lang-flag-emoji {
    font-size: 1rem;
    line-height: 1;
}

.lang-flag {
    display: inline-block;
    width: 20px;
    height: 15px;
    border-radius: 2px;
    object-fit: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    line-height: 0;
    vertical-align: middle;
}

.lang-button .fa-chevron-down {
    margin-left: auto;
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.language-switcher.active .lang-button .fa-chevron-down {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background: #f5f5f5;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    min-width: 90px;
    padding: 5px 0;
    display: none;
    z-index: 1000;
    border: 1px solid #d0d0d0;
}

.lang-dropdown.active {
    display: block;
}

.lang-dropdown a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: #1a2332;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    font-weight: 500;
}

.lang-dropdown a:hover {
    background: #d0d0d0;
    color: var(--accent-orange, #ff6b35);
}

.lang-dropdown a.active {
    background: #ffffff;
    color: var(--accent-orange, #ff6b35);
}

.lang-dropdown a.active::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: auto;
    color: var(--accent-orange, #ff6b35);
}

@media (max-width: 968px) {
    .language-switcher {
        margin-right: 5px;
    }

    .lang-button {
        padding: 4px 6px;
        font-size: 0;
        min-width: auto;
        gap: 0;
        height: 32px;
        width: 32px;
    }

    .lang-button .lang-code {
        display: none;
    }

    .lang-button .fa-chevron-down {
        display: none;
    }

    .lang-flag-emoji {
        font-size: 1.2rem;
    }

    .lang-flag {
        width: 20px;
        height: 15px;
    }
}
