@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    /* Vibrant High-Conversion Colors */
    --bg-dark: #050507;
    --bg-darker: #030305;
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-surface: rgba(255, 255, 255, 0.12);
    --glass-highlight: rgba(255, 255, 255, 0.25);

    /* Neon Accents */
    --neon-pink: #ff0f5b;
    --neon-blue: #00ccff;
    --neon-purple: #9d00ff;
    --neon-orange: #ff9500;
    --neon-gold: #ffd60a;
    --neon-green: #00ff88;
    --neon-cyan: #00f7ff;

    /* Gradient Colors */
    --gradient-primary: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    --gradient-secondary: linear-gradient(135deg, var(--neon-pink), var(--neon-orange));
    --gradient-tertiary: linear-gradient(135deg, var(--neon-cyan), var(--neon-green));

    /* Physics */
    --bounce-easing: cubic-bezier(0.34, 1.56, 0.64, 1);
    --smooth-easing: cubic-bezier(0.4, 0, 0.2, 1);
    --glass-blur: blur(40px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-dark);
    color: #fff;
    overflow-x: hidden;
    min-height: 100vh;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    position: relative;
}

/* ============================================
   BACKGROUND GLOW EFFECTS - ALL PAGES
============================================ */

/* Base Background Layer */
.liquid-bg-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
    overflow: hidden;
    background:
        radial-gradient(circle at 0% 0%, rgba(157, 0, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 100% 0%, rgba(0, 204, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(255, 15, 91, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 0% 100%, rgba(255, 213, 10, 0.15) 0%, transparent 50%),
        linear-gradient(135deg, #050507 0%, #0a0a1a 100%);
}

/* Animated Blobs */
.liquid-blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.7;
    border-radius: 50%;
    will-change: transform;
    mix-blend-mode: screen;
    animation: floatBlobs 25s infinite ease-in-out;
}

.blob-1 {
    top: 10%;
    left: -10%;
    width: 70vw;
    height: 70vw;
    background: radial-gradient(circle, var(--neon-purple), transparent 70%);
    animation-delay: 0s;
    animation-duration: 30s;
}

.blob-2 {
    bottom: 10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--neon-blue), transparent 70%);
    animation-delay: -10s;
    animation-duration: 35s;
    animation-direction: alternate;
}

.blob-3 {
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--neon-pink), transparent 70%);
    animation-delay: -5s;
    animation-duration: 28s;
    opacity: 0.6;
}

.blob-4 {
    top: 70%;
    left: 20%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, var(--neon-orange), transparent 70%);
    animation-delay: -15s;
    animation-duration: 32s;
    opacity: 0.5;
}

@keyframes floatBlobs {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(5%, -8%) scale(1.1);
    }

    50% {
        transform: translate(-5%, 3%) scale(0.95);
    }

    75% {
        transform: translate(3%, 5%) scale(1.05);
    }
}

/* Enhanced Center Glow Effect */
.glow-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 0%, rgba(157, 0, 255, 0.2) 0%, transparent 60%),
        radial-gradient(circle at 0% 50%, rgba(0, 204, 255, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 100% 50%, rgba(255, 15, 91, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 50% 100%, rgba(255, 213, 10, 0.1) 0%, transparent 60%);
}

/* Dynamic Glow Lines */
.glow-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.3;
}

.glow-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
    height: 1px;
    filter: blur(1px);
    animation: glowLineMove 20s linear infinite;
}

.glow-line:nth-child(1) {
    top: 20%;
    width: 100%;
    animation-delay: 0s;
    background: linear-gradient(90deg, transparent, var(--neon-purple), transparent);
}

.glow-line:nth-child(2) {
    top: 40%;
    width: 100%;
    animation-delay: -5s;
    background: linear-gradient(90deg, transparent, var(--neon-pink), transparent);
}

.glow-line:nth-child(3) {
    top: 60%;
    width: 100%;
    animation-delay: -10s;
    background: linear-gradient(90deg, transparent, var(--neon-orange), transparent);
}

.glow-line:nth-child(4) {
    top: 80%;
    width: 100%;
    animation-delay: -15s;
    background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
}

@keyframes glowLineMove {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Grain Overlay */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)" opacity="0.04"/%3E%3C/svg%3E');
    mix-blend-mode: overlay;
    opacity: 0.4;
}

/* ============================================
   TYPOGRAPHY
============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
}

.text-gradient-brand {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

.text-gradient-brand::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    filter: blur(4px);
    opacity: 0.7;
}

/* ============================================
   GLASS MORPHISM COMPONENTS
============================================ */
.glass-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: var(--glass-blur) saturate(180%);
    -webkit-backdrop-filter: var(--glass-blur) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s var(--smooth-easing);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.glass-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.1) 0%,
            rgba(255, 255, 255, 0.05) 100%);
    border-radius: inherit;
    pointer-events: none;
    z-index: 1;
}

.glass-panel::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle,
            rgba(255, 255, 255, 0.1) 0%,
            transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.glass-panel:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 0 40px rgba(255, 255, 255, 0.05);
}

.glass-panel:hover::after {
    opacity: 1;
}

/* Navigation */
.glass-nav {
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.glass-nav.scrolled {
    background: rgba(5, 5, 10, 0.9);
    backdrop-filter: blur(30px);
}

/* ============================================
   BUTTONS
============================================ */
.btn-liquid {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--bounce-easing);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 140px;
}

.btn-liquid::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.btn-liquid:hover {
    color: white;
    border-color: transparent;
    transform: translateY(-3px) scale(1.05);
    box-shadow:
        0 10px 30px rgba(102, 126, 234, 0.4),
        0 0 20px rgba(102, 126, 234, 0.3);
}

.btn-liquid:hover::before {
    opacity: 1;
}

.btn-glow {
    background: white;
    color: #000;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--bounce-easing);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 160px;
    box-shadow:
        0 0 20px rgba(255, 255, 255, 0.3),
        0 0 40px rgba(255, 255, 255, 0.2);
}

.btn-glow::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-secondary);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.btn-glow:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow:
        0 0 40px rgba(255, 255, 255, 0.5),
        0 0 80px rgba(255, 255, 255, 0.3),
        0 0 120px rgba(255, 255, 255, 0.1);
}

.btn-glow:hover::before {
    opacity: 1;
}

/* ============================================
   ANIMATIONS
============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.98);
        filter: blur(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s var(--bounce-easing) forwards;
    opacity: 0;
}

.fade-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--smooth-easing);
}

.fade-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Delay Classes */
.delay-100 {
    animation-delay: 0.1s;
    transition-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
    transition-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
    transition-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
    transition-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
    transition-delay: 0.5s;
}

/* ============================================
   SPECIAL ELEMENTS
============================================ */
/* WhatsApp Float Button */
.float-icon {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow:
        0 8px 32px rgba(37, 211, 102, 0.4),
        0 0 20px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    transition: all 0.4s var(--bounce-easing);
    text-decoration: none;
}

.float-icon:hover {
    transform: scale(1.15) rotate(10deg);
    box-shadow:
        0 12px 40px rgba(37, 211, 102, 0.6),
        0 0 40px rgba(37, 211, 102, 0.4);
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: translate(-50%, -50%);
    pointer-events: none;
    animation: rippleEffect 0.6s linear forwards;
    z-index: 9999;
}

@keyframes rippleEffect {
    from {
        width: 0;
        height: 0;
        opacity: 0.8;
    }

    to {
        width: 400px;
        height: 400px;
        opacity: 0;
    }
}

/* ============================================
   FORM ELEMENTS
============================================ */
.glass-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px 20px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    width: 100%;
}

.glass-input:focus {
    outline: none;
    border-color: var(--neon-blue);
    box-shadow:
        0 0 0 2px rgba(0, 204, 255, 0.2),
        inset 0 0 20px rgba(0, 204, 255, 0.05);
}

.glass-textarea {
    resize: vertical;
    min-height: 120px;
}

/* ============================================
   CARD HOVER EFFECTS
============================================ */
.feature-card {
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.1),
            transparent);
    transition: left 0.6s ease;
}

.feature-card:hover::before {
    left: 100%;
}

/* ============================================
   DEVICE MOCKUPS
============================================ */
.macbook-mockup {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: auto;
    aspect-ratio: 800/460;
    margin: 0 auto;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.iphone-mockup {
    position: relative;
    width: 100%;
    max-width: 320px;
    height: auto;
    aspect-ratio: 320/660;
    margin: 0 auto;
    transform-style: preserve-3d;
    perspective: 800px;
}

/* ============================================
   MOBILE OPTIMIZATIONS
============================================ */
@media (max-width: 768px) {
    :root {
        --glass-blur: blur(20px);
    }

    .liquid-bg-wrapper {
        background:
            radial-gradient(circle at 50% 0%, rgba(157, 0, 255, 0.2) 0%, transparent 50%),
            radial-gradient(circle at 0% 100%, rgba(255, 15, 91, 0.15) 0%, transparent 50%),
            linear-gradient(to bottom, #050507 0%, #0a0a15 100%);
    }

    .glow-overlay {
        background:
            radial-gradient(circle at 50% 20%, rgba(157, 0, 255, 0.25) 0%, transparent 50%),
            radial-gradient(circle at 90% 80%, rgba(0, 204, 255, 0.2) 0%, transparent 50%);
    }

    .liquid-blob {
        filter: blur(60px);
        opacity: 0.6;
    }

    .blob-1 {
        width: 100vw;
        height: 100vw;
        top: -30%;
        left: -30%;
    }

    .blob-2 {
        width: 120vw;
        height: 120vw;
        bottom: -40%;
        right: -30%;
    }

    .blob-3 {
        width: 80vw;
        height: 80vw;
        top: 60%;
        left: 20%;
    }

    .glass-panel {
        border-radius: 16px;
        padding: 1.25rem !important;
    }

    .glass-panel:hover {
        transform: translateY(-4px);
    }

    .btn-liquid,
    .btn-glow {
        padding: 12px 24px;
        font-size: 0.9rem;
        min-width: 120px;
    }

    .float-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }

    /* Reduce animations for mobile */
    .glass-panel:hover::after,
    .feature-card::before {
        display: none;
    }
}

/* ============================================
   DESKTOP ENHANCEMENTS
============================================ */
@media (min-width: 1024px) {
    .liquid-bg-wrapper {
        background:
            radial-gradient(circle at 10% 10%, rgba(157, 0, 255, 0.2) 0%, transparent 40%),
            radial-gradient(circle at 90% 10%, rgba(0, 204, 255, 0.2) 0%, transparent 40%),
            radial-gradient(circle at 90% 90%, rgba(255, 15, 91, 0.2) 0%, transparent 40%),
            radial-gradient(circle at 10% 90%, rgba(255, 213, 10, 0.15) 0%, transparent 40%),
            linear-gradient(135deg, #050507 0%, #0a0a1a 100%);
    }

    .glow-overlay {
        background:
            radial-gradient(circle at 20% 30%, rgba(157, 0, 255, 0.15) 0%, transparent 50%),
            radial-gradient(circle at 80% 70%, rgba(0, 204, 255, 0.15) 0%, transparent 50%),
            radial-gradient(circle at 40% 80%, rgba(255, 15, 91, 0.1) 0%, transparent 50%);
    }

    .glass-panel {
        backdrop-filter: blur(50px) saturate(200%);
        -webkit-backdrop-filter: blur(50px) saturate(200%);
    }

    /* Parallax effect for desktop */
    .parallax-element {
        will-change: transform;
        transition: transform 0.1s linear;
    }
}

/* ============================================
   PERFORMANCE OPTIMIZATIONS
============================================ */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .liquid-blob,
    .glow-line {
        animation: none !important;
    }
}

/* Hardware acceleration */
.hardware-accelerate {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* ============================================
   UTILITY CLASSES
============================================ */
.text-shadow-sm {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.text-shadow-lg {
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.glow-text {
    text-shadow:
        0 0 10px currentColor,
        0 0 20px currentColor,
        0 0 40px currentColor;
}

.border-glow {
    box-shadow:
        inset 0 0 20px rgba(255, 255, 255, 0.1),
        0 0 40px rgba(var(--neon-blue-rgb, 0, 204, 255), 0.2);
}

/* Loading States */
.loading-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* ============================================
   SCROLLBAR STYLING
============================================ */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-secondary);
}

/* ============================================
   PAGE-SPECIFIC BACKGROUND VARIANTS
============================================ */
body.home-page .glow-overlay {
    background:
        radial-gradient(circle at 50% 30%, rgba(157, 0, 255, 0.25) 0%, transparent 60%),
        radial-gradient(circle at 20% 70%, rgba(0, 204, 255, 0.2) 0%, transparent 60%),
        radial-gradient(circle at 80% 50%, rgba(255, 15, 91, 0.15) 0%, transparent 60%);
}

body.services-page .glow-overlay {
    background:
        radial-gradient(circle at 30% 40%, rgba(0, 204, 255, 0.25) 0%, transparent 60%),
        radial-gradient(circle at 70% 60%, rgba(0, 247, 255, 0.2) 0%, transparent 60%);
}

body.portfolio-page .glow-overlay {
    background:
        radial-gradient(circle at 40% 50%, rgba(255, 15, 91, 0.25) 0%, transparent 60%),
        radial-gradient(circle at 60% 30%, rgba(255, 213, 10, 0.2) 0%, transparent 60%);
}

body.contact-page .glow-overlay {
    background:
        radial-gradient(circle at 50% 50%, rgba(0, 255, 136, 0.2) 0%, transparent 60%),
        radial-gradient(circle at 30% 70%, rgba(157, 0, 255, 0.15) 0%, transparent 60%);
}

/* ============================================
   FOOTER STYLING
============================================ */
footer {
    position: relative;
    background: rgba(5, 5, 10, 0.8);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    filter: blur(4px);
    opacity: 0.5;
}