/* Hero Spiral with Overlaid Text */
.hero-spiral-container {
    display: inline-block;
    position: relative;
    width: 100%;
    max-width: 400px;
    height: auto;
}

.hero-spiral {
    width: 100%;
    height: auto;
    /* Synchronized rotation with header spiral */
    animation: spiral-size-breath 30s ease-in-out infinite;
}

.hero-spiral-path-background {
    stroke: currentColor;
    fill: none;
    stroke-width: 1.2;
    stroke-linecap: round;
    /* No animations - static background */
}

/* Text overlay animations synchronized with spiral */
.hero-text-overlay {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* WHY - Center - slowest breathing (36s - 2x faster) */
.hero-text-why {
    animation: text-breath-why-slow 36s ease-in-out infinite;
}

/* HOW - Middle - medium breathing (22.5s - 2x faster) */
.hero-text-how {
    animation: text-breath-how-medium 22.5s ease-in-out infinite;
}

/* WHAT - Outer - fastest breathing (13.5s - 2x faster) */
.hero-text-what {
    animation: text-breath-what-fast 13.5s ease-in-out infinite;
}

/* Independent breathing animations with different ranges */
@keyframes text-breath-why-slow {
    0%, 100% { 
        transform: scale(0.8);
        opacity: 0.7;
    }
    50% { 
        transform: scale(1.2);
        opacity: 1;
    }
}

@keyframes text-breath-how-medium {
    0%, 100% { 
        transform: scale(0.85);
        opacity: 0.6;
    }
    50% { 
        transform: scale(1.15);
        opacity: 0.95;
    }
}

@keyframes text-breath-what-fast {
    0%, 100% { 
        transform: scale(0.9);
        opacity: 0.5;
    }
    50% { 
        transform: scale(1.1);
        opacity: 0.9;
    }
}

/* Removed hero spiral animation - now static background */

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-spiral-container {
        max-width: 300px;
    }
    
    .hero-text-why {
        font-size: 20px !important;
    }
    
    .hero-text-how {
        font-size: 18px !important;
    }
    
    .hero-text-what {
        font-size: 16px !important;
    }
}

@media (max-width: 480px) {
    .hero-spiral-container {
        max-width: 250px;
    }
    
    .hero-text-why {
        font-size: 18px !important;
    }
    
    .hero-text-how {
        font-size: 16px !important;
    }
    
    .hero-text-what {
        font-size: 14px !important;
    }
}

/* Multi-Rhythm Recursive Spiral Logo Styles */
.spiral-logo {
    display: inline-block;
    /* Primary rhythm: Size breathing (30s) */
    animation: spiral-size-breath 30s ease-in-out infinite;
}

.spiral-path {
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    /* Multiple simultaneous rhythms with different timings */
    animation: 
        spiral-draw-direction 45s linear infinite,
        spiral-weight-pulse 20s ease-in-out infinite;
    stroke-dasharray: 0 3000;
}

.spiral-logo:hover {
    animation: spiral-size-breath 10s ease-in-out infinite; /* Speed up all rhythms on hover */
}

.spiral-logo:hover .spiral-path {
    animation: 
        spiral-draw-direction 15s linear infinite,
        spiral-weight-pulse 7s ease-in-out infinite;
}

/* Multi-Rhythm Breathing Spiral Animations
   Three simultaneous processes representing the complexity of recursive synthesis:
   1. Size breathing (30s) - Primary exploration/synthesis cycle
   2. Drawing direction (45s) - Deeper abstraction process  
   3. Weight/opacity pulse (20s) - Rapid ideation heartbeat */

/* Process 1: Size Breathing - Primary 30s rhythm */
@keyframes spiral-size-breath {
    0%, 100% { 
        transform: scale(1.2) rotate(0deg); 
        opacity: 0.7; 
    }
    25% { 
        transform: scale(0.9) rotate(90deg); 
        opacity: 0.85; 
    }
    50% { 
        transform: scale(0.3) rotate(180deg); 
        opacity: 1; 
    }
    75% { 
        transform: scale(0.9) rotate(270deg); 
        opacity: 0.85; 
    }
}

/* Process 2: Drawing Direction - Secondary 45s rhythm */
@keyframes spiral-draw-direction {
    0% { stroke-dasharray: 0 3000; } /* Start from center */
    22% { stroke-dasharray: 2800 200; } /* Drawing outward */
    28% { stroke-dasharray: 3000 0; } /* Fully drawn outward - pause */
    35% { stroke-dasharray: 3000 0; } /* Hold */
    50% { stroke-dasharray: 2800 200; } /* Start reversing */
    72% { stroke-dasharray: 0 3000; } /* Drawing inward */
    78% { stroke-dasharray: 0 3000; } /* Fully drawn inward - pause */
    85% { stroke-dasharray: 0 3000; } /* Hold */
    100% { stroke-dasharray: 0 3000; } /* Reset */
}

/* Process 3: Weight & Opacity Pulse - Tertiary 20s rhythm */
@keyframes spiral-weight-pulse {
    0%, 100% { 
        stroke-opacity: 0.4; 
        stroke-width: 1.5; 
    }
    25% { 
        stroke-opacity: 0.7; 
        stroke-width: 2.5; 
    }
    50% { 
        stroke-opacity: 1; 
        stroke-width: 3.5; 
    }
    75% { 
        stroke-opacity: 0.7; 
        stroke-width: 2.5; 
    }
}

/* Different sizes for different contexts */
.spiral-logo.size-sm { width: 80px; height: 80px; }  /* Header size: 1/3 smaller than medium */
.spiral-logo.size-md { width: 120px; height: 120px; }  /* Standard size for footer and other uses */
.spiral-logo.size-lg { width: 200px; height: 200px; }
.spiral-logo.size-xl { width: 300px; height: 300px; }

.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.floating-animation {
    animation: float 6s ease-in-out infinite;
}

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

.aurora-bg {
    background: linear-gradient(45deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%);
    background-size: 400% 400%;
    animation: aurora 20s ease infinite;
}

@keyframes aurora {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Fix hero text clipping issue */
.hero-title {
    line-height: 1.4;
    padding-bottom: 1.5rem;
}

.hero-title .gradient-text {
    display: block;
    padding-bottom: 1rem;
    line-height: 1.5;
}

/* Typography system - using default system fonts */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Font size hierarchy */
.hero-title {
    font-size: 3.5rem; /* Largest - Main title */
}

@media (min-width: 640px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 5.5rem;
    }
}

/* Section titles */
h2 {
    font-size: 2.25rem; /* Intermediate - Section titles */
}

/* Subtitles and buttons */
h3 {
    font-size: 1.5rem; /* Intermediate - Subtitles */
}

/* Subtitle class for intermediate sizing */
.subtitle {
    font-size: 1.5rem; /* Intermediate - Subtitle size */
}

/* Content text - hero size */
.content-text {
    font-size: 1.25rem; /* Content - hero paragraph size */
}

/* Button text */
.btn-text {
    font-size: 1rem; /* Intermediate - Button text */
}