/* Reset and fonts */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

body, html {
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: black;
    overflow-x: hidden; /* Prevent horizontal overflow wobbling on mobile */
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: black;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.4s cubic-bezier(0.8, 0, 0.2, 1);
}

#preloader img {
    height: 60px;
    opacity: 0;
    animation: logoFadeIn 1s ease-out forwards;
}

@keyframes logoFadeIn {
    0% { opacity: 0; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}

#preloader.hidden {
    transform: translateY(-100%);
}

/* Hero Scroll Wrapper */
.hero-scroll-wrapper {
    position: relative;
    width: 100%;
    height: 500vh;
}

/* Fixed container stays completely static in background */
.fixed-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* Fallback */
    height: 100dvh; /* Modern mobile height */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 10;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 8%;
    position: relative;
    z-index: 999;
    width: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.logo img {
    height: 75px; /* Increased from 50px */
    object-fit: contain;
}

.nav-menu {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 100;
}

.hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-links {
    display: flex;
    gap: 35px;
    align-items: center;
    margin-right: 40px;
}

/* When navbar is scrolled (at 90%) */
.navbar.scrolled {
    opacity: 1; /* Fully visible, but transition makes it fade in smoothly */
}

/* Nav links inner styling */
.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.nav-links a.active,
.nav-links a:hover {
    color: #00bfff;
}

/* Buttons */
.contact-btn, .more-btn {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: transform 0.3s ease;
}

.contact-btn:hover, .more-btn:hover {
    transform: translateX(5px);
}

.contact-btn .icon, .more-btn .icon {
    background-color: white;
    color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    transition: background-color 0.3s ease;
}

.contact-btn .icon img, .more-btn .icon img {
    width: 20px;
    height: auto;
}

.contact-btn .icon {
    width: 45px;
    height: 40px;
}

.contact-btn .text {
    background-color: #00bfff;
    color: white;
    padding: 0 25px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-transform: uppercase;
}

.more-btn .icon {
    width: 45px;
    height: 45px;
    font-size: 18px;
}

.more-btn .text {
    background-color: #00bfff;
    color: white;
    padding: 0 25px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    text-transform: uppercase;
}

/* Hero Section */
.hero {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 8%;
    position: relative;
    width: 100%;
}

.hero-content {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-content h1 {
    font-size: 65px;
    color: white;
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 30px;
}

.hero-content h1 .highlight {
    color: #00bfff;
    font-weight: 700;
}

.hero-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.2, 0, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0, 0.2, 1);
}

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

.hero-content .more-btn {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.2, 0, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0, 0.2, 1);
}

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

/* Watermark */
.watermark-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 5;
    pointer-events: none;
    display: flex;
    justify-content: flex-start;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.watermark-img {
    width: 100%;
    object-fit: contain;
    opacity: 0.3;
}

.watermark-text {
    font-size: 25vw;
    color: white;
    font-weight: 700;
    line-height: 0.8;
    letter-spacing: -2px;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .hero-content h1 {
        font-size: 60px;
    }
    .nav-links {
        gap: 20px;
    }
}

@media (max-width: 900px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background-color: #171717;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: left 0.4s ease;
        z-index: 99;
    }
    
    .navbar.menu-active .nav-menu {
        left: 0;
    }
    
    .navbar.menu-active .hamburger span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .navbar.menu-active .hamburger span:nth-child(2) {
        opacity: 0;
    }
    
    .navbar.menu-active .hamburger span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    .nav-menu .nav-links {
        display: flex;
        flex-direction: column;
        margin: 0;
        gap: 30px;
        margin-bottom: 40px;
    }
    
    .nav-menu .nav-links a {
        font-size: 24px;
    }
    
    .nav-menu .nav-cta {
        display: flex;
    }
    .hero-content h1 {
        font-size: 50px;
    }
    .watermark-img {
        width: 150%;
    }
    .navbar.scrolled .logo {
        left: 30px;
    }
    
    .navbar {
        opacity: 1 !important; /* Force visible immediately for all mobile/tablet breakpoints */
        visibility: visible !important;
    }
}

@media (max-width: 768px) {
    .hero-scroll-wrapper {
        height: 300vh; /* Shorter scroll distance for better mobile UX */
    }
    .fixed-container {
        height: 914px;
        max-height: 100dvh; /* Fallback to prevent overflow on very small screens */
    }
    .hero-content {
        top: 35%; /* move it up slightly to avoid bottom bar overlap */
        padding-left: 20px;
        padding-right: 20px;
        width: 100%;
    }
    .hero-content h1 {
        font-size: 38px;
        line-height: 1.1;
        margin-bottom: 20px;
    }
    .hero-content .more-btn .text {
        height: 40px;
        font-size: 12px;
        padding: 0 15px;
    }
    .hero-content .more-btn .icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    .watermark-container {
        display: none !important;
    }
    .navbar {
        padding: 20px;
        opacity: 1 !important; /* Always show navbar on mobile so hamburger works */
    }
    .logo img {
        height: 55px; /* Increased from 35px */
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 32px;
    }
    .watermark-img {
        width: 300%;
    }
}

/* About Us Section */
.about-us {
    background-color: #1F1F1F;
    padding: 150px 20px 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    border-radius: 30px 30px 0 0;
    margin-top: -60px; /* Optional overlap for a sleeker transition */
    position: relative;
    z-index: 20;
}

.about-container {
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    gap: 120px;
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.about-container.visible {
    opacity: 1;
    transform: translateY(0);
}

.story-intro h2 {
    color: white;
    font-size: 54px;
    font-weight: 400;
    line-height: 1.4;
    text-align: center;
    margin: 0 -200px;
}

.reveal-word {
    opacity: 0.2;
    transition: opacity 0.1s ease-out;
}

.story-intro h2 .highlight {
    color: #00bfff;
    font-weight: 500;
}

/* Story Content Split */
.story-content {
    display: flex;
    gap: 60px;
    align-items: center;
}

.story-image {
    flex: 1;
    opacity: 0;
    transform: translateX(-100px);
    transition: opacity 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s, transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s;
}

.story-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.story-info {
    flex: 1;
    border-left: 1px solid #333;
    padding-left: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    opacity: 0;
    transform: translateX(100px);
    transition: opacity 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s, transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s;
}

.about-container.visible .story-image,
.about-container.visible .story-info {
    opacity: 1;
    transform: translateX(0);
}

.story-info h3 {
    color: white;
    font-size: 26px;
    font-weight: 600;
}

.story-info p {
    color: #888;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 10px;
}

/* Stats Grid */
.stats-grid {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.stat-item {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.stat-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-arrow img {
    width: 14px;
    height: auto;
    transform: rotate(-90deg);
    filter: invert(100%); /* Changes the black SVG fill to white */
}

.stat-val {
    color: white;
    font-size: 64px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -1px;
}

.stat-label {
    color: #00bfff;
    font-size: 13px;
    line-height: 1.3;
}

.stat-divider {
    width: 100%;
    height: 1px;
    background-color: #333;
    margin: 20px 0;
}

.stat-desc {
    color: #888;
    font-size: 14px;
    line-height: 1.4;
}

/* Innovation Section */
.innovation-section {
    background-color: #1F1F1F;
    padding: 140px 20px 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 20;
    overflow: hidden;
}

.innovation-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: white;
    font-size: 150px;
    line-height: 1.1;
    font-weight: 400;
}

.inno-line {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* Stagger lines for the layout seen in screenshot */
.line-1 {
    margin-left: -200px;
    opacity: 0;
    transform: translateX(-150px);
    transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.line-2 {
    margin-left: 150px;
    opacity: 0;
    transform: translateX(150px);
    transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s, transform 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s;
}

.line-3 {
    margin-left: -80px;
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s, transform 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s;
}

/* Visible states triggered by JS */
.innovation-section.visible .line-1,
.innovation-section.visible .line-2,
.innovation-section.visible .line-3 {
    opacity: 1;
    transform: translate(0, 0);
}

.inno-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 120px;
    height: 60px;
    border: 1px solid #00AEEF;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.inno-btn img {
    width: 22px;
    /* CSS Filter to convert black to #00AEEF */
    filter: invert(53%) sepia(61%) saturate(5412%) hue-rotate(163deg) brightness(101%) contrast(101%);
    transform: rotate(-45deg); /* Arrow pointing up-right */
}

.inno-btn:hover {
    background-color: #00AEEF;
    transform: translateX(5px) translateY(-5px);
}

.inno-btn:hover img {
    filter: invert(100%); /* Turn arrow white on hover */
}

.inno-img-wrapper {
    width: 200px;
    height: 100px;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
}

.inno-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Services Section */
.services-section {
    background-color: #1F1F1F;
    padding: 80px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    position: relative;
    z-index: 20;
}

.services-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('images/backgroundimage.png');
    background-size: cover;
    background-position: center;
    opacity: 0.05; /* Low opacity background overlay */
    z-index: -1;
    pointer-events: none;
}

.services-container {
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.services-header {
    text-align: center;
}

.services-header h4 {
    color: #00AEEF;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 25px;
}

.services-header h2 {
    color: white;
    font-size: 42px;
    font-weight: 400;
    line-height: 1.3;
}

.services-content {
    display: flex;
    gap: 60px;
    align-items: center;
}

.services-image {
    flex: 1.2; /* Slightly wider */
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.services-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease;
}

.services-accordion {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Services Entrance Animation */
.services-section .services-header,
.services-section .services-image,
.services-section .services-accordion {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.services-section .services-image {
    transition-delay: 0.15s;
}

.services-section .services-accordion {
    transition-delay: 0.3s;
}

.services-section.visible .services-header,
.services-section.visible .services-image,
.services-section.visible .services-accordion {
    opacity: 1;
    transform: translateY(0);
}

.accordion-item {
    padding: 30px 30px;
    border-bottom: 1px solid #333;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666; /* Inactive grey */
    background-color: #1F1F1F; /* Solid dark card background */
    margin: 0 -30px; /* Counter-act padding to maintain alignment */
}

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

.accordion-title {
    font-size: 42px;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.accordion-num {
    font-size: 14px;
    font-weight: 500;
    margin-top: -20px; /* Aligns like a superscript */
}

.acc-icon {
    display: none; /* Hidden by default */
    width: 44px;
    height: 44px;
    margin-top: 4px; /* Optical adjustment to center perfectly with text */
}

.acc-icon img {
    width: 100%;
    height: 100%;
    filter: invert(0%); /* Black icon */
    transform: rotate(-45deg); /* Point up-right */
}

/* Active State for Accordion */
.accordion-item.active {
    background-color: #00AEEF;
    color: #111;
    border-bottom: none;
}

.accordion-item.active + .accordion-item {
    border-top: 1px solid #333; /* Restore border for next element */
}

.accordion-item.active .acc-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.accordion-item.active .accordion-title {
    font-weight: 500;
}

/* Process / Timeline Section */
.process-section {
    background-color: #222222;
    padding: 100px 20px 150px;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 20;
}

.process-container {
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 120px;
}

.timeline-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 100px;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: #333;
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-line-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background-color: #00AEEF;
}

.timeline-item {
    display: flex;
    position: relative;
    justify-content: space-between;
    width: 100%;
    align-items: center; /* Center text vertically relative to the image */
    z-index: 2; /* Brings item and its circle to front over the line */
}

/* Mask to hide the line extending above the first circle */
.timeline-line + .timeline-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 50%;
    background-color: #222222;
    z-index: 1;
}

/* Mask to hide the line extending below the last circle */
.timeline-item:last-child::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 50%;
    background-color: #222222;
    z-index: 1;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%); /* Center dot exactly in the middle */
    width: 16px;
    height: 16px;
    background-color: white;
    border-radius: 50%;
    z-index: 2;
    transition: background-color 0.3s ease;
}

.timeline-dot.active {
    background-color: #00AEEF;
}

.timeline-content {
    width: 45%; /* Leaves a 10% gap in the middle where the line is */
}

.timeline-content img {
    width: 100%;
    height: auto;
    border-radius: 2px;
    display: block;
}

.text-content {
    display: flex;
    flex-direction: column;
}

.step-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: #00AEEF;
    font-size: 15px;
    font-weight: 600;
}

.step-dash {
    width: 25px;
    height: 2px;
    background-color: #00AEEF;
}

.text-content h3 {
    color: white;
    font-size: 38px;
    font-weight: 400;
    margin-bottom: 20px;
}

.text-content p {
    color: #888;
    font-size: 16px;
    line-height: 1.6;
}

/* Process Section Entrance Animations */
.process-section .services-header {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.process-section .timeline-line {
    opacity: 0;
    transform-origin: top center;
    transform: translateX(-50%) scaleY(0);
    transition: opacity 1.5s ease, transform 1.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.process-section .timeline-item {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.process-section.visible .services-header,
.process-section.visible .timeline-item {
    opacity: 1;
    transform: translateY(0);
}

.process-section.visible .timeline-line {
    opacity: 1;
    transform: translateX(-50%) scaleY(1);
}

/* Stagger the timeline items slightly */
.process-section .timeline-item:nth-child(2) { transition-delay: 0.15s; }
.process-section .timeline-item:nth-child(3) { transition-delay: 0.3s; }
.process-section .timeline-item:nth-child(4) { transition-delay: 0.45s; }

/* Recent Works Section */
.recent-works-section {
    background-color: #222222;
    padding: 100px 8%;
    position: relative;
    overflow: hidden;
    z-index: 20;
}

.works-header {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Vertically center the button with the text block */
    margin-bottom: 100px;
}

.works-subtitle {
    color: #00AEEF;
    font-size: 15px;
    font-weight: 600;
    display: block;
    margin-bottom: 15px;
}

.works-title-area h2 {
    color: white;
    font-size: 52px;
    font-weight: 400;
    line-height: 1.3;
}

.works-cta-container {
    /* Removed margin-top for perfect centering */
}

.works-btn {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

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

.works-btn-icon {
    background-color: white;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.works-btn-icon img {
    width: 20px;
    filter: invert(0);
}

.works-btn-text {
    background-color: #00AEEF;
    color: white;
    height: 50px;
    display: flex;
    align-items: center;
    padding: 0 25px;
    font-size: 13px;
    font-weight: 600;
}

.works-carousel-container {
    position: relative;
    width: 100%;
}

.works-track {
    display: flex;
    gap: 40px;
    align-items: center;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    /* Adjust initial position to center the active slide */
}

.work-slide {
    flex: 0 0 60%;
    opacity: 0.4;
    transform: scale(0.85);
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    cursor: pointer;
}

.work-slide.active {
    opacity: 1;
    transform: scale(1);
}

.work-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    margin-bottom: 20px;
}

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

.work-info {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.work-title {
    color: white;
    font-size: 24px;
    font-weight: 400;
}

.work-arrow {
    color: #00AEEF;
    margin-left: 10px;
}

.work-category {
    color: #aaa;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.works-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 60px;
}

.works-prev, .works-next {
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.works-prev:hover, .works-next:hover {
    border-color: #00AEEF;
}

.works-prev img {
    width: 20px;
    transform: rotate(180deg);
    /* Filter to turn black SVG to Cyan #00AEEF */
    filter: invert(53%) sepia(61%) saturate(5412%) hue-rotate(163deg) brightness(101%) contrast(101%);
}

.works-next img {
    width: 20px;
    filter: invert(53%) sepia(61%) saturate(5412%) hue-rotate(163deg) brightness(101%) contrast(101%);
}

/* Clients Section */
.clients-section {
    background-color: #222222;
    padding: 100px 0;
    position: relative;
    z-index: 20;
    overflow: hidden;
    text-align: center;
}

.clients-section h2 {
    color: white;
    font-size: 52px;
    font-weight: 500;
    margin-bottom: 80px;
}

.clients-marquee {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.clients-track-inner {
    display: flex;
    width: fit-content;
    animation: scroll-marquee 40s linear infinite;
}

.marquee-group {
    display: flex;
    gap: 40px;
    padding-right: 40px; /* Maintains the gap between loops */
}

.client-logo {
    width: 280px;
    height: 140px;
    background-color: white;
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.client-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

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

/* Testimonials Section */
.testimonials-section {
    background-color: #1F1F1F;
    padding: 100px 8%;
    position: relative;
    z-index: 20;
    overflow: hidden;
}

.testimonials-header-centered {
    text-align: center;
    margin-bottom: 80px;
}

.testimonials-subtitle {
    color: #00AEEF;
    font-size: 15px;
    font-weight: 600;
    display: block;
    margin-bottom: 15px;
}

.testimonials-header-centered h2 {
    color: white;
    font-size: 52px;
    font-weight: 400;
    line-height: 1.3;
}

.testimonials-carousel-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    padding-bottom: 20px;
}

.testimonials-track {
    display: flex;
    gap: 30px;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.testi-card {
    flex: 0 0 calc((100% - 60px) / 3);
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent;
    padding: 0;
}

.testi-quote-box {
    background-color: #2A2A2A;
    border-radius: 12px;
    padding: 40px 30px 50px;
    position: relative;
    margin-top: 15px;
    text-align: center;
    width: 100%;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testi-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #00AEEF;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 0 0 6px #1F1F1F;
}

.testi-text {
    color: #ccc;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.testi-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -35px;
    z-index: 2;
}

.testi-avatar-wrapper {
    background-color: #1F1F1F;
    padding: 6px;
    border-radius: 50%;
    margin-bottom: 15px;
}

.testi-avatar-ring {
    border: 2px dashed #00AEEF;
    border-radius: 50%;
    padding: 3px;
}

.testi-avatar-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.testi-name {
    color: white;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 5px;
}

.testi-title {
    color: #00AEEF;
    font-size: 13px;
    font-weight: 500;
}

.testimonials-nav-bottom {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.testi-prev, .testi-next {
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    border-radius: 0;
}

.testi-prev:hover, .testi-next:hover {
    border-color: #00AEEF;
    background-color: rgba(0, 174, 239, 0.1);
}

.testi-prev img {
    width: 16px;
    transform: rotate(180deg);
    filter: invert(53%) sepia(61%) saturate(5412%) hue-rotate(163deg) brightness(101%) contrast(101%);
}

.testi-next img {
    width: 16px;
    filter: invert(53%) sepia(61%) saturate(5412%) hue-rotate(163deg) brightness(101%) contrast(101%);
}

/* Gallery Section */
.gallery-section {
    background-color: #1F1F1F;
    padding: 120px 0;
    position: relative;
    z-index: 20;
    overflow: hidden;
    text-align: center;
}

.gallery-wheel-container {
    display: flex;
    justify-content: center;
    position: relative;
    height: 550px; /* Increased height */
    margin-bottom: 60px;
}

.gallery-wheel {
    position: absolute;
    top: 60px; /* Push down to prevent clipping the shadow and scale effect at the top */
    left: 50%;
    width: 2400px;
    height: 2400px;
    margin-left: -1200px; /* Center horizontally */
    border-radius: 50%;
    animation: spin-wheel 60s linear infinite;
    pointer-events: none; /* Prevents the invisible wheel from blocking clicks in the section */
}

.gallery-card {
    pointer-events: auto; /* Re-enable pointer events for the cards */
    width: 280px;
    height: 380px;
    border-radius: 8px;
    position: absolute;
    left: 50%;
    top: 0;
    margin-left: -140px; /* Center card horizontally on the wheel edge */
    transform-origin: 50% 1200px; /* Increased pivot radius to prevent overlapping at the bottom */
    transform: rotate(calc(var(--i) * 24deg)); /* 360 / 15 = 24deg spacing */
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    overflow: hidden; /* Hide the scaled image outside the card */
    transition: box-shadow 0.4s ease, z-index 0.4s ease;
}

.gallery-card:hover {
    z-index: 10 !important;
    box-shadow: 0 25px 60px rgba(0,0,0,0.9);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gallery-card:hover .gallery-img {
    transform: scale(1.1);
}

@keyframes spin-wheel {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.gallery-text {
    margin-top: 40px;
    padding: 0 20px;
}

.gallery-subtitle {
    display: block;
    color: #999999;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 20px;
}

.gallery-text h2 {
    color: white;
    font-size: 52px;
    font-weight: 400;
    line-height: 1.2;
}

/* Basic responsiveness for Gallery */
@media (max-width: 1200px) {
    .gallery-wheel-container { height: 450px; }
    .gallery-wheel { width: 1200px; height: 1200px; margin-left: -600px; top: 40px; }
    .gallery-card { width: 160px; height: 230px; margin-left: -80px; transform-origin: 50% 600px; }
}

@media (max-width: 768px) {
    .gallery-section {
        padding: 60px 0 80px;
    }
    .gallery-wheel-container { 
        height: 250px; /* Reduced height to move heading upward */
        margin-bottom: 20px;
        overflow: hidden; /* Hides the bottom remaining part of the circle */
    }
    .gallery-wheel { 
        width: 800px; 
        height: 800px; 
        margin-left: -400px; 
        top: 20px; 
    }
    .gallery-card { 
        width: 110px; 
        height: 160px; 
        margin-left: -55px; 
        transform-origin: 50% 400px; 
    }
    .gallery-text {
        margin-top: 10px;
    }
    .gallery-text h2 { font-size: 32px; }
}

/* Contact Section Redesign */
.contact-section {
    background-color: #1F1F1F;
    padding: 120px 8%;
    position: relative;
    z-index: 20;
}

.contact-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    gap: 60px;
}

.contact-left {
    flex: 1;
    max-width: 500px;
}

.contact-badge {
    color: #00AEEF;
    font-size: 15px;
    font-weight: 600;
    display: block;
    margin-bottom: 15px;
}

.contact-left h2 {
    color: white;
    font-size: 52px;
    font-weight: 500;
    margin-top: 25px;
    margin-bottom: 15px;
    line-height: 1.1;
}

.contact-subtitle {
    color: #aaa;
    font-size: 18px;
    margin-bottom: 50px;
    line-height: 1.5;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background-color: #333;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #00AEEF;
    flex-shrink: 0;
}

.contact-info h4 {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-info p {
    color: #999;
    font-size: 15px;
}

/* Contact Form Right Side */
.contact-right {
    flex: 1;
    max-width: 550px;
    width: 100%;
    background-color: #2A2A2A;
    padding: 40px;
    border-radius: 20px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field label {
    color: #ddd;
    font-size: 14px;
    font-weight: 500;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    background-color: #333;
    border: 1px solid transparent;
    border-radius: 0;
    padding: 16px 20px;
    color: white;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: #00AEEF;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #888;
}

.select-wrapper {
    position: relative;
}

.select-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.select-wrapper select:invalid {
    color: #888;
}

.select-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    pointer-events: none;
    filter: invert(1);
    opacity: 0.5;
}

.submit-btn {
    width: 100%;
    background-color: #00AEEF; /* Primary color */
    color: white;
    border: none;
    border-radius: 0;
    padding: 18px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: #008fcc;
    transform: translateY(-2px);
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 5px;
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #00AEEF;
    cursor: pointer;
}

.form-checkbox label {
    color: #999;
    font-size: 13px;
    line-height: 1.5;
}

.form-checkbox label strong {
    color: white;
    font-weight: 600;
    cursor: pointer;
}

@media (max-width: 992px) {
    .contact-container {
        flex-direction: column;
        gap: 60px;
    }
    .contact-left h2 {
        font-size: 40px;
    }
    .contact-right {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 80px 20px;
    }
    .contact-right {
        padding: 30px 20px;
    }
    .contact-left h2 {
        font-size: 32px;
    }
}

/* Footer Section */
.site-footer {
    background-color: #171717;
    color: white;
    padding: 80px 8% 40px;
    position: relative;
    z-index: 20;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-top {
    margin-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 60px;
}

.footer-heading {
    font-size: 130px;
    font-weight: 500;
    letter-spacing: -3px;
    display: flex;
    align-items: center;
    line-height: 1;
}

.footer-arrow {
    display: inline-block;
    width: 100px;
    height: 100px;
    background-color: #00AEEF;
    -webkit-mask: url('images/icons/Union.svg') no-repeat center / contain;
    mask: url('images/icons/Union.svg') no-repeat center / contain;
    margin-left: 30px;
    margin-top: -20px;
}

.footer-middle {
    display: flex;
    justify-content: space-between;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-col {
    flex: 1;
    padding: 0 40px;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.footer-col:first-child {
    padding-left: 0;
}

.footer-col:last-child {
    padding-right: 0;
    border-right: none;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 30px;
}

.footer-desc {
    color: #999;
    font-size: 14px;
    line-height: 1.6;
    max-width: 250px;
}

.footer-col h4 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 30px;
    color: white;
}

.footer-col p, .footer-col a {
    color: #999;
    font-size: 14px;
    text-decoration: none;
    margin-bottom: 15px;
    display: block;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: white;
}

.footer-col ul {
    list-style: none;
}

.mt-40 {
    margin-top: 40px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    color: #999;
    font-size: 13px;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-icon {
    display: inline-block;
    width: 32px; /* Increased icon size */
    height: 32px;
    background-color: white; /* Default color */
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.social-icon:hover {
    background-color: #00AEEF; /* Change to primary color on hover */
    transform: translateY(-3px); /* Subtle lift on hover */
}

@media (max-width: 1200px) {
    .footer-heading {
        font-size: 90px;
    }
    .footer-col {
        padding: 0 20px;
    }
}

@media (max-width: 992px) {
    .footer-middle {
        flex-wrap: wrap;
    }
    .footer-col {
        flex: 0 0 50%;
        margin-bottom: 40px;
        border-right: none;
        padding: 0 20px;
    }
    .footer-heading {
        font-size: 70px;
    }
    .footer-arrow {
        width: 60px;
        height: 60px;
    }
    
    /* Testimonials Tablet Layout */
    .testi-card {
        flex: 0 0 calc((100% - 30px) / 2);
    }
}

@media (max-width: 768px) {
    .footer-heading {
        font-size: 50px;
        letter-spacing: -1px;
    }
    .footer-arrow {
        width: 40px;
        height: 40px;
        margin-left: 15px;
        margin-top: -10px;
    }
    .footer-col {
        flex: 0 0 100%;
        padding: 0;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    /* Recent Works Mobile Layout */
    .works-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
        margin-bottom: 50px;
    }
    .works-title-area h2 {
        font-size: 32px; /* Scale down heading */
    }
    .work-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .work-title {
        font-size: 18px;
    }
    .work-arrow {
        display: none;
    }
    .work-category {
        font-size: 11px;
    }
    
    /* Testimonials Mobile Layout */
    .testimonials-header-centered {
        margin-bottom: 40px;
        text-align: left;
    }
    .testimonials-header-centered h2 {
        font-size: 32px; /* Scale down heading to match recent works */
    }
    .testi-card {
        flex: 0 0 100%;
    }
    
    /* About Us Mobile Layout */
    .about-us {
        padding: 80px 20px 40px;
        margin-top: 0;
        border-radius: 0;
        min-height: auto; /* Allow height to fit content on mobile */
    }
    .about-container {
        gap: 60px;
    }
    .story-intro h2 {
        font-size: 28px;
        line-height: 1.3;
        margin: 0;
        text-align: center;
    }
    .story-content {
        flex-direction: column;
        gap: 40px;
    }
    .story-info {
        border-left: none;
        padding-left: 0;
        align-items: center;
        text-align: center;
    }
    .story-info h3 {
        font-size: 24px;
    }
    .story-info p {
        font-size: 15px;
        margin-bottom: 10px;
    }
    .stats-grid {
        flex-direction: column;
        gap: 40px;
    }
    .stat-header {
        justify-content: center;
    }
    .stat-desc {
        text-align: center;
    }
    
    /* Innovation Mobile Layout */
    .innovation-section {
        padding: 80px 20px;
        min-height: auto;
    }
    .innovation-container {
        font-size: 38px; /* Slightly reduced to ensure it fits mobile screens without cutoff */
        align-items: flex-start;
        width: 100%;
        max-width: max-content;
        margin: 0 auto; /* Center the entire staggered block */
        gap: 15px;
    }
    .inno-line {
        gap: 15px;
    }
    .line-1, .line-3 {
        margin-left: 95px; /* Exactly offsets the image (80px) + gap (15px) */
    }
    .line-2 {
        margin-left: 0;
    }
    .inno-img-wrapper {
        width: 80px;
        height: 40px;
    }
    .inno-btn {
        width: 60px;
        height: 34px;
    }
    .inno-btn img {
        width: 16px;
    }
    
    /* Services Mobile Layout */
    .services-section {
        min-height: auto;
        padding: 60px 20px;
    }
    .services-header {
        text-align: left;
    }
    .services-header h2 {
        font-size: 26px; /* Slightly increased but still fits in 2 lines */
    }
    .services-content {
        flex-direction: column;
        gap: 30px;
    }
    .services-image {
        width: 100%;
        order: -1; /* Image on top */
    }
    .services-accordion {
        width: 100%;
    }
    .accordion-item {
        padding: 20px 0;
        margin: 0;
        background-color: transparent; /* Remove solid background */
    }
    .accordion-item.active {
        background-color: transparent;
        color: white; /* Active text is white */
        border-bottom: 1px solid #333;
    }
    .accordion-item.active + .accordion-item {
        border-top: none;
    }
    .accordion-title {
        font-size: 20px;
        width: 100%;
    }
    .acc-icon {
        display: flex !important; /* Always show icons on mobile */
        width: 20px;
        height: 20px;
        margin-top: 0;
        margin-right: 15px;
    }
    .acc-icon img {
        /* Convert icon to primary blue color #00AEEF */
        filter: invert(53%) sepia(61%) saturate(5412%) hue-rotate(163deg) brightness(101%) contrast(101%) !important;
    }
    .accordion-item:not(.active) .acc-icon {
        opacity: 0.4; /* Dim the arrow for inactive items */
    }
    .accordion-num {
        margin-left: auto; /* Push numbers to the far right */
        margin-top: 0;
        color: #00AEEF;
        font-size: 14px;
    }
}
