/* 
   Theme: Futurismo Orgânico Premium
   Author: Antigravity
*/

:root {
    /* Palette */
    --bg-deep: #050510;
    --bg-accent: #0a0a1a;
    --primary-neon: #bc13fe;
    --secondary-neon: #04d9ff;
    --text-main: #ffffff;
    --text-muted: #b3b3b3;

    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.15);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --section-spacing: 120px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Global Noise */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.05;
    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)'/%3E%3C/svg%3E");
}

/* Hero & Background */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: #050510;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.6;
    /* Video opacity */
    mix-blend-mode: lighten;
    /* Scale to hide watermark from generator */
    transform: scale(1.15);
    transform-origin: center;
}

.grid-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--cursor-x, 50%) var(--cursor-y, 50%),
            rgba(255, 255, 255, 0.08) 0%,
            transparent 20%),
        radial-gradient(var(--glass-border) 1px, transparent 1px);
    background-size: 100% 100%, 40px 40px;
    z-index: 1;
}

/* Typography & Layout */
h1,
h2,
h3,
h4,
.logo {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: var(--section-spacing) 0;
    position: relative;
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    padding: 1rem 2rem;
    border-radius: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.logo {
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.logo .dot {
    color: var(--primary-neon);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a:hover {
    color: white;
}

.nav-cta {
    color: var(--primary-neon) !important;
    font-weight: 600;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background: white;
    transition: 0.3s;
}

/* Hero Content */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    z-index: 2;
    position: relative;
}

.glitch-text {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: white;
    position: relative;
}

.subheadline {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

/* Buttons */
.cta-button {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 18px 40px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: white;
    border-radius: 50px;
    background: linear-gradient(145deg, rgba(188, 19, 254, 1), rgba(120, 10, 160, 1));
    /* Full opacity */
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 25px rgba(188, 19, 254, 0.5);
    overflow: hidden;
    will-change: transform;
    opacity: 1;
    /* Fixed: Was 0.3 */
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(188, 19, 254, 0.7);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 10;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    position: relative;
    backdrop-filter: blur(5px);
}

.wheel {
    width: 4px;
    height: 8px;
    background: white;
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
    0% {
        top: 8px;
        opacity: 1;
    }

    100% {
        top: 25px;
        opacity: 0;
    }
}

/* Navbar Animations */
.nav-links a {
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-neon);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--primary-neon);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Restoring Nebulas (Lost in rewrite) */
.nebula {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    /* Soft glow */
    z-index: -2;
    opacity: 0.4;
    /* Stronger visibility */
    animation: floatNebula 20s infinite alternate;
}

.nebula-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--primary-neon), transparent 70%);
}

.nebula-2 {
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--secondary-neon), transparent 70%);
    animation-delay: -5s;
}

@keyframes floatNebula {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, 50px) scale(1.1);
    }
}

/* =========================================
   VIDEO INTEGRATION & FIXED LAYOUT
   ========================================= */

/* Hero Canvas (Scoped to Hero Section) */
#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    /* Behind content but in section */
    opacity: 0.5;
    mix-blend-mode: lighten;
}

/* Service Card Horizontal Layout */
.services-grid {
    display: grid;
    /* Wider columns: min 500px or full width on mobile */
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
}

.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 400px;
    /* Reduced height, wider look */
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    padding: 0 !important;
    transition: transform 0.3s ease;
}

/* Video Container */
.card-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 250px;
    background: #000;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.service-card:hover .card-media {
    opacity: 1;
}

.service-canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 
   Neon Dots Overlay Animation 
   Trigger: Hover
   Effect: Dots rise from bottom to top within a constrained area, with a bright neon base.
*/

/* Define colors per category */
.service-card[data-category="branding"] {
    --card-neon: var(--primary-neon);
}

.service-card[data-category="automation"] {
    --card-neon: var(--secondary-neon);
}

.service-card[data-category="landing"] {
    --card-neon: #ff00ff;
}

.service-card[data-category="audiovisual"] {
    --card-neon: #00ffcc;
}

/* 
   Ultimate Holographic Projection
   Trigger: Hover
   Effect: A high-tech beam rises from a pulsing core, carrying data particles.
*/

/* Define colors per category */
.service-card[data-category="branding"] {
    --card-neon: var(--primary-neon);
}

.service-card[data-category="automation"] {
    --card-neon: var(--secondary-neon);
}

.service-card[data-category="landing"] {
    --card-neon: #ff00ff;
}

.service-card[data-category="audiovisual"] {
    --card-neon: #00ffcc;
}

/* The Beam Container */
.media-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    /* Constrained height */
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1);

    /* The "Beam" of light */
    background: linear-gradient(to top,
            rgba(var(--card-neon), 0.1) 0%,
            transparent 100%);

    /* Soft fade at top edge */
    mask-image: linear-gradient(to top, black 0%, transparent 100%);
    -webkit-mask-image: linear-gradient(to top, black 0%, transparent 100%);

    display: flex;
    justify-content: center;
    align-items: flex-end;
}

/* The Projector Core (Oval Glow) */
.media-overlay::after {
    content: '';
    position: absolute;
    bottom: -15px;
    width: 70%;
    height: 40px;
    background: radial-gradient(ellipse at center, var(--card-neon) 0%, transparent 70%);
    filter: blur(15px);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.5s ease;
    z-index: 1;
}

/* The Data Particles (Dots) */
.media-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(var(--card-neon) 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: 0 0;
    opacity: 0.6;
    mask-image: radial-gradient(circle at bottom center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at bottom center, black 40%, transparent 80%);
    z-index: 2;
}

/* Hover States */
.service-card:hover .media-overlay {
    opacity: 1;
}

.service-card:hover .media-overlay::after {
    opacity: 1;
    transform: scale(1);
    animation: corePulse 2s infinite alternate;
}

.service-card:hover .media-overlay::before {
    animation: hologramRise 4s infinite linear;
}

/* Animations */
@keyframes corePulse {
    0% {
        opacity: 0.8;
        transform: scale(1);
        filter: blur(15px) brightness(1);
    }

    100% {
        opacity: 1;
        transform: scale(1.1);
        filter: blur(18px) brightness(1.3);
    }
}

@keyframes hologramRise {
    0% {
        background-position: 0 100%;
    }

    100% {
        background-position: 0 0%;
    }
}


/* Active Icon */
.card-icon {
    position: absolute;
    /* Default State: Centered in Video Area (250px / 2 = 125px) */
    top: 125px;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.8);
    /* Centered and Large */

    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.8rem;

    /* Glass style */
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);

    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Bouncy transition */
    text-decoration: none;
    /* For the anchor tag */
    z-index: 10;
    overflow: hidden;
    /* Contain the swap */
}

/* Icon Swap Logic */
.icon-default,
.icon-hover {
    position: absolute;
    transition: all 0.4s ease;
}

.icon-hover {
    opacity: 0;
    transform: scale(0.5) rotate(-90deg);
    font-size: 2rem;
    /* Make WhatsApp icon prominent */
}

.service-card:hover .icon-default {
    opacity: 0;
    transform: scale(0.5) rotate(90deg);
}

.service-card:hover .icon-hover {
    opacity: 1;
    transform: scale(1) rotate(0);
}

/* Specific Glows */
.glow-purple {
    color: var(--primary-neon);
    text-shadow: 0 0 15px var(--primary-neon);
}

.glow-blue {
    color: var(--secondary-neon);
    text-shadow: 0 0 15px var(--secondary-neon);
}

.glow-pink {
    color: #ff00ff;
    text-shadow: 0 0 15px #ff00ff;
}

.glow-cyan {
    color: #00ffcc;
    text-shadow: 0 0 15px #00ffcc;
}

/* Overlap State (Hover) */
.service-card:hover .card-icon {
    /* Move to bottom-left corner overlap */
    top: 215px;
    /* Slightly adjusted for visual balance */
    left: 2rem;
    transform: translate(0, 0) scale(1.1);
    /* Reset center transform, slightly scaled up */

    background: var(--bg-deep);
    border-color: var(--card-neon, var(--primary-neon));
    box-shadow: 0 0 20px var(--card-neon, rgba(188, 19, 254, 0.5));
}

/* Content Area */
.card-content-3d {
    position: relative;
    padding: 2rem;
    padding-top: 5rem;
    /* Space for icon */
    z-index: 5;
    /* Background removed to reveal Hologram Core */
    background: transparent;
    margin-top: auto;
    /* Push to bottom */
    height: 50%;
    display: flex;
    flex-direction: column;
    /* Optional: Text shadow for readability if needed */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.card-content-3d h3 {
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.card-content-3d p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Other Sections */
.filter-section .glass-card {
    padding: 4rem;
    border-radius: 40px;
    background: rgba(5, 5, 10, 0.8);
    border: 1px solid #333;
}

.dont-list {
    margin: 3rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.dont-list li {
    display: flex;
    gap: 1.5rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.image-frame {
    aspect-ratio: 1/1.2;
    border-radius: 30px;
    background: linear-gradient(45deg, #1a1a2e, #16213e);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Ensure image stays in border radius */
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.neon-ring {
    position: absolute;
    inset: 0;
    border-radius: 30px;
    box-shadow: inset 0 0 30px var(--primary-neon);
    opacity: 0.5;
    z-index: 2;
    /* On top of image */
    pointer-events: none;
}

.main-footer {
    padding: 100px 0 50px;
    position: relative;
}

.footer-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(circle, var(--primary-neon) 0%, transparent 70%);
    filter: blur(80px);
    opacity: 0.2;
    z-index: -1;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    margin-top: 80px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

/* =========================================
   TOUCH-FRIENDLY AUTO-ACTIVATION
   ========================================= */

/* Service Cards - Auto-activate on touch devices when centered */
@media (hover: none) {

    /* Show video when card is active (centered on screen) */
    .service-card.is-active .card-media {
        opacity: 1;
    }

    /* Activate hologram projection overlay */
    .service-card.is-active .media-overlay {
        opacity: 1;
    }

    .service-card.is-active .media-overlay::after {
        opacity: 1;
        transform: scale(1);
        animation: corePulse 2s infinite alternate;
    }

    .service-card.is-active .media-overlay::before {
        animation: hologramRise 4s infinite linear;
    }

    /* Reposition card icon to overlap position */
    .service-card.is-active .card-icon {
        top: 215px;
        left: 2rem;
        transform: translate(0, 0) scale(1.1);
        background: var(--bg-deep);
        border-color: var(--card-neon, var(--primary-neon));
        box-shadow: 0 0 20px var(--card-neon, rgba(188, 19, 254, 0.5));
    }

    /* Icon swap for touch */
    .service-card.is-active .icon-default {
        opacity: 0;
        transform: scale(0.5) rotate(90deg);
    }

    .service-card.is-active .icon-hover {
        opacity: 1;
        transform: scale(1) rotate(0);
    }

    /* Pain Cards - Auto-activate hover effects */
    .pain-card.is-active {
        transform: translateY(-8px) scale(1.02);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
        border-color: rgba(255, 255, 255, 0.15);
    }

    .pain-card.is-active .pain-header i {
        background: rgba(255, 255, 255, 0.1);
        transform: scale(1.1);
    }

    .pain-card.is-active .glow-bar {
        transform: scaleX(1);
    }

    /* Specific pain card icon hover effects */
    .pain-card.is-active .pain-header i.text-danger {
        border-color: #ff3366;
        box-shadow: 0 0 15px rgba(255, 51, 102, 0.3);
    }

    .pain-card.is-active .pain-header i.text-warning {
        border-color: #ffd700;
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
    }

    .pain-card.is-active .pain-header i.text-alert {
        border-color: #ff6600;
        box-shadow: 0 0 15px rgba(255, 102, 0, 0.3);
    }
}

/* =========================================
   RESPONSIVE DESIGN - MEDIA QUERIES
   ========================================= */

/* Tablet Landscape & Medium Desktop (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    :root {
        --section-spacing: 80px;
    }

    /* Navigation */
    .glass-nav {
        padding: 0.8rem 1.5rem;
    }

    .logo {
        font-size: 1.3rem;
    }

    .nav-links {
        gap: 1.5rem;
        font-size: 0.9rem;
    }

    /* Hero Section */
    .glitch-text {
        font-size: 3.2rem;
    }

    .subheadline {
        font-size: 1.1rem;
    }

    /* Service Cards - Adjust for tablet */
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    }

    .service-card {
        height: 380px;
    }

    /* About Grid */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    /* Filter Section */
    .filter-section .glass-card {
        padding: 3rem;
    }
}

/* Tablet Portrait & Large Mobile (481px - 768px) */
@media (max-width: 768px) {
    :root {
        --section-spacing: 60px;
    }

    .container {
        padding: 0 1.5rem;
    }

    /* Navigation */
    .glass-nav {
        width: 95%;
        padding: 0.8rem 1.2rem;
        border-radius: 30px;
    }

    .logo {
        font-size: 1.2rem;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        width: 100%;
        background: rgba(5, 5, 16, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        display: none;
        border-radius: 20px;
        border: 1px solid var(--glass-border);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        font-size: 1.1rem;
        padding: 0.5rem 0;
    }

    .hamburger {
        display: flex;
    }

    /* Hero Section */
    .hero-section {
        padding-top: 100px;
        height: auto;
        min-height: 100vh;
    }

    .glitch-text {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-bottom: 1.2rem;
    }

    .subheadline {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .cta-button {
        padding: 16px 30px;
        font-size: 0.85rem;
        letter-spacing: 1px;
    }

    .scroll-indicator {
        bottom: 20px;
    }

    /* Problem Section */
    .problem-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 3rem;
    }

    .pain-card {
        padding: 2rem 1.5rem;
    }

    .pain-header i {
        font-size: 1.5rem;
        padding: 10px;
    }

    .pain-card h3 {
        font-size: 1.2rem;
    }

    /* Section Headers */
    .section-header h2 {
        font-size: 2rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    /* Service Cards - Stack Vertically */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        height: 380px;
    }

    .card-media {
        height: 220px;
    }

    .card-icon {
        top: 110px;
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
    }

    .service-card:hover .card-icon {
        top: 190px;
        left: 1.5rem;
    }

    .card-content-3d {
        padding: 1.5rem;
        padding-top: 4rem;
    }

    .card-content-3d h3 {
        font-size: 1.3rem;
    }

    .card-content-3d p {
        font-size: 0.9rem;
    }

    /* Filter Section */
    .filter-section .glass-card {
        padding: 2.5rem 2rem;
        border-radius: 30px;
    }

    .filter-section h2 {
        font-size: 2rem;
    }

    .dont-list {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 2rem 0;
    }

    /* About Section */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .image-frame {
        max-width: 350px;
        margin: 0 auto;
    }

    .about-content h2 {
        font-size: 2rem;
    }

    .glass-panel {
        padding: 1.5rem;
    }

    .cta-block {
        margin-top: 2rem !important;
        align-items: center !important;
        text-align: center !important;
    }

    .cta-block h3 {
        font-size: 1.5rem !important;
        text-align: center;
    }

    .cta-block p {
        text-align: center;
    }

    /* Alert Wrapper */
    .alert-wrapper {
        margin-top: 3rem;
    }

    .inline-flex {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    /* Footer */
    .main-footer {
        padding: 60px 0 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        margin-top: 40px;
    }
}

/* Mobile Small (320px - 480px) */
@media (max-width: 480px) {
    :root {
        --section-spacing: 50px;
    }

    .container {
        padding: 0 1.2rem;
    }

    /* Navigation */
    .glass-nav {
        padding: 0.7rem 1rem;
    }

    .logo {
        font-size: 1.1rem;
        letter-spacing: 1px;
    }

    /* Hero Section */
    .glitch-text {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .subheadline {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .cta-button {
        padding: 14px 24px;
        font-size: 0.75rem;
        width: 100%;
        max-width: 320px;
    }

    /* Section Headers */
    .section-header h2 {
        font-size: 1.6rem;
    }

    /* Service Cards */
    .service-card {
        height: 360px;
    }

    .card-media {
        height: 200px;
    }

    .card-icon {
        top: 100px;
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .service-card:hover .card-icon {
        top: 175px;
        left: 1.2rem;
    }

    .card-content-3d {
        padding: 1.2rem;
        padding-top: 3.5rem;
    }

    .card-content-3d h3 {
        font-size: 1.2rem;
    }

    .card-content-3d p {
        font-size: 0.85rem;
    }

    /* Problem Cards */
    .pain-card {
        padding: 1.5rem 1.2rem;
    }

    .pain-header {
        gap: 1rem;
    }

    .pain-header i {
        font-size: 1.3rem;
        padding: 8px;
    }

    .pain-card h3 {
        font-size: 1.1rem;
    }

    .pain-card p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    /* Filter Section */
    .filter-section .glass-card {
        padding: 2rem 1.5rem;
    }

    .filter-section h2 {
        font-size: 1.6rem;
    }

    .filter-section .subtitle {
        font-size: 0.9rem;
    }

    .dont-list li {
        gap: 1rem;
    }

    .dont-list strong {
        font-size: 1rem;
    }

    .dont-list p {
        font-size: 0.85rem;
    }

    /* About Section */
    .about-content h2 {
        font-size: 1.6rem;
    }

    .glass-panel p {
        font-size: 0.95rem;
    }

    .cta-block h3 {
        font-size: 1.3rem !important;
    }

    .cta-block p {
        font-size: 0.9rem;
    }

    /* Alert Box */
    .inline-flex {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
        gap: 0.8rem;
        text-align: center;
    }

    .pulse-dot {
        width: 8px;
        height: 8px;
    }

    /* Footer */
    .footer-bottom p {
        font-size: 0.9rem;
    }

    .social-links {
        gap: 1.2rem;
    }

    .social-links a {
        font-size: 1.2rem;
    }
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    margin-top: 80px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

/* =========================================
   RESPONSIVE DESIGN - MEDIA QUERIES
   ========================================= */

/* Tablet Landscape & Medium Desktop (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    :root {
        --section-spacing: 80px;
    }

    /* Navigation */
    .glass-nav {
        padding: 0.8rem 1.5rem;
    }

    .logo {
        font-size: 1.3rem;
    }

    .nav-links {
        gap: 1.5rem;
        font-size: 0.9rem;
    }

    /* Hero Section */
    .glitch-text {
        font-size: 3.2rem;
    }

    .subheadline {
        font-size: 1.1rem;
    }

    /* Service Cards - Adjust for tablet */
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    }

    .service-card {
        height: 380px;
    }

    /* About Grid */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    /* Filter Section */
    .filter-section .glass-card {
        padding: 3rem;
    }
}

/* Tablet Portrait & Large Mobile (481px - 768px) */
@media (max-width: 768px) {
    :root {
        --section-spacing: 60px;
    }

    .container {
        padding: 0 1.5rem;
    }

    /* Navigation */
    .glass-nav {
        width: 95%;
        padding: 0.8rem 1.2rem;
        border-radius: 30px;
    }

    .logo {
        font-size: 1.2rem;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        width: 100%;
        background: rgba(5, 5, 16, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        display: none;
        border-radius: 20px;
        border: 1px solid var(--glass-border);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        font-size: 1.1rem;
        padding: 0.5rem 0;
    }

    .hamburger {
        display: flex;
    }

    /* Hero Section */
    .hero-section {
        padding-top: 100px;
        height: auto;
        min-height: 100vh;
    }

    .glitch-text {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-bottom: 1.2rem;
    }

    .subheadline {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .cta-button {
        padding: 16px 30px;
        font-size: 0.85rem;
        letter-spacing: 1px;
    }

    .scroll-indicator {
        bottom: 20px;
    }

    /* Problem Section */
    .problem-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 3rem;
    }

    .pain-card {
        padding: 2rem 1.5rem;
    }

    .pain-header i {
        font-size: 1.5rem;
        padding: 10px;
    }

    .pain-card h3 {
        font-size: 1.2rem;
    }

    /* Section Headers */
    .section-header h2 {
        font-size: 2rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    /* Service Cards - Stack Vertically */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        height: 380px;
    }

    .card-media {
        height: 220px;
    }

    .card-icon {
        top: 110px;
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
    }

    .service-card:hover .card-icon {
        top: 190px;
        left: 1.5rem;
    }

    .card-content-3d {
        padding: 1.5rem;
        padding-top: 4rem;
    }

    .card-content-3d h3 {
        font-size: 1.3rem;
    }

    .card-content-3d p {
        font-size: 0.9rem;
    }

    /* Filter Section */
    .filter-section .glass-card {
        padding: 2.5rem 2rem;
        border-radius: 30px;
    }

    .filter-section h2 {
        font-size: 2rem;
    }

    .dont-list {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 2rem 0;
    }

    /* About Section */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .image-frame {
        max-width: 350px;
        margin: 0 auto;
    }

    .about-content h2 {
        font-size: 2rem;
    }

    .glass-panel {
        padding: 1.5rem;
    }

    .cta-block {
        margin-top: 2rem !important;
        align-items: center !important;
        text-align: center !important;
    }

    .cta-block h3 {
        font-size: 1.5rem !important;
        text-align: center;
    }

    .cta-block p {
        text-align: center;
    }

    /* Alert Wrapper */
    .alert-wrapper {
        margin-top: 3rem;
    }

    .inline-flex {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    /* Footer */
    .main-footer {
        padding: 60px 0 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        margin-top: 40px;
    }
}

/* Mobile Small (320px - 480px) */
@media (max-width: 480px) {
    :root {
        --section-spacing: 50px;
    }

    .container {
        padding: 0 1.2rem;
    }

    /* Navigation */
    .glass-nav {
        padding: 0.7rem 1rem;
    }

    .logo {
        font-size: 1.1rem;
        letter-spacing: 1px;
    }

    /* Hero Section */
    .glitch-text {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .subheadline {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .cta-button {
        padding: 14px 24px;
        font-size: 0.75rem;
        width: 100%;
        max-width: 320px;
    }

    /* Section Headers */
    .section-header h2 {
        font-size: 1.6rem;
    }

    /* Service Cards */
    .service-card {
        height: 360px;
    }

    .card-media {
        height: 200px;
    }

    .card-icon {
        top: 100px;
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .service-card:hover .card-icon {
        top: 175px;
        left: 1.2rem;
    }

    .card-content-3d {
        padding: 1.2rem;
        padding-top: 3.5rem;
    }

    .card-content-3d h3 {
        font-size: 1.2rem;
    }

    .card-content-3d p {
        font-size: 0.85rem;
    }

    /* Problem Cards */
    .pain-card {
        padding: 1.5rem 1.2rem;
    }

    .pain-header {
        gap: 1rem;
    }

    .pain-header i {
        font-size: 1.3rem;
        padding: 8px;
    }

    .pain-card h3 {
        font-size: 1.1rem;
    }

    .pain-card p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    /* Filter Section */
    .filter-section .glass-card {
        padding: 2rem 1.5rem;
    }

    .filter-section h2 {
        font-size: 1.6rem;
    }

    .filter-section .subtitle {
        font-size: 0.9rem;
    }

    .dont-list li {
        gap: 1rem;
    }

    .dont-list strong {
        font-size: 1rem;
    }

    .dont-list p {
        font-size: 0.85rem;
    }

    /* About Section */
    .about-content h2 {
        font-size: 1.6rem;
    }

    .glass-panel p {
        font-size: 0.95rem;
    }

    .cta-block h3 {
        font-size: 1.3rem !important;
    }

    .cta-block p {
        font-size: 0.9rem;
    }

    /* Alert Box */
    .inline-flex {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
        gap: 0.8rem;
        text-align: center;
    }

    .pulse-dot {
        width: 8px;
        height: 8px;
    }

    /* Footer */
    .footer-bottom p {
        font-size: 0.9rem;
    }

    .social-links {
        gap: 1.2rem;
    }

    .social-links a {
        font-size: 1.2rem;
    }
}

/* =========================================
   PROBLEM SECTION UI (Neon Hazard) - APPLIED
   ========================================= */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    perspective: 1000px;
}

.pain-card {
    position: relative;
    padding: 2.5rem 2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(10, 10, 20, 0.4) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pain-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.15);
}

.pain-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.pain-header i {
    font-size: 2rem;
    padding: 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.pain-card:hover .pain-header i {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.pain-card h3 {
    margin: 0;
    font-size: 1.3rem;
    line-height: 1.3;
    font-family: var(--font-heading);
    font-weight: 600;
}

.pain-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #a0a0b0;
    margin-bottom: 2rem;
    flex-grow: 1;
}

/* Bottom Glow Bar */
.glow-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.pain-card:hover .glow-bar {
    transform: scaleX(1);
}

/* Colors & Specifics */
.text-danger {
    color: #ff3366;
}

.danger-bar {
    background: #ff3366;
    box-shadow: 0 0 15px #ff3366;
}

.pain-card:hover .pain-header i.text-danger {
    border-color: #ff3366;
    box-shadow: 0 0 15px rgba(255, 51, 102, 0.3);
}

.text-warning {
    color: #ffd700;
}

.warning-bar {
    background: #ffd700;
    box-shadow: 0 0 15px #ffd700;
}

.pain-card:hover .pain-header i.text-warning {
    border-color: #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.text-alert {
    color: #ff6600;
}

.alert-bar {
    background: #ff6600;
    box-shadow: 0 0 15px #ff6600;
}

.pain-card:hover .pain-header i.text-alert {
    border-color: #ff6600;
    box-shadow: 0 0 15px rgba(255, 102, 0, 0.3);
}

/* Alert Box Pulse */
.alert-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 4rem;
}

.inline-flex {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2.5rem;
    border: 1px solid rgba(255, 51, 102, 0.3);
    background: rgba(255, 51, 102, 0.05);
    border-radius: 50px;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.05) inset;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background: #ff3366;
    border-radius: 50%;
    box-shadow: 0 0 10px #ff3366;
    animation: dangerPulse 1.5s infinite;
}

@keyframes dangerPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}