/* =======================================
   RESETS & VARIABLES 
   ======================================= */
:root {
    /* Color Palette - Cyber & Neon Theme */
    --bg-dark: #09090E;
    --bg-darker: #050508;
    --bg-card: rgba(25, 25, 35, 0.4);
    --border-light: rgba(255, 255, 255, 0.08);

    --text-primary: #F4F4F9;
    --text-secondary: #A0A0B0;

    --accent-primary: #6366F1;
    /* Indigo */
    --accent-secondary: #EC4899;
    /* Pink */
    --accent-tertiary: #10B981;
    /* Emerald */
    --accent-glow: rgba(99, 102, 241, 0.5);

    --gradient-brand: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    --gradient-brand-hover: linear-gradient(135deg, #4f46e5 0%, #db2777 100%);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Layout */
    --container-max: 1280px;
    --container-pad: 2rem;
    --section-pad: 6rem 0;

    /* Radii & Shadows */
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;

    --shadow-glow: 0 0 30px var(--accent-glow);
    --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.4);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =======================================
   UTILITY CLASSES 
   ======================================= */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

.section {
    padding: var(--section-pad);
    position: relative;
}

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

.mt-4 {
    margin-top: 2rem;
}

.w-full {
    width: 100%;
}

.gradient-text {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.text-accent {
    color: var(--accent-secondary);
}

/* Glassmorphism Panels */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-glass);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
}

.glass-panel:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(99, 102, 241, 0.2);
}

/* 3D Inner translations for Vanilla-Tilt */
.pilar-card>*,
.service-content,
.contact-card>*,
.floating-dashboard>* {
    transform: translateZ(40px);
}

.service-image {
    transform: translateZ(20px);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--gradient-brand);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6);
    background: var(--gradient-brand-hover);
}

.btn-primary-small {
    background: var(--gradient-brand);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
}

.btn-primary-small:hover {
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
}

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

.btn-outline:hover {
    border-color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

/* =======================================
   ANIMATIONS (CSS CLASSES)
   ======================================= */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    transform: translateX(-30px);
}

.reveal-right {
    transform: translateX(30px);
}

.reveal-left.active,
.reveal-right.active {
    transform: translateX(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

.delay-5 {
    transition-delay: 0.5s;
}

/* Initialization Animations */
@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.slide-up {
    animation: slideUpFade 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.fade-in {
    animation: fadeIn 1.2s ease-in forwards;
    opacity: 0;
}

/* =======================================
   NAVIGATION BAR
   ======================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(5, 5, 8, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: baseline;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.logo-dot {
    color: var(--accent-secondary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
}

.nav-links li>a:not(.btn-primary-small)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-brand);
    transition: width 0.3s ease;
}

.nav-links li>a:not(.btn-primary-small):hover::after,
.nav-links li>a.active:not(.btn-primary-small)::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.8rem;
    cursor: pointer;
}

/* =======================================
   HERO SECTION
   ======================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.7;
}

.mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--text-primary);
    border-radius: 12px;
    position: relative;
}

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

@keyframes scroll {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 15px);
        opacity: 0;
    }
}

/* =======================================
   SECTION TITLES
   ======================================= */
.section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
}

.section-header.text-center .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

/* =======================================
   INTERACTIVE INFOGRAPHIC EVOLUTION
   ======================================= */
.transformation {
    background: var(--bg-dark);
    overflow: hidden;
    padding: 6rem 0;
}

.infographic-viewport {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 3rem auto 0;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
}

.info-bg-wrap,
.info-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.info-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    filter: brightness(0.3) blur(10px);
    transition: all 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1.1);
}

.info-bg.active {
    opacity: 1;
    filter: brightness(0.5) blur(0);
    transform: scale(1);
}

/* SVG Path */
.info-path-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

/* Nodes */
.info-nodes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

.info-node {
    position: absolute;
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
}

.node-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.1);
    transition: all 0.5s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background: #000;
}

.info-node.active .node-img {
    border-color: var(--accent-primary);
    transform: scale(1.1);
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.4);
}

.node-content {
    position: absolute;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    min-width: 180px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s ease;
}

.info-node.active .node-content {
    opacity: 1;
    transform: translateX(-50%) translateY(10px);
}

.node-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: white;
}

.node-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Smartphone Reveal (Phase 5) */
.app-reveal-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    padding: 0 10%;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease;
    z-index: 20;
    pointer-events: none;
}

.app-reveal-wrap.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.smartphone-frame {
    width: 200px;
    height: 400px;
    background: #111;
    border: 8px solid #222;
    border-radius: 30px;
    position: relative;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.8);
}

.app-screen {
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    background: #050508;
    border-radius: 20px;
    overflow: hidden;
}

.app-ui {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ui-header {
    width: 40%;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

.ui-hero {
    width: 100%;
    height: 80px;
    background: var(--gradient-brand);
    border-radius: 10px;
    transform: scale(0.8);
    opacity: 0;
    transition: all 1s ease 0.5s;
}

.app-reveal-wrap.active .ui-hero {
    transform: scale(1);
    opacity: 1;
}

.ui-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ui-buttons span {
    height: 35px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transform: translateX(-20px);
    opacity: 0;
    transition: all 0.5s ease;
}

.app-reveal-wrap.active .ui-buttons span:nth-child(1) {
    transition-delay: 1.2s;
    transform: translateX(0);
    opacity: 1;
}

.app-reveal-wrap.active .ui-buttons span:nth-child(2) {
    transition-delay: 1.4s;
    transform: translateX(0);
    opacity: 1;
}

.app-reveal-wrap.active .ui-buttons span:nth-child(3) {
    transition-delay: 1.6s;
    transform: translateX(0);
    opacity: 1;
}

.final-slogan {
    max-width: 400px;
}

.final-slogan h2 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.cinematic-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 30%, rgba(0, 0, 0, 0.6) 100%);
    pointer-events: none;
    z-index: 15;
}

.transformation-controls {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    display: flex;
    gap: 0.4rem;
    z-index: 40;
}

.transformation-controls .control-btn {
    width: 24px;
    height: 24px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    background: white;
    color: black;
    border-radius: 4px;
    opacity: 0.6;
    transition: all 0.3s ease;
    border: none;
}

.transformation-controls .control-btn.active {
    background: var(--accent-primary);
    color: white;
    opacity: 1;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .transformation-controls {
        display: none;
    }

    .infographic-viewport {
        aspect-ratio: 2/3;
        min-height: 600px;
    }

    .desktop-path {
        display: none;
    }

    .mobile-path {
        display: block;
    }

    /* 3+2 Layout Node Positions */
    /* Row 1: 3 nodes */
    .info-node[data-phase="1"] {
        left: 20% !important;
        top: 25% !important;
    }

    .info-node[data-phase="2"] {
        left: 50% !important;
        top: 15% !important;
    }

    .info-node[data-phase="3"] {
        left: 80% !important;
        top: 25% !important;
    }

    /* Row 2: 2 nodes */
    .info-node[data-phase="4"] {
        left: 35% !important;
        top: 65% !important;
    }

    .info-node[data-phase="5"] {
        left: 65% !important;
        top: 75% !important;
    }

    .node-content {
        min-width: 140px;
    }

    .node-content h3 {
        font-size: 0.9rem;
    }

    .node-content p {
        font-size: 0.75rem;
    }

    .app-reveal-wrap {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem 5%;
        text-align: center;
    }

    .smartphone-frame {
        width: 140px;
        height: 280px;
    }

    .final-slogan h2 {
        font-size: 2rem;
    }
}

.mobile-path {
    display: none;
}

/* Objects */
.story-obj {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0;
    transition: opacity 2s ease;
}

.active .story-obj {
    opacity: 0.3;
}

.obj1 {
    width: 300px;
    height: 300px;
    background: var(--accent-primary);
    top: -100px;
    right: -50px;
    animation: float 10s infinite alternate;
}

.obj2 {
    width: 200px;
    height: 200px;
    background: var(--accent-secondary);
    bottom: -50px;
    left: -50px;
    animation: float 15s infinite alternate-reverse;
}

.obj-energy {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
    animation: pulse 4s infinite;
}

/* Slogan Reveal */
.slogan-reveal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    opacity: 0;
    transition: all 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) 0.5s;
    text-align: center;
}

.active .slogan-reveal {
    opacity: 1;
}

@keyframes float {
    0% {
        transform: translateY(0) scale(1);
    }

    100% {
        transform: translateY(-30px) scale(1.1);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.2;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(1.1);
    }
}

/* =======================================
   PORTFOLIO PDF VIEWER
   ======================================= */
.portfolio {
    background: var(--bg-darker);
}

.pdf-viewer-container {
    max-width: 900px;
    margin: 0 auto;
}

.cyber-frame {
    position: relative;
    background: rgba(10, 10, 15, 0.9);
    border: 1px solid var(--accent-primary);
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.2), inset 0 0 15px rgba(99, 102, 241, 0.1);
    transform-style: preserve-3d;
    overflow: hidden;
}

.cyber-frame::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--accent-primary), transparent, var(--accent-secondary));
    z-index: -1;
    border-radius: 18px;
    opacity: 0.3;
}

.pdf-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 20px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #27c93f;
    border-radius: 50%;
    box-shadow: 0 0 8px #27c93f;
}

.file-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    font-family: var(--font-heading);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.nav-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
}

.nav-btn:hover {
    background: var(--accent-primary);
}

.pdf-body {
    height: 600px;
    position: relative;
    background: #1a1a25;
    overflow: hidden;
}

.pdf-body iframe {
    border: none;
    width: 100%;
    height: 100%;
}

.scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(99, 102, 241, 0.1);
    opacity: 0.5;
    pointer-events: none;
    animation: scan 4s linear infinite;
    z-index: 2;
}

@keyframes scan {
    0% {
        top: 0;
    }

    100% {
        top: 100%;
    }
}

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

.pilar-card {
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pilar-card:nth-child(2) {
    transform: translateY(30px);
}

.pilar-card:nth-child(4) {
    transform: translateY(30px);
}

.pilar-icon {
    font-size: 2.5rem;
    color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.1);
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    margin-bottom: 0.5rem;
}

.pilar-card h3 {
    font-size: 1.3rem;
}

.pilar-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* =======================================
   SERVICES
   ======================================= */
.servicos {
    background: var(--bg-darker);
}

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

.service-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/5;
}

.service-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s ease;
}

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

.service-content {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    padding: 1.5rem;
    background: rgba(15, 15, 20, 0.8);
}

.service-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.service-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.service-link:hover {
    gap: 0.5rem;
}

/* =======================================
   TECNOLOGIA & APPS
   ======================================= */
.tech-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.tech-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.tech-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tech-features li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-icon {
    font-size: 1.8rem;
    color: var(--accent-secondary);
    background: rgba(236, 72, 153, 0.1);
    padding: 0.8rem;
    border-radius: 12px;
}

.tech-features h4 {
    margin-bottom: 0.2rem;
    font-size: 1.1rem;
}

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

.floating-dashboard {
    width: 100%;
    border-radius: 24px;
    padding: 1rem;
    background: linear-gradient(145deg, rgba(30, 30, 45, 0.6), rgba(15, 15, 25, 0.8));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.floating-dashboard:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.dash-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dots {
    display: flex;
    gap: 6px;
}

.dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #444;
}

.dots span:nth-child(1) {
    background: #ff5f56;
}

.dots span:nth-child(2) {
    background: #ffbd2e;
}

.dots span:nth-child(3) {
    background: #27c93f;
}

.url {
    margin-left: 1rem;
    font-size: 0.7rem;
    color: #666;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 10px;
    border-radius: 10px;
}

.dash-body {
    display: flex;
    gap: 1rem;
    height: 300px;
}

.dash-sidebar {
    width: 25%;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.dash-content {
    width: 75%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dash-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.dash-card.main {
    height: 60%;
}

.dash-row {
    display: flex;
    gap: 1rem;
    height: 40%;
}

.dash-card.sm {
    width: 50%;
    height: 100%;
}

/* =======================================
   CTA / CONTACT
   ======================================= */
.cta {
    position: relative;
    overflow: hidden;
}

.cta-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 60%);
    opacity: 0.15;
    z-index: -1;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.contact-card {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    padding: 2rem;
    text-align: center;
}

.contact-card i {
    font-size: 2.5rem;
    color: var(--accent-secondary);
    margin-bottom: 1rem;
}

.hover-grow:hover {
    transform: translateY(-5px);
}

.cta-form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2.5rem;
    text-align: left;
}

.cta-form-container h3 {
    margin-bottom: 1.5rem;
    text-align: center;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(0, 0, 0, 0.4);
}

/* =======================================
   FOOTER
   ======================================= */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border-light);
    padding-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: var(--text-secondary);
    margin: 1rem 0;
    max-width: 300px;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
}

.social-links a:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-3px);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1rem;
}

.footer-links a {
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    margin-top: 1rem;
}

.footer-bottom {
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: #000;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* =======================================
   MEDIA QUERIES
   ======================================= */
/* =======================================
   MOBILE REFINEMENTS (MEDIA QUERIES)
   ======================================= */
@media (max-width: 992px) {
    .tech-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .pilar-card:nth-child(even),
    .pilar-card:nth-child(odd) {
        transform: translateY(0) !important;
    }

    .giant-text {
        font-size: clamp(2rem, 10vw, 6rem);
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-darker);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        backdrop-filter: blur(20px);
    }

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

    .mobile-menu-btn {
        display: block;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .section {
        padding: 4rem 0;
    }

    .kinetic-viewport {
        aspect-ratio: 1/1;
        /* Square on mobile for better text fit */
    }

    .giant-text {
        font-size: 4rem;
        -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2);
    }

    .transformation-controls .control-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
    }

    .pdf-body {
        height: 400px;
    }

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

    .footer-bottom .container {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .tech-visual {
        order: -1;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .giant-text {
        font-size: 2.5rem;
    }

    .contact-card {
        padding: 1.5rem;
    }
}