/* ========================================
   TYPEWRITER ANIMATION & FONT IMPROVEMENTS
   Enhanced typography and animations for index.html
   ======================================== */

/* ========================================
   IMPROVED TYPOGRAPHY
   ======================================== */

/* Use modern font stack */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
}

/* Headers use Space Grotesk for modern tech look */
h1, h2, h3, h4, h5, h6,
.hero h1,
.section-title {
    font-family: 'Space Grotesk', 'Inter', sans-serif !important;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Improve readability */
p, .hero-subtitle, .section-subtitle {
    font-family: 'Inter', sans-serif !important;
    line-height: 1.7;
    letter-spacing: -0.01em;
}

/* ========================================
   TYPEWRITER ANIMATION
   ======================================== */

.typewriter-title {
    font-size: 4rem !important;
    font-weight: 900 !important;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    display: inline-block;
    position: relative;
    font-family: 'Space Grotesk', sans-serif !important;
    letter-spacing: -0.03em;
    line-height: 1.1;
    min-height: 4.5rem; /* Prevent layout shift */
}

#typewriterText {
    display: inline-block;
}

/* Blinking cursor - Google search bar style */
.typewriter-cursor {
    display: inline-block !important;
    margin-left: 4px !important;
    animation: cursor-blink 0.8s infinite !important;
    color: #ffffff !important;
    font-weight: 100 !important;
    font-size: 1em !important;
    opacity: 1 !important;
}

@keyframes cursor-blink {
    0% { opacity: 1 !important; }
    50% { opacity: 0 !important; }
    100% { opacity: 1 !important; }
}

/* ========================================
   HERO SUBTITLE ANIMATION
   ======================================== */

.animated-subtitle {
    font-size: 1.25rem !important;
    font-weight: 400 !important;
    color: rgba(255, 255, 255, 0.8) !important;
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.8 !important;
    animation: fadeInUp 1s ease-out 0.5s both;
}

/* ========================================
   FADE IN UP ANIMATION
   ======================================== */

.fade-in-up {
    animation: fadeInUp 1s ease-out 1s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   BADGE IMPROVEMENTS
   ======================================== */

.hero-badges .badge {
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    letter-spacing: 0.01em;
    padding: 0.625rem 1.25rem !important;
    background: rgba(59, 130, 246, 0.1) !important;
    border: 1px solid rgba(59, 130, 246, 0.3) !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.hero-badges .badge:hover {
    background: rgba(59, 130, 246, 0.2) !important;
    border-color: rgba(59, 130, 246, 0.5) !important;
    transform: translateY(-2px);
}

/* ========================================
   BUTTON IMPROVEMENTS
   ======================================== */

.btn {
    font-family: 'Inter', sans-serif !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    letter-spacing: 0.02em;
    padding: 1rem 2rem !important;
    border-radius: 12px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4) !important;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.5) !important;
}

.btn-secondary:hover {
    transform: translateY(-3px);
}

/* ========================================
   SECTION TITLE IMPROVEMENTS
   ======================================== */

.section-title {
    font-size: 2.75rem !important;
    font-weight: 800 !important;
    margin-bottom: 1rem !important;
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
}

.section-subtitle {
    font-size: 1.125rem !important;
    font-weight: 400 !important;
    color: rgba(255, 255, 255, 0.7) !important;
    line-height: 1.8 !important;
    max-width: 800px;
    margin: 0 auto 3rem;
}

/* ========================================
   STATS SECTION IMPROVEMENTS
   ======================================== */

.stat-item h3 {
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 3rem !important;
    font-weight: 800 !important;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.stat-item p {
    font-weight: 500 !important;
    font-size: 1rem !important;
    letter-spacing: 0.02em;
}

/* ========================================
   CARD TITLE IMPROVEMENTS
   ======================================== */

.feature-card h3,
.pricing-card h3,
.hw-card h3 {
    font-family: 'Space Grotesk', sans-serif !important;
    font-weight: 700 !important;
    font-size: 1.5rem !important;
    letter-spacing: -0.02em;
}

/* Hardware gradient titles */
.hw-gradient-title {
    font-family: 'Space Grotesk', sans-serif !important;
    font-weight: 800 !important;
    font-size: 1.75rem !important;
    letter-spacing: -0.02em;
}

/* ========================================
   MOBILE RESPONSIVE TYPOGRAPHY
   ======================================== */

@media (max-width: 1024px) {
    .typewriter-title {
        font-size: 3.5rem !important;
        min-height: 4rem;
    }
    
    .section-title {
        font-size: 2.5rem !important;
    }
}

@media (max-width: 768px) {
    .typewriter-title {
        font-size: 2.5rem !important;
        min-height: 3rem;
    }
    
    .animated-subtitle {
        font-size: 1.1rem !important;
    }
    
    .section-title {
        font-size: 2rem !important;
    }
    
    .section-subtitle {
        font-size: 1rem !important;
    }
    
    .stat-item h3 {
        font-size: 2.5rem !important;
    }
    
    .hw-gradient-title {
        font-size: 1.5rem !important;
    }
    
    /* Mobile Navbar Logo Fix */
    .nav-logo,
    .navbar img {
        height: 28px !important;
        width: auto !important;
    }
    
    .navbar-brand-text,
    .navbar-typewriter-text {
        font-size: 0.95rem !important;
    }
    
    .nav-brand,
    .brand {
        gap: 0.5rem !important;
    }
}

@media (max-width: 480px) {
    .typewriter-title {
        font-size: 2rem !important;
        min-height: 2.5rem;
    }
    
    .animated-subtitle {
        font-size: 1rem !important;
    }
    
    .section-title {
        font-size: 1.75rem !important;
    }
    
    .stat-item h3 {
        font-size: 2rem !important;
    }
    
    .btn {
        font-size: 0.9rem !important;
        padding: 0.875rem 1.5rem !important;
    }
    
    /* Extra Small Mobile - Logo */
    .nav-logo,
    .navbar img {
        height: 24px !important;
    }
    
    .navbar-brand-text,
    .navbar-typewriter-text {
        font-size: 0.9rem !important;
    }
}

/* ========================================
   SMOOTH TEXT RENDERING
   ======================================== */

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ========================================
   HERO SECTION ENHANCEMENTS
   ======================================== */

.hero {
    overflow: hidden;
}

.hero .container {
    position: relative;
    z-index: 1;
}

/* Add subtle glow effect to title */
.typewriter-title::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    z-index: -1;
    filter: blur(40px);
    pointer-events: none;
}
