:root {
    --bg-color: #190D34; /* Haiti */
    --card-bg: rgba(25, 13, 52, 0.6);
    --card-border: rgba(234, 230, 229, 0.1);
    --accent-primary: #FF8F1C; /* West Side */
    --accent-secondary: #FF8F1C; /* West Side (Replaces Cyan) */
    --text-primary: #EAE6E5; /* Ebb */
    --text-secondary: rgba(234, 230, 229, 0.7);
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-speed: 0.6s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* Custom cursor */
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2; /* Behind overlay */
    pointer-events: none;
    opacity: 0.15;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Above canvas, below content */
    pointer-events: none;
    background: radial-gradient(circle at center, transparent 0%, #190D34 90%);
    opacity: 0.8;
}

/* Custom Cursor */
.cursor-dot, .cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-primary);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent-primary);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

body:hover .cursor-outline {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 143, 28, 0.1);
}

/* Navigation */
.navigation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: difference;
}

.logo {
    display: flex;
    flex-direction: column;
    width: fit-content;
    align-items: flex-start;
}

.logo-main {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.05em;
    line-height: 0.9;
    text-transform: uppercase;
}

.logo-sub {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: -0.05em;
    line-height: 0.9;
    opacity: 1;
    margin-top: 0;
}

.highlight {
    color: var(--accent-primary);
}

.progress-container {
    position: fixed;
    left: 3rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 150px;
    background: rgba(255, 255, 255, 0.05);
    z-index: 200;
    transition: opacity 0.5s ease;
}

.progress-bar {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 20%; /* Initial state */
    background: var(--accent-primary);
    transition: height var(--transition-speed) ease;
    box-shadow: 0 0 8px var(--accent-primary);
    border-radius: 2px;
}

.slide-indicator {
    font-family: var(--font-display);
    font-variant-numeric: tabular-nums;
}

/* Main Layout */
.presentation-container {
    height: 100vh;
    width: 100%;
    position: relative;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed) cubic-bezier(0.645, 0.045, 0.355, 1);
    transform: translateY(50px);
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: opacity, transform; /* Optimization */
}

.slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.slide.prev {
    transform: translateY(-100%);
    opacity: 0;
}

.content-wrapper {
    width: 90%;
    max-width: 1400px;
    display: flex;
    gap: 4rem;
    align-items: center;
}

/* Hero Section */
.hero {
    flex-direction: column;
    text-align: center;
    justify-content: center;
    height: 100%;
}

.hero-logo {
    width: 180px;
    height: auto;
    margin-bottom: 2rem;
    animation: fadeIn 1s ease-out;
}

.glitch-text {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    position: relative;
    color: transparent;
    -webkit-text-stroke: 2px var(--text-primary);
}

.glitch-text::before, .glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: var(--text-primary);
    opacity: 0.8;
}

.glitch-text::before {
    animation: glitch-anim-1 2s infinite linear alternate-reverse;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    transform: translate(-2px);
    text-shadow: 2px 0 var(--accent-secondary);
}

.glitch-text::after {
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
    clip-path: polygon(0 60%, 100% 60%, 100% 100%, 0 100%);
    transform: translate(2px);
    text-shadow: -2px 0 var(--accent-primary);
}

.subtitle {
    font-size: 1.5rem;
    color: var(--accent-primary);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.hero-desc {
    max-width: 600px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 3rem;
}

.hero-visual {
    position: relative;
    height: 300px;
    width: 300px;
    perspective: 1000px;
    margin-top: 2rem;
}

.stack-layer {
    position: absolute;
    width: 200px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--accent-primary);
    left: 50%;
    transform: translateX(-50%) rotateX(60deg) rotateZ(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 0.8rem;
    transition: all 0.3s;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.layer-1 { bottom: 0; z-index: 6; }
.layer-2 { bottom: 30px; z-index: 5; }
.layer-3 { bottom: 60px; z-index: 4; }
.layer-4 { bottom: 90px; z-index: 3; }
.layer-5 { bottom: 120px; z-index: 2; }
.layer-6 { bottom: 150px; z-index: 1; background: var(--accent-primary); color: #000; }

.hero-visual:hover .stack-layer {
    margin-bottom: 20px;
}

/* Cards (Split View) */
.split-view {
    justify-content: center;
    flex-direction: row;
    height: 80vh;
}

.card {
    flex: 1;
    background: linear-gradient(145deg, rgba(40, 25, 70, 0.9) 0%, rgba(25, 13, 52, 0.95) 100%);
    border: 1px solid rgba(234, 230, 229, 0.08);
    padding: 3.5rem 2.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centering items */
    text-align: center; /* Centering text */
    border-radius: 24px;
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    will-change: transform, box-shadow;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3), inset 0 1px 0 rgba(234,230,229,0.05);
}

.card.full-width-card {
    max-width: 900px;
    flex: 0 1 auto;
    width: 100%;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent-primary);
    box-shadow: 0 30px 60px rgba(255, 143, 28, 0.15), inset 0 1px 0 rgba(234,230,229,0.1);
}

.card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,143,28,0.08) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

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

.card-header {
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.level-badge {
    background: rgba(255, 143, 28, 0.1);
    color: var(--accent-secondary);
    border: 1px solid rgba(255, 143, 28, 0.3);
    padding: 0.4rem 1rem;
    font-weight: 700;
    font-size: 0.75rem;
    border-radius: 100px;
    display: inline-block;
    margin-bottom: 0.5rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    box-shadow: 0 0 10px rgba(255, 143, 28, 0.1);
}

h3 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0;
    background: linear-gradient(to bottom, #ffffff, #a0a0a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.tech-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 2.5rem;
    position: relative;
    color: var(--accent-primary);
    filter: drop-shadow(0 0 15px rgba(255, 143, 28, 0.3));
}

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

.tech-title {
    font-family: var(--font-display);
    font-weight: 700; /* Bold/Negrita */
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--accent-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tech-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
    max-width: 90%;
}

.capabilities {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    text-align: center; /* Center list items text */
}

.capabilities li {
    color: var(--text-primary);
    font-size: 0.9rem;
    padding: 0.25rem 0;
    border-bottom: none;
    opacity: 0.9;
    line-height: 1.4;
}

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

/* Animations for Icons */
.pulse-ring {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100%; height: 100%;
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.scan-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--accent-secondary);
    animation: scan 2s infinite linear;
}

/* Ambient Sensor Icon (Level 2) */
.ambient-sensor {
    position: relative;
    width: 100%;
    height: 100%;
}

.sensor-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--accent-primary);
    z-index: 2;
    animation: core-pulse 2s infinite;
}

.sensor-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 143, 28, 0.1);
}

.ring-inner {
    width: 40%;
    height: 40%;
    border-style: solid;
    opacity: 0.8;
    animation: sensor-spin 10s infinite linear;
}

.ring-middle {
    width: 70%;
    height: 70%;
    border-style: dashed;
    opacity: 0.5;
    animation: sensor-spin-reverse 15s infinite linear;
}

.ring-outer {
    width: 100%;
    height: 100%;
    border-style: dotted;
    opacity: 0.3;
    animation: sensor-spin 20s infinite linear;
}

/* Intent Icon (Level 3) */
.predictive-system {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.p-path {
    position: absolute;
    top: 15px;
    left: 50%;
    width: 4px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    transform-origin: top center;
    border-radius: 4px;
}

.path-left { transform: translateX(-50%) rotate(-30deg); }
.path-center { transform: translateX(-50%) rotate(0deg); }
.path-right { transform: translateX(-50%) rotate(30deg); }

.path-center {
    background: linear-gradient(to bottom, var(--accent-secondary) 0%, transparent 100%);
    opacity: 0.3;
    animation: path-pulse 4s infinite alternate;
}

.p-target {
    position: absolute;
    top: 95px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid var(--accent-secondary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-secondary);
    animation: target-ping 4s infinite;
}

.p-agent {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px #fff;
    animation: agent-decide-move 4s infinite cubic-bezier(0.4, 0.0, 0.2, 1);
}

@keyframes path-pulse {
    0%, 30% { opacity: 0.1; }
    40%, 100% { opacity: 0.6; }
}

@keyframes agent-decide-move {
    0% { top: 15px; opacity: 0; transform: translateX(-50%) scale(0.5); }
    10% { opacity: 1; transform: translateX(-50%) scale(1); }
    15% { transform: translateX(-150%); } /* Look left */
    25% { transform: translateX(50%); }   /* Look right */
    35% { transform: translateX(-50%); }  /* Center */
    40% { top: 15px; }
    80% { top: 95px; opacity: 1; }
    90% { opacity: 0; transform: translateX(-50%) scale(1.5); }
    100% { top: 95px; opacity: 0; }
}

@keyframes target-ping {
    0%, 80% { transform: translateX(-50%) scale(1); border-color: rgba(255, 143, 28, 0.5); }
    90% { transform: translateX(-50%) scale(1.4); border-color: var(--accent-secondary); }
    100% { transform: translateX(-50%) scale(1); }
}

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

@keyframes sensor-spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes sensor-spin-reverse {
    from { transform: translate(-50%, -50%) rotate(360deg); }
    to { transform: translate(-50%, -50%) rotate(0deg); }
}

.motion-path {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border: 2px dashed var(--accent-secondary);
    border-radius: 50%;
    opacity: 0.5;
    animation: rotate 4s infinite linear;
}


/* Sync Icon (Level 4) */
.sync-system {
    position: relative;
    width: 100%;
    height: 100%;
}

.sync-device {
    position: absolute;
    border: 2px solid var(--text-primary);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
}

.sync-tv {
    width: 60px;
    height: 40px;
    top: 20px;
    left: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.screen-content {
    width: 80%;
    height: 80%;
    background: rgba(255, 143, 28, 0.3);
    animation: screen-pulse 2s infinite alternate;
}

.sync-phone {
    width: 24px;
    height: 44px;
    bottom: 10px;
    right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.interest-indicator {
    width: 12px;
    height: 12px;
    background: var(--accent-secondary);
    border-radius: 50%;
    opacity: 0;
    animation: indicator-flash 3s infinite;
}

.sync-stream {
    position: absolute;
    top: 40px;
    left: 75px;
    width: 40px; /* Distance between TV and Phone area */
    height: 40px;
    pointer-events: none;
}

.stream-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
    opacity: 0;
}

/* Particles moving from TV to Phone */
.p1 { animation: stream-flow 3s infinite 0s; }
.p2 { animation: stream-flow 3s infinite 0.5s; }
.p3 { animation: stream-flow 3s infinite 1s; }

@keyframes screen-pulse {
    from { opacity: 0.5; }
    to { opacity: 1; box-shadow: 0 0 10px rgba(255, 143, 28, 0.5); }
}

@keyframes stream-flow {
    0% { top: 0; left: 0; opacity: 1; transform: scale(1); }
    50% { top: 0; left: 30px; opacity: 1; } /* Horizontal to elbow */
    90% { top: 30px; left: 30px; opacity: 1; transform: scale(0.8); } /* Vertical to phone */
    100% { top: 35px; left: 30px; opacity: 0; transform: scale(0.5); } /* Hit phone */
}

@keyframes indicator-flash {
    0%, 85% { opacity: 0; transform: scale(0.5); }
    90% { opacity: 1; transform: scale(1.2); box-shadow: 0 0 15px var(--accent-secondary); }
    100% { opacity: 0; transform: scale(1); }
}


.radar-sweep {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: conic-gradient(from 0deg, transparent 0deg, rgba(255,143,28,0.5) 360deg);
    border-radius: 50%;
    animation: rotate 2s infinite linear;
    mask-image: radial-gradient(circle, transparent 30%, black 100%);
}

/* Summary Section - Vertical Data Stack Style */
.summary {
    flex-direction: column;
}

.summary-grid {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
    max-width: 700px; /* Controlled width for a tower look */
    margin-top: 3rem;
    perspective: 1000px;
}

.summary-item {
    display: flex;
    align-items: center;
    background: rgba(25, 13, 52, 0.6);
    padding: 1.2rem 2rem;
    border-radius: 4px;
    animation: fadeIn 0.5s forwards;
    opacity: 0;
    animation-delay: var(--delay);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--accent-primary);
    backdrop-filter: blur(10px);
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center left;
}

/* Connecting line effect behind the items */
.summary-grid::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: rgba(255, 143, 28, 0.1);
    border-radius: 2px;
    z-index: 0;
}

.summary-item:hover {
    transform: translateX(15px) scale(1.02);
    background: rgba(25, 13, 52, 0.9);
    border-color: var(--accent-primary);
    box-shadow: 0 0 30px rgba(255, 143, 28, 0.15);
    z-index: 10;
}

/* Tech markings on the right */
.summary-item::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: var(--accent-secondary);
    border-radius: 50%;
    opacity: 0.5;
    box-shadow: 0 0 5px var(--accent-secondary);
}

.s-num {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-secondary);
    margin-right: 2rem;
    opacity: 0.8;
    min-width: 30px;
}

.s-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.s-content h4 {
    margin: 0;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
}

.s-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
    text-align: right;
}

@media (max-width: 768px) {
    .s-content {
        flex-direction: column;
        align-items: flex-start;
    }
    .s-content p {
        text-align: left;
        font-size: 0.8rem;
        margin-top: 0.2rem;
    }
}

/* Buttons */
button {
    background: transparent;
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    padding: 1rem 2rem;
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    margin-top: 2rem;
}

button:hover {
    background: var(--accent-primary);
    color: #000;
    box-shadow: 0 0 20px var(--accent-primary);
}

.controls {
    position: fixed;
    right: 3rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 100;
}

.nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Contact Section */
.contact-section {
    justify-content: center;
}

.contact-content {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 4rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    text-align: center;
    width: 100%;
    max-width: 600px;
}

.contact-logo {
    width: 80px;
    height: auto;
    margin-bottom: 1.5rem;
}

.contact-content h2 {
    font-family: var(--font-display);
    font-size: 3.5rem;
    color: var(--accent-primary);
    margin-bottom: 2rem;
}

.restart-btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.contact-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: 5px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-secondary);
}

.submit-btn {
    width: 100%;
    background: var(--accent-primary);
    color: #000;
    border: none;
}

.submit-btn:hover {
    background: transparent;
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
}


/* Keyframes */
@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}
@keyframes scan {
    0% { top: 0%; opacity: 0; }
    50% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes glitch-anim-1 {
    0% { clip-path: polygon(0 2%, 100% 2%, 100% 5%, 0 5%); }
    20% { clip-path: polygon(0 15%, 100% 15%, 100% 15%, 0 15%); }
    40% { clip-path: polygon(0 10%, 100% 10%, 100% 20%, 0 20%); }
    60% { clip-path: polygon(0 1%, 100% 1%, 100% 2%, 0 2%); }
    80% { clip-path: polygon(0 33%, 100% 33%, 100% 33%, 0 33%); }
    100% { clip-path: polygon(0 44%, 100% 44%, 100% 44%, 0 44%); }
}
@keyframes glitch-anim-2 {
    0% { clip-path: polygon(0 2%, 100% 2%, 100% 5%, 0 5%); }
    20% { clip-path: polygon(0 15%, 100% 15%, 100% 15%, 0 15%); }
    40% { clip-path: polygon(0 10%, 100% 10%, 100% 20%, 0 20%); }
    60% { clip-path: polygon(0 1%, 100% 1%, 100% 2%, 0 2%); }
    80% { clip-path: polygon(0 33%, 100% 33%, 100% 33%, 0 33%); }
    100% { clip-path: polygon(0 44%, 100% 44%, 100% 44%, 0 44%); }
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1024px) {
    .split-view {
        flex-direction: column;
        gap: 1rem;
    }
    .glitch-text {
        font-size: 3rem;
    }
    .summary-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* 720p Desktop Optimization */
@media (max-height: 800px) and (min-width: 1025px) {
    .hero-logo { width: 140px; margin-bottom: 1rem; }
    .glitch-text { font-size: 2.5rem; margin-bottom: 0.5rem; }
    .hero-desc { margin-bottom: 1.5rem; font-size: 0.9rem; }
    .hero-visual { height: 200px; width: 200px; margin-top: 1rem; }
    
    .card { padding: 2rem 2rem; }
    .card-header { margin-bottom: 1.5rem; gap: 0.5rem; }
    .card-header h3 { font-size: 1.8rem; }
    .level-badge { margin-bottom: 0.2rem; }
    
    .tech-icon { width: 90px; height: 90px; margin-bottom: 1.5rem; }
    .tech-title { font-size: 1rem; margin-bottom: 0.5rem; }
    .tech-desc { font-size: 0.9rem; margin-bottom: 1rem; line-height: 1.5; }
    .capabilities li { font-size: 0.85rem; padding: 0.1rem 0; }
    
    .content-wrapper { gap: 2rem; }
    .split-view { height: 75vh; }
}

@media (max-width: 768px) {
    * {
        cursor: auto !important;
    }

    body {
        overflow-y: auto;
        height: auto;
    }

    .cursor-dot, 
    .cursor-outline,
    .controls,
    .progress-container,
    .slide-indicator {
        display: none !important;
    }

    button {
        display: none !important;
    }

    .presentation-container {
        height: auto;
        position: relative;
        display: flex;
        flex-direction: column;
        padding: 0;
    }

    .slide {
        position: relative;
        height: auto;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        padding: 3rem 1rem;
        display: flex;
    }

    .slide.active, .slide.prev {
        transform: none;
    }

    .content-wrapper {
        width: 100%;
        gap: 2rem;
        flex-direction: column;
        padding: 0;
    }

    .split-view {
        height: auto;
        flex-direction: column;
    }

    .card {
        padding: 2rem 1.5rem;
        height: 380px; /* Fixed height for uniformity */
        margin-bottom: 1rem;
        transform: none !important;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
    
    /* Prevent card hover effects */
    .card:hover {
        transform: none;
        box-shadow: 0 20px 40px rgba(0,0,0,0.3), inset 0 1px 0 rgba(234,230,229,0.05);
        border-color: rgba(234, 230, 229, 0.08);
    }

    .hero {
        padding: 5rem 0;
    }

    .glitch-text {
        font-size: 2rem;
    }

    .hero-visual {
        width: 200px;
        height: 200px;
    }
    
    .stack-layer {
        width: 140px;
        height: 30px;
        font-size: 0.6rem;
    }
    
    .layer-1 { bottom: 0; }
    .layer-2 { bottom: 20px; }
    .layer-3 { bottom: 40px; }
    .layer-4 { bottom: 60px; }
    .layer-5 { bottom: 80px; }
    .layer-6 { bottom: 100px; }

    .contact-content {
        padding: 2rem;
    }
    
    .summary-item {
        opacity: 1;
        animation: none;
    }

    /* Hide descriptions on mobile to save space */
    .tech-desc {
        display: none !important;
    }

    .capabilities {
        display: block !important;
        margin-top: 0.5rem;
    }

    .tech-title {
        min-height: 54px; /* Approx 2 lines */
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .card-header h3 {
         min-height: 84px; /* Approx 2 lines of header */
         display: flex;
         align-items: center;
         justify-content: center;
    }

    /* Logo fade out on flow start */
    .navigation.scrolled .logo {
        opacity: 0;
        transition: opacity 1.5s ease;
        pointer-events: none;
    }

    .navigation .logo {
        transition: opacity 0.5s ease;
    }
}

/* Map Slide Styles */
.map-layout {
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: 80vh;
}

.map-text {
    flex: 0 0 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
}

.map-text h2 {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.map-text p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 3rem;
    max-width: 450px;
}

.map-stats {
    display: flex;
    gap: 3rem;
    margin-bottom: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.5rem;
}

.map-visual-container {
    flex: 0 0 60%;
    height: 100%;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: rgba(25, 13, 52, 0.3);
    border: 1px solid rgba(255, 143, 28, 0.1);
    box-shadow: inset 0 0 50px rgba(0,0,0,0.5);
}

#networkMapCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

.map-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(25, 13, 52, 0.8) 100%);
    pointer-events: none;
}

@media (max-width: 1024px) {
    .map-layout {
        flex-direction: column;
        height: auto;
    }
    .map-text {
        flex: 0 0 auto;
        margin-bottom: 2rem;
        text-align: center;
        align-items: center;
    }
    .map-visual-container {
        flex: 0 0 400px;
        width: 100%;
    }
}
