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

:root {
    --primary: #8b5cf6;
    --secondary: #ec4899;
    --accent: #06b6d4;
    --purple: #a855f7;
    --orange: #f97316;
    --green: #10b981;
    --dark: #0f0f23;
    --light: #ffffff;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: radial-gradient(circle at 50% 0%, #1a1a2e 0%, #0f0f23 100%);
    color: var(--light);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(236, 72, 153, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Animated gradient mesh background - Simplified for performance */
body::after {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 0% 0%, rgba(139, 92, 246, 0.05) 0%, transparent 30%),
        radial-gradient(circle at 100% 100%, rgba(236, 72, 153, 0.05) 0%, transparent 30%);
    animation: meshMove 30s ease-in-out infinite; /* Slower animation */
    pointer-events: none;
    z-index: 0;
    will-change: transform;
}

@keyframes meshMove {
    0%, 100% { transform: translate3d(0, 0, 0); } /* GPU accelerated */
    50% { transform: translate3d(-3%, -3%, 0); } /* Simplified */
}

/* Custom Cursor */
.cursor,
.cursor-follower {
    display: none;
}

/* Particle Canvas */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    will-change: transform;
    transform: translateZ(0);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.3);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideDown 0.8s ease-out;
}

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

.logo {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logoFloat 3s ease-in-out infinite;
}

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

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-link {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.nav-link:nth-child(1) { animation-delay: 0.1s; }
.nav-link:nth-child(2) { animation-delay: 0.2s; }
.nav-link:nth-child(3) { animation-delay: 0.3s; }
.nav-link:nth-child(4) { animation-delay: 0.4s; }

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s ease;
}

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

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

.menu-toggle {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 3;
    padding: 3rem;
    background: radial-gradient(circle, rgba(15, 15, 35, 0.6) 0%, transparent 70%);
    backdrop-filter: blur(5px);
    border-radius: 30px;
}

.title-container {
    perspective: 1000px;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: clamp(4rem, 12vw, 10rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1;
    display: flex;
    justify-content: center;
}

.hero-title .word {
    display: inline-block;
    opacity: 0;
    animation: revealLetter 1s ease-out forwards;
    background: linear-gradient(135deg, #fff 0%, var(--primary) 50%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 20px rgba(139, 92, 246, 0.4));
    will-change: opacity, transform;
    transform: translateZ(0);
}

.hero-title .word:nth-child(1) { animation-delay: 0.1s; }
.hero-title .word:nth-child(2) { animation-delay: 0.2s; }
.hero-title .word:nth-child(3) { animation-delay: 0.3s; }
.hero-title .word:nth-child(4) { animation-delay: 0.4s; }
.hero-title .word:nth-child(5) { animation-delay: 0.5s; }
.hero-title .word:nth-child(6) { animation-delay: 0.6s; }
.hero-title .word:nth-child(7) { animation-delay: 0.7s; }
.hero-title .word:nth-child(8) { animation-delay: 0.8s; }
.hero-title .word:nth-child(9) { animation-delay: 0.9s; }

@keyframes revealLetter {
    0% {
        opacity: 0;
        transform: rotateX(-90deg) translateY(50px);
    }
    100% {
        opacity: 1;
        transform: rotateX(0) translateY(0);
    }
}

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

.subtitle-container {
    overflow: hidden;
    margin-bottom: 3rem;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 400;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    opacity: 0;
    animation: slideInLeft 1s ease-out 1s forwards;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 20px rgba(139, 92, 246, 0.5), 0 0 40px rgba(236, 72, 153, 0.3);
}

.subtitle-badges {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
    opacity: 0;
    animation: fadeIn 1s ease-out 1.5s forwards;
}

.badge {
    padding: 0.5rem 1.5rem;
    background: rgba(139, 92, 246, 0.15);
    border: 2px solid var(--primary);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3), 0 2px 10px rgba(0, 0, 0, 0.3);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.badge:nth-child(2) {
    border-color: var(--secondary);
    color: var(--secondary);
    background: rgba(236, 72, 153, 0.15);
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.3), 0 2px 10px rgba(0, 0, 0, 0.3);
}

.badge:nth-child(3) {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(6, 182, 212, 0.15);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.3), 0 2px 10px rgba(0, 0, 0, 0.3);
}

.badge:nth-child(4) {
    border-color: var(--green);
    color: var(--green);
    background: rgba(16, 185, 129, 0.15);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3), 0 2px 10px rgba(0, 0, 0, 0.3);
}

.badge:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 40px currentColor;
}

.title-accent {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    margin: 1rem auto;
    border-radius: 2px;
    animation: widthExpand 1s ease-out 1s forwards;
    width: 0;
}

@keyframes widthExpand {
    to { width: 200px; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.cta-container {
    opacity: 0;
    animation: fadeIn 1s ease-out 1.5s forwards;
}

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

.cta-button {
    padding: 1.5rem 4rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    color: var(--light);
    border: 2px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.cta-button span {
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.button-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
    z-index: 1;
}

.cta-button:hover .button-bg {
    width: 400px;
    height: 400px;
}

.cta-button:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 0 60px rgba(139, 92, 246, 0.6), 0 0 100px rgba(236, 72, 153, 0.4);
}

.button-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.4), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.cta-button:hover .button-glow {
    opacity: 1;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    animation: fadeIn 1s ease-out 2s forwards, bounce 2s ease-in-out 3s infinite;
}

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

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.wheel {
    width: 4px;
    height: 10px;
    background: var(--primary);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s ease-in-out infinite;
}

@keyframes scroll {
    0% {
        top: 8px;
        opacity: 1;
    }
    100% {
        top: 28px;
        opacity: 0;
    }
}

.scroll-indicator p {
    display: none;
}

/* Floating Shapes */
.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4; /* Reduced from 0.5 */
    animation: float 25s ease-in-out infinite; /* Slower animation, removed colorChange */
    mix-blend-mode: screen;
    will-change: transform; /* GPU acceleration hint */
    transform: translateZ(0); /* Force GPU layer */
}

.shape-1 {
    width: 400px; /* Reduced from 500px */
    height: 400px;
    background: radial-gradient(circle, var(--primary), var(--purple));
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 350px; /* Reduced from 400px */
    height: 350px;
    background: radial-gradient(circle, var(--secondary), var(--orange));
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.shape-3 {
    width: 400px; /* Reduced from 450px */
    height: 400px;
    background: radial-gradient(circle, var(--accent), var(--green));
    bottom: 10%;
    left: 50%;
    animation-delay: 4s;
}

/* Removed shape-4 and shape-5 for better performance */

@keyframes float {
    0%, 100% {
        transform: translate3d(0, 0, 0); /* GPU accelerated */
    }
    50% {
        transform: translate3d(30px, -30px, 0); /* Simplified animation */
    }
}

/* Hero SVG Graphics */
.hero-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.3;
}

.animated-circle {
    display: none;
}

.circle-1 { animation-delay: 0s; }
.circle-2 { animation-delay: 2s; }
.circle-3 { animation-delay: 4s; }

@keyframes circlePulse {
    0%, 100% { transform: scale(1); opacity: 0.2; }
    50% { transform: scale(1.3); opacity: 0.4; }
}

.animated-polygon {
    display: none;
}

.poly-1 { animation-delay: 0s; }
.poly-2 { animation-delay: 5s; }

@keyframes polyRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Decorative Elements */
.decorative-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.deco-line {
    display: none;
}

.deco-line-1 {
    top: 20%;
    left: 10%;
    animation-delay: 1.5s;
}

.deco-line-2 {
    bottom: 20%;
    right: 10%;
    animation-delay: 1.8s;
}

@keyframes lineExpand {
    to { width: 200px; }
}

.deco-circle {
    display: none;
}

.deco-circle-1 {
    top: 30%;
    right: 15%;
    animation-delay: 2s;
}

.deco-circle-2 {
    bottom: 35%;
    left: 15%;
    animation-delay: 2.2s;
}

@keyframes circleExpand {
    to {
        width: 80px;
        height: 80px;
        opacity: 0.5;
    }
}

/* Grid Overlay */
.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(139, 92, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.3;
}

/* Hero Visual Elements */
.hero-visuals {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

/* Floating Design Mockups */
.mockup {
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: mockupFloat 6s ease-in-out infinite;
}

.mockup-1 {
    top: 15%;
    left: 8%;
    width: 200px;
    animation-delay: 0s;
}

.mockup-2 {
    top: 60%;
    right: 10%;
    width: 180px;
    animation-delay: 2s;
}

.mockup-3 {
    bottom: 20%;
    left: 12%;
    width: 160px;
    animation-delay: 4s;
}

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

.mockup-content {
    position: relative;
}

.mockup-header {
    width: 100%;
    height: 30px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 6px;
    margin-bottom: 1rem;
}

.mockup-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mockup-line {
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    animation: linePulse 2s ease-in-out infinite;
}

.mockup-line.short {
    width: 60%;
}

@keyframes linePulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.mockup-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.mockup-box {
    aspect-ratio: 1;
    background: var(--gradient-1);
    border-radius: 6px;
    animation: boxGlow 3s ease-in-out infinite;
}

.mockup-box:nth-child(2) {
    background: var(--gradient-2);
    animation-delay: 0.5s;
}

.mockup-box:nth-child(3) {
    background: var(--gradient-3);
    animation-delay: 1s;
}

.mockup-box:nth-child(4) {
    background: linear-gradient(135deg, var(--green), var(--accent));
    animation-delay: 1.5s;
}

@keyframes boxGlow {
    0%, 100% { box-shadow: 0 0 10px rgba(139, 92, 246, 0.3); }
    50% { box-shadow: 0 0 20px rgba(236, 72, 153, 0.6); }
}

.mockup-circle-group {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
}

.mockup-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-1);
    animation: circleScale 2s ease-in-out infinite;
}

.mockup-circle:nth-child(2) {
    background: var(--gradient-2);
    animation-delay: 0.3s;
}

.mockup-circle:nth-child(3) {
    background: var(--gradient-3);
    animation-delay: 0.6s;
}

@keyframes circleScale {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Design Tool Icons */
.tool-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    animation: iconFloat 5s ease-in-out infinite;
    transition: all 0.3s ease;
}

.tool-icon:hover {
    transform: scale(1.1) translateY(-10px);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.4);
}

.tool-icon svg {
    width: 30px;
    height: 30px;
}

.icon-1 {
    top: 25%;
    right: 15%;
    color: var(--primary);
    animation-delay: 0s;
}

.icon-2 {
    top: 45%;
    right: 8%;
    color: var(--secondary);
    animation-delay: 1s;
}

.icon-3 {
    bottom: 30%;
    right: 20%;
    color: var(--accent);
    animation-delay: 2s;
}

.icon-4 {
    top: 35%;
    left: 5%;
    color: var(--green);
    animation-delay: 3s;
}

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

/* Geometric Shapes */
.geometric-shape {
    position: absolute;
    opacity: 0.4;
    animation: shapeRotate 20s linear infinite;
}

.shape-hexagon {
    top: 20%;
    left: 20%;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--purple));
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    filter: blur(1px);
}

.shape-triangle {
    bottom: 25%;
    right: 25%;
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 87px solid var(--secondary);
    opacity: 0.3;
    filter: blur(1px);
}

.shape-square {
    top: 55%;
    left: 25%;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent), var(--green));
    border-radius: 8px;
    transform: rotate(45deg);
    filter: blur(1px);
}

@keyframes shapeRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 1.5rem 2rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: rgba(15, 15, 35, 0.98);
        backdrop-filter: blur(20px);
        border-left: 2px solid rgba(139, 92, 246, 0.3);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        padding: 2rem;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.2rem;
        width: 100%;
        text-align: center;
        padding: 1rem;
        border-radius: 10px;
        transition: all 0.3s ease;
    }

    .nav-link:hover {
        background: rgba(139, 92, 246, 0.2);
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .menu-toggle span {
        width: 25px;
        height: 3px;
        background: var(--light);
        transition: all 0.3s ease;
        border-radius: 3px;
    }

    .hero {
        min-height: 100vh;
        padding: 0 1rem;
    }

    .hero-content {
        padding: 2rem 1.5rem;
    }

    .hero-title {
        font-size: clamp(2.5rem, 12vw, 5rem);
        line-height: 1.1;
    }

    .hero-subtitle {
        font-size: clamp(0.9rem, 2.5vw, 1.2rem);
        letter-spacing: 0.15em;
    }

    .subtitle-badges {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .badge {
        padding: 0.4rem 1rem;
        font-size: 0.75rem;
    }

    .cta-button {
        padding: 1rem 2.5rem;
        font-size: 0.95rem;
    }

    .cursor,
    .cursor-follower {
        display: none !important;
    }

    * {
        cursor: auto !important;
    }

    /* Disable heavy animations on mobile */
    .floating-shapes,
    .hero-visuals,
    .decorative-elements {
        display: none;
    }

    /* Simplify particle canvas on mobile */
    #particleCanvas {
        opacity: 0.3;
    }
}

/* Glassmorphism Effect */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.15), rgba(183, 77, 255, 0.15));
    border: 2px solid;
    border-image: linear-gradient(90deg, var(--primary), var(--purple), var(--secondary)) 1;
    border-radius: 50px;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 30px rgba(0, 245, 255, 0.3);
    animation: tagGlow 3s ease-in-out infinite;
}

@keyframes tagGlow {
    0%, 100% { box-shadow: 0 0 30px rgba(0, 245, 255, 0.3); }
    50% { box-shadow: 0 0 50px rgba(183, 77, 255, 0.5); }
}

.section-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--purple), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 300% 300%;
    animation: gradientShift 5s ease infinite;
}

.section-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about-section {
    padding: 8rem 0;
    position: relative;
    z-index: 3;
    overflow: hidden;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 5rem;
    align-items: center;
    margin-top: 4rem;
}

.about-image {
    position: relative;
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.about-image.animate {
    opacity: 1;
    transform: translateX(0);
}

.video-container {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.4);
}

.about-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 20px;
}

.video-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.video-control-btn {
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.video-control-btn:hover {
    background: rgba(139, 92, 246, 0.8);
    border-color: var(--primary);
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.5);
}

.video-control-btn svg {
    width: 24px;
    height: 24px;
    color: white;
}

.about-text {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.about-text.animate {
    opacity: 1;
    transform: translateX(0);
}

.about-text h3 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lead-text {
    font-size: 1.4rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 3rem 0;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.highlight-item:hover {
    transform: translateX(10px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.highlight-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.highlight-icon svg {
    width: 28px;
    height: 28px;
}

.highlight-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--light);
}

.highlight-item p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.about-cta {
    display: flex;
    gap: 1.5rem;
    margin-top: 3rem;
}

.btn-primary,
.btn-secondary {
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--light);
}

.btn-primary span {
    position: relative;
    z-index: 2;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover .button-bg {
    width: 400px;
    height: 400px;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: var(--light);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.3);
}

/* Stats Section */
.stats-section {
    padding: 8rem 0;
    position: relative;
    z-index: 3;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.05), rgba(183, 77, 255, 0.05));
    backdrop-filter: blur(10px);
    border: 2px solid rgba(0, 245, 255, 0.2);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(50px);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--purple), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.stat-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.stat-card:nth-child(1) {
    border-color: rgba(139, 92, 246, 0.3);
}

.stat-card:nth-child(2) {
    border-color: rgba(236, 72, 153, 0.3);
}

.stat-card:nth-child(3) {
    border-color: rgba(6, 182, 212, 0.3);
}

.stat-card:nth-child(4) {
    border-color: rgba(16, 185, 129, 0.3);
}

.stat-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.4), 0 0 80px rgba(236, 72, 153, 0.2);
}

.stat-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    color: var(--primary);
}

.stat-icon svg {
    width: 100%;
    height: 100%;
}

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

.stat-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Services Section */
.services-section {
    padding: 8rem 0;
    position: relative;
    z-index: 3;
    background: linear-gradient(180deg, transparent 0%, rgba(99, 102, 241, 0.05) 50%, transparent 100%);
}

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

.service-card {
    perspective: 1000px;
    height: 350px;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-card.animate {
    opacity: 1;
    transform: translateY(0);
}

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

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

.service-front,
.service-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.service-front {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-back {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    transform: rotateY(180deg);
}

.service-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-front h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--light);
}

.service-front p {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

.service-back ul {
    list-style: none;
    text-align: left;
}

.service-back li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1.1rem;
}

.service-back li:last-child {
    border-bottom: none;
}

/* Work Section */
.work-section {
    padding: 8rem 0;
    position: relative;
    z-index: 3;
}

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

.work-item {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.work-item.animate {
    opacity: 1;
    transform: scale(1);
}

.work-image {
    position: relative;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.work-item:hover .project-image {
    transform: scale(1.1);
}

.work-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.gradient-1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: 200% 200%;
    animation: gradientRotate 8s ease infinite;
}

.gradient-2 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    background-size: 200% 200%;
    animation: gradientRotate 8s ease infinite;
}

.gradient-3 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    background-size: 200% 200%;
    animation: gradientRotate 8s ease infinite;
}

.gradient-4 {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    background-size: 200% 200%;
    animation: gradientRotate 8s ease infinite;
}

.gradient-5 {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    background-size: 200% 200%;
    animation: gradientRotate 8s ease infinite;
}

.gradient-6 {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
    background-size: 200% 200%;
    animation: gradientRotate 8s ease infinite;
}

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

.placeholder-text {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.3);
    z-index: 1;
}

.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.95), rgba(236, 72, 153, 0.95));
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.4s ease;
}

.work-item:hover .work-overlay {
    opacity: 1;
}

.work-overlay h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.work-overlay p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.view-project {
    padding: 1rem 2.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: var(--light);
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.view-project::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
}

.view-project:hover::before {
    width: 300px;
    height: 300px;
}

.view-project:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.5), 0 0 60px rgba(139, 92, 246, 0.6);
}

/* Skills Section */
.skills-section {
    padding: 8rem 0;
    position: relative;
    z-index: 3;
    background: linear-gradient(180deg, transparent 0%, rgba(139, 92, 246, 0.05) 50%, transparent 100%);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.skill-category {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(236, 72, 153, 0.04));
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 2.5rem;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
}

.skill-category.animate {
    opacity: 1;
    transform: translateY(0);
}

.skill-category:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.3);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.category-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
    flex-shrink: 0;
}

.category-icon svg {
    width: 30px;
    height: 30px;
}

.category-header h3 {
    font-size: 1.5rem;
    color: white;
    font-weight: 700;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.skill-item {
    transition: all 0.3s ease;
}

.skill-item:hover {
    transform: translateX(10px);
}

.skill-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.skill-icon-wrapper {
    width: 35px;
    height: 35px;
    background: rgba(139, 92, 246, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.skill-icon-wrapper svg {
    width: 20px;
    height: 20px;
}

.skill-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    flex: 1;
}

.skill-level {
    font-size: 0.85rem;
    padding: 0.3rem 0.8rem;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid var(--primary);
    border-radius: 20px;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.skill-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    border-radius: 10px;
    width: var(--progress);
    position: relative;
    transition: width 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.6);
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3));
    animation: shimmer 2s infinite;
}

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

/* Skills Tags */
.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.skill-tag {
    padding: 0.8rem 1.8rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: default;
}

.skill-tag:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.2));
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
    color: white;
}

/* Testimonials Section */
.testimonials-section {
    padding: 8rem 0;
    position: relative;
    z-index: 3;
    overflow: hidden;
}

.testimonials-container {
    position: relative;
    max-width: 900px;
    margin: 4rem auto 0;
    padding: 0 3rem;
}

/* Decorative Elements */
.testimonial-decoration {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    pointer-events: none;
    animation: float 15s ease-in-out infinite;
}

.testimonial-deco-1 {
    width: 300px;
    height: 300px;
    background: var(--primary);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.testimonial-deco-2 {
    width: 250px;
    height: 250px;
    background: var(--secondary);
    bottom: -10%;
    right: -10%;
    animation-delay: 5s;
}

.testimonial-deco-3 {
    width: 200px;
    height: 200px;
    background: var(--accent);
    top: 50%;
    right: -5%;
    animation-delay: 10s;
}

/* Navigation Arrows */
.testimonial-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    color: white;
}

.testimonial-nav:hover {
    background: rgba(139, 92, 246, 0.3);
    border-color: var(--primary);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

.testimonial-nav svg {
    width: 24px;
    height: 24px;
}

.testimonial-prev {
    left: -30px;
}

.testimonial-next {
    right: -30px;
}

.testimonials-slider {
    position: relative;
    min-height: 450px;
}

.testimonial-card {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(236, 72, 153, 0.05));
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    padding: 3.5rem;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    transform: scale(0.9) translateY(30px);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.testimonial-card.active {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: all;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    border-radius: 30px 30px 0 0;
}

.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.quote-icon-modern {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

.quote-icon-modern svg {
    width: 32px;
    height: 32px;
}

.star-rating {
    display: flex;
    gap: 0.3rem;
}

.star-rating svg {
    width: 24px;
    height: 24px;
    fill: #fbbf24;
    filter: drop-shadow(0 2px 4px rgba(251, 191, 36, 0.3));
}

.testimonial-text {
    font-size: 1.25rem;
    line-height: 1.9;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.95);
    font-style: italic;
    position: relative;
    padding-left: 1.5rem;
    border-left: 3px solid var(--primary);
}

.testimonial-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.author-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.4rem;
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.author-info h4 {
    margin-bottom: 0.4rem;
    font-size: 1.2rem;
    color: white;
}

.author-info p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

.verified-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 50px;
    color: #10b981;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.verified-badge svg {
    width: 18px;
    height: 18px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dot.active {
    background: var(--primary);
    transform: scale(1.4);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.6);
}

.dot:hover {
    background: var(--primary);
    transform: scale(1.2);
}

/* Contact Section */
.contact-section {
    padding: 8rem 0;
    position: relative;
    z-index: 3;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    margin-top: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    border-color: var(--primary);
    transform: translateX(10px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    color: var(--primary);
}

.contact-icon svg {
    width: 100%;
    height: 100%;
}

.contact-item h4 {
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

.contact-item p {
    color: rgba(255, 255, 255, 0.6);
}

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

.social-link {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    transition: all 0.3s ease;
}

.social-link svg {
    width: 24px;
    height: 24px;
}

.social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.2rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    color: var(--light);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

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

.submit-button {
    padding: 1.2rem 3rem;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--light);
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.submit-button span {
    position: relative;
    z-index: 2;
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.submit-button:hover .button-bg {
    width: 400px;
    height: 400px;
}

/* Footer */
.footer {
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 3;
}

.footer p {
    color: rgba(255, 255, 255, 0.5);
    margin: 0.5rem 0;
}

/* Responsive Updates */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .section-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .section-description {
        font-size: 1rem;
    }

    /* About Section Mobile */
    .about-section {
        padding: 5rem 0;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .video-container {
        width: 100%;
        height: 350px;
    }

    .about-text h3 {
        font-size: 1.8rem;
    }

    .lead-text {
        font-size: 1.1rem;
    }

    .about-text p {
        font-size: 1rem;
    }

    .about-highlights {
        margin: 2rem 0;
    }

    .highlight-item {
        padding: 1.2rem;
    }

    .about-cta {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
        padding: 1rem 2rem;
    }

    /* Stats Section Mobile */
    .stats-section {
        padding: 5rem 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .stat-card {
        padding: 2rem 1.5rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    /* Services Section Mobile */
    .services-section {
        padding: 5rem 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        height: 280px;
    }

    .service-front,
    .service-back {
        padding: 2rem;
    }

    /* Work Section Mobile */
    .work-section {
        padding: 5rem 0;
    }

    .work-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .work-image {
        height: 300px;
    }

    /* Skills Section Mobile */
    .skills-section {
        padding: 5rem 0;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .skill-category {
        padding: 1.5rem;
    }

    .category-header {
        gap: 1rem;
        flex-wrap: wrap;
    }

    .category-icon {
        width: 50px;
        height: 50px;
    }

    .category-header h3 {
        font-size: 1.2rem;
    }

    .skills-tags {
        margin-top: 3rem;
        padding-top: 2rem;
    }

    .skill-tag {
        padding: 0.6rem 1.4rem;
        font-size: 0.85rem;
    }

    /* Testimonials Section Mobile */
    .testimonials-section {
        padding: 5rem 0;
    }

    .testimonials-container {
        padding: 0 0.5rem;
    }

    .testimonial-nav {
        width: 45px;
        height: 45px;
    }

    .testimonial-nav svg {
        width: 20px;
        height: 20px;
    }

    .testimonial-prev {
        left: 0;
    }

    .testimonial-next {
        right: 0;
    }

    .testimonial-card {
        padding: 2rem 1.5rem;
    }

    .testimonials-slider {
        min-height: 500px;
    }

    .testimonial-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .quote-icon-modern {
        width: 50px;
        height: 50px;
    }

    .quote-icon-modern svg {
        width: 26px;
        height: 26px;
    }

    .star-rating svg {
        width: 20px;
        height: 20px;
    }

    .testimonial-text {
        font-size: 1rem;
        padding-left: 1rem;
        line-height: 1.7;
    }

    .testimonial-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding-top: 1.5rem;
    }

    .author-avatar {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }

    .author-info h4 {
        font-size: 1.1rem;
    }

    .verified-badge {
        width: 100%;
        justify-content: center;
    }

    .slider-dots {
        margin-top: 2rem;
    }

    /* Contact Section Mobile */
    .contact-section {
        padding: 5rem 0;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .contact-item {
        padding: 1.2rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 1rem 1.2rem;
        font-size: 0.95rem;
    }

    .submit-button {
        width: 100%;
        justify-content: center;
    }
}

/* Gallery Modal */
.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-modal.active {
    display: block;
    opacity: 1;
}

.gallery-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgb(15, 15, 35), rgb(30, 20, 50));
    overflow: hidden;
}


.gallery-modal-content {
    position: relative;
    width: 100%;
    height: 100vh;
    margin: 0;
    background: transparent;
    padding: 2rem 3rem 3rem 3rem;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    will-change: scroll-position;
    contain: layout style; /* Performance optimization */
}


.gallery-modal-content::-webkit-scrollbar {
    width: 8px;
}

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

.gallery-modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 10px;
}

.gallery-modal-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
}

.gallery-close {
    position: fixed;
    top: 2rem;
    right: 3rem;
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10100;
    color: white;
    backdrop-filter: blur(10px);
}

/* Hide gallery close button when preview is active */
.gallery-modal.preview-open .gallery-close {
    opacity: 0;
    pointer-events: none;
}

.gallery-close:hover {
    background: rgba(139, 92, 246, 0.8);
    border-color: var(--primary);
    transform: rotate(90deg) scale(1.15);
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.6);
}

.gallery-close svg {
    width: 28px;
    height: 28px;
}

.gallery-header {
    text-align: center;
    margin-bottom: 4rem;
    padding-bottom: 2.5rem;
    position: relative;
}

.gallery-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), transparent);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.6);
}

.gallery-header h2 {
    font-size: 3.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    position: relative;
}

.gallery-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.15rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: relative;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    padding: 0 0 3rem 0;
    max-width: 1400px;
    margin: 0 auto;
    will-change: scroll-position;
    contain: layout style paint; /* CSS containment for better performance */
}

.gallery-item {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 25px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease,
                box-shadow 0.3s ease,
                border-color 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.15);
    background: rgba(10, 10, 25, 0.9);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    will-change: transform;
    contain: layout style paint; /* CSS containment */
    transform: translateZ(0); /* GPU acceleration */
}


/* Only enable hover effects on desktop for better mobile performance */
@media (hover: hover) and (pointer: fine) {
    .gallery-item:hover {
        transform: translateY(-10px) scale(1.01); /* Reduced movement */
        border-color: rgba(139, 92, 246, 0.8);
        box-shadow: 0 20px 50px rgba(139, 92, 246, 0.5); /* Reduced shadow */
    }

    .gallery-item:hover img,
    .gallery-item:hover .gallery-video-thumb {
        transform: scale(1.05); /* Reduced from 1.1 */
    }
}

.gallery-item img,
.gallery-video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease; /* Faster transition */
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
    image-rendering: -webkit-optimize-contrast;
}

.video-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 35, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Loading Placeholders */
.image-loading-placeholder,
.video-loading-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 15, 35, 0.9), rgba(30, 20, 50, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(139, 92, 246, 0.2);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Lazy loaded images */
.gallery-item img.lazy-load {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.gallery-item img.lazy-load.loaded {
    opacity: 1;
}

/* Video preview thumbnail */
.video-preview-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: opacity 0.3s ease;
}

/* Dark overlay for better contrast with play button */
.video-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.3) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110px;
    height: 110px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.95), rgba(168, 85, 247, 0.95));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: transform 0.3s ease, background 0.3s ease;
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.6);
    border: 4px solid rgba(255, 255, 255, 0.3);
    z-index: 2;
}

.video-play-icon::before {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    border-radius: 50%;
    border: 2px solid rgba(139, 92, 246, 0.2);
    opacity: 0.5;
}

.gallery-item:hover .video-play-icon {
    transform: translate(-50%, -50%) scale(1.2);
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.98), rgba(219, 39, 119, 0.98));
}

.video-play-icon svg {
    width: 50px;
    height: 50px;
    margin-left: 6px;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.4));
}

.video-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem 2rem 2rem 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 70%, transparent 100%);
    z-index: 1;
}

.video-title-overlay h4 {
    color: white;
    font-size: 1.4rem;
    margin-bottom: 0.6rem;
    font-weight: 800;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.7);
    letter-spacing: 0.01em;
}

.video-title-overlay p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.video-title-overlay p::before {
    content: '';
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.8);
}

/* Video duration badge */
.video-duration {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 2;
}

.gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    z-index: 1;
    pointer-events: none; /* Improve scroll performance */
}

/* Only show overlay on hover for desktop */
@media (hover: hover) and (pointer: fine) {
    .gallery-item:hover .gallery-item-overlay {
        opacity: 1;
    }
}

.gallery-item-info h4 {
    color: white;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.7);
}

.gallery-item-info p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Image Preview */
.image-preview {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.98);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
}

.image-preview.active {
    display: flex;
}

.image-preview img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.8);
}

.preview-close {
    position: fixed;
    top: 2rem;
    right: 3rem;
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    z-index: 10102;
    backdrop-filter: blur(10px);
}

.preview-close:hover {
    background: rgba(139, 92, 246, 0.9);
    border-color: var(--primary);
    transform: rotate(90deg) scale(1.15);
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.6);
}

.preview-close svg {
    width: 28px;
    height: 28px;
}

.preview-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

.preview-nav:hover {
    background: rgba(139, 92, 246, 0.3);
    border-color: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

.preview-nav svg {
    width: 28px;
    height: 28px;
}

.preview-prev {
    left: 2rem;
}

.preview-next {
    right: 2rem;
}

.preview-counter {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    padding: 1rem 2rem;
    border-radius: 50px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.2);
    z-index: 2;
}

/* Preview Loading State */
.preview-loading {
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-loading .loading-spinner {
    width: 60px;
    height: 60px;
    border-width: 5px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .gallery-modal-content {
        padding: 1.5rem 1.5rem 3rem 1.5rem;
    }

    .gallery-close {
        top: 1.5rem;
        right: 1.5rem;
        width: 50px;
        height: 50px;
    }

    .gallery-header h2 {
        font-size: 2rem;
    }

    .gallery-header {
        margin-bottom: 2rem;
        padding-bottom: 1rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem; /* Reduced gap on mobile */
    }

    /* Disable all transitions on mobile for smooth scrolling */
    .gallery-item {
        transition: none;
    }

    .gallery-item img,
    .gallery-video-thumb {
        transition: none;
    }

    .gallery-item-overlay {
        display: none; /* Hide overlay on mobile */
    }

    .gallery-header h2 {
        font-size: 2.5rem;
    }

    .preview-nav {
        width: 50px;
        height: 50px;
    }

    .preview-prev {
        left: 1rem;
    }

    .preview-next {
        right: 1rem;
    }

    .preview-counter {
        bottom: 1rem;
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
    }
}
