/* ======================
   Base Styles & Reset
   ====================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --team-card-width: 280px;
}

/* Thank You Modal */
#thank-you-modal {
    opacity: 0;
    transition: opacity 0.3s ease;
}

#thank-you-modal.flex {
    opacity: 1;
}

#thank-you-modal > div {
    transform: scale(0.9) translateY(10px);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

#thank-you-modal.flex > div {
    transform: scale(1) translateY(0);
    opacity: 1;
}



html {
    scroll-behavior: smooth;
    width: 100%;
    overflow-x: hidden;
}

html.scroll-smooth {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #0E1218;
    color: white;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative;
}

body.loaded * {
    transition-duration: 0.3s;
}

::selection {
    background-color: #24AAE3;
    color: white;
}

::-moz-selection {
    background-color: #24AAE3;
    color: white;
}



/* Water Loader */
.water-loader {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3;
    background-color: transparent;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.9));
}

/* Keep original icon colors */
.icon iconify-icon {
    opacity: 1;
}

/* Greyscale only ion icons */
.icon iconify-icon[icon^="ion:"] {
    filter: grayscale(100%);
    opacity: 1;
}

/* Greyscale Canva PNG */
.icon img {
    filter: grayscale(100%);
    opacity: 1;
}

/* Water Element */
.water {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background-color: #1a6f94;
    transition: height 4s cubic-bezier(0.2, 0.8, 0.3, 1);
    overflow: hidden;
    opacity: 0.45;
}

/* Wave effect using pseudo-element */
.water::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -180%;
    left: -50%;
    background-color: #0a2e3d;
    border-radius: 40%;
    animation: wave 8s linear infinite;
}

/* Second wave layer */
.water::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -175%;
    left: -50%;
    background-color: #15374a;
    border-radius: 38%;
    animation: wave 10s linear infinite;
}

/* Loading Grid - Single row on mobile */
.loading-grid {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 8px;
}

.loading-item {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.loading-item:hover .water-loader {
    border-color: rgba(74, 222, 128, 0.2);
    transform: translateY(-3px);
}

/* Skill Progress Bars */
.progress-fill {
    transition: width 1.4s cubic-bezier(0.2, 0.8, 0.3, 1);
}

/* Master Progress Bar */
.master-progress-bar {
    width: 100%;
    height: 14px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.master-progress-fill {
    height: 100%;
    width: 0%;
    background-color: #24AAE3;
    border-radius: 50px;
    transition: width 4s cubic-bezier(0.2, 0.8, 0.3, 1);
    position: relative;
    overflow: hidden;
}

/* Wave effect on progress bar */
.master-progress-fill::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -180%;
    left: -50%;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 40%;
    animation: wave 6s linear infinite;
}

/* Speed Indicator Dots */
.speed-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #24AAE3;
    opacity: 0.7;
    animation: speedPulse 2s infinite ease-in-out;
}

.fast-dot {
    animation: speedPulseFast 1s infinite ease-in-out;
}

.slow-dot {
    animation: speedPulseSlow 3s infinite ease-in-out;
}

/* Animations */
@keyframes wave {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes speedPulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

@keyframes speedPulseFast {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}

@keyframes speedPulseSlow {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(0.8);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

/* Glass Card Effect */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Loading overlay transition */
#loading-overlay.loaded {
    opacity: 0;
    transform: translateY(-100%);
    pointer-events: none;
}

/* Prevent scrolling during loading */
body.loading {
    overflow: hidden;
}

/* Scrollbar styling for mobile */
.loading-grid::-webkit-scrollbar {
    height: 4px;
}

.loading-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
}

.loading-grid::-webkit-scrollbar-thumb {
    background: rgba(74, 222, 128, 0.3);
    border-radius: 2px;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .water-loader {
        width: 48px;
        /* Enlarged from 42px */
        height: 48px;
    }

    .loading-label {
        font-size: 9px;
        margin-top: 5px;
    }

    .loading-grid {
        position: relative;
        height: 40vh;
        /* Controlled height for clustered scattering */
        width: 100%;
        display: block;
        overflow: visible;
        margin-top: 5vh;
    }

    #loading-overlay {
        padding-left: 8px;
        padding-right: 8px;
        display: block;
        overflow: hidden;
    }

    .loading-item {
        position: absolute;
        animation: floating 3s ease-in-out infinite;
    }

    /* Closely scattered positions for all 6 icons */
    .loading-item:nth-child(1) {
        top: 5%;
        left: 15%;
        animation-delay: 0s;
    }

    .loading-item:nth-child(2) {
        top: 10%;
        right: 20%;
        animation-delay: 0.5s;
    }

    .loading-item:nth-child(3) {
        top: 35%;
        left: 10%;
        animation-delay: 0.2s;
    }

    .loading-item:nth-child(4) {
        top: 45%;
        right: 18%;
        animation-delay: 0.7s;
    }

    .loading-item:nth-child(5) {
        top: 70%;
        left: 20%;
        animation-delay: 0.3s;
    }

    .loading-item:nth-child(6) {
        top: 70%;
        right: 25%;
        animation-delay: 0.9s;
    }

    /* Amazon container scale adjusted for visibility */
    .loading-item:nth-child(2) .water-loader {
        width: 58px;
        /* Enlarged from 50px */
        height: 58px;
    }

    .master-progress-container {
        position: absolute;
        bottom: 12vh;
        left: 50%;
        transform: translateX(-50%);
        width: 85% !important;
        margin: 0 !important;
        z-index: 10;
    }
}

@keyframes floating {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Greyscale Amazon Icon - Using a more flexible selector */
.icon iconify-icon[icon*="amazon"],
.icon ion-icon[name="logo-amazon"] {
    filter: grayscale(100%);
    opacity: 0.9;
}

@media (min-width: 641px) and (max-width: 768px) {
    .water-loader {
        width: 65px;
        height: 65px;
    }

    .loading-grid {
        gap: 16px;
    }
}

@media (min-width: 769px) {
    .water-loader {
        width: 80px;
        height: 80px;
    }

    .loading-grid {
        gap: 24px;
    }
}

/* ======================
   Hamburger Toggle 
   ====================== */


.hamburger {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hamburger input {
    display: none;
}

.hamburger svg {
    height: 3em;
    transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.line {
    fill: none;
    stroke: white;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
    transition: stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1),
        stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.line-top-bottom {
    stroke-dasharray: 12 63;
}

.hamburger input:checked+svg {
    transform: rotate(-45deg);
}

.hamburger input:checked+svg .line-top-bottom {
    stroke-dasharray: 20 300;
    stroke-dashoffset: -32.42;
}


/* ======================
   Scrollbar Styling
   ====================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #0E1218;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #24AAE3;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #333 #0E1218;
}

/* ======================
   Typography & Utilities
   ====================== */
.text-gradient {
    background: linear-gradient(to right, white, #24AAE3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ======================
   Background Patterns & Effects
   ====================== */
.topo-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%2324AAE3' fill-opacity='0.08' fill-rule='evenodd'/%3E%3C/svg%3E");
    mask-image: linear-gradient(to bottom, transparent, black, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent 10%, black 50%, transparent 90%);
}

/* ======================
   Animations
   ====================== */
@keyframes drift {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 50px 50px;
    }
}

.animate-drift {
    animation: drift 20s linear infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animate-bounce {
    animation: bounce 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-250px * 6));
    }
}

.animate-scroll {
    animation: scroll 40s linear infinite;
}

.animate-scroll:hover {
    animation-play-state: paused;
}

/* ======================
   Components
   ====================== */

/* Logo */
.logo {
    width: 50px;
    height: auto;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

/* Glass Card Effect */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

/* ======================
   Navigation
   ====================== */
/* Desktop Navigation */
.dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease-in-out;
}

.group:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Mobile Navigation */
#mobile-menu {
    transition: all 0.3s ease-in-out;
    margin-top: 10px;
}



/* ======================
   Footer
   ====================== */
.footer-links li a {
    display: inline-block;
    transition: transform 0.2s ease, color 0.3s ease;
}

.footer-links li a:hover {
    transform: translateX(10px);
    color: white;
}

/* ======================
   Hero Section
   ====================== */
#home {
    min-height: 100vh;
    position: relative;
    z-index: 10;
}

/* ======================
   Experience Ticker
   ====================== */
.counter {
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
}

/* ======================
   Services Bento Grid
   ====================== */
#services .glass-card {
    transition: all 0.3s ease;
}

#services .glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Featured Service Card */
#amazon.featured {
    position: relative;
    overflow: hidden;
}

#amazon.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(27, 94, 32, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

#amazon.featured:hover::before {
    opacity: 1;
}

/* ======================
   Brand Carousel
   ====================== */
.brand-logo {
    opacity: 0.7;
    transition: all 0.3s ease;
}

.brand-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

.brand-carousel {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.brand-track {
    display: flex;
    align-items: center;
    gap: 48px;
    width: max-content;
    animation: brandScroll 28s linear infinite;
}

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

.brand-track img.brand-logo {
    height: 400px;
    /* ✅ control logo height */
    width: auto;
    object-fit: contain;
    display: block;
}

@keyframes brandScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* because we duplicated the set */
}


/* ======================
   Portfolio Masonry
   ====================== */
/* Make the overlay background darker for better contrast */
#portfolio .group:hover::after {
    background: rgba(0, 0, 0, 0.85) !important;
    /* Darker overlay */
}

/* Category text (WEB DESIGN DEVELOPMENT, SOCIAL MEDIA, etc.) */
#portfolio .group:hover .text-xs {
    color: #24AAE3 !important;
    /* Brighter green */
    font-weight: 600 !important;
    letter-spacing: 0.1em !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    opacity: 1 !important;
}

/* Project title (FinTech Dashboard, Urban Wear Campaign, etc.) */
#portfolio .group:hover .text-xl {
    color: white !important;
    font-weight: 600 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
    opacity: 1 !important;
}

/* Even better: Make text visible before hover too, but enhance on hover */
#portfolio .group .text-xs {
    color: rgba(74, 222, 128, 0.8);
    /* Visible even without hover */
    opacity: 0.9;
}

#portfolio .group .text-xl {
    color: rgba(255, 255, 255, 0.9);
    /* Visible even without hover */
    opacity: 0.9;
}

/* Portfolio Filtering Transitions */
.portfolio-item {
    transition: opacity 0.4s ease, transform 0.4s ease, border-color 0.3s ease;
}


/* ======================
   Team Carousel
   ====================== */
.team-carousel-wrapper {
    position: relative;
    overflow: hidden;
    padding: 0 20px;
}

.team-carousel-track {
    display: flex;
    transition: transform 0.5s ease-out;
    will-change: transform;
    gap: 24px;
}

.team-carousel-item {
    flex: 0 0 var(--team-card-width);
    transition: all 0.3s ease;
    cursor: grab;
}

.team-carousel-item:active {
    cursor: grabbing;
}

.team-carousel-wrapper::-webkit-scrollbar {
    display: none;
}

.team-carousel-wrapper {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Team Member Card */
.team-member-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    height: 370px;
    align-items: center;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.team-member-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(27, 94, 32, 0.5);
    transform: translateY(-5px);
}

.team-member-image {
    width: 144px;
    height: 144px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    margin: 0 auto 1.5rem;
}

.team-member-card:hover .team-member-image {
    border-color: #24AAE3;
    transform: scale(0.95);
}

.team-member-image img {
    transition: transform 0.7s ease;
}

.team-member-card:hover .team-member-image img {
    transform: scale(1.1);
}

/* Team Carousel Navigation */
.team-prev,
.team-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 20;
    opacity: 0.7;
}

.team-prev:hover,
.team-next:hover {
    background: rgba(27, 94, 32, 0.7);
    border-color: #24AAE3;
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.team-prev:disabled,
.team-next:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: translateY(-50%) scale(1);
}

.team-prev:disabled:hover,
.team-next:disabled:hover {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-50%) scale(1);
}

.team-prev {
    left: 0;
    transform: translateX(-50%) translateY(-50%);
}

.team-next {
    right: 0;
    transform: translateX(50%) translateY(-50%);
}

.team-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2.5rem;
}

.team-dots button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.team-dots button:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.team-dots button.active {
    background-color: #24AAE3;
    width: 24px;
    border-radius: 6px;
}

/* ======================
   Footer
   ====================== */
footer {
    position: relative;
    z-index: 20;
    background-color: #24AAE3;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMSIgY3k9IjEiIHI9IjEiIGZpbGw9InJnYmEoMjU1LDI1NSwyNTUsMC4wNSkiLz48L3N2Zz4=");
    opacity: 0.2;
}

.brand-reveal {
    position: relative;
    display: inline-block;
    width: 280px;
    height: 56px;
    text-decoration: none;
}

/* White expanding trail (pill) */
.brand-reveal .trail {
    position: absolute;
    inset: 0;
    width: 56px;
    /* start width */
    height: 56px;
    background: #ffffff;
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
    overflow: hidden;

    animation: trailExpand 3.2s cubic-bezier(0.65, 0, 0.076, 1) infinite;
}

/* Logo circle that moves right */
.brand-reveal .logo-circle {
    position: absolute;
    top: 0;
    left: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #ffffff;
    display: grid;
    place-items: center;
    z-index: 2;

    animation: logoSlide 3.2s cubic-bezier(0.65, 0, 0.076, 1) infinite;
}

.brand-reveal .logo-circle img {
    width: 35px;
    height: auto;
    display: block;
}

/* Text reveals inside the white trail */
.brand-reveal .text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding-left: 45px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #24AAE3;
    z-index: 1;

    opacity: 0;
    transform: translateX(-10px);
    animation: textReveal 3.2s ease-in-out infinite;

    /* Grey shadow highlight (as you requested earlier) */
    filter: drop-shadow(0 2px 4px rgba(150, 150, 150, 0.6));
}

/* ---------- Keyframes ---------- */
/* Timeline:
   0-15%  : compact (hidden text)
   15-45% : expand + slide + reveal
   45-70% : hold (text visible)
   70-100%: return + hide
*/

@keyframes trailExpand {

    0%,
    15% {
        width: 56px;
    }

    45%,
    70% {
        width: 100%;
    }

    100% {
        width: 56px;
    }
}

@keyframes logoSlide {

    0%,
    15% {
        transform: translateX(0);
    }

    45%,
    70% {
        transform: translateX(220px);
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes textReveal {

    0%,
    20% {
        opacity: 0;
        transform: translateX(-10px);
    }

    40%,
    70% {
        opacity: 1;
        transform: translateX(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-10px);
    }
}

/* Accessibility: reduce motion */
@media (prefers-reduced-motion: reduce) {

    .brand-reveal .trail,
    .brand-reveal .logo-circle,
    .brand-reveal .text {
        animation: none !important;
    }
}

/* ======================
   Responsive Design
   ====================== */

/* Mobile (up to 639px) */
@media (max-width: 639px) {
    .team-carousel-item {
        width: 100%;
    }

    .indicator {
        display: none;
    }

    .brand-track img.brand-logo {
        height: 150px;
        /* ✅ control logo height */
        width: auto;
        scale: 1.2;
    }

    .brand-track {
        gap: 20px;
    }

    .team-prev,
    .team-next {
        width: 40px;
        height: 40px;
    }

    #home h1 {
        font-size: 3rem;
        line-height: 1.1;
    }

    #portfolio.columns-1 {
        columns: 1;
    }
}

/* Small Tablet (640px - 767px) */
@media (min-width: 640px) and (max-width: 767px) {
    .team-carousel-item {
        width: 50%;
    }

    #portfolio.columns-2 {
        columns: 2;
    }

    .indicator {
        display: none;
    }

    #home h1 {
        font-size: 4rem;
    }
}

/* Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .team-carousel-item {
        width: 33.333%;
    }


    #portfolio.columns-2 {
        columns: 2;
    }

    #services .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktop (1024px and up) */
@media (min-width: 1024px) {
    .team-carousel-item {
        width: 25%;
    }

    #portfolio.columns-3 {
        columns: 3;
    }

    #services .grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .team-prev {
        left: -2rem;
    }

    .team-next {
        right: -2rem;
    }
}

/* Large Desktop (1280px and up) */
@media (min-width: 1280px) {
    .team-carousel-wrapper {
        padding: 0 40px;
    }

    .team-prev {
        left: -3rem;
    }

    .team-next {
        right: -3rem;
    }
}

/* ======================
   Utility Classes
   ====================== */
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.duration-300 {
    transition-duration: 300ms;
}

.ease-out {
    transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
}

.ease-in-out {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ======================
   Loading States
   ====================== */
.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* ======================
   Notification System
   ====================== */
.notification {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

/* ======================
   Form Styles
   ====================== */
input,
textarea,
select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: white;
    width: 100%;
    transition: all 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #24AAE3;
    background: rgba(255, 255, 255, 0.08);
}

input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* ======================
   Accessibility
   ====================== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for keyboard navigation */
:focus-visible {
    outline: 2px solid #24AAE3;
    outline-offset: 2px;
}

/* Skip to main content link */
.skip-to-main {
    position: absolute;
    top: -40px;
    left: 0;
    background: #24AAE3;
    color: white;
    padding: 8px 16px;
    z-index: 9999;
    text-decoration: none;
    border-radius: 0 0 4px 0;
    transition: top 0.3s ease;
}

.skip-to-main:focus {
    top: 0;
}

/* ======================
   Print Styles
   ====================== */
@media print {
    .no-print {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    a {
        color: black !important;
        text-decoration: underline;
    }
}