:root {
    --brand-blue: #0A2342;
    --brand-gold: #FFD700;
    --brand-light-gray: #F3F4F6;
    --brand-white: #FFFFFF;
    --brand-scroll-blue: #3F90D5;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--brand-light-gray);
    color: var(--brand-blue);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

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

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

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--brand-gold);
    color: var(--brand-blue);
    padding: 8px;
    z-index: 100;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--brand-blue) 0%, #0d2d5a 100%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    backdrop-filter: blur(10px);
}

.embroidery-loader {
    position: relative;
    width: 140px;
    height: 140px;
    display: flex;
    justify-content: center;
    align-items: center;
    filter: drop-shadow(0 10px 30px rgba(255, 215, 0, 0.3));
}

.thread {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid transparent;
    animation: thread-spin 2s ease-in-out infinite;
}

.thread:nth-child(1) {
    border-top-color: var(--brand-gold);
    border-right-color: var(--brand-gold);
    animation-delay: 0s;
    opacity: 0.9;
}

.thread:nth-child(2) {
    border-top-color: var(--brand-white);
    border-left-color: var(--brand-white);
    animation-delay: -0.6s;
    opacity: 0.7;
    width: 85%;
    height: 85%;
}

.thread:nth-child(3) {
    border-bottom-color: var(--brand-gold);
    border-right-color: var(--brand-gold);
    animation-delay: -1.2s;
    opacity: 0.5;
    width: 70%;
    height: 70%;
}

.loader-logo-container {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    box-shadow: 
        0 0 30px rgba(255, 215, 0, 0.6),
        0 0 60px rgba(255, 215, 0, 0.3),
        inset 0 2px 10px rgba(255, 255, 255, 0.5);
    animation: logo-pulse 1.5s ease-in-out infinite;
    border: 3px solid rgba(255, 215, 0, 0.3);
}

.loader-logo {
    width: 45px;
    height: 45px;
    object-fit: contain;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.1));
}

@keyframes thread-spin {
    0% { 
        transform: rotate(0deg) scale(1);
        opacity: 1;
    }
    50% {
        transform: rotate(180deg) scale(1.05);
        opacity: 0.8;
    }
    100% { 
        transform: rotate(360deg) scale(1);
        opacity: 1;
    }
}

@keyframes logo-pulse {
    0%, 100% { 
        transform: scale(1) rotate(0deg);
        box-shadow: 
            0 0 30px rgba(255, 215, 0, 0.6),
            0 0 60px rgba(255, 215, 0, 0.3);
    }
    50% { 
        transform: scale(1.08) rotate(5deg);
        box-shadow: 
            0 0 40px rgba(255, 215, 0, 0.8),
            0 0 80px rgba(255, 215, 0, 0.4);
    }
}

.loader-text {
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-align: center;
    margin-top: 40px;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: text-glow 2s ease-in-out infinite;
}

@keyframes text-glow {
    0%, 100% {
        opacity: 1;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }
    50% {
        opacity: 0.8;
        text-shadow: 
            0 2px 10px rgba(0, 0, 0, 0.3),
            0 0 20px rgba(255, 215, 0, 0.4);
    }
}

.loader-progress {
    width: 250px;
    height: 5px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    margin-top: 30px;
    overflow: hidden;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.loader-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, 
        var(--brand-gold) 0%, 
        #ffed4e 50%, 
        var(--brand-gold) 100%);
    background-size: 200% 100%;
    border-radius: 10px;
    animation: progress-loading 2s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}

@keyframes progress-loading {
    0% { 
        width: 0%;
        background-position: 0% 0%;
    }
    50% { 
        width: 80%;
        background-position: 100% 0%;
    }
    100% {
        width: 100%;
        background-position: 200% 0%;
    }
    100% { width: 100%; }
}

.header-sticky {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.98) 0%, 
        rgba(255, 255, 255, 0.95) 100%);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(10, 35, 66, 0.05);
}

/* === HEADER LOGO - EMBROIDERY THEMED === */
.logo-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

/* Stitching effect border */
.logo-container::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, 
        transparent 0%, 
        rgba(255, 215, 0, 0.1) 25%, 
        transparent 50%, 
        rgba(255, 215, 0, 0.1) 75%, 
        transparent 100%);
    background-size: 200% 200%;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: -1;
}

.header-sticky .logo-container {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Logo Text - Unified for Header & Footer */
.header-logo-text,
.footer-logo-text {
    text-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.group:hover .header-logo-text,
.group:hover .footer-logo-text {
    text-shadow: 0 3px 15px rgba(255, 215, 0, 0.6);
    letter-spacing: 0.8px;
}

/* Footer specific - white text with golden glow */
footer .footer-logo-text {
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

footer .group:hover .footer-logo-text {
    color: var(--brand-gold);
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
}

/* Header sticky state */
.header-sticky .header-logo-text {
    color: var(--brand-blue);
    text-shadow: 0 2px 10px rgba(10, 35, 66, 0.1);
}

.header-sticky .group:hover .header-logo-text {
    text-shadow: 0 3px 12px rgba(255, 215, 0, 0.4);
}

/* Tagline - Unified */
.header-logo-subtext,
.footer-logo-subtext {
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

.header-sticky .header-logo-subtext {
    color: var(--brand-scroll-blue);
    text-shadow: none;
}

/* Logo Image Effects - Unified for Header & Footer */
#logo-img,
#footer-logo-img {
    filter: drop-shadow(0 4px 10px rgba(255, 215, 0, 0.4));
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.group:hover #logo-img,
.group:hover #footer-logo-img {
    filter: drop-shadow(0 6px 15px rgba(255, 215, 0, 0.6));
    animation: logoFloat 2s ease-in-out infinite;
}

/* Logo floating animation - Shared */
@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-3px) rotate(2deg);
    }
    50% {
        transform: translateY(0) rotate(0deg);
    }
    75% {
        transform: translateY(-3px) rotate(-2deg);
    }
}

/* Header sticky state */
.header-sticky #logo-img {
    filter: drop-shadow(0 2px 8px rgba(10, 35, 66, 0.2));
}

.header-sticky .group:hover #logo-img {
    filter: drop-shadow(0 4px 12px rgba(255, 215, 0, 0.4));
}

/* Slow Spin Animation for Stars */
@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-spin-slow {
    animation: spin-slow 3s linear infinite;
}

/* Logo Hover Enhancements - Embroidery Animation */
.group:hover .logo-container {
    box-shadow: 
        0 4px 20px rgba(255, 215, 0, 0.4),
        0 0 40px rgba(255, 215, 0, 0.3),
        inset 0 0 20px rgba(255, 215, 0, 0.1);
    animation: stitchGlow 1.5s ease-in-out infinite;
}

.group:hover .logo-container::before {
    opacity: 1;
    animation: stitchMove 2s linear infinite;
}

/* Embroidery stitch animation */
@keyframes stitchGlow {
    0%, 100% {
        box-shadow: 
            0 4px 20px rgba(255, 215, 0, 0.4),
            0 0 40px rgba(255, 215, 0, 0.3),
            inset 0 0 20px rgba(255, 215, 0, 0.1);
    }
    50% {
        box-shadow: 
            0 6px 25px rgba(255, 215, 0, 0.5),
            0 0 50px rgba(255, 215, 0, 0.4),
            inset 0 0 30px rgba(255, 215, 0, 0.15);
    }
}

@keyframes stitchMove {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 200% 200%;
    }
}

.header-sticky .group:hover .logo-container {
    box-shadow: 
        0 4px 20px rgba(10, 35, 66, 0.2),
        0 0 30px rgba(255, 215, 0, 0.2),
        inset 0 0 15px rgba(255, 215, 0, 0.05);
}

.header-sticky .header-logo-subtext {
    color: var(--brand-scroll-blue);
}

.header-sticky .nav-link {
    color: var(--brand-blue);
}

.header-sticky .nav-link:hover {
    color: var(--brand-gold);
}

#mobile-menu-btn {
    color: var(--brand-gold);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
}

#mobile-menu-btn * {
    pointer-events: none; /* Icon clicks go to button */
}

.header-sticky #mobile-menu-btn {
    color: var(--brand-blue);
}

/* === SCROLL PROGRESS BAR === */
#scroll-progress-bar {
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

#scroll-progress-fill {
    background: linear-gradient(90deg, var(--brand-gold), #ffed4e, var(--brand-gold));
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

/* === HERO SLIDER - ENHANCED ANIMATIONS === */
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--brand-blue);
    opacity: 0;
    visibility: hidden;
    transform: scale(1.1);
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), 
                visibility 0s 1.2s,
                transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    filter: brightness(0.9);
    will-change: opacity, transform;
    contain: layout style paint;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), 
                visibility 0s 0s,
                transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3;
    filter: brightness(1);
    animation: kenBurnsZoom 15s ease-in-out infinite alternate;
}

/* Ken Burns Effect - Smooth Zoom */
@keyframes kenBurnsZoom {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.08);
    }
}

/* Slide Text - Smooth Entry Animation */
.hero-slide .slide-text {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s, 
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

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

/* Slide Text Children - Staggered Animation */
.hero-slide .slide-text > * {
    opacity: 0;
    transform: translateY(20px);
}

.hero-slide.active .slide-text > *:nth-child(1) {
    animation: fadeInUp 0.6s ease forwards 0.4s;
}

.hero-slide.active .slide-text > *:nth-child(2) {
    animation: fadeInUp 0.6s ease forwards 0.6s;
}

.hero-slide.active .slide-text > *:nth-child(3) {
    animation: fadeInUp 0.6s ease forwards 0.8s;
}

.hero-slide.active .slide-text > *:nth-child(4) {
    animation: fadeInUp 0.6s ease forwards 1s;
}

@keyframes zoom {
    from { transform: scale(1); }
    to { transform: scale(1.08); }
}

.slide-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    margin: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.slide-dot:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.5);
}

.slide-dot.bg-brand-gold {
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.6),
                0 0 20px rgba(255, 215, 0, 0.4);
}

.slide-dot::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.slide-dot:hover::before,
.slide-dot.bg-brand-gold::before {
    opacity: 1;
}

.slide-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: all 0.4s ease;
}

.slide-dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.15);
}

.slide-dot.active {
    background-color: #FFD700 !important;
    border-color: #FFD700 !important;
    transform: scale(1.4) !important;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8) !important;
}

.slide-dot.active::after {
    border-color: rgba(255, 215, 0, 0.3);
    transform: scale(1.3);
}

/* Slider controls container */
#slide-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Slider controls wrapper - better spacing */
#home > div:has(#prev-slide) {
    display: flex;
    align-items: center;
    gap: 16px;
}

.reveal-element {
    opacity: 0;
    transition: opacity 0.5s ease-out, transform 0.5s ease-out; /* Faster: 0.8s → 0.5s */
    will-change: opacity, transform;
}

.reveal-element.slide-in-up {
    transform: translateY(30px); /* Less movement: 40px → 30px */
}

.reveal-element.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.reveal-element.in-view {
    opacity: 1;
    transform: translateY(0);
}

.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(10, 35, 66, 0.15);
    border-color: var(--brand-gold);
}

.expertise-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.expertise-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.category-card .category-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.category-card:hover .category-slideshow {
    opacity: 1;
}

.category-card:hover .category-default-image {
    opacity: 0;
}

.slideshow-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.slideshow-image.active {
    opacity: 1;
}

#clients {
    position: relative;
    background-image: url('photos/map/map.jpeg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 6rem 0;
}

#clients::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 35, 66, 0.8);
}

#clients .container {
    position: relative;
    z-index: 1;
}

#clients h2, #clients p {
    color: var(--brand-white);
}



/* Animated Stitch Effect for Hero Text */
.stitch-text {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 3.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    margin: 0;
    padding: 0;
}

.stitch-text.white-stitch {
    color: transparent;
    -webkit-text-stroke: 2px white;
    text-stroke: 2px white;
    stroke-dasharray: 0, 1000;
    stroke-dashoffset: 0;
    animation: stitchDraw 3s ease-in-out forwards;
    animation-delay: 0.5s;
}

.stitch-text.gold-stitch {
    color: transparent;
    -webkit-text-stroke: 2px var(--brand-gold);
    text-stroke: 2px var(--brand-gold);
    stroke-dasharray: 0, 1000;
    stroke-dashoffset: 0;
    animation: stitchDraw 3s ease-in-out forwards;
    animation-delay: 1.2s;
}

.stitch-text::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
    background-size: 200% 100%;
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    animation: stitchShine 2s ease-in-out infinite;
    animation-delay: inherit;
}

.stitch-text.gold-stitch::before {
    background: linear-gradient(90deg, transparent 0%, rgba(255,215,0,0.4) 50%, transparent 100%);
    background-size: 200% 100%;
}

@keyframes stitchDraw {
    0% {
        stroke-dasharray: 0, 1000;
        opacity: 0;
        transform: translateY(20px);
    }
    20% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        stroke-dasharray: 1000, 0;
        opacity: 1;
    }
}

@keyframes stitchShine {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Dashed stitch effect */
.stitch-dashed {
    position: relative;
    display: inline-block;
}

.stitch-dashed::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -5px;
    right: -5px;
    height: 2px;
    background: repeating-linear-gradient(
        90deg,
        currentColor 0px,
        currentColor 3px,
        transparent 3px,
        transparent 8px
    );
    opacity: 0;
    animation: stitchLine 0.5s ease-in-out forwards;
}

.stitch-text.white-stitch .stitch-dashed::after {
    animation-delay: 0.8s;
    background: repeating-linear-gradient(
        90deg,
        white 0px,
        white 3px,
        transparent 3px,
        transparent 8px
    );
}

.stitch-text.gold-stitch .stitch-dashed::after {
    animation-delay: 1.5s;
    background: repeating-linear-gradient(
        90deg,
        var(--brand-gold) 0px,
        var(--brand-gold) 3px,
        transparent 3px,
        transparent 8px
    );
}

@keyframes stitchLine {
    0% {
        opacity: 0;
        transform: scaleX(0);
    }
    100% {
        opacity: 1;
        transform: scaleX(1);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .stitch-text {
        font-size: 2.5rem;
    }
}

@media (max-width: 640px) {
    .stitch-text {
        font-size: 2rem;
    }
}

/* Footer Logo - Uses same classes as header (no duplicate code) */


/* Responsive Design */
@media (max-width: 768px) {
    .header-logo-text {
        font-size: 1.125rem;
    }
    .header-logo-subtext {
        font-size: 0.75rem;
    }
    #desktop-menu {
        display: none;
    }
    #mobile-menu-btn {
        display: block;
    }
    .hero-slide h1, .hero-slide h2 {
        font-size: 2.25rem;
    }
    .hero-slide p {
        font-size: 1rem;
    }
    .grid-cols-1.md\:grid-cols-2.lg\:grid-cols-4 {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Expertise Slideshow Styles */
.expertise-slideshow {
    position: relative;
    overflow: hidden;
    border-radius: 0.375rem;
}

.expertise-slides {
    position: relative;
    width: 100%;
    height: 128px;
}

.expertise-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

.expertise-slide:not(.active) {
    opacity: 0;
}

.expertise-card:hover .expertise-slideshow {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

/* Expertise Modal Styles */
#expertise-modal {
    display: none;
}

#expertise-modal.flex {
    display: flex;
}

#expertise-modal img {
    display: block;
    margin: 0 auto;
}

#expertise-prev,
#expertise-next {
    transition: all 0.3s ease;
}

#expertise-prev:hover,
#expertise-next:hover {
    transform: scale(1.1);
}

#expertise-prev:disabled,
#expertise-next:disabled {
    opacity: 0.3;
    pointer-events: none;
}

@media (max-width: 640px) {
    .hero-slide h1 {
        font-size: 1.875rem;
    }
    .hero-slide p {
        font-size: 0.875rem;
    }

}

/* Expertise Slideshow Styles */
.expertise-slideshow {
    position: relative;
    overflow: hidden;
    border-radius: 0.375rem;
}

.expertise-slides {
    position: relative;
    width: 100%;
    height: 128px;
}

.expertise-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

.expertise-slide:not(.active) {
    opacity: 0;
}

.expertise-card:hover .expertise-slideshow {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

/* Expertise Modal Styles */
#expertise-modal {
    display: none;
}

#expertise-modal.flex {
    display: flex;
}

#expertise-modal img {
    display: block;
    margin: 0 auto;
}

#expertise-prev,
#expertise-next {
    transition: all 0.3s ease;
}

#expertise-prev:hover,
#expertise-next:hover {
    transform: scale(1.1);
}

#expertise-prev:disabled,
#expertise-next:disabled {
    opacity: 0.3;
    pointer-events: none;
}


/* FAQ Section Styles */
.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border: 1px solid var(--brand-light-gray);
    border-radius: 6px; /* More compact */
    margin-bottom: 6px; /* Even less spacing */
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--brand-gold);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
}

.faq-question {
    width: 100%;
    padding: 10px 16px; /* More compact */
    background: white;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem; /* Smaller font */
    font-weight: 600;
    color: var(--brand-blue);
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: var(--brand-light-gray);
}

.faq-question.active {
    background: var(--brand-blue);
    color: white;
}

.faq-icon {
    width: 20px; /* Smaller icon */
    height: 20px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 12px;
}

.faq-question.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 16px;
    background: var(--brand-light-gray);
}

.faq-answer.active {
    max-height: 200px; /* Even more compact */
    padding: 10px 16px; /* Less padding */
}

.faq-answer p {
    color: #4B5563;
    line-height: 1.5; /* Tighter line height */
    margin: 0;
    font-size: 0.95rem; /* Smaller text */
}

/* Improved Service Cards */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-gold), var(--brand-blue));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

/* Improved Expertise Cards */
.expertise-card {
    position: relative;
}

.expertise-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 35, 66, 0.05), rgba(255, 215, 0, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: 0.5rem;
}

.expertise-card:hover::after {
    opacity: 1;
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* Faster animations for better UX */
.fade-in-up,
.fade-in-left,
.fade-in-right {
    transition-duration: 0.5s !important; /* Faster animations */
}

.fade-in-up.in-view,
.fade-in-left.in-view,
.fade-in-right.in-view {
    opacity: 1 !important;
    transform: translate(0, 0) !important;
}

/* Improved Button Styles */
.btn-primary {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

/* Improved Container Spacing */
.container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (min-width: 768px) {
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Enhanced Card Shadows */
.card-shadow {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease;
}

.card-shadow:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Improved Text Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

.animate-on-load {
    animation-duration: 0.8s;
    animation-fill-mode: both;
}

.animate-on-load[data-animation="fadeInUp"] {
    animation-name: fadeInUp;
}

.animate-on-load[data-animation="slideInRight"] {
    animation-name: slideInRight;
}

.animate-on-load[data-animation="slideInLeft"] {
    animation-name: slideInLeft;
}

.animate-on-load[data-animation="zoomIn"] {
    animation-name: zoomIn;
}

.animate-on-load[data-animation="fadeInDown"] {
    animation-name: fadeInUp;
    animation-direction: reverse;
}

/* Section Improvements */
section {
    position: relative;
    overflow: hidden;
}

.section-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--brand-gold), transparent);
    margin: 0 auto;
    max-width: 200px;
}

/* Card Improvements */
.card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Image Improvements */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.img-hover-zoom {
    overflow: hidden;
}

.img-hover-zoom img {
    transition: transform 0.5s ease;
}

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

/* Grid Improvements */
.grid-auto-fit {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* Responsive Improvements */
@media (max-width: 640px) {
    .faq-question {
        font-size: 1rem;
        padding: 16px 20px;
    }
    
    .faq-answer {
        padding: 0 20px;
    }
    
    .faq-answer.active {
        padding: 16px 20px;
    }
    
    .grid-auto-fit {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Loading State */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Focus Styles for Accessibility */
button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--brand-gold);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    header, footer, .skip-link, #preloader {
        display: none;
    }
    
    body {
        background: white;
    }
    
    section {
        page-break-inside: avoid;
    }
}
/* ============================================
   ENHANCED STYLES FOR W.A. EMBROIDERY
   3D Effects, Better Animations, Professional Look
   ============================================ */

/* Import existing styles */

/* ============================================
   SERVICE CARDS - 3D HOVER EFFECTS
   ============================================ */

.service-card-3d {
    position: relative;
    transform-style: preserve-3d;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
}

.service-card-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(10, 35, 66, 0.1));
    border-radius: 0.5rem;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.service-card-3d:hover {
    transform: translateY(-15px) rotateX(5deg) rotateY(5deg) scale(1.02);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 215, 0, 0.1),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
}

.service-card-3d:hover::before {
    opacity: 1;
}

.service-card-3d img {
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.service-card-3d:hover img {
    transform: scale(1.1) translateZ(20px);
}

/* Shine effect on hover */
.service-card-3d::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    transition: transform 0.6s ease;
}

.service-card-3d:hover::after {
    transform: translateX(100%) translateY(100%) rotate(45deg);
}

/* ============================================
   EXPERTISE CARDS - FLIP EFFECT
   ============================================ */

.expertise-card-flip {
    perspective: 1000px;
    height: 300px;
}

.expertise-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.expertise-card-flip:hover .expertise-card-inner {
    transform: rotateY(180deg);
}

.expertise-card-front,
.expertise-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 0.75rem;
    overflow: hidden;
}

.expertise-card-back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-gold));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: white;
}

/* ============================================
   GALLERY IMAGES - ZOOM & TILT
   ============================================ */

.gallery-item-3d {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    transform-style: preserve-3d;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.gallery-item-3d:hover {
    transform: scale(1.05) translateZ(20px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 2px rgba(255, 215, 0, 0.5);
    z-index: 10;
}

.gallery-item-3d img {
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.gallery-item-3d:hover img {
    transform: scale(1.15) rotate(2deg);
}

/* Overlay effect */
.gallery-item-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(10, 35, 66, 0.8),
        rgba(255, 215, 0, 0.6)
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.gallery-item-3d:hover::before {
    opacity: 1;
}

/* View icon */
.gallery-item-3d .view-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    z-index: 2;
    color: white;
    font-size: 3rem;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.gallery-item-3d:hover .view-icon {
    transform: translate(-50%, -50%) scale(1);
}

/* ============================================
   ABOUT SECTION - FLOATING ANIMATION
   ============================================ */

.float-animation {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.pulse-animation {
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 20px rgba(255, 215, 0, 0);
    }
}

/* ============================================
   COUNTER SECTION - ANIMATED BACKGROUND
   ============================================ */

.counter-bg-animated {
    position: relative;
    overflow: hidden;
}

.counter-bg-animated::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 215, 0, 0.03) 10px,
        rgba(255, 215, 0, 0.03) 20px
    );
    animation: slide 20s linear infinite;
}

@keyframes slide {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

/* ============================================
   BUTTONS - 3D PRESS EFFECT
   ============================================ */

.btn-3d {
    position: relative;
    transform-style: preserve-3d;
    transition: all 0.2s ease;
    box-shadow: 
        0 6px 0 var(--brand-blue),
        0 8px 10px rgba(0, 0, 0, 0.3);
}

.btn-3d:hover {
    transform: translateY(2px);
    box-shadow: 
        0 4px 0 var(--brand-blue),
        0 6px 8px rgba(0, 0, 0, 0.3);
}

.btn-3d:active {
    transform: translateY(6px);
    box-shadow: 
        0 0 0 var(--brand-blue),
        0 2px 5px rgba(0, 0, 0, 0.3);
}

/* ============================================
   CLIENT LOGOS - BOUNCE ON HOVER
   ============================================ */

.client-logo-bounce {
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.client-logo-bounce:hover {
    transform: translateY(-10px) scale(1.1);
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(-10px) scale(1.1);
    }
    50% {
        transform: translateY(-20px) scale(1.15);
    }
}

/* ============================================
   TESTIMONIALS - CARD TILT
   ============================================ */

.testimonial-tilt {
    transition: all 0.3s ease;
}

.testimonial-tilt:hover {
    transform: perspective(1000px) rotateX(5deg) rotateY(5deg);
    box-shadow: 
        -10px 10px 30px rgba(0, 0, 0, 0.2),
        10px -10px 30px rgba(255, 215, 0, 0.1);
}

/* ============================================
   SECTION HEADERS - UNDERLINE ANIMATION
   ============================================ */

.section-title-animated {
    position: relative;
    display: inline-block;
}

.section-title-animated::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-gold), var(--brand-blue));
    transform: translateX(-50%);
    transition: width 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 2px;
}

.section-title-animated.in-view::after {
    width: 100%;
}

/* ============================================
   CONTACT FORM - FOCUS EFFECTS
   ============================================ */

.input-3d {
    position: relative;
    transition: all 0.3s ease;
}

.input-3d:focus {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 20px rgba(255, 215, 0, 0.3),
        0 0 0 3px rgba(255, 215, 0, 0.1);
}

/* ============================================
   SCROLL ANIMATIONS - FADE IN UP
   ============================================ */

.fade-in-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.fade-in-up.in-view {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.fade-in-left.in-view {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.fade-in-right.in-view {
    opacity: 1;
    transform: translateX(0);
}

/* ============================================
   PARALLAX EFFECT FOR SECTIONS
   ============================================ */

.parallax-section {
    position: relative;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* ============================================
   LOADING SKELETON
   ============================================ */

.skeleton {
    background: linear-gradient(
        90deg,
        #f0f0f0 25%,
        #e0e0e0 50%,
        #f0f0f0 75%
    );
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ============================================
   GLASSMORPHISM EFFECT
   ============================================ */

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

/* ============================================
   GRADIENT TEXT
   ============================================ */

.gradient-text {
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 768px) {
    .service-card-3d:hover {
        transform: translateY(-10px) scale(1.02);
    }
    
    .gallery-item-3d:hover {
        transform: scale(1.03);
    }
    
    .btn-3d {
        box-shadow: 
            0 4px 0 var(--brand-blue),
            0 6px 8px rgba(0, 0, 0, 0.3);
    }
}

/* ============================================
   PERFORMANCE OPTIMIZATIONS
   ============================================ */

.will-change-transform {
    will-change: transform;
}

.will-change-opacity {
    will-change: opacity;
}

/* GPU Acceleration */
.gpu-accelerated {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}


/* ============================================
   MODAL IMPROVEMENTS
   ============================================ */

#expertise-modal {
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

#expertise-modal .bg-white {
    animation: slideInUp 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

#expertise-modal-image {
    transition: opacity 0.3s ease;
}

#expertise-modal-image.loading {
    opacity: 0.5;
}

/* Modal Navigation Buttons */
#expertise-prev,
#expertise-next {
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

#expertise-prev:hover:not([style*="pointer-events: none"]),
#expertise-next:hover:not([style*="pointer-events: none"]) {
    transform: scale(1.1);
}

#expertise-prev:active,
#expertise-next:active {
    transform: scale(0.95);
}

/* Image Counter Badge */
#modal-image-counter {
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.5s ease;
}

/* ============================================
   GALLERY IMPROVEMENTS
   ============================================ */

.category-card {
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(10, 35, 66, 0.2));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.category-card:hover::before {
    opacity: 1;
}

.category-card img {
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.category-card:hover img {
    transform: scale(1.15);
}

/* Category Slideshow */
.category-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.category-card:hover .category-slideshow {
    opacity: 1;
}

.category-card:hover .category-default-image {
    opacity: 0;
}

/* ============================================
   FILTER BUTTONS
   ============================================ */

.gallery-filter-btn {
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

.gallery-filter-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.gallery-filter-btn:hover::before {
    width: 300px;
    height: 300px;
}

.gallery-filter-btn.active {
    transform: scale(1.05);
}

/* ============================================
   EXPERTISE CARDS IMPROVEMENTS
   ============================================ */

.expertise-card {
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
}

.expertise-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, var(--brand-gold), var(--brand-blue));
    transition: height 0.4s ease;
}

.expertise-card:hover::before {
    height: 100%;
}

.expertise-card:hover {
    transform: translateX(8px);
    box-shadow: -8px 8px 20px rgba(0, 0, 0, 0.15);
}

/* ============================================
   SECTION HEADERS IMPROVEMENTS
   ============================================ */

.section-header-enhanced {
    position: relative;
    padding-bottom: 1rem;
}

.section-header-enhanced::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--brand-gold), transparent);
    border-radius: 2px;
}

/* ============================================
   LOADING STATES
   ============================================ */

.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 215, 0, 0.3);
    border-top-color: var(--brand-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   TOOLTIP STYLES
   ============================================ */

[data-tooltip] {
    position: relative;
}

[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    padding: 8px 12px;
    background: var(--brand-blue);
    color: white;
    font-size: 0.875rem;
    white-space: nowrap;
    border-radius: 6px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
}

[data-tooltip]:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}

/* ============================================
   BADGE STYLES
   ============================================ */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    background: var(--brand-gold);
    color: var(--brand-blue);
}

.badge-outline {
    background: transparent;
    border: 2px solid var(--brand-gold);
    color: var(--brand-gold);
}

/* ============================================
   IMPROVED SHADOWS
   ============================================ */

.shadow-soft {
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.shadow-medium {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.shadow-hard {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.16);
}

.shadow-gold {
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
}

.shadow-blue {
    box-shadow: 0 4px 20px rgba(10, 35, 66, 0.3);
}

/* ============================================
   RESPONSIVE MODAL
   ============================================ */

@media (max-width: 768px) {
    #expertise-modal .bg-white {
        max-width: 95vw;
        max-height: 95vh;
    }
    
    #expertise-modal-image {
        max-height: 60vh;
    }
    
    #expertise-prev,
    #expertise-next {
        padding: 0.75rem;
    }
    
    #expertise-prev i,
    #expertise-next i {
        width: 1.5rem;
        height: 1.5rem;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    #expertise-modal,
    .gallery-filter-btn,
    #expertise-prev,
    #expertise-next {
        display: none !important;
    }
}


/* ============================================
   ADDITIONAL ENHANCEMENTS - 2024
   Better animations, transitions, and effects
   ============================================ */

/* Stagger animation for children - REMOVED */
/* Client logos now visible by default with hover effects */

/* Enhanced service card transitions */
.service-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.service-card img {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Gallery item enhanced hover */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 35, 66, 0.7), rgba(255, 215, 0, 0.5));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item::after {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 3rem;
    z-index: 2;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
}

.gallery-item:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.gallery-item img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Enhanced header transition */
#main-header {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    border-bottom: 1px solid transparent;
}

#main-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, 
        rgba(10, 35, 66, 0.8) 0%, 
        rgba(10, 35, 66, 0.6) 50%,
        transparent 100%);
    opacity: 1;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: -1;
}

#main-header.header-sticky::before {
    opacity: 0;
}

/* Better mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 0.3s ease;
}

#mobile-menu.hidden {
    display: none !important;
    opacity: 0;
    pointer-events: none;
}

#mobile-menu:not(.hidden) {
    display: block !important;
    opacity: 1;
    pointer-events: auto;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced expertise cards */
.expertise-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.expertise-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
    transition: left 0.5s ease;
}

.expertise-card:hover::before {
    left: 100%;
}

/* Better testimonial cards */
.testimonial-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Enhanced client logos */
.client-logo {
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    filter: grayscale(100%);
}

.client-logo:hover {
    filter: grayscale(0%);
    transform: scale(1.1) rotate(5deg);
}

/* Better form inputs */
input, textarea, select {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

input:focus, textarea:focus, select:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
}

/* Enhanced scroll indicator */
.scroll-indicator {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Better loading states */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

/* Enhanced button hover states */
.btn-3d {
    position: relative;
    overflow: hidden;
}

.btn-3d::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-3d:hover::before {
    width: 300px;
    height: 300px;
}

/* Smooth page transitions */
body {
    transition: opacity 0.3s ease;
}

/* Better focus states for accessibility */
*:focus-visible {
    outline: 3px solid var(--brand-gold);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Enhanced section dividers */
.section-divider {
    position: relative;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--brand-gold), transparent);
    margin: 3rem auto;
    max-width: 200px;
    border-radius: 2px;
}

.section-divider::before,
.section-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 8px;
    height: 8px;
    background: var(--brand-gold);
    border-radius: 50%;
    transform: translateY(-50%);
}

.section-divider::before {
    left: -15px;
}

.section-divider::after {
    right: -15px;
}

/* Better responsive images */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Enhanced card shadows on hover */
.card-hover-shadow {
    transition: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover-shadow:hover {
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 215, 0, 0.1);
}

/* Better text selection */
::selection {
    background: var(--brand-gold);
    color: var(--brand-blue);
}

::-moz-selection {
    background: var(--brand-gold);
    color: var(--brand-blue);
}

/* Enhanced scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--brand-light-gray);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--brand-gold), var(--brand-blue));
    border-radius: 6px;
    border: 2px solid var(--brand-light-gray);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--brand-blue), var(--brand-gold));
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .service-card:hover {
        transform: translateY(-5px);
    }
    
    .gallery-item:hover {
        transform: scale(1.02);
    }
    
    .expertise-card:hover {
        transform: translateY(-5px);
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {
    .no-print,
    header,
    footer,
    #preloader,
    #scroll-progress,
    .btn-3d,
    button {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    section {
        page-break-inside: avoid;
    }
}


/* Hero Slider - Better Layout */
#home {
    position: relative;
}

/* CTA Buttons - Higher position */
#home > div:has(a[href="#services"]) {
    bottom: 140px !important;
}

/* Slider Controls - Middle position */
#home > div:has(#slide-controls) {
    bottom: 70px !important;
}

/* Scroll Indicator - Bottom position */
#home > div:has(.scroll-indicator),
#home > div.animate-bounce {
    bottom: 20px !important;
}

/* Slider Navigation Buttons */
#prev-slide,
#next-slide {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#prev-slide:hover,
#next-slide:hover {
    background: var(--brand-gold);
    color: var(--brand-blue);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

#prev-slide:active,
#next-slide:active {
    transform: scale(0.95);
}

/* Slider Progress Line - Synchronized */
#slider-progress-line {
    background: linear-gradient(90deg, var(--brand-gold), #ffed4e, var(--brand-gold));
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6),
                0 0 25px rgba(255, 215, 0, 0.4);
    height: 100%;
    width: 0%;
}

/* Scroll Indicator Animation */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: bounce-smooth 2s infinite;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scroll-indicator:hover {
    transform: translateY(-5px);
}

@keyframes bounce-smooth {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-15px);
    }
    60% {
        transform: translateY(-8px);
    }
}

/* Mobile Responsive for Slider Controls */
@media (max-width: 768px) {
    /* Hero Slide Text - Better Mobile Spacing */
    .hero-slide .slide-text {
        padding: 1.5rem 1rem !important;
        max-width: 100% !important;
    }
    
    .hero-slide h1 {
        font-size: 2rem !important;
        margin-bottom: 1rem !important;
        line-height: 1.2 !important;
    }
    
    .hero-slide p {
        font-size: 0.875rem !important;
        margin-bottom: 0.75rem !important;
        line-height: 1.5 !important;
    }
    
    .hero-slide .inline-flex {
        font-size: 0.75rem !important;
        padding: 0.5rem 0.75rem !important;
        margin-bottom: 1rem !important;
    }
    
    /* CTA Buttons on mobile - Better Positioning */
    #home > div:has(a[href="#services"]) {
        bottom: 140px !important;
        padding: 0 1rem !important;
        width: calc(100% - 2rem) !important;
        left: 1rem !important;
        transform: none !important;
    }
    
    #home > div:has(a[href="#services"]) > div {
        flex-direction: column !important;
        gap: 0.75rem !important;
        width: 100% !important;
    }
    
    #home > div:has(a[href="#services"]) a {
        width: 100% !important;
        justify-content: center !important;
        padding: 0.875rem 1.5rem !important;
        font-size: 0.875rem !important;
        text-align: center !important;
    }
    
    /* Slider Controls on mobile */
    #home > div:has(#slide-controls) {
        bottom: 70px !important;
    }
    
    /* Scroll Indicator on mobile */
    #home > div:has(.scroll-indicator),
    #home > div.animate-bounce {
        bottom: 20px !important;
    }
    
    #prev-slide,
    #next-slide {
        width: 36px;
        height: 36px;
        padding: 0.5rem !important;
    }
    
    .slide-dot {
        width: 10px !important;
        height: 10px !important;
    }
    
    #slide-controls {
        padding: 8px 12px;
        gap: 8px;
    }
}

@media (max-width: 640px) {
    /* Smaller text on very small screens */
    .hero-slide h1 {
        font-size: 1.5rem !important;
    }
    
    .hero-slide .stitch-text {
        font-size: 1.5rem !important;
    }
    
    .hero-slide p {
        font-size: 0.8rem !important;
    }
    
    /* CTA Buttons - More spacing */
    #home > div:has(a[href="#services"]) {
        bottom: 130px !important;
    }
    
    #home > div:has(a[href="#services"]) a {
        padding: 0.75rem 1.25rem !important;
        font-size: 0.8rem !important;
    }
    
    #home > div:has(#slide-controls) {
        bottom: 60px !important;
    }
    
    /* Hide scroll indicator on very small screens */
    #home > div:has(.scroll-indicator),
    #home > div.animate-bounce {
        display: none !important;
    }
    
    #prev-slide,
    #next-slide {
        width: 32px;
        height: 32px;
    }
    
    .slide-dot {
        width: 8px !important;
        height: 8px !important;
    }
    
    #slide-controls {
        padding: 6px 10px;
        gap: 6px;
    }
}

/* ============================================
   CLIENT LOGOS - ENHANCED STYLING
   ============================================ */

/* Client Logo Container - Rounded with Golden Effect */
.client-logo-container {
    width: 140px;
    height: 140px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1), 0 0 0 3px rgba(255, 215, 0, 0.4);
    border-radius: 50%;
    border: 2px solid rgba(255, 215, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Client Logo Image */
.client-logo-img {
    width: 90%; /* Balanced size for all logos */
    height: 90%;
    object-fit: contain; /* Proper fit without zoom */
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: grayscale(10%) brightness(1.05);
    padding: 5px; /* Small padding for better spacing */
}

/* Client Logo Link */
.client-logo-link {
    display: inline-block;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover Effects */
.client-logo-link:hover .client-logo-container {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 35px rgba(255, 215, 0, 0.5), 0 0 0 4px rgba(255, 215, 0, 0.6), 0 0 30px rgba(255, 215, 0, 0.3);
    border-color: rgba(255, 215, 0, 0.7);
    background: linear-gradient(135deg, #ffffff 0%, #fffef5 100%);
}

.client-logo-link:hover .client-logo-img {
    transform: scale(1.05) rotate(3deg);
    filter: grayscale(0%) brightness(1.1); /* Full color, brighter */
}

/* Shine Effect on Hover */
.client-logo-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 215, 0, 0.2) 50%,
        transparent 70%
    );
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    transition: transform 0.6s ease;
}

.client-logo-link:hover .client-logo-container::before {
    transform: translateX(100%) translateY(100%) rotate(45deg);
}

/* Active/Click Effect */
.client-logo-link:active .client-logo-container {
    transform: translateY(-5px) scale(1.02);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .client-logo-container {
        width: 120px;
        height: 120px;
    }
    
    .client-logo-img {
        width: 95px;
        height: 95px;
    }
}

@media (max-width: 640px) {
    .client-logo-container {
        width: 100px;
        height: 100px;
    }
    
    .client-logo-img {
        width: 80px;
        height: 80px;
    }
}


/* ============================================
   ADDITIONAL SECTION ENHANCEMENTS
   Better animations and interactions
   ============================================ */

/* About Section - Mission/Vision Cards */
#about .grid > div {
    position: relative;
    overflow: hidden;
}

#about .grid > div::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    transition: left 0.6s ease;
}

#about .grid > div:hover::before {
    left: 100%;
}

/* Counter Section - Better Pulse */
.counter-bg-animated > div > div {
    position: relative;
}

.counter-bg-animated > div > div::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 8px;
    background: linear-gradient(45deg, transparent, rgba(255, 215, 0, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.counter-bg-animated > div > div:hover::after {
    opacity: 1;
}

/* Service Cards - Enhanced 3D */
.service-card-3d {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.service-card-3d > * {
    transform-style: preserve-3d;
}

.service-card-3d h3,
.service-card-3d p {
    transition: transform 0.3s ease;
}

.service-card-3d:hover h3 {
    transform: translateZ(20px);
}

.service-card-3d:hover p {
    transform: translateZ(10px);
}

/* Expertise Cards - Better Hover */
.expertise-card {
    position: relative;
    overflow: hidden;
}

.expertise-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.2), transparent);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.expertise-card:hover::after {
    width: 300%;
    height: 300%;
}

/* Gallery Category Cards - Better Effects */
.category-card {
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 35, 66, 0.8), rgba(255, 215, 0, 0.6));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.category-card:hover::before {
    opacity: 1;
}

.category-card h3,
.category-card p {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease, color 0.3s ease;
}

.category-card:hover h3,
.category-card:hover p {
    transform: translateY(-5px);
    color: white;
}

/* Client Logos - Better Animation */
.client-logo-link {
    position: relative;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.client-logo-link::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--brand-gold), var(--brand-blue));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.client-logo-link:hover::before {
    opacity: 0.2;
}

.client-logo-link:hover {
    transform: translateY(-10px) scale(1.1) rotate(5deg);
}

/* Testimonial Cards - Single Card Display (Centered) */
#testimonials .grid {
    display: flex !important;
    justify-content: center;
    align-items: stretch;
    min-height: 350px; /* Consistent height */
}

.testimonial-card {
    position: relative;
    transition: all 0.6s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 700px; /* Centered, wider card */
    margin: 0 auto;
}

.testimonial-card:hover {
    transform: translateY(-8px);
}

.testimonial-card p {
    flex-grow: 1;
    line-height: 1.8;
}

/* Testimonial Navigation Dots */
.testimonial-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #D1D5DB;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.testimonial-dot:hover {
    background: #9CA3AF;
    transform: scale(1.2);
}

.testimonial-dot.active {
    background: var(--brand-gold);
    border-color: var(--brand-gold);
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .testimonial-card {
        max-width: 100%;
    }
    
    #testimonials .grid {
        min-height: 400px;
    }
    
    .testimonial-dot {
        width: 10px;
        height: 10px;
    }
}

/* Remove old testimonial-slide styles if any */
.testimonial-slide {
    display: none;
}

/* FAQ Items - Better Animation */
.faq-item {
    position: relative;
    overflow: hidden;
}

.faq-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, var(--brand-gold), var(--brand-blue));
    transition: height 0.3s ease;
}

.faq-item:hover::before {
    height: 100%;
}

/* Contact Form - Better Focus */
#contact-form input,
#contact-form textarea,
#contact-form select {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#contact-form input:focus,
#contact-form textarea:focus,
#contact-form select:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
    border-color: var(--brand-gold);
}

/* Footer Links - Better Hover */
footer a {
    position: relative;
    transition: all 0.3s ease;
}

footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-gold);
    transition: width 0.3s ease;
}

footer a:hover::after {
    width: 100%;
}

footer a:hover {
    color: var(--brand-gold);
    transform: translateX(5px);
}

/* Section Headers - Animated Underline */
section h2 {
    position: relative;
    display: inline-block;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--brand-gold), transparent);
    border-radius: 2px;
}

/* Animated Background Patterns */
.pattern-dots {
    background-image: radial-gradient(circle, rgba(255, 215, 0, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

.pattern-grid {
    background-image: 
        linear-gradient(rgba(255, 215, 0, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 215, 0, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
}

/* Floating Animation for Icons */
@keyframes float-icon {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(5deg);
    }
    50% {
        transform: translateY(-5px) rotate(-5deg);
    }
    75% {
        transform: translateY(-15px) rotate(3deg);
    }
}

.float-icon {
    animation: float-icon 4s ease-in-out infinite;
}

/* Gradient Text Animation */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.gradient-text-animated {
    background: linear-gradient(90deg, var(--brand-blue), var(--brand-gold), var(--brand-blue));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
}

/* Card Flip Effect */
.flip-card {
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
}

.flip-card-back {
    transform: rotateY(180deg);
}

/* Magnetic Button Effect */
.magnetic-btn {
    position: relative;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.magnetic-btn:hover {
    transform: scale(1.05);
}

/* Glow Effect on Hover */
.glow-on-hover {
    position: relative;
}

.glow-on-hover::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, var(--brand-gold), var(--brand-blue), var(--brand-gold));
    background-size: 400%;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    filter: blur(10px);
}

.glow-on-hover:hover::before {
    opacity: 1;
    animation: glow-rotate 3s linear infinite;
}

@keyframes glow-rotate {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 400% 50%;
    }
}

/* Particle Effect Background */
@keyframes particle-float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(20px, -20px) scale(1.2);
        opacity: 0.6;
    }
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--brand-gold);
    border-radius: 50%;
    animation: particle-float 4s ease-in-out infinite;
}

/* Better Mobile Touch Feedback */
@media (hover: none) and (pointer: coarse) {
    .service-card-3d:active,
    .expertise-card:active,
    .gallery-item:active,
    .client-logo-link:active {
        transform: scale(0.95);
    }
    
    button:active,
    .btn-3d:active {
        transform: scale(0.9);
    }
}

/* Dark Mode Support (Future) */
@media (prefers-color-scheme: dark) {
    :root {
        --brand-light-gray: #1a1a1a;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    * {
        border-width: 2px !important;
    }
    
    .slide-dot {
        border-width: 3px !important;
    }
}

/* Performance Optimization */
.gpu-accelerated {
    transform: translateZ(0);
    will-change: transform;
}

/* Smooth Transitions for All Interactive Elements */
a, button, input, textarea, select,
.service-card, .expertise-card, .gallery-item,
.testimonial-slide, .faq-item, .client-logo-link {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none;
}

input, textarea, select {
    user-select: text;
}

/* Better Loading State */
.loading-state {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading-state::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Success State */
.success-state {
    animation: success-pulse 0.6s ease;
}

@keyframes success-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Error State */
.error-state {
    animation: error-shake 0.5s ease;
}

@keyframes error-shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-10px);
    }
    75% {
        transform: translateX(10px);
    }
}


/* ============================================
   FLOATING BUTTONS - PROPER POSITIONING
   ============================================ */

/* Back to Top Button - Created by JavaScript */
#scroll-to-top-btn {
    position: fixed !important;
    bottom: 2rem !important;
    right: 2rem !important;
    z-index: 999 !important; /* Below footer (1000) */
}

/* WhatsApp Button - Fixed position */
a[href*="wa.me"] {
    position: fixed !important;
    bottom: 6rem !important;
    right: 2rem !important;
    z-index: 999 !important; /* Below footer (1000) */
}

/* Footer should be above floating buttons */
footer {
    position: relative;
    z-index: 1000 !important;
}

/* Mobile adjustments for floating buttons */
@media (max-width: 768px) {
    #scroll-to-top-btn {
        bottom: 1.5rem !important;
        right: 1.5rem !important;
        width: 3rem !important;
        height: 3rem !important;
    }
    
    a[href*="wa.me"] {
        bottom: 5rem !important;
        right: 1.5rem !important;
        padding: 0.75rem !important;
    }
    
    a[href*="wa.me"] svg {
        width: 1.5rem !important;
        height: 1.5rem !important;
    }
}

/* Ensure buttons don't overlap with footer */
@media (max-height: 600px) {
    #scroll-to-top-btn,
    a[href*="wa.me"] {
        display: none !important;
    }
}

/* When scrolled to bottom, hide buttons to avoid footer overlap */
body.at-bottom #scroll-to-top-btn,
body.at-bottom a[href*="wa.me"] {
    opacity: 0 !important;
    pointer-events: none !important;
}


/* ============================================
   SLIDER OPTIMIZATIONS - Simple and Working
   ============================================ */

/* Slider container */
#home {
    position: relative;
    overflow: hidden;
    background-color: var(--brand-blue);
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .hero-slide {
        animation: none !important;
        transition: opacity 0.3s ease !important;
    }
    
    .hero-slide.active {
        animation: none !important;
    }
}

/* Mobile optimization */
@media (max-width: 768px) {
    .hero-slide.active {
        animation-duration: 30s; /* Slower on mobile */
    }
}


/* === SLIDER TEXT === */
.slide-text {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease 0.3s;
}

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

/* Stitch Text Enhanced */
.stitch-text {
    display: inline-block;
    position: relative;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(255, 215, 0, 0.3);
    animation: textGlow 3s ease-in-out infinite alternate;
}

@keyframes textGlow {
    0% {
        text-shadow: 
            2px 2px 4px rgba(0, 0, 0, 0.8),
            0 0 20px rgba(255, 215, 0, 0.3);
    }
    100% {
        text-shadow: 
            2px 2px 4px rgba(0, 0, 0, 0.8),
            0 0 30px rgba(255, 215, 0, 0.5),
            0 0 40px rgba(255, 215, 0, 0.3);
    }
}

.gold-stitch {
    color: var(--brand-gold);
}

.white-stitch {
    color: white;
}

/* Decorative Particles Enhanced */
.hero-slide .animate-pulse {
    animation: particleFloat 4s ease-in-out infinite;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
    25% {
        transform: translate(10px, -10px) scale(1.2);
        opacity: 0.8;
    }
    50% {
        transform: translate(-5px, 5px) scale(0.9);
        opacity: 0.4;
    }
    75% {
        transform: translate(5px, -5px) scale(1.1);
        opacity: 0.7;
    }
}


/* ============================================
   MOBILE SLIDER FIXES
   ============================================ */

@media (max-width: 768px) {
    .hero-slide {
        background-attachment: scroll; /* Fixed causes issues on mobile */
        transform: scale(1.05) rotate(0deg);
    }
    
    .hero-slide.active {
        animation: kenBurnsEffectMobile 20s ease-in-out infinite alternate;
    }
    
    @keyframes kenBurnsEffectMobile {
        0% {
            transform: scale(1) translate(0, 0);
        }
        50% {
            transform: scale(1.08) translate(1%, 1%);
        }
        100% {
            transform: scale(1.1) translate(-1%, -1%);
        }
    }
}

/* Ensure hero section stays in place */
#home {
    position: relative;
    height: 100vh;
    min-height: 100vh;
    max-height: 100vh;
}

/* Progress line stays at bottom of hero section */
#home > div:has(#slider-progress-line) {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}


/* ============================================
   ADVANCED SLIDE TRANSITIONS
   ============================================ */

/* Crossfade effect for smoother transitions */
.hero-slide {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
}

/* Smooth GPU acceleration */
.hero-slide,
.hero-slide.active,
.hero-slide.exiting {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Blur effects moved to main hero-slide definition */

/* Overlay removed - was causing z-index issues */

/* ============================================
   WEBSITE IMPROVEMENTS - ENHANCEMENTS
   ============================================ */

/* === ABOUT SECTION BACKGROUND === */
#about {
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
}

/* === SERVICE CARDS HOVER === */
.service-card-3d::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), rgba(10, 35, 66, 0.05));
    opacity: 0;
    transition: opacity 0.4s;
    border-radius: 0.5rem;
    pointer-events: none;
}

.service-card-3d:hover::after {
    opacity: 1;
}

.service-card-3d:hover i[data-lucide] {
    animation: iconBounce 0.6s ease;
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* === GALLERY HOVER EFFECTS === */
.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 35, 66, 0.8), rgba(255, 215, 0, 0.6));
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 1;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item::after {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 3rem;
    z-index: 2;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.gallery-item:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

/* === TESTIMONIALS QUOTE MARK === */
.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 80px;
    font-family: Georgia, serif;
    color: var(--brand-gold);
    opacity: 0.15;
    line-height: 1;
}

/* === FAQ HOVER LINE === */
.faq-question::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: var(--brand-gold);
    transition: width 0.3s;
}

.faq-question.active::before {
    width: 4px;
}

/* === CONTACT FORM FOCUS === */
.form-input:focus,
.form-textarea:focus {
    border-color: var(--brand-gold);
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.1);
    transform: translateY(-2px);
}

/* === CLIENT LOGOS GRAYSCALE === */
.client-logo img {
    filter: grayscale(100%);
    transition: filter 0.4s;
}

.client-logo:hover img {
    filter: grayscale(0%);
}

/* === MICRO-INTERACTIONS === */
button:active {
    transform: scale(0.95);
}

/* === SMOOTH SCROLL PADDING === */
html {
    scroll-padding-top: 100px;
}


/* ============================================
   UNIFIED GALLERY MODAL - OPTIMIZED
   ============================================ */

#unified-modal {
    backdrop-filter: blur(8px);
    transition: opacity 0.3s ease;
}

#unified-modal img {
    transition: opacity 0.2s ease;
    will-change: opacity;
}

#unified-modal button {
    transition: all 0.2s ease;
}

#unified-modal button:hover {
    transform: scale(1.1);
}

#unified-modal button:active {
    transform: scale(0.95);
}

/* Loading spinner */
#unified-loading {
    pointer-events: none;
}

/* Smooth image transitions */
#unified-image {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    #unified-modal .max-w-5xl {
        max-width: 95vw;
    }
    
    #unified-prev,
    #unified-next {
        padding: 0.5rem;
    }
    
    #unified-prev svg,
    #unified-next svg {
        width: 1.25rem;
        height: 1.25rem;
    }
}

/* GPU acceleration for smooth animations */
#unified-modal,
#unified-image,
#unified-modal button {
    transform: translateZ(0);
    backface-visibility: hidden;
}


/* ============================================
   IMAGE OPTIMIZATION & LAZY LOADING
   ============================================ */

/* Lazy loading placeholder */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

img[loading="lazy"].loaded,
img[loading="lazy"]:not([src]) {
    opacity: 1;
}

/* Image optimization */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Blur-up effect for images */
.blur-up {
    filter: blur(5px);
    transition: filter 0.3s ease;
}

.blur-up.loaded {
    filter: blur(0);
}

/* Background image lazy loading */
[data-bg] {
    background-color: var(--brand-blue);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Optimize card images */
.service-card img,
.expertise-card img,
.category-card img {
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}


/* ============================================
   FINAL PERFORMANCE OPTIMIZATIONS
   ============================================ */

/* Reduce repaints and reflows */
* {
    box-sizing: border-box;
}

/* Font display optimization applied via Google Fonts URL */

/* Optimize animations */
@media (prefers-reduced-motion: no-preference) {
    * {
        animation-duration: 0.3s;
        animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    }
}

/* Optimize scrolling */
body {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* Optimize images for retina displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Optimize card rendering */
.service-card,
.expertise-card,
.category-card,
.testimonial-card {
    contain: layout style paint;
    will-change: transform;
}

/* Remove will-change after animation */
.service-card:not(:hover),
.expertise-card:not(:hover),
.category-card:not(:hover) {
    will-change: auto;
}

/* Optimize modal */
#unified-modal {
    contain: layout style paint;
}

/* Optimize header */
#main-header {
    contain: layout style;
}

/* Optimize footer */
footer {
    contain: layout style;
}

/* Critical CSS - Above the fold */
#home,
#main-header,
#preloader {
    contain: layout style paint;
}

/* Defer non-critical animations */
@media (max-width: 768px) {
    .animate-on-load,
    .reveal-element {
        animation-duration: 0.4s !important;
    }
}

/* Optimize text rendering */
h1, h2, h3, h4, h5, h6 {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

p, span, a {
    text-rendering: optimizeSpeed;
}

/* Optimize button rendering */
button, .btn, a[class*="btn"] {
    contain: layout style;
    cursor: pointer;
}

/* Optimize form elements */
input, textarea, select {
    contain: layout style;
}

/* Reduce paint areas */
section {
    contain: layout style;
}

/* Optimize gallery */
#gallery {
    contain: layout;
}

/* Optimize FAQ */
.faq-container {
    contain: layout;
}

/* Optimize testimonials */
.testimonial-card {
    contain: layout style paint;
}
