/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Prevent layout overflow */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Account for fixed header */
    -webkit-text-size-adjust: 100%; /* Prevent iOS text size adjustment */
    -ms-text-size-adjust: 100%;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

body {
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* iOS Safari specific fixes */
body {
    -webkit-touch-callout: none; /* Disable callout on iOS */
    -webkit-user-select: none; /* Disable text selection */
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Re-enable text selection for specific elements */
p, span, h1, h2, h3, h4, h5, h6, .hero-subtitle, .section-subtitle {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Input elements should always allow text selection */
input, textarea, select {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

:root {
    /* Green Theme Colors */
    --primary-green: #2d5016;
    --secondary-green: #4a7c1b;
    --tertiary-green: #6ba821;
    --dark-green: #1a3009;
    --matrix-green: #3d6b1a;
    
    /* Background Colors */
    --bg-dark: #faf8f5;
    --bg-darker: #f5f2ed;
    --bg-card: #ffffff;
    --bg-secondary: #e8e4db;
    
    /* Brown Theme Colors */
    --light-brown: #d4c4a8;
    --medium-brown: #a0906d;
    --dark-brown: #8b7355;
    --cream: #f9f7f2;
    
    /* Text Colors */
    --text-primary: #2c2416;
    --text-secondary: #4a4232;
    --text-muted: #6b5d47;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    --gradient-secondary: linear-gradient(135deg, var(--tertiary-green), var(--primary-green));
    --gradient-bg: linear-gradient(135deg, var(--cream) 0%, var(--bg-dark) 100%);
    --gradient-brown: linear-gradient(135deg, var(--light-brown), var(--medium-brown));
    
    /* Shadows and Glows */
    --glow-primary: 0 0 20px rgba(45, 80, 22, 0.3);
    --glow-secondary: 0 0 15px rgba(74, 124, 27, 0.2);
    --shadow-card: 0 8px 32px rgba(45, 80, 22, 0.1);
    --shadow-brown: 0 4px 20px rgba(160, 144, 109, 0.2);
    
    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Spacing */
    --container-max-width: 1200px;
    --section-padding: 4rem 0;
    
    /* iPhone 15-17 Specific Variables */
    --safe-area-inset-top: env(safe-area-inset-top);
    --safe-area-inset-right: env(safe-area-inset-right);
    --safe-area-inset-bottom: env(safe-area-inset-bottom);
    --safe-area-inset-left: env(safe-area-inset-left);
    
    /* iPhone Viewport Heights */
    --vh: 1vh;
    --dynamic-viewport-height: 100vh;
}

html, body {
    height: 100%;
}

body {
    font-family: var(--font-primary);
    background: var(--gradient-bg);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

main {
    width: 100%;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    box-sizing: border-box;
}

/* Matrix Background Animation */
.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.03;
    background: 
        linear-gradient(90deg, transparent 98%, var(--primary-green) 100%),
        linear-gradient(0deg, transparent 98%, var(--primary-green) 100%);
    background-size: 50px 50px;
    animation: matrixMove 20s linear infinite;
}

@keyframes matrixMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Falling Books Background */
.books-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
    max-height: 100vh;
}

.book {
    position: absolute;
    font-size: 28px;
    opacity: 0.8;
    transition: transform 0.1s ease-out;
    will-change: transform;
    filter: drop-shadow(0 2px 4px rgba(45, 80, 22, 0.3));
    animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.book:hover {
    transform: scale(1.2) !important;
    opacity: 1 !important;
    filter: drop-shadow(0 4px 8px rgba(45, 80, 22, 0.5));
}

@keyframes bookFall {
    0% { 
        transform: translateY(-120px) rotate(0deg) scale(0.8);
        opacity: 0;
    }
    5% { 
        opacity: 0.8;
        transform: translateY(-100px) rotate(10deg) scale(1);
    }
    15% { 
        transform: translateY(-50px) rotate(45deg) scale(1.1);
    }
    85% { 
        opacity: 0.8;
        transform: translateY(calc(100vh - 100px)) rotate(315deg) scale(1);
    }
    95% { 
        transform: translateY(calc(100vh - 50px)) rotate(350deg) scale(0.9);
    }
    100% { 
        transform: translateY(calc(100vh + 20px)) rotate(360deg) scale(0.8);
        opacity: 0;
    }
}

@keyframes bookRise {
    0% { 
        transform: translateY(calc(100vh + 20px)) rotate(360deg) scale(0.8);
        opacity: 0;
    }
    5% { 
        opacity: 0.8;
        transform: translateY(calc(100vh - 50px)) rotate(350deg) scale(0.9);
    }
    15% { 
        transform: translateY(calc(100vh - 100px)) rotate(315deg) scale(1);
    }
    85% { 
        opacity: 0.8;
        transform: translateY(-50px) rotate(45deg) scale(1.1);
    }
    95% { 
        transform: translateY(-100px) rotate(10deg) scale(1);
    }
    100% { 
        transform: translateY(-120px) rotate(0deg) scale(0.8);
        opacity: 0;
    }
}

/* Enhanced book types */
@keyframes bookSpin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1); }
}

@keyframes bookFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

@keyframes bookSlideLeft {
    0% { 
        transform: translateX(calc(100vw + 50px)) rotate(0deg) scale(0.8);
        opacity: 0;
    }
    5% { 
        opacity: 0.8;
        transform: translateX(calc(100vw - 50px)) rotate(-10deg) scale(1);
    }
    15% { 
        transform: translateX(calc(75vw)) rotate(-45deg) scale(1.1);
    }
    85% { 
        opacity: 0.8;
        transform: translateX(calc(25vw)) rotate(-315deg) scale(1);
    }
    95% { 
        transform: translateX(50px) rotate(-350deg) scale(0.9);
    }
    100% { 
        transform: translateX(-70px) rotate(-360deg) scale(0.8);
        opacity: 0;
    }
}

@keyframes bookSlideRight {
    0% { 
        transform: translateX(-70px) rotate(-360deg) scale(0.8);
        opacity: 0;
    }
    5% { 
        opacity: 0.8;
        transform: translateX(50px) rotate(-350deg) scale(0.9);
    }
    15% { 
        transform: translateX(calc(25vw)) rotate(-315deg) scale(1);
    }
    85% { 
        opacity: 0.8;
        transform: translateX(calc(75vw)) rotate(-45deg) scale(1.1);
    }
    95% { 
        transform: translateX(calc(100vw - 50px)) rotate(-10deg) scale(1);
    }
    100% { 
        transform: translateX(calc(100vw + 50px)) rotate(0deg) scale(0.8);
        opacity: 0;
    }
}

/* Curved Path Animations */
@keyframes bookFallCurve {
    0% { 
        transform: translateY(-120px) translateX(0px) rotate(0deg) scale(0.8);
        opacity: 0;
    }
    25% { 
        opacity: 0.9;
        transform: translateY(calc(25vh)) translateX(-100px) rotate(90deg) scale(1.1);
    }
    50% { 
        transform: translateY(calc(50vh)) translateX(50px) rotate(180deg) scale(1);
    }
    75% { 
        transform: translateY(calc(75vh)) translateX(-50px) rotate(270deg) scale(1.1);
    }
    100% { 
        transform: translateY(calc(100vh + 50px)) translateX(0px) rotate(360deg) scale(0.8);
        opacity: 0;
    }
}

@keyframes bookRiseCurve {
    0% { 
        transform: translateY(calc(100vh + 50px)) translateX(0px) rotate(360deg) scale(0.8);
        opacity: 0;
    }
    25% { 
        opacity: 0.9;
        transform: translateY(calc(75vh)) translateX(100px) rotate(270deg) scale(1.1);
    }
    50% { 
        transform: translateY(calc(50vh)) translateX(-50px) rotate(180deg) scale(1);
    }
    75% { 
        transform: translateY(calc(25vh)) translateX(50px) rotate(90deg) scale(1.1);
    }
    100% { 
        transform: translateY(-120px) translateX(0px) rotate(0deg) scale(0.8);
        opacity: 0;
    }
}

@keyframes bookSlideLeftCurve {
    0% { 
        transform: translateX(calc(100vw + 50px)) translateY(0px) rotate(0deg) scale(0.8);
        opacity: 0;
    }
    25% { 
        opacity: 0.9;
        transform: translateX(calc(75vw)) translateY(-80px) rotate(-90deg) scale(1.1);
    }
    50% { 
        transform: translateX(calc(50vw)) translateY(40px) rotate(-180deg) scale(1);
    }
    75% { 
        transform: translateX(calc(25vw)) translateY(-40px) rotate(-270deg) scale(1.1);
    }
    100% { 
        transform: translateX(-70px) translateY(0px) rotate(-360deg) scale(0.8);
        opacity: 0;
    }
}

@keyframes bookSlideRightCurve {
    0% { 
        transform: translateX(-70px) translateY(0px) rotate(-360deg) scale(0.8);
        opacity: 0;
    }
    25% { 
        opacity: 0.9;
        transform: translateX(calc(25vw)) translateY(80px) rotate(-270deg) scale(1.1);
    }
    50% { 
        transform: translateX(calc(50vw)) translateY(-40px) rotate(-180deg) scale(1);
    }
    75% { 
        transform: translateX(calc(75vw)) translateY(40px) rotate(-90deg) scale(1.1);
    }
    100% { 
        transform: translateX(calc(100vw + 50px)) translateY(0px) rotate(0deg) scale(0.8);
        opacity: 0;
    }
}

/* Diagonal Animations */
@keyframes bookDiagonalTL {
    0% { 
        transform: translateX(calc(100vw + 50px)) translateY(calc(100vh + 50px)) rotate(0deg) scale(0.8);
        opacity: 0;
    }
    20% { opacity: 0.9; }
    100% { 
        transform: translateX(-70px) translateY(-70px) rotate(315deg) scale(0.8);
        opacity: 0;
    }
}

@keyframes bookDiagonalTR {
    0% { 
        transform: translateX(-70px) translateY(calc(100vh + 50px)) rotate(0deg) scale(0.8);
        opacity: 0;
    }
    20% { opacity: 0.9; }
    100% { 
        transform: translateX(calc(100vw + 50px)) translateY(-70px) rotate(45deg) scale(0.8);
        opacity: 0;
    }
}

@keyframes bookDiagonalBL {
    0% { 
        transform: translateX(calc(100vw + 50px)) translateY(-70px) rotate(0deg) scale(0.8);
        opacity: 0;
    }
    20% { opacity: 0.9; }
    100% { 
        transform: translateX(-70px) translateY(calc(100vh + 50px)) rotate(225deg) scale(0.8);
        opacity: 0;
    }
}

@keyframes bookDiagonalBR {
    0% { 
        transform: translateX(-70px) translateY(-70px) rotate(0deg) scale(0.8);
        opacity: 0;
    }
    20% { opacity: 0.9; }
    100% { 
        transform: translateX(calc(100vw + 50px)) translateY(calc(100vh + 50px)) rotate(135deg) scale(0.8);
        opacity: 0;
    }
}

/* Spiral Animation */
@keyframes bookSpiral {
    0% { 
        transform: translateX(0px) translateY(0px) rotate(0deg) scale(1);
        opacity: 0.9;
    }
    25% { 
        transform: translateX(200px) translateY(-100px) rotate(90deg) scale(1.2);
        opacity: 1;
    }
    50% { 
        transform: translateX(100px) translateY(-200px) rotate(180deg) scale(0.8);
    }
    75% { 
        transform: translateX(-100px) translateY(-150px) rotate(270deg) scale(1.1);
    }
    100% { 
        transform: translateX(-300px) translateY(-300px) rotate(720deg) scale(0.6);
        opacity: 0;
    }
}

/* Header Styles */
.header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 15000 !important;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--primary-green);
    box-shadow: var(--shadow-brown);
    pointer-events: auto !important;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: var(--container-max-width);
    margin: 0 auto;
    position: relative !important;
    z-index: 15001 !important;
    pointer-events: auto !important;
}

/* Force navigation area to be clickable */
.nav * {
    pointer-events: auto !important;
}

/* Ensure no pseudo-elements block navigation */
.nav-link::before,
.nav-link::after {
    pointer-events: none !important;
}

/* Navigation link states */
.nav-link:hover {
    background-color: rgba(45, 80, 22, 0.1) !important;
    color: var(--primary-green) !important;
    transform: translateY(-2px);
}

.nav-link.active {
    color: var(--primary-green) !important;
    background-color: rgba(45, 80, 22, 0.1) !important;
    font-weight: 600 !important;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
    position: relative;
    margin-right: 2rem;
    flex-shrink: 0;
}

.brand-icon {
    width: 64px;
    height: 64px;
    animation: spiderPulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 15px var(--primary-green));
}

.spider-icon {
    font-size: 2rem;
    animation: spiderPulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 10px var(--primary-green));
}

.spider-emoji {
    font-size: 2rem;
    animation: webFloat 3s ease-in-out infinite;
    display: inline-block;
}

.pulse {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-green);
    border-radius: 50%;
    animation: pulseRing 2s ease-out infinite;
    opacity: 0;
}

@keyframes spiderPulse {
    0%, 100% { 
        transform: scale(1);
        filter: drop-shadow(0 0 10px var(--primary-green));
    }
    50% { 
        transform: scale(1.1);
        filter: drop-shadow(0 0 20px var(--tertiary-green));
    }
}

@keyframes webFloat {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(5deg) scale(1.05); }
    50% { transform: rotate(0deg) scale(1.1); }
    75% { transform: rotate(-5deg) scale(1.05); }
}

@keyframes pulseRing {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
    height: 100%;
    margin-left: auto;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative !important;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    height: fit-content;
    cursor: pointer !important;
    pointer-events: auto !important;
    z-index: 16000 !important;
}

.nav-link:hover {
    color: var(--primary-green);
    text-shadow: var(--glow-secondary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.coffee-link {
    background: var(--gradient-brown);
    border-radius: 20px;
    padding: 0.75rem 1.25rem !important;
    color: white !important;
    font-weight: 600;
    box-shadow: var(--shadow-brown);
    white-space: nowrap;
    min-width: 120px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.nav-link.coffee-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-primary);
    color: white !important;
    background: var(--primary-green);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 16001;
    position: relative;
    background: transparent;
    border: none;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-toggle:hover {
    background: rgba(45, 80, 22, 0.1);
}

.nav-toggle:active {
    background: rgba(45, 80, 22, 0.2);
    transform: scale(0.95);
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-green);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
    transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
    background: var(--tertiary-green);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
    background: var(--tertiary-green);
}

/* Hero Section */
.hero {
    padding: 10rem 0 4rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(45, 80, 22, 0.03) 0%, transparent 70%);
    animation: heroBackgroundPulse 8s ease-in-out infinite;
    z-index: -1;
}

@keyframes heroBackgroundPulse {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.3; }
    50% { transform: scale(1.1) rotate(180deg); opacity: 0.6; }
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    animation: heroContainerFadeIn 1.5s ease-out;
}

@keyframes heroContainerFadeIn {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(156, 111, 70, 0.1);
    border: 1px solid var(--primary-green);
    border-radius: 25px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-green);
    margin-bottom: 2rem;
}

.hero-badge-icon {
    width: 40px;
    height: 40px;
    filter: brightness(0) saturate(100%) invert(67%) sepia(96%) saturate(353%) hue-rotate(79deg) brightness(106%) contrast(106%);
}

.status-indicator {
    width: 8px;
    height: 8px;
    background: var(--primary-green);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: heroTitleSlideIn 1s ease-out 0.3s both;
}

@keyframes heroTitleSlideIn {
    0% { opacity: 0; transform: translateX(-50px); }
    100% { opacity: 1; transform: translateX(0); }
}

.hero-title-with-icon {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    justify-content: flex-start;
    animation: heroTitleIconSlideIn 1s ease-out 0.5s both;
    padding: 2rem 0;
    margin-top: 1rem;
}

@keyframes heroTitleIconSlideIn {
    0% { opacity: 0; transform: translateY(-30px); }
    100% { opacity: 1; transform: translateY(0); }
}

.hero-title-icon {
    width: 120px;
    height: 120px;
    filter: drop-shadow(0 0 20px var(--primary-green));
    animation: heroIconAdvancedSpin 6s ease-in-out infinite;
    transition: all 0.3s ease;
    margin: 1rem;
    flex-shrink: 0;
}

.hero-title-icon:hover {
    transform: scale(1.1) rotate(15deg);
    filter: drop-shadow(0 0 30px var(--primary-green));
}

@keyframes heroIconAdvancedSpin {
    0%, 100% { transform: rotate(0deg) scale(1); filter: drop-shadow(0 0 20px var(--primary-green)); }
    25% { transform: rotate(5deg) scale(1.05); filter: drop-shadow(0 0 25px var(--primary-green)); }
    50% { transform: rotate(0deg) scale(1.1); filter: drop-shadow(0 0 30px var(--primary-green)); }
    75% { transform: rotate(-5deg) scale(1.05); filter: drop-shadow(0 0 25px var(--primary-green)); }
}

.glitch-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    animation: glitchAdvanced 4s ease-in-out infinite;
    display: inline-block;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    z-index: -1;
    opacity: 0;
}

.glitch-text::before {
    animation: glitchBefore 4s ease-in-out infinite;
}

.glitch-text::after {
    animation: glitchAfter 4s ease-in-out infinite;
}

@keyframes glitchAdvanced {
    0%, 90%, 100% { transform: translateX(0) skew(0deg); }
    2% { transform: translateX(-2px) skew(2deg); }
    4% { transform: translateX(2px) skew(-1deg); }
    6% { transform: translateX(-1px) skew(1deg); }
    8% { transform: translateX(1px) skew(-2deg); }
    10% { transform: translateX(0) skew(0deg); }
}

@keyframes glitchBefore {
    0%, 90%, 100% { opacity: 0; transform: translateX(0); }
    2% { opacity: 0.8; transform: translateX(-3px); color: #ff0000; }
    4% { opacity: 0; }
}

@keyframes glitchAfter {
    0%, 90%, 100% { opacity: 0; transform: translateX(0); }
    6% { opacity: 0.8; transform: translateX(3px); color: #00ff00; }
    8% { opacity: 0; }
}

.highlight {
    color: var(--tertiary-green);
    text-shadow: var(--glow-secondary);
    animation: highlightPulse 3s ease-in-out infinite;
}

@keyframes highlightPulse {
    0%, 100% { text-shadow: var(--glow-secondary); }
    50% { text-shadow: 0 0 30px var(--tertiary-green), 0 0 40px var(--tertiary-green); }
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
    animation: heroSubtitleFadeIn 1s ease-out 0.7s both;
}

@keyframes heroSubtitleFadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    animation: heroStatsFadeIn 1s ease-out 0.9s both;
}

@keyframes heroStatsFadeIn {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

.stat {
    text-align: center;
    padding: 1rem;
    border-radius: 15px;
    background: rgba(45, 80, 22, 0.05);
    border: 1px solid rgba(45, 80, 22, 0.1);
    transition: all 0.3s ease;
    animation: statFloat 3s ease-in-out infinite;
}

.stat:nth-child(1) { animation-delay: 0s; }
.stat:nth-child(2) { animation-delay: 0.5s; }
.stat:nth-child(3) { animation-delay: 1s; }

@keyframes statFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.stat:hover {
    transform: translateY(-8px) scale(1.05);
    background: rgba(45, 80, 22, 0.1);
    border-color: var(--primary-green);
    box-shadow: 0 10px 25px rgba(45, 80, 22, 0.2);
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-green);
    font-family: var(--font-mono);
    animation: statNumberPulse 2s ease-in-out infinite;
}

@keyframes statNumberPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    animation: heroButtonsFadeIn 1s ease-out 1.1s both;
}

@keyframes heroButtonsFadeIn {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--bg-dark);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--glow-primary);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
}

.btn-secondary:hover {
    background: var(--primary-green);
    color: var(--bg-dark);
}

.btn-outline {
    background: transparent;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
}

.btn-outline:hover {
    background: var(--primary-green);
    color: var(--bg-dark);
}

/* App Store Buttons */
.app-store-btn {
    min-width: 200px;
    justify-content: center;
    font-weight: 700;
    padding: 1.2rem 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-brown);
}

.app-store-btn i {
    font-size: 1.4rem;
}

.app-store-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--glow-primary);
}

.coffee-link {
    background: var(--gradient-brown);
    border-radius: 25px;
    padding: 1.2rem 2rem !important;
    color: white !important;
    font-weight: 600;
    box-shadow: var(--shadow-brown);
    font-size: 1rem;
    min-width: 180px;
}

.coffee-link:hover {
    transform: translateY(-2px);
    background: var(--primary-green);
}

/* App Store Buttons Layout */
.app-store-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.app-store-buttons .app-store-btn {
    flex: 1;
    min-width: 180px;
    max-width: 250px;
}

@media (max-width: 768px) {
    .app-store-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .app-store-buttons .app-store-btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 500px;
    animation: heroVisualSlideIn 1s ease-out 0.8s both;
}

@keyframes heroVisualSlideIn {
    0% { opacity: 0; transform: translateX(50px); }
    100% { opacity: 1; transform: translateX(0); }
}

.neural-network {
    position: relative;
    width: 100%;
    height: 400px;
    margin-bottom: 2rem;
    animation: neuralNetworkGlow 4s ease-in-out infinite;
}

@keyframes neuralNetworkGlow {
    0%, 100% { filter: drop-shadow(0 0 5px rgba(45, 80, 22, 0.3)); }
    50% { filter: drop-shadow(0 0 15px rgba(45, 80, 22, 0.6)); }
}

.node {
    position: absolute;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, var(--primary-green), var(--secondary-green));
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(45, 80, 22, 0.6);
    animation: nodeAdvancedFloat 4s ease-in-out infinite;
    border: 2px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.node:hover {
    transform: scale(1.5) !important;
    box-shadow: 0 0 30px rgba(45, 80, 22, 0.9);
}

.node[data-depth="1"] {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 3s;
}

.node[data-depth="2"] {
    left: 50%;
    animation-delay: 0.5s;
    animation-duration: 3.5s;
}

.node[data-depth="3"] {
    right: 10%;
    animation-delay: 1s;
    animation-duration: 4s;
}

.node:nth-child(1) { top: 20%; }
.node:nth-child(2) { top: 50%; }
.node:nth-child(3) { top: 80%; }
.node:nth-child(4) { top: 30%; }
.node:nth-child(5) { top: 60%; }
.node:nth-child(6) { top: 90%; }

@keyframes nodeAdvancedFloat {
    0%, 100% { 
        transform: translateY(0px) scale(1); 
        box-shadow: 0 0 20px rgba(45, 80, 22, 0.6);
    }
    25% { 
        transform: translateY(-15px) scale(1.1); 
        box-shadow: 0 0 25px rgba(45, 80, 22, 0.8);
    }
    50% { 
        transform: translateY(-10px) scale(1.2); 
        box-shadow: 0 0 30px rgba(45, 80, 22, 1);
    }
    75% { 
        transform: translateY(-5px) scale(1.1); 
        box-shadow: 0 0 25px rgba(45, 80, 22, 0.8);
    }
}

.connections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.connections line {
    stroke: var(--primary-green);
    stroke-width: 2;
    opacity: 0.6;
    animation: connectionPulse 2s ease-in-out infinite;
}

@keyframes connectionPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

.floating-terminal {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 300px;
    background: var(--bg-card);
    border: 2px solid var(--primary-green);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(45, 80, 22, 0.2);
    animation: terminalAdvancedFloat 6s ease-in-out infinite;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.floating-terminal:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 50px rgba(45, 80, 22, 0.3);
    border-color: var(--tertiary-green);
}

@keyframes terminalAdvancedFloat {
    0%, 100% { 
        transform: translateY(0px) rotateX(0deg); 
        box-shadow: 0 20px 40px rgba(45, 80, 22, 0.2);
    }
    25% { 
        transform: translateY(-8px) rotateX(2deg); 
        box-shadow: 0 25px 45px rgba(45, 80, 22, 0.25);
    }
    50% { 
        transform: translateY(-5px) rotateX(0deg); 
        box-shadow: 0 30px 50px rgba(45, 80, 22, 0.3);
    }
    75% { 
        transform: translateY(-12px) rotateX(-2deg); 
        box-shadow: 0 25px 45px rgba(45, 80, 22, 0.25);
    }
}

.terminal-header {
    background: var(--bg-darker);
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--primary-green);
}

.terminal-controls {
    display: flex;
    gap: 0.5rem;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control.red { background: #ff5f56; }
.control.yellow { background: #ffbd2e; }
.control.green { background: var(--primary-green); }

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.terminal-content {
    padding: 1rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.terminal-line {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.prompt {
    color: var(--primary-green);
}

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

.success {
    color: var(--primary-green);
}

.typing .cursor {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Section Styles */
section {
    padding: var(--section-padding);
    width: 100%;
    max-width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title-with-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.section-icon {
    width: 60px;
    height: 60px;
    filter: drop-shadow(0 0 15px var(--primary-green));
    animation: sectionIconFloat 3s ease-in-out infinite;
}

@keyframes sectionIconFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(10deg); }
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* Features Section */
.features {
    background: var(--bg-darker);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
    max-width: 100%;
}

.feature-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid transparent;
    position: relative;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 15px;
    padding: 1px;
    background: var(--gradient-primary);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: subtract;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
}

.feature-icon {
    position: relative;
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon i {
    font-size: 2rem;
    color: var(--primary-green);
    z-index: 2;
    position: relative;
}

.icon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    background: var(--primary-green);
    border-radius: 50%;
    filter: blur(15px);
    opacity: 0.3;
    transform: translate(-50%, -50%);
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-green);
}

.feature-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    color: var(--text-muted);
    padding: 0.25rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.feature-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-green);
}

/* Architecture Section */
.architecture-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
    max-width: 100%;
}

.architecture-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid transparent;
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    transition: all 0.3s ease;
    text-align: center;
}

.architecture-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 15px;
    padding: 1px;
    background: var(--gradient-border);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.architecture-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--glow-primary);
}

.architecture-icon {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.tech-emoji {
    font-size: 3rem;
    display: block;
}

.architecture-card h3 {
    color: var(--primary-green);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.architecture-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.tech-list {
    list-style: none;
    padding: 0;
    text-align: left;
}

.tech-list li {
    color: var(--text-muted);
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(156, 111, 70, 0.1);
    font-size: 0.9rem;
}

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

.tech-list li::before {
    content: '🕸️';
    margin-right: 0.5rem;
}

/* Pricing Section */
.pricing {
    background: var(--bg-darker);
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.pricing-cards.single-pricing {
    justify-content: center;
    max-width: 500px;
    margin: 0 auto 4rem;
}

.pricing-card.single {
    transform: none !important;
}

.pricing-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid transparent;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card.featured {
    border-color: var(--primary-green);
    transform: scale(1.05);
}

.featured-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: var(--bg-dark);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
}

.card-header {
    text-align: center;
    margin-bottom: 2rem;
}

.card-header h3 {
    font-size: 1.5rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
}

.currency {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-green);
    font-family: var(--font-mono);
}

.period {
    font-size: 1rem;
    color: var(--text-muted);
}

.features-list {
    list-style: none;
    margin-bottom: 2rem;
}

.features-list li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.features-list i {
    width: 16px;
    text-align: center;
}

.features-list .fa-check {
    color: var(--primary-green);
}

.features-list .fa-times {
    color: var(--text-muted);
}

.trial-info {
    margin-top: 1rem;
    text-align: center;
}

.trial-badge {
    background: var(--gradient-secondary);
    color: var(--bg-dark);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    animation: trialPulse 2s ease-in-out infinite;
}

@keyframes trialPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.pricing-buttons {
    text-align: center;
    margin-top: 2rem;
}

.btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.pricing-note {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 1rem;
    font-style: italic;
}

.revenue-projection {
    text-align: center;
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--primary-green);
}

.revenue-projection h4 {
    color: var(--primary-green);
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.projection-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

.projection-stat .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-green);
    font-family: var(--font-mono);
}

.projection-stat .stat-label {
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Roadmap Section */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-primary);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-date {
    background: var(--gradient-primary);
    color: var(--bg-dark);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    font-family: var(--font-mono);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.timeline-content {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--primary-green);
    width: 45%;
    margin: 0 2rem;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: auto;
}

.timeline-content h4 {
    color: var(--primary-green);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.timeline-content ul {
    list-style: none;
}

.timeline-content li {
    color: var(--text-secondary);
    padding: 0.25rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.timeline-content li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-green);
}

/* Contact Section */
.contact {
    background: var(--bg-darker);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h3 {
    color: var(--primary-green);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.developer-support {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--primary-green);
    margin-bottom: 2rem;
    text-align: center;
}

.developer-support h4 {
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.coffee-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient-primary);
    color: var(--bg-dark);
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.coffee-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-primary);
}

.contact-methods {
    margin-bottom: 2rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.contact-method i {
    color: var(--primary-green);
    width: 20px;
    text-align: center;
}

.certifications h4 {
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.cert-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.cert-badge {
    background: rgba(156, 111, 70, 0.1);
    border: 1px solid var(--primary-green);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--primary-green);
}

.contact-form {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--primary-green);
}

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

.form-group label {
    display: block;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--bg-darker);
    border: 1px solid rgba(156, 111, 70, 0.3);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 10px rgba(156, 111, 70, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Companion Section */
.companion {
    padding: 5rem 0;
    background: var(--bg-dark);
    position: relative;
}

.companion-content {
    max-width: 1000px;
    margin: 0 auto;
}

.companion-intro {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 4rem;
}

.companion-avatar {
    position: relative;
    flex-shrink: 0;
}

.chamutula-icon {
    width: 150px;
    height: 150px;
    filter: drop-shadow(0 0 30px var(--primary-green));
    animation: companionFloat 3s ease-in-out infinite;
}

.spider-fallback {
    font-size: 8rem;
    animation: companionFloat 3s ease-in-out infinite;
}

.companion-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    border: 2px solid var(--primary-green);
    border-radius: 50%;
    opacity: 0;
    animation: companionPulse 2s ease-out infinite;
}

.companion-text h3 {
    font-size: 2rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
    font-family: var(--font-mono);
}

.companion-text p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.companion-abilities h4 {
    text-align: center;
    font-size: 1.8rem;
    color: var(--primary-green);
    margin-bottom: 2rem;
    font-family: var(--font-mono);
}

.abilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
    width: 100%;
    max-width: 100%;
}

.ability-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(156, 111, 70, 0.2);
    box-shadow: var(--shadow-brown);
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.ability-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--glow-primary);
}

.ability-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.ability-card h5 {
    color: var(--primary-green);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-family: var(--font-mono);
}

.ability-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.companion-quote {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 20px;
    border-left: 5px solid var(--primary-green);
    box-shadow: var(--shadow-brown);
    text-align: center;
}

.companion-quote blockquote {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
}

.companion-quote cite {
    display: block;
    margin-top: 1.5rem;
    color: var(--primary-green);
    font-weight: 600;
    font-family: var(--font-mono);
}

@keyframes companionFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

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

/* Responsive Companion */
@media (max-width: 768px) {
    .companion-intro {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .chamutula-icon {
        width: 120px;
        height: 120px;
    }
    
    .companion-pulse {
        width: 140px;
        height: 140px;
    }
    
    .abilities-grid {
        grid-template-columns: 1fr;
    }
    
    .companion-quote {
        padding: 2rem;
    }
}

/* Tablet responsiveness */
@media (max-width: 1024px) and (min-width: 769px) {
    .nav-menu {
        gap: 1.5rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    
    .nav-link.coffee-link {
        padding: 0.6rem 1rem !important;
        min-width: 110px;
    }
    
    .abilities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .architecture-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small tablet and large mobile */
@media (max-width: 900px) and (min-width: 769px) {
    .nav-menu {
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem;
    }
    
    .nav-link.coffee-link {
        padding: 0.5rem 0.8rem !important;
        min-width: 100px;
        font-size: 0.8rem;
    }
}

/* About Section */
.about {
    background: var(--bg-darker);
    position: relative;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    color: var(--primary-green);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.values-list {
    list-style: none;
    margin-bottom: 2rem;
}

.values-list li {
    color: var(--text-secondary);
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(156, 111, 70, 0.1);
}

.values-list strong {
    color: var(--primary-green);
}

.company-info {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--primary-green);
}

.company-info h4 {
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.company-info p {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

/* Spider Web Visualization */
.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.spider-web {
    position: relative;
    width: 350px;
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
    filter: drop-shadow(0 0 20px rgba(45, 80, 22, 0.3));
}

.web-center {
    font-size: 3.5rem;
    z-index: 10;
    position: relative;
    animation: spiderAdvancedSpin 12s linear infinite;
    filter: drop-shadow(0 0 15px var(--primary-green));
    transition: all 0.3s ease;
}

.web-center:hover {
    font-size: 4rem;
    filter: drop-shadow(0 0 25px var(--primary-green));
    animation: spiderHoverSpin 2s linear infinite;
}

.web-ring {
    position: absolute;
    border: 2px solid var(--primary-green);
    border-radius: 50%;
    opacity: 0.7;
    box-shadow: 0 0 10px rgba(45, 80, 22, 0.3);
}

.ring-1 {
    width: 120px;
    height: 120px;
    animation: webAdvancedPulse 4s ease-in-out infinite, webRotate 15s linear infinite;
    border-style: dashed;
}

.ring-2 {
    width: 200px;
    height: 200px;
    animation: webAdvancedPulse 4s ease-in-out infinite 0.7s, webRotate 20s linear infinite reverse;
    border-style: dotted;
}

.ring-3 {
    width: 280px;
    height: 280px;
    animation: webAdvancedPulse 4s ease-in-out infinite 1.4s, webRotate 25s linear infinite;
    border-style: solid;
}

.ring-4 {
    width: 340px;
    height: 340px;
    animation: webAdvancedPulse 4s ease-in-out infinite 2.1s, webRotate 30s linear infinite reverse;
    border-style: double;
    opacity: 0.5;
}

.web-thread {
    position: absolute;
    width: 140px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-green), transparent);
    top: 50%;
    left: 50%;
    transform-origin: 0 0;
    opacity: 0.9;
    box-shadow: 0 0 5px rgba(45, 80, 22, 0.5);
    animation: threadShimmer 3s ease-in-out infinite;
}

.thread-1 { 
    transform: translate(-50%, -50%) rotate(0deg); 
    animation-delay: 0s;
}
.thread-2 { 
    transform: translate(-50%, -50%) rotate(30deg); 
    animation-delay: 0.5s;
}
.thread-3 { 
    transform: translate(-50%, -50%) rotate(60deg); 
    animation-delay: 1s;
}
.thread-4 { 
    transform: translate(-50%, -50%) rotate(90deg); 
    animation-delay: 1.5s;
}
.thread-5 { 
    transform: translate(-50%, -50%) rotate(120deg); 
    animation-delay: 2s;
}
.thread-6 { 
    transform: translate(-50%, -50%) rotate(150deg); 
    animation-delay: 2.5s;
}
.thread-7 { 
    transform: translate(-50%, -50%) rotate(180deg); 
    animation-delay: 3s;
}
.thread-8 { 
    transform: translate(-50%, -50%) rotate(210deg); 
    animation-delay: 3.5s;
}

/* Web particles */
.web-particle {
    position: absolute;
    font-size: 1.2rem;
    animation: particleFloat 6s ease-in-out infinite;
    opacity: 0.8;
    pointer-events: none;
}

.particle-1 {
    top: 20%;
    left: 80%;
    animation-delay: 0s;
}

.particle-2 {
    top: 70%;
    left: 15%;
    animation-delay: 2s;
}

.particle-3 {
    top: 40%;
    left: 85%;
    animation-delay: 4s;
}

@keyframes particleFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
        opacity: 0.8; 
    }
    25% { 
        transform: translateY(-20px) rotate(90deg); 
        opacity: 1; 
    }
    50% { 
        transform: translateY(-10px) rotate(180deg); 
        opacity: 0.6; 
    }
    75% { 
        transform: translateY(-30px) rotate(270deg); 
        opacity: 1; 
    }
}

/* Enhanced Spider Animations */
@keyframes spiderAdvancedSpin {
    0% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(90deg) scale(1.1); }
    50% { transform: rotate(180deg) scale(1); }
    75% { transform: rotate(270deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

@keyframes spiderHoverSpin {
    0% { transform: rotate(0deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1.2); }
}

@keyframes webAdvancedPulse {
    0%, 100% { 
        transform: scale(1); 
        opacity: 0.7; 
        border-width: 2px;
    }
    50% { 
        transform: scale(1.1); 
        opacity: 1; 
        border-width: 3px;
    }
}

@keyframes webRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes threadShimmer {
    0%, 100% { 
        opacity: 0.9; 
        box-shadow: 0 0 5px rgba(45, 80, 22, 0.5);
    }
    50% { 
        opacity: 1; 
        box-shadow: 0 0 15px rgba(45, 80, 22, 0.8);
    }
}

@keyframes webPulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.6;
    }
    50% { 
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Footer Styles */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--primary-green);
    padding: 3rem 0 1rem;
    flex-shrink: 0;
    margin-top: auto;
}

.company-name {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 300;
}

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

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-brand-icon {
    display: flex;
    align-items: center;
}

.footer-brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.footer-brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
}

.footer-icon {
    width: 200px;
    height: 200px;
    filter: drop-shadow(0 0 20px var(--primary-green));
    animation: spiderPulse 2s ease-in-out infinite;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

.link-group h4 {
    color: var(--primary-green);
    margin-bottom: 1rem;
    font-weight: 600;
}

.link-group a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.link-group a:hover {
    color: var(--primary-green);
}

.footer-social {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(156, 111, 70, 0.1);
    color: var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--primary-green);
}

.footer-social a:hover {
    background: var(--primary-green);
    color: var(--bg-dark);
    transform: translateY(-2px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(156, 111, 70, 0.3);
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--primary-green);
}

/* Mobile menu backdrop */
.nav-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 13999;
}

.nav-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 280px;
        height: auto;
        max-height: calc(100vh - 80px);
        background: linear-gradient(145deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(45, 80, 22, 0.2);
        border-radius: 0 0 0 20px;
        display: flex !important;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        gap: 0.5rem;
        transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        z-index: 14000;
        padding: 1.5rem 1rem;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
        pointer-events: none;
        opacity: 0;
        visibility: hidden;
    }
    
    .nav-menu.active {
        right: 0;
        pointer-events: auto;
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu li {
        margin: 0;
        width: 100%;
    }
    
    .nav-menu .nav-link {
        font-size: 1rem;
        padding: 0.75rem 1rem;
        border-radius: 8px;
        width: 100%;
        text-align: left;
        background: rgba(45, 80, 22, 0.08);
        border: 1px solid rgba(45, 80, 22, 0.15);
        transition: all 0.3s ease;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        text-decoration: none;
        position: relative;
        cursor: pointer;
        pointer-events: auto;
        color: var(--text-primary);
        font-weight: 500;
        margin-bottom: 0.25rem;
    }
    
    .nav-menu .nav-link:hover, .nav-menu .nav-link:focus {
        background: rgba(45, 80, 22, 0.15);
        transform: translateX(5px);
        border-color: var(--primary-green);
        color: var(--primary-green);
        box-shadow: 0 2px 8px rgba(45, 80, 22, 0.2);
    }
    
    .nav-menu .nav-link:active {
        transform: translateX(3px) scale(0.98);
        transition: transform 0.1s ease;
    }
    
    .nav-menu .coffee-link {
        background: var(--gradient-brown) !important;
        color: white !important;
        border: 1px solid rgba(156, 111, 70, 0.3) !important;
        margin-top: 0.5rem;
        font-weight: 600;
    }
    
    .nav-menu .coffee-link:hover {
        background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%) !important;
        transform: translateX(5px);
        box-shadow: 0 4px 12px rgba(156, 111, 70, 0.3);
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active {
        background: rgba(45, 80, 22, 0.15);
    }
    
    .hero {
        padding: 8rem 0 3rem;
        min-height: auto;
    }
}

/* Tablet optimizations */
@media (max-width: 1024px) and (min-width: 769px) {
    .nav-menu {
        gap: 1.5rem;
    }
    
    .nav-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .hero-title-with-icon {
        flex-direction: column;
        gap: 1rem;
        justify-content: center;
        align-items: center;
        padding: 2rem 0;
        margin-top: 1rem;
    }
    
    .hero-title-icon {
        width: 80px;
        height: 80px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .stat {
        min-width: 100px;
        padding: 0.8rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .hero-visual {
        height: 300px;
        order: -1;
    }
    
    .neural-network {
        height: 250px;
    }
    
    .floating-terminal {
        position: relative;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        bottom: auto;
        right: auto;
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
        width: 100%;
    }
    
    .architecture-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
        width: 100%;
    }
    
    .abilities-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
        width: 100%;
    }
    
    /* Mobile card adjustments for 3x3 layout */
    .feature-card {
        padding: 1rem;
        font-size: 0.85rem;
    }
    
    .feature-card h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .feature-card p {
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
    .architecture-card {
        padding: 1rem;
        font-size: 0.85rem;
    }
    
    .architecture-card h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .architecture-card p {
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
    .ability-card {
        padding: 1rem;
        font-size: 0.85rem;
    }
    
    .ability-card h4 {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }
    
    .ability-card p {
        font-size: 0.75rem;
        line-height: 1.3;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        width: 100%;
    }
    
    .pricing-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        width: 100%;
    }
    
    .pricing-cards.single-pricing {
        max-width: 100%;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        flex-direction: row !important;
        padding-left: 40px;
    }
    
    .timeline-date {
        left: 20px;
        transform: translateX(-50%);
    }
    
    .timeline-content {
        width: auto;
        margin: 0 !important;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .projection-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }
    
    /* Enhanced mobile nav for iPhone 15-17 */
    .nav-menu {
        width: 92%;
        right: -100%;
        border-radius: 16px 0 0 16px;
        padding: 1.25rem 1rem;
        backdrop-filter: blur(25px);
        border: 1px solid rgba(45, 80, 22, 0.25);
    }
    
    .nav-menu .nav-link {
        font-size: 1rem;
        padding: 0.75rem 1rem;
        min-height: 48px;
        border-radius: 10px;
        font-weight: 500;
        transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .nav-menu .nav-link:hover {
        transform: translateX(8px) scale(1.02);
        background: rgba(45, 80, 22, 0.18);
        box-shadow: 0 4px 12px rgba(45, 80, 22, 0.25);
    }
    
    .nav-menu .coffee-link {
        padding: 0.8rem 1rem;
        font-size: 0.95rem;
        font-weight: 600;
        margin-top: 0.75rem;
    }
    
    .hero {
        padding: 8rem 0 3rem;
        min-height: calc(100vh - env(safe-area-inset-top));
    }
    
    .hero-content {
        padding: 0 1rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.1rem;
        line-height: 1.15;
        margin-bottom: 1.5rem;
        font-weight: 700;
        letter-spacing: -0.02em;
    }
    
    .hero-title-with-icon {
        gap: 1.25rem;
        margin-bottom: 1.5rem;
        padding: 1.5rem 0;
        margin-top: 1rem;
    }
    
    .hero-title-icon {
        width: 70px;
        height: 70px;
        filter: drop-shadow(0 4px 8px rgba(45, 80, 22, 0.3));
        margin: 1rem;
        flex-shrink: 0;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        line-height: 1.5;
        margin-bottom: 2rem;
        color: var(--text-secondary);
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Enhanced 3x3 grid scaling for small screens */
    .features-grid,
    .architecture-grid,
    .abilities-grid {
        gap: 0.5rem;
    }
    
    .feature-card,
    .architecture-card {
        padding: 0.75rem;
        border-radius: 8px;
    }
    
    .feature-card h3,
    .architecture-card h3 {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
        line-height: 1.2;
    }
    
    .feature-card p,
    .architecture-card p {
        font-size: 0.7rem;
        line-height: 1.3;
        margin: 0;
    }
    
    .ability-card {
        padding: 0.6rem;
        border-radius: 8px;
    }
    
    .ability-card h4 {
        font-size: 0.8rem;
        margin-bottom: 0.3rem;
    }
    
    .ability-card p {
        font-size: 0.65rem;
        line-height: 1.2;
        margin: 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .stat {
        width: 100%;
        max-width: 200px;
        padding: 0.6rem;
    }
    
    .stat-number {
        font-size: 1.3rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 1.25rem;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
    
    .btn, .cta-button {
        width: 100%;
        min-height: 52px;
        font-size: 1.05rem;
        font-weight: 600;
        padding: 0.9rem 1.5rem;
        border-radius: 14px;
        transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    
    .btn:hover, .cta-button:hover {
        transform: translateY(-2px) scale(1.02);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    }
    
    .btn:active, .cta-button:active {
        transform: translateY(0) scale(0.98);
        transition: all 0.1s ease;
    }
    
    .hero-visual {
        height: 200px;
    }
    
    .neural-network {
        height: 150px;
    }
    
    .node {
        width: 12px;
        height: 12px;
    }
    
    .floating-terminal {
        position: static;
        width: 100%;
        margin-top: 1rem;
        font-size: 0.8rem;
    }
    
    .cert-badges {
        justify-content: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .spider-web {
        width: 200px;
        height: 200px;
    }
    
    .web-center {
        font-size: 2rem;
    }
    
    .section-title-with-icon {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .section-icon {
        width: 50px;
        height: 50px;
    }
    
    .brand-icon {
        width: 56px;
        height: 56px;
    }
    
    .footer-icon {
        width: 140px;
        height: 140px;
    }
    
    .footer-brand {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(139, 98, 61, 0.3);
    backdrop-filter: blur(10px);
}

.modal-content {
    background: var(--bg-card);
    margin: 5% auto;
    padding: 0;
    border: 2px solid var(--primary-green);
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--glow-primary);
}

.modal-header {
    background: var(--bg-card);
    padding: 2rem;
    border-bottom: 1px solid var(--primary-green);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 13px 13px 0 0;
}

.modal-header h2 {
    color: var(--primary-green);
    margin: 0;
    font-size: 1.5rem;
}

.close {
    color: var(--text-muted);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--primary-green);
    text-shadow: var(--glow-secondary);
}

.modal-body {
    padding: 2rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.modal-body h3 {
    color: var(--primary-green);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.modal-body ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.modal-body li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.modal-body p {
    margin-bottom: 1rem;
}

.modal-body strong {
    color: var(--primary-green);
}

/* Modal Animation */
.modal.show {
    display: block;
    animation: modalFadeIn 0.3s ease-out;
}

.modal.hide {
    animation: modalFadeOut 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes modalFadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.8);
    }
}

/* Notification Styles */
.notification-error {
    border-color: #ff6b6b !important;
}

.notification-error i {
    color: #ff6b6b !important;
}

/* iPhone/iOS Touch and Performance Optimizations */
@media screen and (max-width: 480px) {
    /* Remove iOS tap highlights and improve touch targets */
    body, * {
        -webkit-tap-highlight-color: rgba(0,0,0,0);
        -webkit-touch-callout: none;
    }
    
    /* Optimize buttons and interactive elements for iPhone touch */
    .btn, button, .cta-button, .nav-links a, .social-link {
        -webkit-tap-highlight-color: rgba(0,0,0,0);
        touch-action: manipulation;
        min-height: 44px;
        min-width: 44px;
        cursor: pointer;
        -webkit-user-select: none;
        user-select: none;
        position: relative;
    }
    
    /* Better button feedback on iPhone */
    .btn:active, button:active, .cta-button:active {
        transform: scale(0.98) !important;
        transition: transform 0.1s ease;
    }
    
    /* Fix iOS input styling */
    input, textarea, select {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        border-radius: 0;
        -webkit-border-radius: 8px;
        border-radius: 8px;
    }
    
    /* Improve scrolling performance on iPhone */
    .hero-content, .spider-web, .floating-books, .features-grid {
        -webkit-transform: translate3d(0,0,0);
        transform: translate3d(0,0,0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
    
    /* Fix iPhone viewport height issues */
    .hero {
        min-height: 100vh;
        min-height: -webkit-fill-available;
        min-height: calc(var(--vh, 1vh) * 100);
    }
    
    /* Add iOS optimization class */
    body.ios-optimized {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: none;
    }
    
    /* Optimize typography rendering on iPhone */
    body, input, textarea, button {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
    }
    
    /* Prevent zoom on input focus for iPhone */
    input[type="text"], input[type="email"], input[type="tel"], textarea {
        font-size: 16px !important;
        transform-origin: left top;
    }
    
    /* Optimize animations for iPhone performance */
    .floating-terminal, .spider-web-strand, .book {
        will-change: transform, opacity;
        -webkit-transform: translate3d(0,0,0);
        transform: translate3d(0,0,0);
    }
}

.notification-success {
    border-color: var(--primary-green) !important;
}

/* Touch interaction enhancements */
.touch-active {
    transform: scale(0.96) !important;
    transition: transform 0.15s ease !important;
}

/* Enhanced mobile performance */
@media (max-width: 768px) {
    /* Optimize animations for mobile performance */
    * {
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        -webkit-perspective: 1000px;
        perspective: 1000px;
    }
    
    /* Smooth scroll behavior for mobile */
    html {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Better text rendering on mobile */
    body, input, textarea, button {
        text-rendering: optimizeSpeed;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* iPhone 15-17 Specific Optimizations */
@media screen and (device-width: 393px) and (device-height: 852px) and (-webkit-device-pixel-ratio: 3),
       screen and (device-width: 430px) and (device-height: 932px) and (-webkit-device-pixel-ratio: 3) {
    
    /* iPhone 15/15 Pro and iPhone 15 Plus/15 Pro Max Optimizations */
    html {
        /* Support for Dynamic Island */
        padding-top: var(--safe-area-inset-top);
    }
    
    body {
        /* Prevent content from going under Dynamic Island */
        padding-top: var(--safe-area-inset-top);
        padding-left: var(--safe-area-inset-left);
        padding-right: var(--safe-area-inset-right);
        padding-bottom: var(--safe-area-inset-bottom);
    }
    
    .header {
        /* Account for Dynamic Island */
        top: var(--safe-area-inset-top);
        padding-top: 0.5rem;
        height: calc(80px + var(--safe-area-inset-top));
    }
    
    .nav-menu {
        /* Adjust menu position for Dynamic Island */
        top: calc(80px + var(--safe-area-inset-top));
        max-height: calc(var(--dynamic-viewport-height) - 80px - var(--safe-area-inset-top));
        width: 300px;
        padding: 1.25rem;
    }
    
    .hero {
        /* Use full available height minus Dynamic Island */
        min-height: calc(var(--dynamic-viewport-height) - var(--safe-area-inset-top));
        padding-top: calc(8rem + var(--safe-area-inset-top));
    }
    
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.1;
        margin-bottom: 1.25rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        line-height: 1.4;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        margin-top: 1.5rem;
    }
    
    .btn, .cta-button {
        min-height: 48px;
        font-size: 1rem;
        font-weight: 600;
        border-radius: 12px;
        padding: 0.75rem 2rem;
    }
    
    /* Enhanced touch targets for iPhone */
    .nav-toggle {
        min-width: 48px;
        min-height: 48px;
        padding: 0.75rem;
    }
    
    .nav-link {
        min-height: 48px;
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }
    
    /* Optimize typography for iPhone screens */
    .section-title {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 2rem;
    }
    
    /* Improve form elements for iPhone */
    input, textarea, select {
        min-height: 48px;
        font-size: 16px;
        padding: 0.75rem 1rem;
        border-radius: 10px;
    }
    
    /* Optimize containers for iPhone screens */
    .container {
        padding: 0 1.25rem;
        max-width: 100%;
    }
    
    /* Enhanced sections spacing */
    section {
        padding: 3rem 0;
    }
    
    /* iPhone 15-17 optimized 3x3 grids */
    .features-grid,
    .architecture-grid,
    .abilities-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
    }
    
    .feature-card,
    .architecture-card {
        padding: 1rem;
        border-radius: 10px;
        font-size: 0.85rem;
    }
    
    .feature-card h3,
    .architecture-card h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
        line-height: 1.2;
    }
    
    .feature-card p,
    .architecture-card p {
        font-size: 0.75rem;
        line-height: 1.3;
    }
    
    .ability-card {
        padding: 0.8rem;
        border-radius: 10px;
    }
    
    .ability-card h4 {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }
    
    .ability-card p {
        font-size: 0.7rem;
        line-height: 1.2;
    }
    
    .pricing-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .pricing-card {
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    /* Better stats display for iPhone */
    .hero-stats {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        margin: 2rem 0;
    }
    
    .stat {
        padding: 1rem;
        border-radius: 10px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
}

/* iPhone 15-17 Landscape Mode Optimizations */
@media screen and (max-height: 430px) and (orientation: landscape) {
    .header {
        height: 60px;
        padding: 0.25rem 0;
    }
    
    .hero {
        min-height: 100vh;
        padding: 4rem 0 2rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    .hero-buttons {
        flex-direction: row;
        gap: 1rem;
        justify-content: center;
    }
    
    .nav-menu {
        top: 60px;
        width: 250px;
        max-height: calc(100vh - 60px);
    }
}

.notification-success i {
    color: var(--primary-green) !important;
}