/* 
 * TeacherDocs UK - Ultra Modern Design
 * Copyright (c) 2026 tki3t
 */

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

:root {
    /* Modern Color Palette */
    --color-bg: #0A0A0F;
    --color-surface: #14141F;
    --color-surface-light: #1C1C2E;
    
    /* Brand Colors */
    --color-primary: #00D4FF;
    --color-secondary: #A855F7;
    --color-accent: #10B981;
    --color-pink: #EC4899;
    
    /* Text Colors */
    --color-text: #FFFFFF;
    --color-text-secondary: #A3A3B8;
    --color-text-muted: #6B6B7F;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #00D4FF 0%, #A855F7 100%);
    --gradient-secondary: linear-gradient(135deg, #A855F7 0%, #EC4899 100%);
    --gradient-accent: linear-gradient(135deg, #10B981 0%, #00D4FF 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(0, 212, 255, 0.2);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Animated Background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    animation: float-orb 25s infinite ease-in-out;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.6) 0%, transparent 70%);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.6) 0%, transparent 70%);
    bottom: -10%;
    right: -10%;
    animation-delay: -8s;
}

.orb-3 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.5) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -15s;
}

@keyframes float-orb {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(40px, -60px) scale(1.1);
    }
    66% {
        transform: translate(-40px, 40px) scale(0.9);
    }
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    position: relative;
    z-index: 1;
}

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: var(--spacing-md) 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.brand:hover {
    transform: scale(1.02);
}

.brand-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

.brand-text {
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-badge {
    background: var(--gradient-primary);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.nav-link {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-link:hover {
    color: var(--color-primary);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 16px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 8px 24px rgba(0, 212, 255, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.05rem;
}

.btn-cta {
    background: white;
    color: var(--color-bg);
    padding: 18px 40px;
    font-size: 1.1rem;
}

.btn-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: center;
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--radius-full);
    color: var(--color-primary);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.03em;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-xl);
    max-width: 560px;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-2xl);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    padding-top: var(--spacing-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 600px;
    animation: fadeInRight 1s ease-out;
}

.documents-stack {
    position: relative;
    width: 100%;
    height: 100%;
}

.document-card {
    position: absolute;
    width: 300px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.document-card:hover {
    transform: translateY(-12px) scale(1.03);
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 0 16px 48px rgba(0, 212, 255, 0.2);
}

.card-1 {
    top: 0;
    left: 0;
    z-index: 3;
    animation: float-card 6s ease-in-out infinite;
}

.card-2 {
    top: 140px;
    right: 0;
    z-index: 2;
    animation: float-card 6s ease-in-out infinite -2s;
}

.card-3 {
    bottom: 0;
    left: 40px;
    z-index: 1;
    animation: float-card 6s ease-in-out infinite -4s;
}

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

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-md);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.card-badge {
    padding: 4px 12px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-primary);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.card-preview {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.preview-line {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.preview-line.short {
    width: 60%;
}

.preview-photo {
    width: 60px;
    height: 60px;
    background: var(--gradient-secondary);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
}

.preview-seal {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid rgba(0, 212, 255, 0.3);
    margin-top: 8px;
}

/* Sections */
.features,
.how-it-works,
.cta {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto var(--spacing-2xl);
}

.section-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: var(--radius-full);
    color: var(--color-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-md);
}

.section-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
}

.section-description {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--color-text-secondary);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.feature-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin-bottom: var(--spacing-md);
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

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

/* Steps Grid */
.steps-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: var(--spacing-lg);
}

.step-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    transition: all 0.4s ease;
}

.step-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 212, 255, 0.3);
}

.step-number {
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin-bottom: var(--spacing-md);
    box-shadow: 0 8px 24px rgba(0, 212, 255, 0.3);
}

.step-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.step-content p {
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.step-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* CTA Section */
.cta-card {
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    padding: 80px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 212, 255, 0.3);
}

.cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-card h2 {
    font-size: 3rem;
    font-weight: 900;
    color: white;
    margin-bottom: var(--spacing-md);
}

.cta-card p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-xl);
}

/* Footer */
.footer {
    background: var(--color-surface);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 0 30px;
}

.footer-content {
    margin-bottom: var(--spacing-xl);
}

.footer-brand {
    max-width: 400px;
}

.footer-brand p {
    color: var(--color-text-muted);
    margin-top: var(--spacing-md);
    line-height: 1.7;
}

.footer-bottom {
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

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

.footer-bottom strong {
    color: var(--color-primary);
    font-weight: 600;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .hero-visual {
        height: 500px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .step-arrow {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-menu {
        gap: var(--spacing-md);
    }
    
    .nav-link {
        display: none;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .stat-divider {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.25rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-card {
        padding: 60px 30px;
    }
    
    .cta-card h2 {
        font-size: 2rem;
    }
}

/* Generator Page Styles */
.generator-page {
    min-height: 100vh;
    padding-top: 80px;
    padding-bottom: 100px;
}

@media (max-width: 768px) {
    .generator-page {
        padding-top: 70px !important;
        padding-bottom: 40px !important;
    }
}

@media (max-width: 480px) {
    .generator-page {
        padding-top: 65px !important;
        padding-bottom: 30px !important;
    }
}

/* Generator Navbar */
.navbar-generator {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.6);
    backdrop-filter: blur(30px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .navbar-generator {
        padding: 10px 0 !important;
    }
}

@media (max-width: 480px) {
    .navbar-generator {
        padding: 8px 0 !important;
    }
}

.navbar-generator .nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-generator {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 8px;
    border-radius: var(--radius-md);
}

.brand-generator:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.03);
}

.brand-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.brand-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.brand-generator:hover .brand-icon {
    border-color: var(--color-primary);
    box-shadow: 0 8px 24px rgba(0, 212, 255, 0.3);
}

.brand-generator:hover .brand-icon::before {
    opacity: 0.1;
}

.brand-icon svg {
    position: relative;
    z-index: 1;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-name {
    font-size: 1.4rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.brand-tag {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    color: var(--color-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-nav::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-nav:hover {
    border-color: var(--color-primary);
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 212, 255, 0.2);
}

.btn-nav:hover::before {
    opacity: 0.1;
}

.btn-nav svg {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.btn-nav span {
    position: relative;
    z-index: 1;
}

.btn-nav:hover svg {
    transform: translateX(-2px);
}

.generator-section {
    padding: 60px 0;
}

@media (max-width: 768px) {
    .generator-section {
        padding: 24px 0 !important;
    }
    
    .generator-header {
        margin-bottom: 20px !important;
    }
}

@media (max-width: 480px) {
    .generator-section {
        padding: 20px 0 !important;
    }
    
    .generator-header {
        margin-bottom: 16px !important;
    }
}

.container-narrow {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

@media (max-width: 768px) {
    .container-narrow {
        padding: 0 16px !important;
    }
}

@media (max-width: 480px) {
    .container-narrow {
        padding: 0 16px !important;
    }
}

.generator-header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInUp 0.6s ease-out;
}

@media (max-width: 768px) {
    .generator-header {
        margin-bottom: 32px !important;
    }
}

@media (max-width: 480px) {
    .generator-header {
        margin-bottom: 24px !important;
    }
}

.generator-header h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: var(--spacing-md);
    line-height: 1.1;
}

@media (max-width: 768px) {
    .generator-header h1 {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
        margin-bottom: 8px !important;
        font-weight: 800 !important;
    }
}

@media (max-width: 480px) {
    .generator-header h1 {
        font-size: 1.35rem !important;
        line-height: 1.3 !important;
        margin-bottom: 8px !important;
    }
}

.generator-header p {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .generator-header p {
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
        max-width: 100% !important;
    }
}

@media (max-width: 480px) {
    .generator-header p {
        font-size: 0.8rem !important;
    }
}

.generator-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    padding: 48px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

@media (max-width: 768px) {
    .generator-card {
        padding: 24px 20px !important;
        margin: 0 !important;
        border-radius: var(--radius-md) !important;
    }
}

@media (max-width: 480px) {
    .generator-card {
        padding: 20px 16px !important;
        border-radius: var(--radius-sm) !important;
    }
}

.form-grid {
    display: grid;
    gap: 48px;
}

@media (max-width: 768px) {
    .form-grid {
        gap: 24px !important;
    }
}

@media (max-width: 480px) {
    .form-grid {
        gap: 20px !important;
    }
}

.form-section {
    position: relative;
}

.form-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-text);
}

@media (max-width: 768px) {
    .form-section-title {
        font-size: 1.05rem !important;
        margin-bottom: 12px !important;
        gap: 8px !important;
    }
}

@media (max-width: 480px) {
    .form-section-title {
        font-size: 0.95rem !important;
        margin-bottom: 10px !important;
        gap: 6px !important;
    }
}

.section-icon {
    color: var(--color-primary);
    flex-shrink: 0;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (max-width: 768px) {
    .form-group {
        gap: 8px !important;
    }
}

@media (max-width: 480px) {
    .form-group {
        gap: 6px !important;
    }
}

.form-group label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text);
    letter-spacing: 0.3px;
}

.form-group input,
.form-group select {
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--color-text);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 768px) {
    .form-group input,
    .form-group select {
        padding: 14px 16px !important;
        font-size: 16px !important; /* Prevent zoom on iOS */
    }
}

.form-group input:hover,
.form-group select:hover {
    border-color: rgba(0, 212, 255, 0.3);
    background: rgba(255, 255, 255, 0.06);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.15);
}

.form-group select {
    cursor: pointer;
}

.form-group select option {
    background: var(--color-surface);
    color: var(--color-text);
    padding: 12px;
}

.form-hint {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-style: italic;
}

.form-hint {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-style: italic;
}

/* Captcha Container */
.captcha-container {
    margin-top: 40px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

@media (max-width: 768px) {
    .captcha-container {
        margin-top: 24px !important;
        padding: 16px !important;
        border-radius: var(--radius-md) !important;
    }
}

@media (max-width: 480px) {
    .captcha-container {
        margin-top: 20px !important;
        padding: 12px !important;
        border-radius: var(--radius-sm) !important;
    }
}

.cf-turnstile {
    transform: scale(1);
    transform-origin: center;
}

.captcha-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    opacity: 0.7;
}

.captcha-hint svg {
    color: var(--color-accent);
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 20px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 768px) {
    .form-actions {
        flex-direction: column !important;
        gap: 12px !important;
        margin-top: 24px !important;
        padding-top: 24px !important;
    }
    
    .form-actions button {
        width: 100% !important;
    }
}

.form-actions button {
    flex: 1;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text);
    padding: 16px 32px;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: inherit;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-secondary:active {
    transform: translateY(0);
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
}

.back-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: var(--color-primary);
    gap: 12px;
}

.back-link svg {
    transition: transform 0.3s ease;
}

.back-link:hover svg {
    transform: translateX(-4px);
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 80px 40px;
}

.loading-animation {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 40px;
}

.loader-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-radius: 50%;
    animation: rotate 2s linear infinite;
}

.loader-ring:nth-child(1) {
    border-top-color: var(--color-primary);
    animation-delay: 0s;
}

.loader-ring:nth-child(2) {
    border-right-color: var(--color-secondary);
    animation-delay: 0.3s;
}

.loader-ring:nth-child(3) {
    border-bottom-color: var(--color-accent);
    animation-delay: 0.6s;
}

.loader-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 1.5s ease-in-out infinite;
}

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

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

.loading-state h3 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.loading-state p {
    font-size: 1rem;
    color: var(--color-text-secondary);
    margin-bottom: 40px;
}

.progress-bar-container {
    width: 100%;
    max-width: 500px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin: 0 auto 40px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 10px;
    width: 0%;
    transition: width 0.3s ease;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -500px 0;
    }
    100% {
        background-position: 500px 0;
    }
}

.progress-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 700px;
    margin: 0 auto;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 2px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    opacity: 0.4;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.progress-step::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.progress-step.active {
    opacity: 1;
    border-color: var(--color-primary);
    background: rgba(0, 212, 255, 0.05);
    transform: translateY(-4px);
}

.progress-step.active::before {
    opacity: 0.1;
}

.progress-step.active .step-number {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 16px rgba(0, 212, 255, 0.4);
}

.progress-step.active .step-icon {
    color: var(--color-primary);
    animation: bounce 0.6s ease;
}

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

.step-number {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    z-index: 1;
}

.step-icon {
    color: var(--color-text-muted);
    transition: all 0.3s ease;
    z-index: 1;
}

.step-label {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    text-align: center;
    font-weight: 500;
    z-index: 1;
}

/* Results State */
.results-state {
    text-align: center;
    padding: 60px 40px;
}

.success-animation {
    width: 120px;
    height: 120px;
    margin: 0 auto 32px;
}

.checkmark {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: block;
    stroke-width: 3;
    stroke: #10B981;
    stroke-miterlimit: 10;
    animation: fill 0.4s ease-in-out 0.4s forwards, scale 0.3s ease-in-out 0.9s both;
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 3;
    stroke-miterlimit: 10;
    stroke: #10B981;
    fill: rgba(16, 185, 129, 0.1);
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke: #10B981;
    stroke-width: 3;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes scale {
    0%, 100% {
        transform: none;
    }
    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

@keyframes fill {
    100% {
        box-shadow: inset 0px 0px 0px 30px rgba(16, 185, 129, 0.2);
    }
}

.results-state h3 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.teacher-name {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    margin-bottom: 40px;
    font-weight: 500;
}

/* Employment Info Card */
.employment-info-card {
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 32px;
    backdrop-filter: blur(10px);
}

.info-card-title {
    font-size: 1.1rem;
    color: var(--color-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-item:last-child {
    border-bottom: none;
}

.info-item label {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    font-weight: 500;
    min-width: 120px;
}

.info-value-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    justify-content: flex-end;
}

.info-value {
    font-size: 1rem;
    color: var(--color-text);
    font-weight: 600;
    font-family: 'Inter', monospace;
}

.btn-copy {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: var(--radius-sm);
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}

.btn-copy:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: var(--color-primary);
    transform: scale(1.05);
}

.btn-copy:active {
    transform: scale(0.95);
}

.btn-copy.copied {
    background: rgba(16, 185, 129, 0.2);
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.btn-copy svg {
    width: 16px;
    height: 16px;
}

.download-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 40px 0;
}

.download-card {
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

.download-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.download-card:hover::before {
    opacity: 0.05;
}

.download-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-primary);
    box-shadow: 0 12px 40px rgba(0, 212, 255, 0.2);
}

.download-icon {
    font-size: 3rem;
    filter: grayscale(0);
}

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

.download-info h4 {
    font-size: 1.1rem;
    margin-bottom: 6px;
    color: var(--color-text);
}

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

.btn-download {
    background: var(--gradient-primary);
    color: white;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.btn-download:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 212, 255, 0.3);
}

.next-steps {
    background: rgba(168, 85, 247, 0.08);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin: 40px 0;
    text-align: left;
}

.next-steps h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--color-secondary);
}

.next-steps ol {
    margin-left: 24px;
    margin-bottom: 20px;
}

.next-steps li {
    font-size: 1rem;
    color: var(--color-text-secondary);
    margin-bottom: 12px;
    line-height: 1.6;
}

.next-steps a {
    color: var(--color-primary);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.next-steps a:hover {
    color: var(--color-secondary);
}

.note {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    font-style: italic;
    margin-top: 16px;
}

#generate-again-btn {
    margin-top: 32px;
}

/* Error State */
.error-state {
    text-align: center;
    padding: 80px 40px;
}

.error-icon {
    font-size: 5rem;
    margin-bottom: 24px;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.error-state h3 {
    font-size: 2rem;
    color: #EF4444;
    margin-bottom: 16px;
}

.error-state p {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin-bottom: 32px;
}

/* Responsive Generator Page */
@media (max-width: 768px) {
    .form-group label {
        font-size: 0.85rem !important;
        font-weight: 600 !important;
    }
    
    .form-group input,
    .form-group select {
        font-size: 15px !important;
    }
    
    .download-cards {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    
    .progress-steps {
        flex-direction: column !important;
        gap: 16px !important;
    }
    
    .navbar {
        padding: 12px 0 !important;
    }
    
    .nav-content {
        padding: 0 16px !important;
    }
    
    .brand-name {
        font-size: 1.25rem !important;
    }
    
    .brand-tag {
        font-size: 0.7rem !important;
    }
    
    .btn-nav {
        font-size: 0.875rem !important;
        padding: 8px 16px !important;
    }
    
    .captcha-container {
        overflow: hidden !important;
    }
    
    .cf-turnstile {
        transform: scale(0.85) !important;
        transform-origin: center !important;
    }
}

@media (max-width: 480px) {
    .form-section-title {
        font-size: 1rem !important;
        margin-bottom: 12px !important;
    }
    
    .section-icon {
        width: 18px !important;
        height: 18px !important;
    }
    
    .form-group label {
        font-size: 0.8rem !important;
    }
    
    .form-group input,
    .form-group select {
        font-size: 14px !important;
        padding: 12px 14px !important;
    }
    
    .form-hint {
        font-size: 0.75rem !important;
    }
    
    .cf-turnstile {
        transform: scale(0.75) !important;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 12px 20px !important;
        font-size: 0.9rem !important;
    }
    
    .brand-icon {
        width: 32px !important;
        height: 32px !important;
    }
    
    .brand-icon svg {
        width: 24px !important;
        height: 24px !important;
    }
}

/* WhatsApp Channel Widget */
.whatsapp-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    animation: fadeInUp 0.6s ease-out 1s both;
}

.wa-button {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    padding: 14px 20px;
    border-radius: var(--radius-full);
    text-decoration: none;
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.wa-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wa-button:hover::before {
    opacity: 1;
}

.wa-button:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 40px rgba(37, 211, 102, 0.4);
}

.wa-button:active {
    transform: translateY(-2px) scale(0.98);
}

.wa-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    position: relative;
}

.wa-icon::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background: #FF4444;
    border: 2px solid white;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.wa-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-right: 4px;
}

.wa-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wa-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    line-height: 1.2;
}

/* WhatsApp Widget Responsive */
@media (max-width: 768px) {
    .whatsapp-widget {
        bottom: 20px;
        right: 20px;
    }
    
    .wa-button {
        padding: 12px 16px;
        gap: 12px;
    }
    
    .wa-icon {
        width: 40px;
        height: 40px;
    }
    
    .wa-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .wa-label {
        font-size: 0.7rem;
    }
    
    .wa-text {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .wa-content {
        display: none;
    }
    
    .wa-button {
        padding: 14px;
        border-radius: 50%;
        width: 60px;
        height: 60px;
        justify-content: center;
    }
    
    .wa-icon {
        width: 48px;
        height: 48px;
    }
    
    .wa-icon svg {
        width: 28px;
        height: 28px;
    }
}
