/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

*:focus,
*:active {
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

:root {
    /* Fresh dual-theme palette (desktop/laptop) */
    --primary-color: #00f0ff;
    --secondary-color: #6c63ff;
    --accent-color: #ff9d00;

    --dark-bg: #040611;
    --dark-card: #0c1324;
    --dark-card-hover: #101a2f;

    --text-primary: #f5f7ff;
    --text-secondary: #a5b2d6;

    --accent: #00f0ff;

    /* Glass base */
    --glass-bg: rgba(11, 18, 34, 0.85);
    --glass-border: rgba(108, 99, 255, 0.35);

    /* Gradient accents */
    --gradient-1: linear-gradient(135deg, #00f0ff 0%, #6c63ff 60%, #ff9d00 100%);
    --gradient-2: linear-gradient(135deg, #6c63ff 0%, #00f0ff 100%);

    --shadow-glow: 0 0 25px rgba(0, 240, 255, 0.35);
    --shadow-glow-hover: 0 0 40px rgba(108, 99, 255, 0.45);
}


body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--dark-bg);
    background-image: 
        radial-gradient(circle at 15% 25%, rgba(0, 240, 255, 0.18) 0%, transparent 45%),
        radial-gradient(circle at 80% 20%, rgba(108, 99, 255, 0.16) 0%, transparent 55%),
        radial-gradient(circle at 60% 80%, rgba(255, 157, 0, 0.12) 0%, transparent 55%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

body.intro-active {
    overflow: hidden;
}

.container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

/* Intro Overlay */
.page-intro-overlay {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(15, 23, 42, 0.95) 0%, rgba(2, 6, 23, 0.9) 55%),
        linear-gradient(135deg, rgba(0, 0, 0, 0.85), rgba(4, 7, 18, 0.95));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: introOverlayExit 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: 3.2s;
    will-change: opacity, visibility;
    backface-visibility: hidden;
}

.intro-glass {
    position: relative;
    width: min(360px, 90vw);
    padding: 2.5rem 2.25rem;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        inset 0 2px 4px rgba(255, 255, 255, 0.15),
        inset 0 -2px 4px rgba(0, 0, 0, 0.2),
        0 8px 32px rgba(0, 0, 0, 0.3);
    text-align: center;
    overflow: hidden;
    opacity: 0;
    transform: translate3d(0, 25px, 0) scale(0.97);
    animation: introCardPop 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: 0.2s;
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.intro-glass::before {
    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%);
    animation: liquidShine 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    pointer-events: none;
}

.intro-glow {
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    filter: none;
    animation: introGlowPulse 6s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.intro-logo,
.intro-logo-text {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    object-fit: contain;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 1.5rem;
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.5),
        inset 0 2px 4px rgba(255, 255, 255, 0.2),
        inset 0 -2px 4px rgba(0, 0, 0, 0.15),
        0 4px 16px rgba(0, 0, 0, 0.2);
    animation: introLogoFloat 2.2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    transform: translate3d(0, 0, 0) scale(1);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    backface-visibility: hidden;
}

.intro-logo::before,
.intro-logo-text::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, 
        rgba(255, 255, 255, 0.15) 0%,
        transparent 70%);
    animation: liquidShine 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    pointer-events: none;
    border-radius: 50%;
}

.intro-logo-text {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.intro-message {
    position: relative;
    font-size: 1.4rem;
    font-weight: 600;
    color: #f8fafc;
    margin-bottom: 0.75rem;
    letter-spacing: 0.02em;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 0.12),
        inset 0 -1px 2px rgba(0, 0, 0, 0.1);
    animation: introTextFade 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: 0.6s;
    opacity: 0;
    overflow: hidden;
}

.intro-message::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent 40%,
        rgba(255, 255, 255, 0.08) 50%,
        transparent 60%);
    animation: liquidShine 3.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    pointer-events: none;
}

.intro-subtext {
    position: relative;
    color: rgba(226, 232, 240, 0.85);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.75rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 2px rgba(255, 255, 255, 0.1),
        inset 0 -1px 2px rgba(0, 0, 0, 0.08);
    animation: introTextFade 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: 0.8s;
    opacity: 0;
    overflow: hidden;
}

.intro-subtext::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent 40%,
        rgba(255, 255, 255, 0.06) 50%,
        transparent 60%);
    animation: liquidShine 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    pointer-events: none;
}

.intro-progress {
    position: relative;
    width: 100%;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow:
        inset 0 1px 2px rgba(0, 0, 0, 0.3),
        inset 0 -1px 1px rgba(255, 255, 255, 0.08);
    overflow: hidden;
    margin-bottom: 1rem;
}

.intro-progress::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 217, 255, 0), rgba(0, 217, 255, 0.8), rgba(124, 58, 237, 0.9));
    animation: introProgressFill 2.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.intro-hint {
    position: relative;
    display: inline-block;
    color: rgba(148, 163, 184, 0.9);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 2px rgba(255, 255, 255, 0.1),
        inset 0 -1px 2px rgba(0, 0, 0, 0.08);
    animation: introTextFade 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: 1s;
    opacity: 0;
    overflow: hidden;
}

.intro-hint::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent 40%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 60%);
    animation: liquidShine 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    pointer-events: none;
}

@keyframes introCardPop {
    0% {
        opacity: 0;
        transform: translate3d(0, 25px, 0) scale(0.95);
    }
    60% {
        opacity: 0.8;
        transform: translate3d(0, 5px, 0) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes introGlowPulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

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

@keyframes introTextFade {
    0% {
        opacity: 0;
        transform: translate3d(0, 10px, 0);
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

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

@keyframes introOverlayExit {
    0% {
        opacity: 1;
        pointer-events: all;
        visibility: visible;
    }
    100% {
        opacity: 0;
        pointer-events: none;
        visibility: hidden;
    }
}

@keyframes liquidShine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
        opacity: 0;
    }
}


@media (prefers-reduced-motion: reduce) {
    .page-intro-overlay,
    .intro-glass,
    .intro-logo,
    .intro-message,
    .intro-subtext,
    .intro-progress::after {
        animation: none !important;
    }

    .page-intro-overlay {
        display: none;
    }
}

@media (max-width: 768px) {
    img {
        opacity: 1 !important;
        transition: opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
        will-change: transform, opacity;
        backface-visibility: hidden;
    }

    .page-intro-overlay,
    .intro-glass,
    .intro-logo,
    .intro-message,
    .intro-subtext,
    .intro-hint {
        animation-delay: 0s !important;
        animation-duration: 0.75s !important;
    }

    .hero,
    .section,
    .section-title,
    .animate-fade-in,
    .animate-slide-up,
    .animate-bounce-in {
        animation-delay: 0s !important;
        animation-duration: 0.8s !important;
    }

    .portfolio-item {
        transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    }

    .portfolio-image img {
        transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    }

    .portfolio-overlay {
        transition: opacity 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .portfolio-item:active .portfolio-image img,
    .portfolio-item:focus-visible .portfolio-image img {
        transform: scale(1.03);
    }

    .portfolio-item:active .portfolio-overlay,
    .portfolio-item:focus-visible .portfolio-overlay {
        opacity: 1;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
}

/* Header & Navigation */
.header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100%;
    /* Dark glass with subtle liquid gradient */
    background:
        linear-gradient(120deg,
            rgba(5, 7, 22, 0.98) 0%,
            rgba(21, 24, 40, 0.96) 35%,
            rgba(9, 9, 11, 0.98) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow:
        0 18px 45px rgba(15, 23, 42, 0.85),
        0 0 30px rgba(0, 0, 0, 0.65);
    z-index: 9999 !important;
    transition: background 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.08) 0%, transparent 55%),
        radial-gradient(circle at 100% 0%, rgba(148, 163, 184, 0.10) 0%, transparent 55%);
    pointer-events: none;
    mix-blend-mode: screen;
}

.navbar {
    padding: 1rem 0;
}

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

.logo {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    opacity: 0;
    transform: translateY(-15px) scale(0.95);
    animation: logoReveal 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s forwards;
}

/* Show both logo and name together */
.logo .logo-image {
    display: block;
}

.logo .logo-text {
    display: block;
}

.logo-image {
    height: 50px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    /* Initial animation state */
    opacity: 0;
    transform: translateY(-20px) scale(0.8);
    animation: logoEntrance 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s forwards;
    -webkit-animation: logoEntrance 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s forwards;
}

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

.logo-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* Initial animation state */
    opacity: 0;
    transform: translateX(-15px);
    animation: logoTextEntrance 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s forwards;
    -webkit-animation: logoTextEntrance 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s forwards;
}

/* Logo Entrance Animation */
@keyframes logoEntrance {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.8) rotate(-5deg);
    }
    60% {
        opacity: 1;
        transform: translateY(5px) scale(1.1) rotate(2deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0deg);
    }
}

@keyframes logoTextEntrance {
    0% {
        opacity: 0;
        transform: translateX(-15px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes logoReveal {
    0% {
        opacity: 0;
        transform: translateY(-25px) scale(0.9);
        filter: none;
    }
    60% {
        opacity: 1;
        transform: translateY(8px) scale(1.05);
        filter: blur(0);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .logo {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    will-change: color;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    -webkit-touch-callout: none;
}

.nav-link:focus,
.nav-link:active {
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link-login,
.nav-link-register {
    padding: 10px 20px;
    border-radius: 25px;
    background: transparent;
    border: 2px solid var(--primary-color);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-weight: 500;
    white-space: nowrap;
}

.nav-link-login {
    background: var(--gradient-2);
    border-color: transparent;
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.3);
}

.nav-link-login:hover {
    background: var(--gradient-1);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.5);
}

.nav-link-register {
    background: transparent;
    color: var(--accent-color);
}

.nav-link-register:hover {
    background: var(--gradient-1);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(138, 43, 226, 0.3);
}

.nav-link-logout {
    color: var(--accent-color);
}

.nav-link-logout:hover {
    color: #f59e0b;
}

.nav-user {
    display: flex;
    align-items: center;
}

.nav-user-name {
    color: var(--accent-color);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 8px 16px;
    background: rgba(0, 217, 255, 0.12);
    border-radius: 20px;
    border: 1px solid rgba(0, 217, 255, 0.4);
}

/* Mobile menu toggle removed - Desktop/Laptop only */

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

/* Smooth animation for uploaded banner image */
.hero[style*="background-image"] {
    background-size: 110% 110% !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    animation: bannerImageSmoothMotion 50s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
    will-change: background-position;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    text-align: center;
}

.hero-text-block {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Full-width monochrome liquid background: dark -> mid grey -> soft light */
    background:
        radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.16) 0%, transparent 55%),
        radial-gradient(circle at 55% 0%, rgba(229, 229, 229, 0.18) 0%, transparent 55%),
        radial-gradient(circle at 80% 30%, rgba(163, 163, 163, 0.22) 0%, transparent 55%),
        linear-gradient(135deg, #020617 0%, #020617 40%, #030712 100%);
    z-index: 1;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-background::before,
.hero-background::after,
.hero-overlay::before,
.hero-overlay::after {
    will-change: transform, opacity;
}

/* Liquid Plasma Effect - Swirling Blue & Purple */
.hero-background::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 70vw;
    height: 80vh;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(0, 240, 255, 0.9) 0%, rgba(0, 200, 255, 0.6) 25%, transparent 50%),
        radial-gradient(ellipse at 60% 50%, rgba(108, 99, 255, 0.8) 0%, rgba(124, 58, 237, 0.6) 30%, transparent 55%),
        radial-gradient(ellipse at 80% 20%, rgba(0, 240, 255, 0.7) 0%, transparent 50%),
        radial-gradient(ellipse at 40% 70%, rgba(108, 99, 255, 0.65) 0%, transparent 50%);
    border-radius: 60% 40% 55% 45% / 45% 60% 40% 55%;
    filter: none;
    opacity: 0.85;
    animation: liquidPlasmaFlow 25s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
    mix-blend-mode: screen;
    transform-origin: center center;
}

.hero-background::after {
    content: '';
    position: absolute;
    bottom: -15%;
    right: -10%;
    width: 65vw;
    height: 75vh;
    background: 
        radial-gradient(ellipse at 30% 40%, rgba(108, 99, 255, 0.75) 0%, rgba(124, 58, 237, 0.55) 25%, transparent 50%),
        radial-gradient(ellipse at 70% 60%, rgba(0, 240, 255, 0.7) 0%, rgba(0, 200, 255, 0.5) 30%, transparent 55%),
        radial-gradient(ellipse at 50% 80%, rgba(108, 99, 255, 0.6) 0%, transparent 50%);
    border-radius: 65% 35% 50% 50% / 55% 55% 45% 45%;
    opacity: 0.7;
    animation: liquidPlasmaFlowReverse 30s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
    mix-blend-mode: screen;
    transform-origin: center center;
}

.hero-flare-left,
.hero-flare-right {
    position: absolute;
    top: -20%;
    width: 45vw;
    height: 150%;
    background: 
        linear-gradient(180deg, rgba(0, 240, 255, 0.4) 0%, rgba(108, 99, 255, 0.3) 50%, transparent 100%),
        radial-gradient(ellipse at center, rgba(0, 240, 255, 0.25) 0%, transparent 70%);
    opacity: 0.4;
    filter: none;
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: 1;
    animation: liquidFlareSweep 18s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

.hero-flare-left {
    left: -15%;
    animation-delay: 0s;
    transform-origin: left center;
}

.hero-flare-right {
    right: -15%;
    transform: scaleX(-1);
    animation-delay: 6s;
    transform-origin: right center;
}

.hero-overlay::before,
.hero-overlay::after {
    content: '';
    position: absolute;
    top: -25%;
    width: 35vw;
    height: 150%;
    background: 
        linear-gradient(120deg, rgba(0, 240, 255, 0.15) 0%, rgba(108, 99, 255, 0.2) 40%, transparent 100%),
        linear-gradient(180deg, rgba(0, 240, 255, 0.1) 0%, transparent 60%);
    opacity: 0.3;
    filter: none;
    transform: skewX(12deg);
    animation: liquidFlareSlide 24s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

.hero-overlay::before {
    left: -8%;
    animation-delay: 2s;
}

.hero-overlay::after {
    right: -10%;
    transform: rotate(180deg) skewX(-10deg);
    animation-delay: 10s;
}

.hero-background::after,
.hero-background::before,
.hero-flare-left,
.hero-flare-right,
.hero-overlay::before,
.hero-overlay::after {
    pointer-events: none;
}

.animated-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 15% 25%, rgba(255, 255, 255, 0.20) 0%, transparent 45%),
        radial-gradient(circle at 45% 60%, rgba(209, 213, 219, 0.24) 0%, transparent 50%),
        radial-gradient(circle at 80% 40%, rgba(17, 24, 39, 0.7) 0%, transparent 60%);
    animation: pulse-glow 6s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    opacity: 0.75;
}

.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: float-particle 20s infinite;
    opacity: 0.4;
    box-shadow: 0 0 6px var(--primary-color);
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 30%; animation-delay: 2s; }
.particle:nth-child(3) { left: 50%; animation-delay: 4s; }
.particle:nth-child(4) { left: 70%; animation-delay: 6s; }
.particle:nth-child(5) { left: 90%; animation-delay: 8s; }

.hero .hero-flare-left,
.hero .hero-flare-right {
    display: block;
}

@keyframes liquidFlareSweep {
    0% {
        transform: translateY(-15%) translateX(-8%) scale(1) rotate(-5deg);
        opacity: 0.35;
        filter: none;
    }
    25% {
        transform: translateY(5%) translateX(3%) scale(1.15) rotate(8deg);
        opacity: 0.5;
        filter: none;
    }
    50% {
        transform: translateY(12%) translateX(8%) scale(1.1) rotate(-3deg);
        opacity: 0.45;
        filter: none;
    }
    75% {
        transform: translateY(-5%) translateX(-3%) scale(1.08) rotate(10deg);
        opacity: 0.5;
        filter: none;
    }
    100% {
        transform: translateY(-15%) translateX(-8%) scale(1) rotate(-5deg);
        opacity: 0.35;
        filter: none;
    }
}

@keyframes heroFlareSweep {
    0% {
        transform: translateY(-10%) translateX(-5%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translateY(10%) translateX(5%) scale(1.1);
        opacity: 0.5;
    }
    100% {
        transform: translateY(-15%) translateX(-5%) scale(1);
        opacity: 0.3;
    }
}

@keyframes liquidFlareSlide {
    0% {
        transform: translateX(-35%) skewX(12deg) rotate(-2deg);
        opacity: 0;
        filter: none;
    }
    15% {
        opacity: 0.3;
        filter: none;
    }
    30% {
        transform: translateX(10%) skewX(8deg) rotate(3deg);
        opacity: 0.4;
        filter: none;
    }
    50% {
        transform: translateX(25%) skewX(6deg) rotate(-1deg);
        opacity: 0.45;
        filter: none;
    }
    70% {
        transform: translateX(40%) skewX(4deg) rotate(2deg);
        opacity: 0.35;
        filter: none;
    }
    85% {
        opacity: 0.25;
        filter: none;
    }
    100% {
        transform: translateX(65%) skewX(3deg) rotate(-1deg);
        opacity: 0;
        filter: none;
    }
}

@keyframes heroFlareSlide {
    0% {
        transform: translateX(-30%) skewX(12deg);
        opacity: 0;
    }
    20% {
        opacity: 0.25;
    }
    50% {
        transform: translateX(20%) skewX(8deg);
        opacity: 0.35;
    }
    80% {
        opacity: 0.25;
    }
    100% {
        transform: translateX(60%) skewX(5deg);
        opacity: 0;
    }
}

@keyframes float-particle {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

/* Liquid Plasma Flow Animation - Swirling & Morphing */
@keyframes liquidPlasmaFlow {
    0% {
        transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
        border-radius: 60% 40% 55% 45% / 45% 60% 40% 55%;
        filter: none;
    }
    15% {
        transform: translate3d(30px, -40px, 0) scale(1.08) rotate(15deg);
        border-radius: 55% 45% 60% 40% / 50% 55% 45% 50%;
        filter: none;
    }
    30% {
        transform: translate3d(-25px, 35px, 0) scale(0.95) rotate(-20deg);
        border-radius: 65% 35% 50% 50% / 40% 65% 35% 60%;
        filter: none;
    }
    45% {
        transform: translate3d(40px, 20px, 0) scale(1.12) rotate(25deg);
        border-radius: 50% 50% 60% 40% / 55% 45% 60% 40%;
        filter: none;
    }
    60% {
        transform: translate3d(-35px, -30px, 0) scale(0.92) rotate(-15deg);
        border-radius: 60% 40% 55% 45% / 45% 60% 40% 55%;
        filter: none;
    }
    75% {
        transform: translate3d(20px, 45px, 0) scale(1.05) rotate(20deg);
        border-radius: 55% 45% 65% 35% / 50% 55% 45% 50%;
        filter: none;
    }
    90% {
        transform: translate3d(-20px, -25px, 0) scale(0.98) rotate(-10deg);
        border-radius: 60% 40% 50% 50% / 45% 60% 40% 55%;
        filter: none;
    }
    100% {
        transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
        border-radius: 60% 40% 55% 45% / 45% 60% 40% 55%;
        filter: none;
    }
}

@keyframes liquidPlasmaFlowReverse {
    0% {
        transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
        border-radius: 65% 35% 50% 50% / 55% 55% 45% 45%;
        filter: none;
    }
    20% {
        transform: translate3d(-40px, 30px, 0) scale(1.1) rotate(-25deg);
        border-radius: 50% 50% 60% 40% / 60% 50% 50% 40%;
        filter: none;
    }
    40% {
        transform: translate3d(35px, -25px, 0) scale(0.93) rotate(20deg);
        border-radius: 70% 30% 45% 55% / 50% 60% 40% 50%;
        filter: none;
    }
    60% {
        transform: translate3d(-30px, 40px, 0) scale(1.07) rotate(-30deg);
        border-radius: 55% 45% 65% 35% / 45% 55% 55% 45%;
        filter: none;
    }
    80% {
        transform: translate3d(25px, -35px, 0) scale(0.96) rotate(15deg);
        border-radius: 60% 40% 50% 50% / 55% 55% 45% 45%;
        filter: none;
    }
    100% {
        transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
        border-radius: 65% 35% 50% 50% / 55% 55% 45% 45%;
        filter: none;
    }
}

/* Legacy blob animations (kept for compatibility) */
@keyframes blobFloat {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    25% {
        transform: translate3d(25px, -35px, 0) scale(1.05);
    }
    50% {
        transform: translate3d(-15px, 20px, 0) scale(0.98);
    }
    75% {
        transform: translate3d(-35px, -15px, 0) scale(1.04);
    }
}

@keyframes blobFloatSecondary {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    33% {
        transform: translate3d(-30px, -20px, 0) scale(1.06);
    }
    66% {
        transform: translate3d(20px, 15px, 0) scale(0.97);
    }
}

@keyframes blobOrbit {
    0% {
        transform: rotate(0deg) translateX(15px) rotate(0deg);
    }
    50% {
        transform: rotate(180deg) translateX(15px) rotate(-180deg);
    }
    100% {
        transform: rotate(360deg) translateX(15px) rotate(-360deg);
    }
}

@keyframes pulse-glow {
    0%, 100% { 
        opacity: 0.4; 
        transform: scale(1) rotate(0deg); 
        filter: none;
    }
    50% { 
        opacity: 0.7; 
        transform: scale(1.05) rotate(2deg); 
        filter: none;
    }
}

@keyframes float-smooth {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    33% {
        transform: translateY(-15px) translateX(10px);
    }
    66% {
        transform: translateY(-5px) translateX(-10px);
    }
}

/* Smooth banner image animation - Ken Burns effect */
@keyframes bannerImageSmoothMotion {
    0% {
        background-position: 50% 50%;
    }
    12.5% {
        background-position: 52% 48%;
    }
    25% {
        background-position: 54% 46%;
    }
    37.5% {
        background-position: 48% 52%;
    }
    50% {
        background-position: 46% 54%;
    }
    62.5% {
        background-position: 56% 44%;
    }
    75% {
        background-position: 44% 56%;
    }
    87.5% {
        background-position: 52% 48%;
    }
    100% {
        background-position: 50% 50%;
    }
}

.hero-content {
    z-index: 2;
    position: relative;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.hero-content .hero-buttons {
    justify-content: center;
}

.hero-gallery {
    position: relative;
    background: rgba(6, 9, 22, 0.9);
    border-radius: 32px;
    padding: 2.25rem;
    border: 1px solid rgba(0, 240, 255, 0.25);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.55),
        0 0 35px rgba(0, 240, 255, 0.15);
    overflow: hidden;
}

.hero-gallery::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.12), rgba(108, 99, 255, 0.12), transparent 70%);
    opacity: 0.6;
    pointer-events: none;
}

.hero-gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.hero-gallery-label {
    font-size: 0.9rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.35rem;
}

.hero-gallery-header h3 {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin: 0;
}

.hero-gallery-count {
    font-size: 0.9rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.05);
}

.hero-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.hero-gallery-card {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(3, 5, 16, 0.9);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), border-color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-gallery-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 240, 255, 0.4);
}

.hero-gallery-image {
    width: 82px;
    height: 82px;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(108, 99, 255, 0.2));
    flex-shrink: 0;
}

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

.hero-gallery-info h4 {
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.hero-gallery-category {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 0.35rem;
}

.hero-gallery-meta {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
    display: inline-flex;
    gap: 0.35rem;
    align-items: center;
}

.hero-gallery-link {
    margin-top: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--accent-color);
    text-decoration: none;
    transition: gap 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-gallery-link:hover {
    gap: 0.75rem;
}

.hero-gallery-empty {
    padding: 1.25rem;
    border-radius: 18px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem;
    background: rgba(148, 163, 184, 0.18);
    border: 1px solid rgba(229, 231, 235, 0.55);
    border-radius: 50px;
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.75rem;
    backdrop-filter: none;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: #fdfdfd; /* bright white for strong contrast */
    text-shadow:
        0 6px 18px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(0, 217, 255, 0.7);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: gradient-shift 4s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle {
    font-size: 1.4rem;
    color: rgba(226, 232, 240, 0.9); /* soft light grey */
    margin-bottom: 3rem;
    line-height: 1.6;
    text-shadow: 0 4px 14px rgba(15, 23, 42, 0.7);
}

.highlight-text {
    color: var(--accent-color); /* cyan instead of pink */
    font-weight: 600;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

.btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    /* Liquid Glass Secondary Button */
    background: linear-gradient(135deg, 
        rgba(108, 99, 255, 0.25) 0%, 
        rgba(0, 240, 255, 0.2) 50%,
        rgba(108, 99, 255, 0.25) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(108, 99, 255, 0.4);
    font-size: 1rem;
    will-change: transform;
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    -webkit-touch-callout: none;
    box-shadow: 
        0 8px 32px rgba(108, 99, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.btn-secondary:focus,
.btn-secondary:active {
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-secondary:hover::before {
    left: 100%;
}

.btn-secondary:hover {
    transform: translateY(-3px) scale(1.02);
    background: linear-gradient(135deg, 
        rgba(108, 99, 255, 0.4) 0%, 
        rgba(0, 240, 255, 0.35) 50%,
        rgba(108, 99, 255, 0.4) 100%);
    border-color: rgba(108, 99, 255, 0.6);
    box-shadow: 
        0 12px 40px rgba(108, 99, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3),
        0 0 30px rgba(108, 99, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}


/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    /* Liquid Glass Button */
    background: linear-gradient(135deg, 
        rgba(0, 240, 255, 0.25) 0%, 
        rgba(108, 99, 255, 0.2) 50%,
        rgba(0, 240, 255, 0.25) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(0, 240, 255, 0.4);
    cursor: pointer;
    font-size: 1rem;
    will-change: transform;
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    -webkit-touch-callout: none;
    box-shadow: 
        0 8px 32px rgba(0, 240, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.btn:focus,
.btn:active {
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
    background: linear-gradient(135deg, 
        rgba(0, 240, 255, 0.4) 0%, 
        rgba(108, 99, 255, 0.35) 50%,
        rgba(0, 240, 255, 0.4) 100%);
    border-color: rgba(0, 240, 255, 0.6);
    box-shadow: 
        0 12px 40px rgba(0, 240, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3),
        0 0 30px rgba(0, 240, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

/* Portfolio Overlay View Details Button - Liquid Glass */
.portfolio-overlay .btn-small {
    background: linear-gradient(135deg, 
        rgba(0, 240, 255, 0.25) 0%, 
        rgba(108, 99, 255, 0.2) 50%,
        rgba(0, 240, 255, 0.25) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 240, 255, 0.4);
    color: var(--text-primary);
    box-shadow: 
        0 8px 32px rgba(0, 240, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.portfolio-overlay .btn-small::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.portfolio-overlay .btn-small:hover::before {
    left: 100%;
}

.portfolio-overlay .btn-small:hover {
    background: linear-gradient(135deg, 
        rgba(0, 240, 255, 0.4) 0%, 
        rgba(108, 99, 255, 0.35) 50%,
        rgba(0, 240, 255, 0.4) 100%);
    border-color: rgba(0, 240, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 
        0 12px 40px rgba(0, 240, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3),
        0 0 30px rgba(0, 240, 255, 0.3);
}

/* Sections */
@keyframes sectionReveal {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.98);
        filter: none;
    }
    60% {
        opacity: 1;
        transform: translateY(-6px) scale(1);
        filter: blur(0);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes pageSectionFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes titleFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    padding: 80px 0;
    position: relative;
    z-index: 1;
    will-change: opacity, transform, filter;
    width: 100%;
    margin: 0;
}

/* Ensure content scrolls behind header */
.hero {
    position: relative;
    z-index: 1;
}

/* Scroll offset for sections with IDs to account for fixed header */
#about {
    scroll-margin-top: 150px;
}

#portfolio,
#team,
#reviews,
#contact {
    scroll-margin-top: 100px;
}

/* Mobile scroll offset */
@media (max-width: 768px) {
    #about {
        scroll-margin-top: 100px;
    }
    
    #portfolio,
    #team,
    #reviews,
    #contact {
        scroll-margin-top: 80px;
    }
}

/* Desktop/Laptop - Small bleeding */
@media (min-width: 769px) {
    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 2rem;
    }
    
    .section {
        padding: 80px 0;
    }
    
    .hero-content {
        padding: 3rem 2rem;
    }
    
    .portfolio-grid,
    .team-grid,
    .contact-content {
        padding: 0;
    }
    
    .about-section .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 2rem;
    }
    
    .about-content {
        width: 100%;
        margin: 0 auto;
        padding: 0;
        text-align: center;
    }
    
    .about-text {
        max-width: 900px;
        margin: 0 auto;
        text-align: left;
    }
    
    .footer-content,
    .footer-bottom {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    /* Header uses container padding, ensure consistent bleeding */
    .navbar .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 2rem;
    }
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* About Section */

.about-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.about-content {
    width: 100%;
    margin: 0 auto;
    padding: 0;
    text-align: center;
}

.about-text {
    max-width: 900px;
    margin: 0 auto;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    text-align: left;
}

/* Software Logos */
.software-section {
    background: var(--glass-bg);
    backdrop-filter: none;
}

.software-logos {
    display: flex;
    gap: 1.5rem;
    margin-top: 3rem;
    overflow: hidden;
    width: 100%;
    position: relative;
}

.software-logos-wrapper {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    animation: scroll-tech 80s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

.software-logos:hover .software-logos-wrapper {
    animation-play-state: paused;
}

.software-logo {
    text-align: center;
    padding: 0.875rem;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.4) 0%, rgba(59, 130, 246, 0.3) 100%);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    min-width: 120px;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    -webkit-touch-callout: none;
}

.software-logo:focus,
.software-logo:active {
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

.software-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.15), transparent);
    transition: left 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.software-logo:hover::before {
    left: 100%;
}

.software-logo:hover {
    transform: translateY(-5px) scale(1.03);
    border-color: var(--accent-color);
    box-shadow: 
        0 5px 15px rgba(59, 130, 246, 0.3),
        0 0 0 1px rgba(59, 130, 246, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, 
        rgba(21, 27, 46, 0.95) 0%, 
        rgba(15, 23, 42, 0.95) 100%);
}

.software-logo i,
.software-logo img {
    font-size: 1.5rem;
    color: #00d9ff; /* cyan for icons instead of pink */
    margin-bottom: 0.5rem;
    display: block;
    width: auto;
    height: auto;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    z-index: 1;
}

.software-logo:hover i {
    transform: scale(1.1);
    color: #00d9ff;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.4));
    animation: iconPulse 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

.software-logo:hover img {
    transform: scale(1.08);
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.4));
    animation: logoGlow 3s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

/* Ensure Pixel Pulse logo is always sharp */
.software-logo .pixelpulse-logo {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    max-width: 35px;
    max-height: 35px;
    width: 35px;
    height: 35px;
}

.software-logo img {
    max-width: 35px;
    max-height: 35px;
    margin: 0 auto 0.5rem;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.software-logo span {
    display: block;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    z-index: 1;
}

.software-logo:hover span {
    color: var(--accent-color);
    transform: translateY(-3px);
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

/* Technology Logo Animations */
@keyframes techFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1.1);
    }
    50% {
        transform: scale(1.15);
    }
}

@keyframes logoGlow {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.4));
        transform: scale(1.08);
    }
    50% {
        filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.5));
        transform: scale(1.1);
    }
}

.animate-float {
    animation: techFloat 5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes techFloat {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-4px) translateX(2px);
    }
    50% {
        transform: translateY(-6px) translateX(0);
    }
    75% {
        transform: translateY(-4px) translateX(-2px);
    }
}

/* techRotate animation removed */

/* Motion Animation - Continuous movement */
@keyframes techMotion {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(5px, -8px) scale(1.05);
    }
    50% {
        transform: translate(-3px, -12px) scale(1.08);
    }
    75% {
        transform: translate(-5px, -8px) scale(1.05);
    }
}

/* Enhanced hover motion */
.software-logo {
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.software-logo:hover {
    animation-play-state: paused;
    transform: translateY(-10px) scale(1.08) !important;
    filter: drop-shadow(0 10px 25px rgba(59, 130, 246, 0.6));
    box-shadow: 
        0 15px 40px rgba(59, 130, 246, 0.4),
        0 0 0 2px rgba(59, 130, 246, 0.3),
        inset 0 0 20px rgba(59, 130, 246, 0.1);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.software-logo:hover i,
.software-logo:hover img {
    transform: scale(1.1);
    filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.5));
}

/* Pulse effect on hover */
@keyframes techPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(59, 130, 246, 0);
    }
}

.software-logo:hover::before {
    animation: techPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Slide in animation for container - removed, using scroll-tech instead */

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

/* Staggered motion animations are defined above in the .animate-float section */

@keyframes techMotionOdd {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(8px, -10px) scale(1.06);
    }
    50% {
        transform: translate(-4px, -15px) scale(1.1);
    }
    75% {
        transform: translate(-8px, -10px) scale(1.06);
    }
}

@keyframes techMotionEven {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(-8px, -10px) scale(1.06);
    }
    50% {
        transform: translate(4px, -15px) scale(1.1);
    }
    75% {
        transform: translate(8px, -10px) scale(1.06);
    }
}

/* Icon rotation animations removed */

/* Glow effect animation */
@keyframes techGlow {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.6));
    }
}

.software-logo img {
    animation: techGlow 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.software-logo:hover img {
    animation: techGlowFast 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes techGlowFast {
    0%, 100% {
        filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.6));
    }
    50% {
        filter: drop-shadow(0 0 30px rgba(59, 130, 246, 0.8));
    }
}

/* Portfolio Section */
.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, 
        rgba(0, 240, 255, 0.15) 0%, 
        rgba(108, 99, 255, 0.12) 50%,
        rgba(0, 240, 255, 0.15) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: var(--text-primary);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, background-color;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    -webkit-touch-callout: none;
    box-shadow: 
        0 4px 16px rgba(0, 240, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.filter-btn:hover::before {
    left: 100%;
}

.filter-btn:focus,
.filter-btn:active {
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, 
        rgba(0, 240, 255, 0.3) 0%, 
        rgba(108, 99, 255, 0.25) 50%,
        rgba(0, 240, 255, 0.3) 100%);
    border-color: rgba(0, 240, 255, 0.5);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 
        0 8px 24px rgba(0, 240, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 20px rgba(0, 240, 255, 0.2);
}

/* Portfolio Section */

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.portfolio-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    -webkit-touch-callout: none;
    background: linear-gradient(135deg, 
        rgba(0, 240, 255, 0.08) 0%, 
        rgba(108, 99, 255, 0.06) 50%,
        rgba(0, 240, 255, 0.08) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 240, 255, 0.2);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.portfolio-item:focus,
.portfolio-item:active {
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

.portfolio-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.18), rgba(108, 99, 255, 0.18));
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    z-index: 1;
}

.portfolio-item:hover::after {
    opacity: 1;
}

.portfolio-item:hover {
    transform: translateY(-10px) scale(1.03);
    background: linear-gradient(135deg, 
        rgba(0, 240, 255, 0.15) 0%, 
        rgba(108, 99, 255, 0.12) 50%,
        rgba(0, 240, 255, 0.15) 100%);
    border-color: rgba(0, 240, 255, 0.4);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: rgba(21, 27, 46, 0.5);
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Images load immediately - no lazy loading */
img {
    opacity: 1;
    transition: opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, opacity;
    backface-visibility: hidden;
}

/* Fix blur for Pixel Pulse logo in technologies */
.pixelpulse-logo,
.software-logo .pixelpulse-logo {
    filter: none !important;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: auto;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    will-change: transform;
}

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

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, 
        rgba(15, 23, 42, 0.95) 0%,
        rgba(15, 23, 42, 0.7) 50%,
        transparent 100%);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 15px;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.portfolio-overlay h3 {
    margin-bottom: 0.5rem;
}

.portfolio-overlay p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Portfolio More Button */
.portfolio-more-wrapper {
    text-align: center;
    margin-top: 2rem;
}

.portfolio-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 500;
}

.portfolio-more-btn i {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.portfolio-more-btn.expanded i {
    transform: rotate(180deg);
}

.portfolio-item-hidden {
    display: none !important;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
}

.portfolio-grid.expanded .portfolio-item-hidden {
    display: block !important;
    animation: portfolioFadeIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Portfolio Pagination */
.portfolio-pagination-wrapper {
    position: relative;
}

.portfolio-page-item {
    display: none;
    animation: portfolioFadeIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.portfolio-page-item.active {
    display: block;
}

.portfolio-pagination-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    padding: 1.5rem;
}

.portfolio-page-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    outline: none;
    position: relative;
    overflow: hidden;
}

.portfolio-page-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.portfolio-page-btn:hover::before {
    left: 100%;
}

/* Previous Button - Liquid Glass Style */
.portfolio-page-prev {
    background: linear-gradient(135deg, 
        rgba(108, 99, 255, 0.25) 0%, 
        rgba(59, 130, 246, 0.2) 50%,
        rgba(108, 99, 255, 0.25) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--text-primary);
    border: 1px solid rgba(108, 99, 255, 0.4);
    box-shadow: 
        0 8px 32px rgba(108, 99, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.portfolio-page-prev:hover:not(:disabled) {
    background: linear-gradient(135deg, 
        rgba(108, 99, 255, 0.4) 0%, 
        rgba(59, 130, 246, 0.35) 50%,
        rgba(108, 99, 255, 0.4) 100%);
    border-color: rgba(108, 99, 255, 0.6);
    transform: translateX(-5px) translateY(-2px) scale(1.02);
    box-shadow: 
        0 12px 40px rgba(108, 99, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3),
        0 0 30px rgba(108, 99, 255, 0.3);
}

/* Next Button - Liquid Glass Style */
.portfolio-page-next {
    background: linear-gradient(135deg, 
        rgba(0, 240, 255, 0.25) 0%, 
        rgba(59, 130, 246, 0.2) 50%,
        rgba(0, 240, 255, 0.25) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--text-primary);
    border: 1px solid rgba(0, 240, 255, 0.4);
    box-shadow: 
        0 8px 32px rgba(0, 240, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.portfolio-page-next:hover:not(:disabled) {
    background: linear-gradient(135deg, 
        rgba(0, 240, 255, 0.4) 0%, 
        rgba(59, 130, 246, 0.35) 50%,
        rgba(0, 240, 255, 0.4) 100%);
    border-color: rgba(0, 240, 255, 0.6);
    transform: translateX(5px) translateY(-2px) scale(1.02);
    box-shadow: 
        0 12px 40px rgba(0, 240, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3),
        0 0 30px rgba(0, 240, 255, 0.3);
}

.portfolio-page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.portfolio-page-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.portfolio-page-current {
    color: var(--primary-color);
    min-width: 1.5rem;
    text-align: center;
}

.portfolio-page-separator {
    color: var(--text-secondary);
}

.portfolio-page-total {
    color: var(--text-secondary);
}

@keyframes portfolioFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Team Section */
.team-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.team-container {
    flex: 1;
    overflow: hidden;
}

/* Team Section */

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Team Member Hidden (Desktop) */
@media (min-width: 769px) {
    /* Hide members beyond first 3 on desktop */
    .team-member-hidden {
        display: none !important;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                    transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    /* Show hidden members when expanded */
    .team-grid.expanded .team-member-hidden {
        display: block !important;
        opacity: 1;
        transform: translateY(0);
        animation: teamMemberFadeIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    }
    
    /* Ensure first 3 members are always visible */
    .team-card:not(.team-member-hidden) {
        display: block !important;
    }
    
    @keyframes teamMemberFadeIn {
        from {
            opacity: 0;
            transform: translateY(20px) scale(0.95);
        }
        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }
    
    /* Stagger animation for each hidden member */
    .team-grid.expanded .team-member-hidden:nth-child(4) {
        animation-delay: 0.1s;
    }
    .team-grid.expanded .team-member-hidden:nth-child(5) {
        animation-delay: 0.2s;
    }
    .team-grid.expanded .team-member-hidden:nth-child(6) {
        animation-delay: 0.3s;
    }
    .team-grid.expanded .team-member-hidden:nth-child(7) {
        animation-delay: 0.4s;
    }
    .team-grid.expanded .team-member-hidden:nth-child(8) {
        animation-delay: 0.5s;
    }
    .team-grid.expanded .team-member-hidden:nth-child(9) {
        animation-delay: 0.6s;
    }
    .team-grid.expanded .team-member-hidden:nth-child(10) {
        animation-delay: 0.7s;
    }
    
    .team-more-wrapper {
        padding: 2rem 1rem;
        text-align: center;
        display: block;
    }
    
    .team-more-btn {
        padding: 1rem 2.5rem;
        font-size: 1.1rem;
        border-radius: 12px;
        display: inline-flex;
        align-items: center;
        gap: 0.75rem;
        transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        background: var(--glass-bg);
        border: 1px solid var(--glass-border);
        color: var(--accent-color);
        cursor: pointer;
        font-weight: 600;
    }
    
    .team-more-btn:hover {
        background: rgba(59, 130, 246, 0.2);
        border-color: var(--accent-color);
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(0, 240, 255, 0.3);
    }
    
    .team-more-btn:active {
        transform: translateY(-1px);
    }
    
    .team-more-btn i {
        transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .team-more-btn.expanded i {
        transform: rotate(180deg);
    }
}

/* Hide More button on mobile */
@media (max-width: 768px) {
    .team-more-wrapper {
        display: none !important;
    }
    
    .team-member-hidden {
        display: block !important;
    }
}

/* Carousel Arrows */
.carousel-arrow {
    background: linear-gradient(135deg, 
        rgba(0, 240, 255, 0.2) 0%, 
        rgba(108, 99, 255, 0.15) 50%,
        rgba(0, 240, 255, 0.2) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 240, 255, 0.4);
    color: var(--text-primary);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 10;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    -webkit-touch-callout: none;
    box-shadow: 
        0 4px 16px rgba(0, 240, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.carousel-arrow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-arrow:hover::before {
    left: 100%;
}

/* Show carousel arrows on desktop for reviews only */
@media (min-width: 769px) {
    .reviews-carousel-wrapper .carousel-arrow {
        display: flex !important;
    }
    
    /* Hide team arrows on desktop */
    .team-carousel-wrapper .carousel-arrow {
        display: none !important;
    }
}

.carousel-arrow:focus,
.carousel-arrow:active {
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

.carousel-arrow:hover {
    background: linear-gradient(135deg, 
        rgba(0, 240, 255, 0.35) 0%, 
        rgba(108, 99, 255, 0.3) 50%,
        rgba(0, 240, 255, 0.35) 100%);
    border-color: rgba(0, 240, 255, 0.6);
    transform: scale(1.1);
    box-shadow: 
        0 8px 24px rgba(0, 240, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 30px rgba(0, 240, 255, 0.3);
}

.carousel-arrow:active {
    transform: scale(0.95);
}

.carousel-arrow i {
    font-size: 1.2rem;
}

.team-card {
    background: linear-gradient(135deg, 
        rgba(0, 240, 255, 0.15) 0%, 
        rgba(108, 99, 255, 0.12) 50%,
        rgba(0, 240, 255, 0.15) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(0, 240, 255, 0.3);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    -webkit-touch-callout: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 4px 16px rgba(0, 240, 255, 0.15);
}

.team-card:focus,
.team-card:active {
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

.team-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

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

.team-card:hover {
    transform: translateY(-10px) scale(1.03);
    background: linear-gradient(135deg, 
        rgba(0, 240, 255, 0.25) 0%, 
        rgba(108, 99, 255, 0.2) 50%,
        rgba(0, 240, 255, 0.25) 100%);
    border-color: rgba(0, 240, 255, 0.5);
    box-shadow: 
        0 20px 50px rgba(0, 240, 255, 0.4),
        0 0 0 2px rgba(108, 99, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 40px rgba(0, 240, 255, 0.3);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.team-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--accent-color);
}

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

.team-info h3 {
    margin-bottom: 0.4rem;
    font-size: 1.1rem;
}

.team-position {
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.team-bio {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    flex-grow: 1;
    line-height: 1.5;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: auto;
    margin-bottom: 1rem;
}

.team-view-details-btn {
    margin-top: 0.5rem;
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, 
        rgba(0, 240, 255, 0.25) 0%, 
        rgba(108, 99, 255, 0.2) 50%,
        rgba(0, 240, 255, 0.25) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 240, 255, 0.4);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 
        0 8px 32px rgba(0, 240, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    overflow: hidden;
}

.team-view-details-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.team-view-details-btn:hover::before {
    left: 100%;
}

.team-view-details-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, 
        rgba(0, 240, 255, 0.4) 0%, 
        rgba(108, 99, 255, 0.35) 50%,
        rgba(0, 240, 255, 0.4) 100%);
    border-color: rgba(0, 240, 255, 0.6);
    box-shadow: 
        0 12px 40px rgba(0, 240, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3),
        0 0 30px rgba(0, 240, 255, 0.3);
    color: var(--text-primary);
    text-decoration: none;
}

.team-view-details-btn:active {
    transform: translateY(0);
    box-shadow: 
        0 4px 20px rgba(0, 240, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.team-social a {
    color: var(--text-secondary);
    font-size: 1rem;
    transition: color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    -webkit-tap-highlight-color: transparent;
    outline: none;
    -webkit-touch-callout: none;
}

.team-social a:focus,
.team-social a:active {
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

.team-social a:hover {
    color: var(--accent-color);
}


/* Reviews Section */

.reviews-section {
    background: var(--glass-bg);
    backdrop-filter: none;
}

.reviews-section .container {
    padding: 0;
    max-width: 100%;
    width: 100%;
}

.reviews-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.reviews-container {
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    position: relative;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(59, 130, 246, 0.5) transparent;
}

/* Desktop: Allow manual scroll while auto-scroll is active */
@media (min-width: 769px) {
    .reviews-container {
        overflow-x: auto;
    }
    
    .reviews-container:hover {
        scrollbar-color: rgba(59, 130, 246, 0.7) transparent;
    }
}

.reviews-container::-webkit-scrollbar {
    height: 8px;
}

.reviews-container::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.3);
    border-radius: 10px;
}

.reviews-container::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.5);
    border-radius: 10px;
}

.reviews-container::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.7);
}

.reviews-carousel {
    display: flex;
    gap: 2rem;
    width: fit-content;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* Smooth scroll animation for desktop */
@media (min-width: 769px) {
    .reviews-carousel {
        animation: none; /* Disable CSS animation, use JS for smoother control */
    }
    
    .reviews-container {
        scroll-behavior: smooth;
    }
}

.review-card {
    min-width: 350px;
    max-width: 350px;
    background: linear-gradient(135deg, 
        rgba(0, 240, 255, 0.15) 0%, 
        rgba(108, 99, 255, 0.12) 50%,
        rgba(0, 240, 255, 0.15) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 240, 255, 0.3);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1),
        0 4px 16px rgba(0, 240, 255, 0.15);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: scale(1);
    cursor: pointer;
    will-change: transform, box-shadow;
    position: relative;
    z-index: 1;
    user-select: none;
    -webkit-user-select: none;
}

.review-card:hover {
    transform: scale(1.08) translateY(-8px);
    background: linear-gradient(135deg, 
        rgba(0, 240, 255, 0.25) 0%, 
        rgba(108, 99, 255, 0.2) 50%,
        rgba(0, 240, 255, 0.25) 100%);
    border-color: rgba(0, 240, 255, 0.5);
    box-shadow: 
        0 20px 60px rgba(0, 240, 255, 0.4),
        0 0 40px rgba(0, 240, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1),
        0 0 30px rgba(0, 240, 255, 0.25);
}

.review-card:active {
    transform: scale(1.05) translateY(-4px);
}

/* Review Modal - Full Page */
.review-modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: chatOverlayFade 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.review-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: none;
    animation: chatOverlayFade 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.review-modal-window {
    position: relative;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    background: linear-gradient(135deg, 
        rgba(0, 240, 255, 0.15) 0%, 
        rgba(108, 99, 255, 0.12) 50%,
        rgba(0, 240, 255, 0.15) 100%);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 25px;
    border: 1px solid rgba(0, 240, 255, 0.3);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1),
        0 0 60px rgba(0, 240, 255, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: chatSlideIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 10001;
}

.review-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, 
        rgba(0, 240, 255, 0.2) 0%, 
        rgba(108, 99, 255, 0.15) 50%,
        rgba(0, 240, 255, 0.2) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 50%;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 10;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.review-modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    transform: rotate(90deg);
}

.review-modal-content {
    padding: 3rem;
    overflow-y: auto;
    flex: 1;
}

.review-modal-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 217, 255, 0.2);
}

.review-modal-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(0, 217, 255, 0.3);
    box-shadow: 0 8px 20px rgba(0, 217, 255, 0.2);
}

.review-modal-avatar-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
    border: 3px solid rgba(0, 217, 255, 0.3);
    box-shadow: 0 8px 20px rgba(0, 217, 255, 0.2);
}

.review-modal-info h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.review-modal-position {
    color: var(--accent-color);
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.review-modal-company {
    color: var(--text-secondary);
    font-size: 1rem;
}

.review-modal-rating {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.review-modal-rating .fa-star {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.3);
}

.review-modal-rating .fa-star.active {
    color: #fbbf24;
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.5));
}

.review-modal-text {
    font-size: 1.2rem;
    line-height: 2;
    color: var(--text-primary);
    text-align: center;
}

.review-modal-text p {
    margin: 0;
}


.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.review-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.review-avatar-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.review-info h4 {
    margin-bottom: 0.25rem;
}

.review-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.company {
    color: var(--accent-color) !important;
}

.review-rating {
    margin-bottom: 1rem;
}

.review-rating .fa-star {
    color: #ffd700;
}

.review-rating .fa-star:not(.active) {
    color: #4a5568;
}

.review-text {
    color: var(--text-secondary);
    line-height: 1.6;
}

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

/* Contact Section */

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: stretch;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.contact-info-card {
    background: linear-gradient(135deg, 
        rgba(0, 240, 255, 0.15) 0%, 
        rgba(108, 99, 255, 0.12) 50%,
        rgba(0, 240, 255, 0.15) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 240, 255, 0.3);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1),
        0 4px 16px rgba(0, 240, 255, 0.15);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.contact-info-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-info-card > p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-info-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex: 1;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, 
        rgba(0, 240, 255, 0.1) 0%, 
        rgba(108, 99, 255, 0.08) 50%,
        rgba(0, 240, 255, 0.1) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(0, 240, 255, 0.25);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.contact-info-item:hover {
    background: linear-gradient(135deg, 
        rgba(0, 240, 255, 0.2) 0%, 
        rgba(108, 99, 255, 0.15) 50%,
        rgba(0, 240, 255, 0.2) 100%);
    border-color: rgba(0, 240, 255, 0.4);
    transform: translateX(5px);
    box-shadow: 
        0 8px 20px rgba(0, 240, 255, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 20px rgba(0, 240, 255, 0.2);
}

.contact-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-2);
    border-radius: 12px;
    color: white;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.contact-icon.whatsapp-icon {
    background: linear-gradient(135deg, #25d366, #128c7e);
}

.contact-details h4 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 1rem;
}

.contact-details a {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    word-break: break-all;
}

.contact-details a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.contact-form-wrapper {
    max-width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.contact-form {
    background: linear-gradient(135deg, 
        rgba(0, 240, 255, 0.15) 0%, 
        rgba(108, 99, 255, 0.12) 50%,
        rgba(0, 240, 255, 0.15) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 240, 255, 0.3);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1),
        0 4px 16px rgba(0, 240, 255, 0.15);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    -webkit-tap-highlight-color: transparent;
    outline: none;
    -webkit-touch-callout: none;
    width: 100%;
    padding: 12px 15px;
    background: linear-gradient(135deg, 
        rgba(0, 240, 255, 0.1) 0%, 
        rgba(108, 99, 255, 0.08) 50%,
        rgba(0, 240, 255, 0.1) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group input:active,
.form-group textarea:active {
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
    background: linear-gradient(135deg, 
        rgba(0, 240, 255, 0.15) 0%, 
        rgba(108, 99, 255, 0.12) 50%,
        rgba(0, 240, 255, 0.15) 100%);
    border-color: rgba(0, 240, 255, 0.5);
    box-shadow: 
        0 0 0 3px rgba(0, 240, 255, 0.2),
        0 4px 12px rgba(0, 240, 255, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.alert-success {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.5);
    color: #86efac;
}

/* Footer */
.footer {
    background: var(--dark-bg);
    padding: 3rem 0 1rem;
    border-top: 1px solid var(--glass-border);
    filter: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.footer * {
    filter: none;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

.footer-section img {
    display: block;
    max-width: 150px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin-bottom: 1rem;
    opacity: 1;
    visibility: visible;
    filter: none !important;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transform: translateZ(0);
    will-change: auto;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #e5e7eb; /* light neutral instead of pink */
}

.footer-section p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.footer-section ul li a:hover {
    color: var(--accent-color);
}

.footer-links-row {
    display: contents;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Legal Modals - Glassy Liquid Design */
.legal-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.legal-modal.show {
    display: flex;
}

.legal-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: none;
    opacity: 0;
    animation: genieOverlayFade 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes genieOverlayFade {
    0% {
        opacity: 0;
        backdrop-filter: none;
    }
    100% {
        opacity: 1;
        backdrop-filter: none;
    }
}

.legal-modal.show .modal-overlay {
    animation: genieOverlayFade 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.glassy-legal-modal {
    position: relative;
    background: rgba(21, 27, 46, 0.75);
    backdrop-filter: none;
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 25px;
    padding: 0;
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(59, 130, 246, 0.1) inset,
        0 0 60px rgba(59, 130, 246, 0.1);
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: scale(0.7) translateY(50px) rotate(-5deg);
    filter: none;
    animation: genieModalReveal 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    z-index: 2001;
}

@keyframes genieModalReveal {
    0% {
        opacity: 0;
        transform: scale(0.75) translateY(40px) rotate(-3deg);
        filter: none;
        box-shadow: 
            0 0 0 rgba(0, 0, 0, 0),
            0 0 0 rgba(59, 130, 246, 0);
    }
    40% {
        opacity: 0.8;
        transform: scale(1.03) translateY(-8px) rotate(1.5deg);
        filter: none;
    }
    60% {
        transform: scale(0.98) translateY(2px) rotate(-0.5deg);
        filter: none;
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0) rotate(0deg);
        filter: blur(0);
        box-shadow: 
            0 8px 32px rgba(0, 0, 0, 0.4),
            0 0 0 1px rgba(59, 130, 246, 0.1) inset,
            0 0 60px rgba(59, 130, 246, 0.1);
    }
}

.legal-modal.show .glassy-legal-modal {
    animation: genieModalReveal 1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.glassy-legal-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(59, 130, 246, 0.5),
        transparent
    );
    z-index: 1;
}

.modal-header-legal {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(
        135deg,
        rgba(59, 130, 246, 0.1) 0%,
        rgba(59, 130, 246, 0.1) 100%
    );
    position: relative;
    z-index: 2;
}

.modal-header-legal h2 {
    margin: 0;
    font-size: 1.75rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.close-modal-btn-legal {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: none;
}

.close-modal-btn-legal:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    transform: rotate(90deg);
}

.glassy-legal-modal .modal-body {
    padding: 2rem;
    overflow-y: auto;
    color: var(--text-secondary);
    line-height: 1.8;
    flex: 1;
    position: relative;
    z-index: 1;
}

.glassy-legal-modal .modal-body::-webkit-scrollbar {
    width: 6px;
}

.glassy-legal-modal .modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.glassy-legal-modal .modal-body::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.3);
    border-radius: 10px;
}

.glassy-legal-modal .modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.5);
}

.glassy-legal-modal .modal-body h3 {
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glassy-legal-modal .modal-body p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.glassy-legal-modal .modal-body strong {
    color: var(--text-primary);
}

/* Genie Animation for Legal Modal Content */
.legal-modal.show .modal-header-legal {
    animation: genieHeaderReveal 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: 0.25s;
    opacity: 0;
    transform: translateY(-15px) scale(0.92);
}

@keyframes genieHeaderReveal {
    0% {
        opacity: 0;
        transform: translateY(-15px) scale(0.92) rotate(-1.5deg);
    }
    50% {
        transform: translateY(3px) scale(1.01) rotate(0.8deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0deg);
    }
}

.legal-modal.show .modal-body {
    animation: genieBodyReveal 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: 0.35s;
    opacity: 0;
    transform: translateY(15px);
    filter: none;
}

@keyframes genieBodyReveal {
    0% {
        opacity: 0;
        transform: translateY(15px) scale(0.96);
        filter: none;
    }
    50% {
        transform: translateY(-3px) scale(1.005);
        filter: none;
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.legal-modal.show .close-modal-btn-legal {
    animation: genieButtonReveal 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: 0.45s;
    opacity: 0;
    transform: scale(0) rotate(-150deg);
}

@keyframes genieButtonReveal {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-150deg);
    }
    50% {
        transform: scale(1.15) rotate(8deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.close-modal-btn-legal:hover {
    animation: genieButtonPulse 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    transform: scale(1.1);
}

@keyframes genieButtonPulse {
    0%, 100% {
        transform: scale(1.1);
        box-shadow: 0 0 12px rgba(239, 68, 68, 0.35);
    }
    50% {
        transform: scale(1.12);
        box-shadow: 0 0 18px rgba(239, 68, 68, 0.5);
    }
}

/* Legacy modal styles for backward compatibility */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: none;
    animation: fadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--dark-card);
    padding: 2rem;
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid var(--glass-border);
    position: relative;
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-content h2 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.close-modal:hover {
    color: var(--accent-color);
}

.modal-body {
    color: var(--text-secondary);
    line-height: 1.8;
}

.modal-body h3 {
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Animations */
.animate-fade-in {
    animation: fadeIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
    will-change: opacity, transform;
}

.animate-slide-up {
    animation: slideUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
    will-change: opacity, transform;
}

.animate-bounce-in {
    animation: bounceIn 0.95s cubic-bezier(0.22, 1, 0.36, 1) both;
    will-change: opacity, transform;
}

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

@keyframes bounceIn {
    0% {
        transform: translateY(25px) scale(0.85);
        opacity: 0;
    }
    45% {
        transform: translateY(-6px) scale(1.02);
        opacity: 1;
    }
    65% {
        transform: translateY(3px) scale(0.98);
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(2deg);
    }
}

@keyframes laptopAurora {
    0% {
        box-shadow: 0 0 0 rgba(0, 240, 255, 0);
    }
    50% {
        box-shadow: 0 25px 60px rgba(0, 240, 255, 0.25);
    }
    100% {
        box-shadow: 0 0 0 rgba(0, 240, 255, 0);
    }
}

/* Mobile card float animation removed - Desktop/Laptop only */

/* Technology specific float animation - removed, using horizontal scroll instead */

/* Stagger animation delays for sequential appearance */
.software-logo:nth-child(1) { animation-delay: 0s; }
.software-logo:nth-child(2) { animation-delay: 0.1s; }
.software-logo:nth-child(3) { animation-delay: 0.2s; }
.software-logo:nth-child(4) { animation-delay: 0.3s; }
.software-logo:nth-child(5) { animation-delay: 0.4s; }
.software-logo:nth-child(6) { animation-delay: 0.5s; }
.software-logo:nth-child(7) { animation-delay: 0.6s; }
.software-logo:nth-child(8) { animation-delay: 0.7s; }
.software-logo:nth-child(9) { animation-delay: 0.8s; }
.software-logo:nth-child(10) { animation-delay: 0.9s; }
.software-logo:nth-child(11) { animation-delay: 1s; }
.software-logo:nth-child(12) { animation-delay: 1.1s; }

/* WhatsApp Floating Button */
.whatsapp-float-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    text-decoration: none;
    box-shadow: 
        0 4px 15px rgba(37, 211, 102, 0.4),
        0 0 0 0 rgba(37, 211, 102, 0.7);
    z-index: 999;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: whatsappPulse 2s ease-in-out infinite;
}

.whatsapp-float-btn:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 
        0 8px 25px rgba(37, 211, 102, 0.6),
        0 0 0 10px rgba(37, 211, 102, 0.1);
    background: linear-gradient(135deg, #128C7E 0%, #25D366 100%);
}

.whatsapp-float-btn i {
    animation: whatsappIconBounce 2s ease-in-out infinite;
}

@keyframes whatsappPulse {
    0%, 100% {
        box-shadow: 
            0 4px 15px rgba(37, 211, 102, 0.4),
            0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    50% {
        box-shadow: 
            0 4px 15px rgba(37, 211, 102, 0.6),
            0 0 0 8px rgba(37, 211, 102, 0);
    }
}

@keyframes whatsappIconBounce {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(1.1) rotate(-5deg);
    }
    75% {
        transform: scale(1.1) rotate(5deg);
    }
}

/* Optimized fade-in animation */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation delays */
.animate-stagger-1 { animation-delay: 0.1s; }
.animate-stagger-2 { animation-delay: 0.2s; }
.animate-stagger-3 { animation-delay: 0.3s; }
.animate-stagger-4 { animation-delay: 0.4s; }

/* ============================================
   COMPREHENSIVE RESPONSIVE BREAKPOINTS
   ============================================ */


/* Medium Devices (Tablets, ≥ 768px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .container {
        padding: 0;
        max-width: 100%;
        width: 100%;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 1.5rem;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large Devices (Desktops, ≥ 992px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .container {
        padding: 0;
        max-width: 100%;
        width: 100%;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
        padding: 0 2rem;
    }
    
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Extra Large Devices (Large Desktops, ≥ 1200px) */
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .container {
        max-width: 100%;
        width: 100%;
        padding: 0;
    }
}

/* XXL Devices (≥ 1400px) */
@media (min-width: 1400px) {
    .container {
        max-width: 100%;
        width: 100%;
        padding: 0;
    }
}

/* Tablet Portrait (768px - 1024px, portrait) */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet Landscape (768px - 1024px, landscape) */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .hero {
        min-height: 70vh;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktop/Laptop - Keep header always visible */
@media (min-width: 769px) {
    .header {
        position: fixed !important;
        top: 0 !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: translateY(0) !important;
        display: block !important;
    }
}

/* Mobile Responsive Styles (≤ 768px) */
/* Mobile Responsive Breakpoints - Comprehensive Phone Support */

/* Extra Small Phones (320px - 374px) */
@media (max-width: 374px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .section-title {
        font-size: 1.5rem;
        padding: 0 0.75rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .review-form-card {
        padding: 1rem 0.75rem;
        margin: 0 0.5rem;
    }
    
    .team-card {
        width: 150px;
        height: 150px;
        padding: 0.75rem;
    }
    
    .team-image {
        width: 80px;
        height: 80px;
    }
    
    .review-card {
        min-width: 200px;
        max-width: 200px;
        padding: 1rem;
    }
    
    .portfolio-section .container {
        padding: 0 0.75rem;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        padding: 0;
    }
    
    .portfolio-filter {
        gap: 0.5rem;
        padding: 0.5rem 0;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        min-height: 40px;
    }
    
    .portfolio-overlay {
        padding: 0.75rem;
    }
    
    .portfolio-overlay h3 {
        font-size: 0.8rem;
    }
    
    .portfolio-overlay p {
        font-size: 0.65rem;
    }
    
    .portfolio-overlay .btn-small {
        padding: 0.5rem 0.875rem;
        font-size: 0.75rem;
        min-height: 36px;
    }
    
    .portfolio-pagination-controls {
        gap: 0.5rem;
    }
    
    .portfolio-page-btn {
        padding: 0.625rem 1rem;
        font-size: 0.8rem;
        min-width: 80px;
        min-height: 40px;
    }
}

/* Small Phones (375px - 479px) */
@media (min-width: 375px) and (max-width: 479px) {
    .container {
        padding: 0 1rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .team-card {
        width: 160px;
        height: 160px;
    }
    
    .team-image {
        width: 85px;
        height: 85px;
    }
    
    .review-card {
        min-width: 220px;
        max-width: 220px;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.65rem;
    }
    
    .portfolio-filter {
        gap: 0.625rem;
    }
    
    .filter-btn {
        padding: 0.625rem 1.125rem;
        font-size: 0.85rem;
    }
}

/* Medium Phones (480px - 575px) */
@media (min-width: 480px) and (max-width: 575px) {
    .container {
        padding: 0 1.25rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .team-card {
        width: 170px;
        height: 170px;
    }
    
    .team-image {
        width: 90px;
        height: 90px;
    }
    
    .review-card {
        min-width: 240px;
        max-width: 240px;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .portfolio-overlay h3 {
        font-size: 0.9rem;
    }
    
    .portfolio-overlay p {
        font-size: 0.75rem;
    }
}

/* Large Phones (576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .section-title {
        font-size: 1.85rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .team-card {
        width: 180px;
        height: 180px;
    }
    
    .team-image {
        width: 95px;
        height: 95px;
    }
    
    .review-card {
        min-width: 260px;
        max-width: 260px;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.875rem;
    }
    
    .portfolio-overlay {
        padding: 1rem;
    }
    
    .portfolio-overlay h3 {
        font-size: 0.95rem;
    }
    
    .portfolio-overlay p {
        font-size: 0.8rem;
    }
    
    .portfolio-overlay .btn-small {
        font-size: 0.85rem;
        padding: 0.75rem 1.125rem;
    }
}

/* Standard Mobile (max-width: 768px) - All phones */
@media (max-width: 768px) {
    /* Prevent width expansion on mobile */
    html, body {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        position: relative;
    }
    
    /* Header & Navigation Mobile */
    .header {
        padding: 0;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: rgba(5, 7, 22, 0.95);
        border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    }
    
    .navbar {
        padding: 0.75rem 1rem;
    }
    
    .nav-wrapper {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }
    
    .logo {
        font-size: 1.1rem;
        gap: 0.5rem;
        flex-shrink: 0;
        max-width: calc(100% - 60px);
    }
    
    .logo-image {
        height: 36px;
        width: auto;
        max-width: 36px;
        flex-shrink: 0;
        /* iOS/Mobile logo animation - smooth entrance on first load */
        opacity: 0;
        transform: translate3d(0, -15px, 0) scale(0.85) rotate(-3deg);
        animation: logoImageEntranceMobile 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s forwards;
        -webkit-animation: logoImageEntranceMobile 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s forwards;
        will-change: transform, opacity;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
    
    .logo-text {
        font-size: 1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        /* iOS/Mobile text animation - smooth entrance on first load */
        opacity: 0;
        transform: translate3d(-12px, 0, 0);
        animation: logoTextEntranceMobile 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s forwards;
        -webkit-animation: logoTextEntranceMobile 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s forwards;
        will-change: transform, opacity;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
    
    /* Mobile Logo Entrance Animations - Optimized for iOS with smooth bounce effect */
    @keyframes logoImageEntranceMobile {
        0% {
            opacity: 0;
            transform: translate3d(0, -15px, 0) scale(0.85) rotate(-3deg);
        }
        60% {
            opacity: 1;
            transform: translate3d(0, 3px, 0) scale(1.05) rotate(1deg);
        }
        100% {
            opacity: 1;
            transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
        }
    }
    
    @keyframes logoTextEntranceMobile {
        0% {
            opacity: 0;
            transform: translate3d(-12px, 0, 0);
        }
        100% {
            opacity: 1;
            transform: translate3d(0, 0, 0);
        }
    }
    
    /* Mobile Menu Toggle */
    .mobile-menu-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 44px;
        height: 44px;
        background: transparent;
        border: 2px solid rgba(0, 217, 255, 0.4);
        border-radius: 8px;
        cursor: pointer;
        padding: 0;
        gap: 5px;
        transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        z-index: 1001;
        -webkit-tap-highlight-color: transparent;
    }
    
    .mobile-menu-toggle:active {
        transform: scale(0.95);
        background: rgba(0, 217, 255, 0.1);
    }
    
    .mobile-menu-toggle span {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--primary-color);
        border-radius: 2px;
        transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    /* Navigation Menu Mobile */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        max-width: 85vw;
        height: 100vh;
        background: linear-gradient(135deg, rgba(5, 7, 22, 0.98) 0%, rgba(21, 24, 40, 0.96) 100%);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border-left: 1px solid rgba(148, 163, 184, 0.35);
        box-shadow: -10px 0 50px rgba(0, 0, 0, 0.8);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 5rem 1.5rem 2rem;
        gap: 0;
        z-index: 1000;
        transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .nav-link {
        display: block;
        width: 100%;
        padding: 1rem 1.25rem;
        font-size: 1.1rem;
        border-radius: 10px;
        transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        -webkit-tap-highlight-color: transparent;
    }
    
    .nav-link:active {
        background: rgba(0, 217, 255, 0.15);
        transform: translateX(5px);
    }
    
    .nav-link::after {
        display: none;
    }
    
    /* Overlay for mobile menu */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Hero Section Mobile */
    .hero {
        min-height: 70vh;
        padding: 5rem 0 2rem;
        padding-top: calc(70px + 2rem);
        margin-top: 0;
    }
    
    .hero-inner {
        padding: 0 1rem;
        gap: 1.25rem;
        width: 100%;
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 1.75rem;
        line-height: 1.3;
        margin-bottom: 0.875rem;
        word-wrap: break-word;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 1.25rem;
        word-wrap: break-word;
    }
    
    .hero-badge {
        font-size: 0.7rem;
        padding: 0.45rem 0.875rem;
        margin-bottom: 0.875rem;
    }
    
    .hero-stats {
        flex-direction: row;
        gap: 0.5rem;
        width: 100%;
        margin-bottom: 1.25rem;
        justify-content: space-between;
        flex-wrap: nowrap;
        padding: 0;
    }
    
    .stat-item {
        flex: 1;
        min-width: 0;
        padding: 0.5rem 0.375rem;
        border-radius: 8px;
        text-align: center;
    }
    
    .stat-number {
        font-size: 1.35rem;
        line-height: 1.2;
    }
    
    .stat-label {
        font-size: 0.7rem;
        margin-top: 0.25rem;
        line-height: 1.2;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
        min-height: 48px;
        border-radius: 10px;
    }
    
    .hero-video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    /* General Mobile Adjustments */
    .section {
        padding: 2.5rem 0;
        width: 100%;
        overflow-x: hidden;
    }
    
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
        line-height: 1.3;
        padding: 0 1rem;
        word-wrap: break-word;
    }
    
    .container {
        padding: 0 1rem;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }
    
    /* Team Section - Mobile */
    .team-section {
        padding: 2rem 0;
        overflow: hidden;
        width: 100%;
        max-width: 100%;
        margin: 0;
    }
    
    .team-section .container {
        padding: 0;
        overflow: hidden;
        width: 100%;
        max-width: 100%;
        margin: 0;
    }
    
    .team-section .section-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        padding: 0 1rem;
    }
    
    .team-carousel-wrapper {
        padding: 0;
        margin: 0;
        width: 100%;
        overflow: hidden;
    }
    
    .team-container {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scroll-behavior: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 0;
        margin: 0;
        width: 100%;
    }
    
    .team-container::-webkit-scrollbar {
        display: none;
    }
    
    .team-grid {
        display: flex;
        gap: 0.85rem;
        padding: 0 1rem;
        width: max-content;
    }
    
    .team-card {
        width: 220px;
        height: 260px;
        padding: 1.25rem;
        border-radius: 18px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        background: rgba(13, 18, 34, 0.95);
        border: 1px solid rgba(59, 130, 246, 0.45);
        box-shadow: 0 18px 40px rgba(3, 7, 18, 0.55);
        cursor: pointer;
        scroll-snap-align: center;
    }
    
    .team-image {
        width: 120px;
        height: 120px;
        margin-bottom: 0.8rem;
        border-width: 3px;
        flex-shrink: 0;
    }
    
    .team-info {
        width: 100%;
        text-align: center;
    }
    
    .team-info h3 {
        font-size: 1.15rem;
        margin-bottom: 0.35rem;
        line-height: 1.3;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .team-position {
        font-size: 1rem;
        margin-bottom: 0.5rem;
        line-height: 1.3;
        color: var(--text-secondary);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .team-bio {
        display: none;
    }
    
    .team-social {
        gap: 0.35rem;
        justify-content: center;
        margin-top: 0.25rem;
    }
    
    /* Hide View Details button on mobile */
    .team-view-details-btn {
        display: none !important;
    }
    
    /* Make team card fully clickable on mobile */
    .team-card {
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(0, 217, 255, 0.2);
    }
    
    .team-card:active {
        transform: scale(0.98);
        opacity: 0.9;
    }
    
    .carousel-arrow {
        display: none !important;
    }
    
    
    /* Reviews Section - Mobile */
    .reviews-section {
        padding: 2rem 0;
        overflow: hidden;
        width: 100%;
        max-width: 100vw;
        margin: 0;
        box-sizing: border-box;
    }
    
    .reviews-section .container {
        padding: 0 1rem;
        overflow: hidden;
        width: 100%;
        max-width: 100vw;
        margin: 0;
        box-sizing: border-box;
    }
    
    .reviews-section .section-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        padding: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .reviews-carousel-wrapper {
        gap: 0.5rem;
        padding: 0;
        margin: 0;
        overflow: hidden;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    .reviews-container {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scroll-behavior: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 0;
        margin: 0;
        position: relative;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
        scroll-padding-inline: 1rem;
    }
    
    .reviews-container::-webkit-scrollbar {
        display: none;
    }
    
    .reviews-carousel {
        display: flex;
        gap: 0.75rem;
        padding: 0 1rem;
        margin: 0;
        will-change: transform;
        width: max-content;
        max-width: none;
    }
    
    .reviews-carousel::before,
    .reviews-carousel::after {
        display: none;
    }
    
    .review-card {
        min-width: 240px;
        max-width: 240px;
        padding: 1.25rem;
        border-radius: 10px;
        flex-shrink: 0;
        scroll-snap-align: start;
    }
    
    .review-header {
        margin-bottom: 0.75rem;
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }
    
    .review-avatar,
    .review-avatar-placeholder {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
        border-radius: 50%;
        object-fit: cover;
        flex-shrink: 0;
    }
    
    .review-info h4 {
        font-size: 0.9rem;
        margin-bottom: 0.2rem;
        line-height: 1.2;
    }
    
    .review-info p {
        font-size: 0.75rem;
        margin-bottom: 0.2rem;
        line-height: 1.3;
    }
    
    .review-rating {
        margin-bottom: 0.5rem;
    }
    
    .review-rating i {
        font-size: 0.8rem;
    }
    
    .review-text {
        font-size: 0.8rem;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    /* Portfolio Section Mobile */
    .portfolio-section {
        padding: 2rem 0;
        overflow: hidden;
        width: 100%;
    }
    
    .portfolio-section .container {
        padding: 0 1rem;
        width: 100%;
        max-width: 100%;
    }
    
    .portfolio-section .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.25rem;
        padding: 0;
        text-align: center;
    }
    
    /* Portfolio Filter - Mobile */
    .portfolio-filter {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        gap: 0.625rem;
        margin-bottom: 1.5rem;
        padding: 0.5rem 0;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 1rem;
        width: 100%;
    }
    
    .portfolio-filter::-webkit-scrollbar {
        display: none;
    }
    
    .filter-btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
        white-space: nowrap;
        flex-shrink: 0;
        min-height: 44px;
        min-width: auto;
        border-radius: 22px;
        scroll-snap-align: start;
        -webkit-tap-highlight-color: rgba(0, 217, 255, 0.2);
        touch-action: manipulation;
        /* Liquid Glass Effect - Reduced Glow */
        background: linear-gradient(135deg, 
            rgba(0, 240, 255, 0.15) 0%, 
            rgba(108, 99, 255, 0.12) 50%,
            rgba(0, 240, 255, 0.15) 100%);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(0, 240, 255, 0.25);
        box-shadow: 
            0 2px 8px rgba(0, 240, 255, 0.08),
            inset 0 1px 0 rgba(255, 255, 255, 0.1),
            inset 0 -1px 0 rgba(0, 0, 0, 0.2);
        position: relative;
        overflow: hidden;
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .filter-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
        transition: left 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .filter-btn:hover::before,
    .filter-btn.active::before {
        left: 100%;
    }
    
    .filter-btn:hover,
    .filter-btn.active {
        background: linear-gradient(135deg, 
            rgba(0, 240, 255, 0.2) 0%, 
            rgba(108, 99, 255, 0.18) 50%,
            rgba(0, 240, 255, 0.2) 100%);
        border-color: rgba(0, 240, 255, 0.4);
        box-shadow: 
            0 3px 12px rgba(0, 240, 255, 0.12),
            inset 0 1px 0 rgba(255, 255, 255, 0.15),
            inset 0 -1px 0 rgba(0, 0, 0, 0.2);
        transform: translateY(-1px);
    }
    
    .filter-btn:active {
        transform: scale(0.95);
    }
    
    /* Portfolio Pagination - Mobile */
    .portfolio-pagination-wrapper {
        width: 100%;
        padding: 0;
        position: relative;
    }
    
    .portfolio-pagination-controls {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0.75rem;
        margin-top: 1.5rem;
        padding: 0 1rem;
        flex-wrap: wrap;
    }
    
    .portfolio-page-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
        min-height: 44px;
        min-width: 90px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        -webkit-tap-highlight-color: rgba(0, 217, 255, 0.2);
        touch-action: manipulation;
    }
    
    .portfolio-page-btn:active {
        transform: scale(0.95);
    }
    
    .portfolio-page-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }
    
    .portfolio-page-info {
        font-size: 0.875rem;
        padding: 0 0.75rem;
        font-weight: 500;
        white-space: nowrap;
    }
    
    /* Portfolio Grid - Mobile */
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        padding: 0;
        width: 100%;
        margin: 0;
    }
    
    .portfolio-item {
        aspect-ratio: 1;
        border-radius: 12px;
        overflow: hidden;
        position: relative;
        -webkit-tap-highlight-color: rgba(0, 217, 255, 0.2);
        touch-action: manipulation;
        cursor: pointer;
        /* Remove blur effects on mobile */
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        filter: none !important;
        -webkit-filter: none !important;
    }
    
    .portfolio-item:active {
        transform: scale(0.98);
        opacity: 0.9;
    }
    
    /* Remove blur from portfolio image on mobile */
    .portfolio-item .portfolio-image img {
        filter: none !important;
        -webkit-filter: none !important;
    }
    
    /* Remove blur from portfolio image container */
    .portfolio-item .portfolio-image {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        filter: none !important;
        -webkit-filter: none !important;
    }
    
    /* Portfolio Overlay - Mobile */
    .portfolio-overlay {
        padding: 0.875rem;
        opacity: 1 !important;
        background: linear-gradient(to top, rgba(15, 23, 42, 0.98) 0%, rgba(15, 23, 42, 0.85) 50%, rgba(15, 23, 42, 0.6) 100%);
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        min-height: 100%;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        filter: none !important;
    }
    
    .portfolio-overlay h3 {
        font-size: 0.875rem;
        margin-bottom: 0.375rem;
        line-height: 1.3;
        font-weight: 600;
        color: var(--text-primary);
        word-wrap: break-word;
    }
    
    .portfolio-overlay p {
        font-size: 0.7rem;
        margin-bottom: 0.625rem;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        color: var(--text-secondary);
    }
    
    /* Hide View Details button on mobile */
    .portfolio-overlay .btn-small {
        display: none !important;
    }
    
    /* Portfolio Image - Mobile */
    .portfolio-image {
        width: 100%;
        height: 100%;
        position: relative;
        overflow: hidden;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        filter: none !important;
        -webkit-filter: none !important;
    }
    
    .portfolio-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        min-height: 160px;
        display: block;
        filter: none !important;
        -webkit-filter: none !important;
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
    
    /* Remove hover effects on mobile */
    .portfolio-item:hover {
        transform: none;
    }
    
    .portfolio-item:hover .portfolio-image img {
        transform: none;
        filter: none !important;
        -webkit-filter: none !important;
    }
    
    /* Disable blur on hover for mobile portfolio overlay */
    .portfolio-item:hover .portfolio-overlay {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        filter: none !important;
    }
    
    /* Contact Section Mobile */
    .contact-section {
        padding: 2rem 0;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    .contact-section .container {
        padding: 0 1rem;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    .contact-content {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
        max-width: 100%;
        padding: 0;
        box-sizing: border-box;
    }
    
    .contact-info-wrapper {
        display: none !important;
    }
    
    .contact-form-wrapper {
        width: 100%;
        max-width: 100%;
        padding: 0;
        box-sizing: border-box;
    }
    
    .contact-form {
        padding: 1.5rem;
        border-radius: 12px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .form-group {
        margin-bottom: 1.25rem;
        width: 100%;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 14px 16px;
        font-size: 1rem;
        min-height: 48px;
        border-radius: 10px;
        width: 100%;
        box-sizing: border-box;
        -webkit-appearance: none;
        appearance: none;
    }
    
    .form-group textarea {
        min-height: 120px;
        resize: vertical;
    }
    
    .contact-form .btn {
        width: 100%;
        margin-top: 0.5rem;
    }
    
    /* Buttons Mobile */
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
        min-height: 48px;
        border-radius: 10px;
        -webkit-tap-highlight-color: transparent;
    }
    
    .btn:active {
        transform: scale(0.98);
    }
    
    /* Software/Technologies Section Mobile */
    .software-section {
        padding: 2.5rem 0;
        width: 100%;
        overflow: hidden;
    }
    
    .software-section .container {
        padding: 0 1rem;
        width: 100%;
    }
    
    .software-logos {
        padding: 1rem 0;
        gap: 0.75rem;
        width: 100%;
        overflow: hidden;
    }
    
    .software-logos-wrapper {
        display: flex;
        gap: 0.75rem;
        animation: scroll-tech 60s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
        width: max-content;
        will-change: transform;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    
    .software-logo {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
        border-radius: 10px;
        min-height: 48px;
        flex-shrink: 0;
        white-space: nowrap;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    .software-logo i {
        font-size: 1.5rem;
        flex-shrink: 0;
    }
    
    .software-logo img {
        max-width: 28px;
        max-height: 28px;
        flex-shrink: 0;
    }
    
    .software-logo span {
        white-space: nowrap;
    }
    
    /* About Section Mobile */
    .about-section {
        padding: 2.5rem 0;
    }
    
    .about-content {
        padding: 0 1rem;
    }
    
    .about-text p {
        font-size: 0.95rem;
        line-height: 1.7;
        margin-bottom: 1rem;
    }
    
    /* Footer Mobile */
    .footer {
        padding: 2.5rem 1rem 1rem;
        text-align: left;
        width: 100%;
        max-width: 100%;
        margin: 0;
    }
    
    .footer .container {
        width: 100%;
        max-width: 100%;
        padding: 0 1rem;
        margin: 0;
    }
    
    .footer-content {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
        padding: 0;
        width: 100%;
        max-width: 100%;
        margin: 0;
    }
    
    .footer-section {
        text-align: left;
        width: 100%;
    }
    
    .footer-section h3,
    .footer-section h4 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .footer-section p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .footer-section ul {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
        width: 100%;
    }
    
    .footer-section ul li a {
        font-size: 0.9rem;
        padding: 0.5rem 0;
        min-height: 0;
        display: inline-flex;
        align-items: center;
        justify-content: flex-start;
    }
    
    .footer-links-row {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
    }
    
    .footer-links-row .footer-section {
        width: 100%;
    }
    
    .social-icons {
        justify-content: center;
        gap: 1rem;
        margin-top: 1rem;
    }
    
    .social-icons a {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        font-size: 1.25rem;
    }
    
    .footer-bottom {
        text-align: left;
        padding: 1.5rem 0 0;
        font-size: 0.85rem;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 0.35rem;
        width: 100%;
    }
    
    /* WhatsApp Float Button Mobile */
    .whatsapp-float-btn {
        width: 56px;
        height: 56px;
        bottom: 20px;
        right: 20px;
        font-size: 1.5rem;
        box-shadow: 0 4px 20px rgba(0, 217, 255, 0.4);
    }
    
    .whatsapp-float-btn:active {
        transform: scale(0.95);
    }
    
    /* Modals Mobile */
    .modal-content {
        width: 95%;
        max-width: 95%;
        margin: 1rem auto;
        max-height: 90vh;
        overflow-y: auto;
        border-radius: 16px;
    }
    
    .modal-header-legal {
        padding: 1.25rem;
    }
    
    .modal-header-legal h2 {
        font-size: 1.5rem;
    }
    
    .modal-body {
        padding: 1.25rem;
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .close-modal-btn-legal {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
    }
    
    /* Chat Modal Mobile */
    .chat-modal-container {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        border-radius: 0;
    }
    
    /* Intro Overlay Mobile - Much slower, smoother animations */
    .page-intro-overlay {
        animation-duration: 1.5s !important; /* Much slower exit animation */
        animation-delay: 5.5s !important; /* Much longer delay before exit */
    }
    
    .intro-glass {
        width: 90vw;
        max-width: 360px;
        padding: 2rem 1.5rem;
        animation-duration: 1.8s !important; /* Much slower card pop */
        animation-delay: 0.5s !important; /* Delayed start */
        will-change: transform, opacity;
        backface-visibility: hidden;
    }
    
    .intro-logo,
    .intro-logo-text {
        width: 100px;
        height: 100px;
        animation-duration: 3.5s !important; /* Much slower float animation */
        will-change: transform;
        backface-visibility: hidden;
    }
    
    .intro-message {
        font-size: 1.2rem;
        animation-duration: 1.3s !important; /* Slower fade */
        animation-delay: 1.2s !important; /* More delayed start */
        will-change: transform, opacity;
        backface-visibility: hidden;
    }
    
    .intro-subtext {
        font-size: 0.9rem;
        animation-duration: 1.3s !important; /* Slower fade */
        animation-delay: 1.6s !important; /* More delayed start */
        will-change: transform, opacity;
        backface-visibility: hidden;
    }
    
    .intro-progress::after {
        animation-duration: 4s !important; /* Much slower progress fill */
        animation-delay: 0.8s !important; /* Delayed start */
        will-change: transform;
        backface-visibility: hidden;
    }
    
    .intro-hint {
        animation-duration: 1.3s !important; /* Slower fade */
        animation-delay: 2s !important; /* More delayed start */
    }
    
    /* Smooth Scrolling */
    html {
        scroll-behavior: smooth;
    }
    
    /* Touch Optimizations */
    * {
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
    }
    
    a, button, .btn, .nav-link {
        -webkit-tap-highlight-color: rgba(0, 217, 255, 0.2);
    }
    
    /* Disable animations on mobile for better performance */
    @media (prefers-reduced-motion: no-preference) {
        .hero-background::before,
        .hero-background::after,
        .hero-flare-left,
        .hero-flare-right {
            animation-duration: 20s;
        }
    }
}

/* Desktop - Hide Mobile Menu Toggle */
@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .nav-menu {
        position: static !important;
        width: auto !important;
        height: auto !important;
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border: none !important;
        box-shadow: none !important;
        flex-direction: row !important;
        padding: 0 !important;
        gap: 2rem !important;
        overflow: visible !important;
        right: auto !important;
    }
    
    .nav-overlay {
        display: none !important;
    }
}

/* Tablet Responsive (769px - 991px) */
@media (min-width: 769px) and (max-width: 991px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .team-card {
        padding: 1.5rem;
    }
    
    .team-image {
        width: 120px;
        height: 120px;
    }
    
    .review-card {
        min-width: 300px;
        max-width: 300px;
        padding: 1.75rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .whatsapp-float-btn,
    .chat-modal-container,
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .section {
        page-break-inside: avoid;
    }
}

/* Mobile Scroll Smooth Cool Animations */
@media (max-width: 768px) {
    /* Scroll Animation Keyframes */
    @keyframes scrollFadeInUp {
        from {
            opacity: 0;
            transform: translateY(40px) scale(0.95);
        }
        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }
    
    @keyframes scrollSlideInLeft {
        from {
            opacity: 0;
            transform: translateX(-50px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
    
    @keyframes scrollSlideInRight {
        from {
            opacity: 0;
            transform: translateX(50px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
    
    @keyframes scrollScaleIn {
        from {
            opacity: 0;
            transform: scale(0.8);
        }
        to {
            opacity: 1;
            transform: scale(1);
        }
    }
    
    @keyframes scrollRotateIn {
        from {
            opacity: 0;
            transform: rotate(-5deg) scale(0.9);
        }
        to {
            opacity: 1;
            transform: rotate(0deg) scale(1);
        }
    }
    
    /* Initial state for scroll elements */
    .section,
    .team-card,
    .review-card,
    .portfolio-item,
    .form-group,
    .footer-section {
        opacity: 0;
        transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    /* Scroll animation classes */
    .scroll-animate {
        animation: scrollFadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    }
    
    .scroll-animate-left {
        animation: scrollSlideInLeft 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    }
    
    .scroll-animate-right {
        animation: scrollSlideInRight 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    }
    
    .scroll-animate-scale {
        animation: scrollScaleIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    }
    
    .scroll-animate-rotate {
        animation: scrollRotateIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    }
    
    /* Smooth scroll behavior */
    html {
        scroll-behavior: smooth;
    }
    
    /* Performance optimization */
    .section,
    .team-card,
    .review-card,
    .portfolio-item {
        will-change: transform, opacity;
    }
}

/* Laptop/Desktop Smooth Scroll Cool Animations */
@media (min-width: 769px) {
    /* Desktop Scroll Animation Keyframes */
    @keyframes desktopFadeInUp {
        from {
            opacity: 0;
            transform: translateY(60px) scale(0.95);
        }
        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }
    
    @keyframes desktopSlideInLeft {
        from {
            opacity: 0;
            transform: translateX(-80px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
    
    @keyframes desktopSlideInRight {
        from {
            opacity: 0;
            transform: translateX(80px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
    
    @keyframes desktopScaleIn {
        from {
            opacity: 0;
            transform: scale(0.85) rotateY(-10deg);
        }
        to {
            opacity: 1;
            transform: scale(1) rotateY(0deg);
        }
    }
    
    @keyframes desktopRotateIn {
        from {
            opacity: 0;
            transform: rotate(-8deg) scale(0.9);
        }
        to {
            opacity: 1;
            transform: rotate(0deg) scale(1);
        }
    }
    
    @keyframes desktopZoomIn {
        from {
            opacity: 0;
            transform: scale(0.7);
        }
        to {
            opacity: 1;
            transform: scale(1);
        }
    }
    
    /* Initial state for scroll elements */
    .section,
    .team-card,
    .review-card,
    .portfolio-item,
    .form-group,
    .footer-section {
        opacity: 0;
        transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                    transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    /* Scroll animation classes */
    .desktop-scroll-animate {
        animation: desktopFadeInUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    }
    
    .desktop-scroll-animate-left {
        animation: desktopSlideInLeft 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    }
    
    .desktop-scroll-animate-right {
        animation: desktopSlideInRight 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    }
    
    .desktop-scroll-animate-scale {
        animation: desktopScaleIn 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    }
    
    .desktop-scroll-animate-rotate {
        animation: desktopRotateIn 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    }
    
    .desktop-scroll-animate-zoom {
        animation: desktopZoomIn 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    }
    
    /* Smooth scroll behavior */
    html {
        scroll-behavior: smooth;
    }
    
    /* Performance optimization */
    .section,
    .team-card,
    .review-card,
    .portfolio-item {
        will-change: transform, opacity;
    }
    
    /* Hover effects with smooth transitions */
    .team-card:hover,
    .review-card:hover,
    .portfolio-item:hover {
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
}

