/* Global Styles & Variables */
/* 3D Hero Styles */
#hero-3d-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#3d-labels-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.hero-3d-label {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: rgba(10, 20, 40, 0.6);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border: 1px solid rgba(100, 180, 255, 0.2);
    border-radius: 16px;
    color: white;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    z-index: 100;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 40px rgba(77, 166, 255, 0.15);
}

/* Animated connector line */
.hero-3d-label::before {
    content: '';
    position: absolute;
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg,
            rgba(77, 166, 255, 0.8),
            rgba(77, 166, 255, 0.3),
            transparent);
    right: 100%;
    top: 50%;
    pointer-events: none;
    animation: pulseConnector 2s ease-in-out infinite;
}

/* Glowing dot at line end */
.hero-3d-label::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: #4da6ff;
    border-radius: 50%;
    right: calc(100% + 75px);
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 12px #4da6ff, 0 0 24px #4da6ff;
    animation: pulseDot 2s ease-in-out infinite;
}

#label-motion::before,
#label-vfx::before {
    left: 100%;
    right: auto;
    background: linear-gradient(-90deg,
            rgba(77, 166, 255, 0.8),
            rgba(77, 166, 255, 0.3),
            transparent);
}

#label-motion::after,
#label-vfx::after {
    left: calc(100% + 75px);
    right: auto;
}

.label-dot {
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #4da6ff, #00d4ff);
    border-radius: 50%;
    box-shadow: 0 0 15px #4da6ff, 0 0 30px rgba(77, 166, 255, 0.5);
    animation: pulseDot 2s ease-in-out infinite;
}

.hero-3d-label.visible {
    opacity: 1;
}

@keyframes pulseConnector {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

@keyframes pulseDot {

    0%,
    100% {
        transform: translateY(-50%) scale(1);
        box-shadow: 0 0 12px #4da6ff, 0 0 24px #4da6ff;
    }

    50% {
        transform: translateY(-50%) scale(1.2);
        box-shadow: 0 0 20px #4da6ff, 0 0 40px #4da6ff;
    }
}


:root {
    --bg-color: #030508;
    --bg-gradient: linear-gradient(135deg, #0a0f1a 0%, #050810 50%, #020305 100%);
    --text-primary: #FFFFFF;
    --text-secondary: #8aa3c8;
    --accent-blue: #4da6ff;
    --accent-cyan: #00d4ff;
    --accent-glow: rgba(77, 166, 255, 0.5);
    --surface-dark: rgba(10, 20, 40, 0.6);
    --border-color: rgba(77, 166, 255, 0.15);
    --font-main: 'Inter', sans-serif;
    --transition-speed: 0.3s;
}


/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    backdrop-filter: blur(5px);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: #000;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(5, 5, 5, 0.3);
    /* Slight transparency */
    backdrop-filter: blur(12px);
    /* Glassmorphism */
    transition: padding 0.3s ease;
    animation: fadeIn 1.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
        /* Reveal Animation */
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.navbar.scrolled {
    padding: 1rem 5%;
    background: rgba(5, 5, 5, 0.8);
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition-speed);
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 6rem 1rem 4rem;
    /* Added padding to ensure content has space */
    position: relative;
    animation: fadeIn 1.5s ease-out;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    margin-bottom: 2rem;
    /* Increased from default/previous */
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #00ff88;
    border-radius: 50%;
    margin-right: 0.5rem;
    box-shadow: 0 0 10px #00ff88;
    animation: pulse 2s infinite;
}

.status-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@keyframes pulse {
    0% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.5;
    }
}

.status-badge,
.hero-title,
.hero-subtitle,
.hero-cta,
.scroll-indicator {
    position: relative;
}

.hero-title {
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: 0.25rem;
    transition: filter 0.3s ease, text-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, #ffffff 0%, #4da6ff 50%, #00d4ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 60px rgba(77, 166, 255, 0.3);
}

/* Glitch Animation */
.hero-title.glitch-active {
    animation: glitch-anim 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
    color: var(--text-primary);
}

@keyframes glitch-anim {
    0% {
        transform: translate(0)
    }

    20% {
        transform: translate(-2px, 2px)
    }

    40% {
        transform: translate(-2px, -2px)
    }

    60% {
        transform: translate(2px, 2px)
    }

    80% {
        transform: translate(2px, -2px)
    }

    100% {
        transform: translate(0)
    }
}

.hero-title:hover {
    filter: blur(2px);
    /* Slight blur on hover */
}

.text-gradient {
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 3.5rem;
    /* Increased from 2.5rem */
    font-weight: 300;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-speed);
    font-size: 1rem;
    position: relative;
    /* For Ripple */
    overflow: hidden;
    /* For Ripple */
    transform: scale(1);
    transition: all 0.3s ease-out;
    /* Smooth Return */
}

.btn:active,
.project-card:active,
.price-card:active {
    transform: scale(0.96);
    /* Tactile Feedback */
    transition: transform 0.05s ease-out;
    /* Instant press */
}

.btn-primary {
    background: linear-gradient(135deg, #ffffff 0%, #e0f0ff 100%);
    color: #030508;
    margin-right: 1rem;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(77, 166, 255, 0.3);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(77, 166, 255, 0.5), 0 0 40px rgba(77, 166, 255, 0.3);
}

.btn-secondary {
    background: rgba(77, 166, 255, 0.1);
    border: 1px solid rgba(77, 166, 255, 0.3);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(77, 166, 255, 0.2);
    border-color: var(--accent-blue);
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(77, 166, 255, 0.3);
}

/* Scroll Indicator */
.scroll-indicator {
    position: relative;
    margin-top: 300px;
    /* Pushed significantly lower as requested */
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.scroll-indicator:hover {
    opacity: 1;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-secondary);
    border-radius: 20px;
    position: relative;
    margin-bottom: 0.5rem;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--text-secondary);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

.scroll-indicator span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

@keyframes scroll {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 15px);
        opacity: 0;
    }
}

/* Portfolio Section */
.portfolio {
    padding: 4rem 5% 2rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.shorts-grid {
    grid-template-columns: repeat(3, 1fr);
}

.project-card {
    position: relative;
    cursor: pointer;
}

.project-preview {
    position: relative;
    aspect-ratio: 16/9;
    background: rgba(20, 20, 20, 0.4);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0px;
    margin-bottom: 0px;
    border: 1px solid var(--border-color);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    /* Glass Bevel */
    transition: all var(--transition-speed);
    /* Deep Glow */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

#featured-video-container {
    max-width: 900px;
    margin: 0 auto;
    /* Center if it becomes smaller than grid */
    box-shadow: 0 0 30px rgba(58, 134, 255, 0.3);
    /* Blueish glow */
    border: 1px solid rgba(58, 134, 255, 0.3);
}

.project-card:hover .project-preview {
    border-color: var(--accent-glow);
    box-shadow: 0 0 25px rgba(58, 134, 255, 0.2), 0 10px 40px rgba(0, 0, 0, 0.8);
    transform: translateY(-5px);
}

.vertical-card .project-preview {
    aspect-ratio: 9/16;
    border-radius: 20px;
    /* More rounded for reels */
}

.vertical-card .play-btn {
    width: 40px;
    height: 40px;
}

.vertical-card .play-icon {
    width: 18px;
    height: 18px;
}

.vertical-card .fullscreen-btn {
    width: 28px;
    height: 28px;
    bottom: 10px;
    right: 10px;
}

.vertical-card .fullscreen-icon {
    width: 14px;
    height: 14px;
}

.project-video-element {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    transition: transform 0.5s ease;
}

.project-card:hover .project-video-element {
    transform: scale(1.05);
}


.project-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-thumb {
    transform: scale(1.05);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity var(--transition-speed);
}

.project-card:hover .overlay {
    background: rgba(0, 0, 0, 0.4);
}

.play-btn {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.play-btn:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.2);
}

.play-icon {
    width: 24px;
    height: 24px;
    margin-left: 2px;
    /* optical adjustment */
}

/* Fullscreen Button */
.fullscreen-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    cursor: pointer;
    transition: all 0.25s ease;
    opacity: 0.7;
}

.fullscreen-btn:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
}

.fullscreen-icon {
    width: 18px;
    height: 18px;
}

/* Back to Home Button */
.back-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 5rem 0 0 2rem;
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    transition: all 0.25s ease;
    letter-spacing: 0.5px;
}

.back-home-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(58, 134, 255, 0.4);
    transform: translateX(-3px);
}

/* Contact Section */
.contact {
    padding: 8rem 5% 4rem;
    text-align: center;
    background: linear-gradient(to top, #000 0%, transparent 100%);
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 3rem 0 6rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-link i,
.social-link svg {
    width: 20px;
    height: 20px;
    color: rgba(255, 255, 255, 0.9);
    transition: filter 0.3s ease, color 0.3s ease;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.social-link:hover i,
.social-link:hover svg {
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
    color: #fff;
}

.footer {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    color: #444;
    font-size: 0.9rem;
}

/* ==========================================
   MOBILE RESPONSIVE - Does NOT affect desktop
   ========================================== */

/* Hamburger button - hidden on desktop */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 200;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}


/* --- Mobile Professional Polish (Moved to end for precedence) --- */
@media (max-width: 768px) {

    /* Navbar: Strict Drawer Enforcement */
    .navbar .nav-links {
        display: none !important;
        /* Hide links in header flow */
    }

    #nav-links.open {
        display: flex !important;
        position: fixed;
        top: 0;
        right: 0;
        width: 100% !important;
        height: 100vh;
        background: rgba(3, 5, 8, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 200;
    }

    #nav-links.open a {
        display: block !important;
        margin: 1.5rem 0;
        font-size: 1.5rem;
        color: white;
    }

    /* Hero Section - Strict Centering */
    .hero {
        padding: 8rem 1rem 3rem !important;
        text-align: center !important;
    }

    .hero-cta {
        flex-direction: column !important;
        align-items: center !important;
        gap: 1.2rem !important;
    }

    .hero-cta .btn {
        width: 100% !important;
        max-width: 320px !important;
        margin: 0 !important;
        padding: 1.2rem !important;
    }

    /* Section Titles Alignment */
    .section-title {
        text-align: center !important;
        font-size: 2.22rem !important;
        margin-bottom: 3rem !important;
        width: 100% !important;
    }

    /* Grids: Single column — one video per row */
    .portfolio-grid,
    .shorts-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        padding: 0 1rem !important;
        overflow-x: visible !important;
        scroll-snap-type: none !important;
    }

    .shorts-grid>.project-card {
        flex: unset !important;
        scroll-snap-align: unset !important;
        width: 100% !important;
    }

    /* Video Play Buttons - Scaled for high impact */
    .video-play-btn {
        width: 64px !important;
        height: 64px !important;
    }

    .video-play-btn svg {
        width: 24px !important;
        height: 24px !important;
    }

    /* Price Page - Professional Table-like Layout on Mobile */
    .price-card {
        padding: 3rem 1.5rem !important;
        text-align: center !important;
        margin-bottom: 2rem !important;
    }

    .price-list li {
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.5rem !important;
        padding: 1.2rem 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    }

    .price-list .price {
        font-size: 1.2rem !important;
        margin-top: 4px !important;
    }

    /* Desktop elements removal */
    .cursor,
    #hero-3d-container,
    #3d-labels-layer {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        width: 0 !important;
        height: 0 !important;
        pointer-events: none !important;
    }

    /* Stats overlay - show by default on mobile, fade when playing */
    .has-stats .stats-content {
        right: 0;
        opacity: 1;
        transition: opacity 2s ease;
    }

    .has-stats .stats-brand,
    .has-stats .stats-item {
        opacity: 1;
        transform: translateX(0);
    }

    .has-stats.stats-fading .stats-overlay {
        opacity: 0;
        transition: opacity 2s ease;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2.4rem !important;
    }

    .section-title {
        font-size: 1.8rem !important;
    }
}

/* Pricing Page Styles */
.pricing-section {
    padding: 8rem 5% 4rem;
    text-align: center;
    min-height: 100vh;
}

.price-grid {
    margin-top: 3rem;
}

.price-card {
    background: rgba(20, 20, 20, 0.4);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.price-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-glow);
    box-shadow: 0 10px 30px rgba(58, 134, 255, 0.15);
}

.price-card.highlight {
    border-color: var(--accent-blue);
    background: rgba(58, 134, 255, 0.1);
}

.price-header h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.price-list {
    list-style: none;
    margin-bottom: 2rem;
}

.price-list li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.5rem;
}

.price-list li:last-child {
    border-bottom: none;
}

.price-list .price {
    font-weight: 700;
    color: var(--accent-blue);
    text-shadow: 0 0 10px rgba(58, 134, 255, 0.3);
}

.full-width {
    display: block;
    width: 100%;
    text-align: center;
    margin-right: 0;
}

.urgent-note {
    margin-top: 3rem;
    font-size: 1.1rem;
    padding: 1rem;
    background: rgba(255, 200, 0, 0.1);
    border: 1px solid rgba(255, 200, 0, 0.3);
    border-radius: 12px;
    display: inline-block;
    backdrop-filter: blur(5px);
}

.accent-text {
    color: #ffcc00;
    font-weight: 600;
}

/* --- Visual Polish Styles --- */

/* Custom Cursor */
.cursor {
    width: 32px;
    height: 32px;
    border: 1px solid var(--accent-blue);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s;
    box-shadow: 0 0 10px rgba(58, 134, 255, 0.5);
    background: rgba(58, 134, 255, 0.05);
    /* Slight tint */
}

.cursor.active {
    transform: translate(-50%, -50%) scale(2);
    background: rgba(58, 134, 255, 0.1);
    border-color: transparent;
    box-shadow: 0 0 20px rgba(58, 134, 255, 0.8);
}

/* Scroll to Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9000;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.scroll-top-btn.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.scroll-top-btn svg {
    width: 20px;
    height: 20px;
}

/* Glass Bevel */
.project-card,
.price-card {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* --- Interactive Feedback Styles --- */

/* Ripple Effect Element */
.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.6s linear;
    background-color: rgba(255, 255, 255, 0.2);
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Header Glow Animation */
.glow-effect {
    animation: neonGlow 1.5s ease-out forwards;
}

@keyframes neonGlow {
    0% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    }

    30% {
        text-shadow:
            0 0 20px rgba(58, 134, 255, 0.8),
            0 0 40px rgba(58, 134, 255, 0.6),
            0 0 80px rgba(58, 134, 255, 0.4);
    }

    100% {
        text-shadow: 0 0 0 transparent;
    }
}

/* --- Advanced Visuals --- */

/* 2. Tools Section */
.tools-section {
    padding: 4rem 5%;
    text-align: center;
}

.tools-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.tool-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s ease;
}

.tool-icon {
    width: 80px;
    height: 80px;
    background: rgba(20, 20, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: #ccc;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    /* Specific Colors for placeholders */
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
}

.tool-item:nth-child(1) .tool-icon {
    color: #cf96fd;
    text-shadow: 0 0 10px rgba(207, 150, 253, 0.3);
}

/* Ae */
.tool-item:nth-child(2) .tool-icon {
    color: #969ffd;
    text-shadow: 0 0 10px rgba(150, 159, 253, 0.3);
}

/* Pr */
.tool-item:nth-child(3) .tool-icon {
    color: #ff9a00;
    text-shadow: 0 0 10px rgba(255, 154, 0, 0.3);
}

/* Ai */

.tool-item:hover .tool-icon {
    transform: translateY(-10px) scale(1.1);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
}

.tool-name {
    font-size: 0.9rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

/* 3. Feedback Section (Telegram Style) */
.feedback-section {
    padding: 4rem 5%;
    max-width: 800px;
    margin: 0 auto;
}

.feedback-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.tg-message {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    opacity: 0;
    /* For scroll reveal */
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.tg-message.visible {
    opacity: 1;
    transform: translateY(0);
}

.tg-message.me {
    flex-direction: row-reverse;
}

.tg-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.tg-avatar.color-2 {
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa07a 100%);
}

.tg-avatar.color-3 {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.tg-avatar.color-4 {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
}

.tg-avatar.color-5 {
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
}

.tg-avatar.color-me {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.tg-bubble {
    background: rgba(30, 30, 40, 0.6);
    /* Client Bubble: Glass */
    backdrop-filter: blur(10px);
    padding: 10px 14px;
    border-radius: 12px 12px 12px 0;
    /* Left tail */
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 80%;
    min-width: 200px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.tg-message.me .tg-bubble {
    background: rgba(45, 55, 72, 0.8);
    /* My Bubble: Darker/Blue tint */
    border-color: rgba(66, 153, 225, 0.3);
    border-radius: 12px 12px 0 12px;
    /* Right tail */
    text-align: right;
}

.tg-name {
    color: var(--accent-blue);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.tg-text {
    font-size: 0.95rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 4px;
}

.tg-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 5px;
}

.tg-read {
    width: 14px;
    height: 14px;
    color: #64d2ff;
    /* Read check color */
}

/* Video Play Button */
.video-player-container {
    position: relative;
    cursor: pointer;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 10;
}

.video-play-btn svg {
    width: 28px;
    height: 28px;
    margin-left: 4px;
}

.video-play-btn:hover {
    background: rgba(77, 166, 255, 0.7);
    border-color: var(--accent-blue);
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 0 30px rgba(77, 166, 255, 0.5);
}

.video-player-container.playing .video-play-btn {
    opacity: 0;
    pointer-events: none;
}

.video-player-container:hover .video-play-btn {
    opacity: 1;
    pointer-events: auto;
}

/* Intro Loader */
#intro-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #030508;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

#intro-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    filter: blur(10px);
    transform: scale(1.05);
}

#intro-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.intro-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.intro-logo {
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: 0.25rem;
    background: linear-gradient(135deg, #ffffff 0%, #4da6ff 50%, #00d4ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transform: scale(0.8);
    animation: logoAssemble 1.5s ease-out 0.5s forwards;
}

@keyframes logoAssemble {
    0% {
        opacity: 0;
        transform: scale(0.8);
        filter: blur(20px);
    }

    50% {
        opacity: 0.8;
        filter: blur(5px);
    }

    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

/* Hide main content initially */
body.loading .navbar,
body.loading .hero,
body.loading .portfolio,
body.loading .tools-section,
body.loading .feedback-section,
body.loading .contact {
    opacity: 0;
    transform: translateY(30px);
}

body:not(.loading) .navbar,
body:not(.loading) .hero,
body:not(.loading) .portfolio,
body:not(.loading) .tools-section,
body:not(.loading) .feedback-section,
body:not(.loading) .contact {
    animation: contentReveal 1s ease-out forwards;
}

@keyframes contentReveal {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stats Overlay - Trim Pass Effect */
.stats-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 15;
    overflow: hidden;
}

.stats-content {
    position: absolute;
    top: 70%;
    right: -100%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(20, 30, 50, 0.95) 100%);
    backdrop-filter: blur(20px);
    padding: 20px 25px;
    border-radius: 16px 0 0 16px;
    border: 1px solid rgba(77, 166, 255, 0.3);
    border-right: none;
    transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    min-width: 180px;
}

.has-stats:hover .stats-content {
    right: 0;
}

.stats-brand {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--accent-blue);
    margin-bottom: 15px;
    text-transform: uppercase;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.4s ease 0.1s;
}

.has-stats:hover .stats-brand {
    opacity: 1;
    transform: translateX(0);
}

.stats-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.4s ease;
}

.has-stats:hover .stats-item:nth-child(2) {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.2s;
}

.has-stats:hover .stats-item:nth-child(3) {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.35s;
}

.stats-icon {
    font-size: 1.2rem;
}

.stats-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #ffffff, #4da6ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stats-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

/* Contact Links - Premium Style */
.contact-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(77, 166, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.social-link:hover::before {
    left: 100%;
}

.social-link:hover {
    border-color: var(--accent-blue);
    background: rgba(77, 166, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(77, 166, 255, 0.2);
}

.social-icon {
    width: 24px;
    height: 24px;
    color: var(--accent-blue);
    transition: all 0.3s ease;
}

.social-link:hover .social-icon {
    color: var(--accent-cyan);
    filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.5));
}

/* --- Final Professional Centering Pass --- */
@media (max-width: 768px) {

    /* Force everything to be a block and centered */
    .section-title,
    .hero-title,
    .hero-subtitle,
    .price-card h3,
    .tg-name,
    .contact .section-title {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
        display: block !important;
        width: 100% !important;
    }

    /* Subtitles and supporting text */
    .hero-subtitle,
    .price-list,
    .footer,
    .intro-content {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Fix any side-padding issues that might cause "crooked" looks */
    .portfolio,
    .tools-section,
    .feedback-section,
    .contact,
    .pricing-section {
        padding-left: 5% !important;
        padding-right: 5% !important;
    }

    /* Ensure buttons are centered without any floating residues */
    .hero-cta {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        padding: 0 !important;
    }

    /* Grid alignment fix */
    .portfolio-grid {
        justify-items: center !important;
    }

    .project-card {
        width: 100% !important;
        max-width: 500px !important;
        margin: 0 auto !important;
    }

    /* Price list strict center */
    .price-list li {
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
    }
}