
/* ============================================
   STUDYHUB - PREMIUM EDUCATION PORTAL
   Beautiful Animated Educational Website
============================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

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

:root {
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --primary-light: #38bdf8;
    --secondary: #8b5cf6;
    --accent: #f59e0b;
    --success: #10b981;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --light: #f0f9ff;
    --white: #ffffff;
    --text: #334155;
    --text-light: #64748b;

    --gradient-primary: linear-gradient(135deg, #0ea5e9 0%, #8b5cf6 100%);
    --gradient-secondary: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #0ea5e9 100%);
    --gradient-warm: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --gradient-cool: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    --gradient-dark: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);

    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 40px rgba(14, 165, 233, 0.3);
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--light);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ========== ANIMATED BACKGROUNDS ========== */
.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
    background-color: #f0f9ff;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(14, 165, 233, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(16, 185, 129, 0.08) 0%, transparent 50%);
}

.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-image: 
        linear-gradient(rgba(14, 165, 233, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 165, 233, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

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

/* Floating Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--gradient-primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: particleFloat 15s infinite ease-in-out;
}

.particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; animation-duration: 12s; }
.particle:nth-child(2) { left: 20%; top: 80%; animation-delay: 2s; animation-duration: 15s; }
.particle:nth-child(3) { left: 60%; top: 10%; animation-delay: 4s; animation-duration: 18s; }
.particle:nth-child(4) { left: 80%; top: 60%; animation-delay: 6s; animation-duration: 14s; }
.particle:nth-child(5) { left: 40%; top: 40%; animation-delay: 8s; animation-duration: 16s; }
.particle:nth-child(6) { left: 90%; top: 30%; animation-delay: 1s; animation-duration: 13s; }
.particle:nth-child(7) { left: 5%; top: 70%; animation-delay: 3s; animation-duration: 17s; }
.particle:nth-child(8) { left: 70%; top: 90%; animation-delay: 5s; animation-duration: 11s; }

@keyframes particleFloat {
    0%, 100% { transform: translateY(0) rotate(0deg) scale(1); opacity: 0.3; }
    25% { transform: translateY(-30px) rotate(90deg) scale(1.2); opacity: 0.5; }
    50% { transform: translateY(-60px) rotate(180deg) scale(1); opacity: 0.3; }
    75% { transform: translateY(-30px) rotate(270deg) scale(0.8); opacity: 0.5; }
}

/* Educational Icons Float */
.edu-icons {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.edu-icon {
    position: absolute;
    font-size: 2rem;
    opacity: 0.1;
    animation: iconFloat 20s infinite ease-in-out;
}

.edu-icon:nth-child(1) { left: 5%; top: 15%; animation-delay: 0s; }
.edu-icon:nth-child(2) { left: 15%; top: 75%; animation-delay: 3s; }
.edu-icon:nth-child(3) { left: 85%; top: 25%; animation-delay: 6s; }
.edu-icon:nth-child(4) { left: 75%; top: 85%; animation-delay: 9s; }
.edu-icon:nth-child(5) { left: 45%; top: 5%; animation-delay: 12s; }
.edu-icon:nth-child(6) { left: 95%; top: 55%; animation-delay: 2s; }
.edu-icon:nth-child(7) { left: 25%; top: 45%; animation-delay: 5s; }
.edu-icon:nth-child(8) { left: 65%; top: 65%; animation-delay: 8s; }

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

/* ========== NAVIGATION ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
    padding: 0.7rem 2rem;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.6rem;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: var(--shadow-md);
    animation: logoPulse 3s infinite ease-in-out;
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); box-shadow: var(--shadow-md); }
    50% { transform: scale(1.05); box-shadow: var(--shadow-glow); }
}

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

.nav-links {
    display: flex;
    gap: 0.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    padding: 0.7rem 1.2rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    border-radius: 10px;
}

.nav-links a:hover {
    color: white;
}

.nav-links a:hover::before {
    opacity: 1;
}

/* ========== HERO SECTION ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    position: relative;
}

.hero-container {
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    animation: slideInLeft 1s ease;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(14, 165, 233, 0.1);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(14, 165, 233, 0); }
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

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

.hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.5);
}

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

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    gap: 2rem;
}

.stat {
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    min-width: 100px;
    animation: statPop 0.6s ease backwards;
}

.stat:nth-child(1) { animation-delay: 0.2s; }
.stat:nth-child(2) { animation-delay: 0.4s; }
.stat:nth-child(3) { animation-delay: 0.6s; }

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

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hero Image/Illustration */
.hero-visual {
    position: relative;
    animation: slideInRight 1s ease;
}

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

.hero-image-container {
    position: relative;
    width: 100%;
    height: 500px;
    background: var(--gradient-primary);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-illustration {
    font-size: 15rem;
    animation: bookFloat 4s infinite ease-in-out;
}

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

.floating-card {
    position: absolute;
    background: white;
    border-radius: 16px;
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: floatCard 5s infinite ease-in-out;
}

.floating-card.card-1 {
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.floating-card.card-2 {
    bottom: 20%;
    right: -10%;
    animation-delay: 1s;
}

.floating-card.card-3 {
    bottom: 5%;
    left: 10%;
    animation-delay: 2s;
}

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

.floating-card-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.floating-card-icon.blue { background: rgba(14, 165, 233, 0.1); }
.floating-card-icon.purple { background: rgba(139, 92, 246, 0.1); }
.floating-card-icon.green { background: rgba(16, 185, 129, 0.1); }

.floating-card-text {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark);
}

.floating-card-sub {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* ========== SECTIONS ========== */
.section {
    padding: 5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease;
}

.section-badge {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1rem;
}

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

.section-desc {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ========== CARDS GRID ========== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: white;
    border-radius: 24px;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    display: block;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

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

.card > * {
    position: relative;
    z-index: 1;
}

.card-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    transition: transform 0.4s ease;
}

.card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

.card-icon.gradient-1 { background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%); }
.card-icon.gradient-2 { background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%); }
.card-icon.gradient-3 { background: linear-gradient(135deg, #10b981 0%, #34d399 100%); }
.card-icon.gradient-4 { background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%); }
.card-icon.gradient-5 { background: linear-gradient(135deg, #ef4444 0%, #f87171 100%); }
.card-icon.gradient-6 { background: linear-gradient(135deg, #ec4899 0%, #f472b6 100%); }

.card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.card-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: gap 0.3s ease;
}

.card:hover .card-arrow {
    gap: 12px;
}

/* ========== CHAPTER CARDS ========== */
.chapters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.chapter-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    display: block;
}

.chapter-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.chapter-card-header {
    background: var(--gradient-primary);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.chapter-card-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: rgba(255,255,255,0.1);
    transform: rotate(30deg);
}

.chapter-number {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255,255,255,0.3);
    position: absolute;
    top: 10px;
    right: 20px;
}

.chapter-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.chapter-card-body {
    padding: 1.5rem;
}

.chapter-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.3rem;
}

.chapter-card p {
    color: var(--text-light);
    font-size: 0.85rem;
}

.chapter-card-footer {
    padding: 1rem 1.5rem;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.view-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

/* ========== CHAPTER VIEW PAGE ========== */
.chapter-view {
    padding-top: 100px;
}

.chapter-hero {
    background: var(--gradient-primary);
    padding: 3rem 2rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.chapter-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.chapter-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.chapter-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.chapter-hero p {
    opacity: 0.9;
    font-size: 1.1rem;
}

.pdf-viewer-container {
    max-width: 1000px;
    margin: -2rem auto 4rem;
    padding: 0 2rem;
}

.pdf-viewer-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.pdf-viewer-header {
    padding: 1rem 2rem;
    background: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pdf-viewer-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.pdf-viewer-dot.red { background: #ef4444; }
.pdf-viewer-dot.yellow { background: #f59e0b; }
.pdf-viewer-dot.green { background: #10b981; }

.pdf-viewer {
    width: 100%;
    height: 700px;
    border: none;
    display: block;
}

/* ========== BREADCRUMB ========== */
.breadcrumb {
    padding: 7rem 2rem 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    flex-wrap: wrap;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.breadcrumb-list a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.breadcrumb-list a:hover {
    color: var(--primary-dark);
}

.breadcrumb-list .sep {
    color: var(--text-light);
}

.breadcrumb-list .current {
    color: var(--dark);
    font-weight: 600;
}

/* ========== PAGE HEADER ========== */
.page-header {
    text-align: center;
    padding: 2rem;
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* ========== FEATURES SECTION ========== */
.features {
    background: white;
    padding: 5rem 2rem;
    margin: 4rem 0;
}

.features-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.feature-item {
    text-align: center;
    padding: 2rem;
    border-radius: 20px;
    transition: all 0.4s ease;
}

.feature-item:hover {
    background: var(--light);
    transform: translateY(-5px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    animation: featureBounce 3s infinite ease-in-out;
}

.feature-item:nth-child(1) .feature-icon { background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%); animation-delay: 0s; }
.feature-item:nth-child(2) .feature-icon { background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%); animation-delay: 0.3s; }
.feature-item:nth-child(3) .feature-icon { background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%); animation-delay: 0.6s; }
.feature-item:nth-child(4) .feature-icon { background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); animation-delay: 0.9s; }

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

.feature-item h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--gradient-dark);
    color: white;
    padding: 5rem 2rem 2rem;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
    margin-top: 1rem;
    line-height: 1.8;
}

.footer-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 3rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    position: relative;
    z-index: 1;
}

/* ========== CONTENT PAGES ========== */
.content-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
}

.content-page h1 {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.content-intro {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.content-card {
    background: white;
    border-radius: 24px;
    padding: 3rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.content-card h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.content-card p {
    color: var(--text);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.content-card ul {
    margin-left: 1.5rem;
    color: var(--text);
}

.content-card li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

/* FAQ Accordion */
.faq-item {
    background: white;
    border-radius: 16px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem 2rem;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: var(--light);
}

.faq-icon {
    width: 30px;
    height: 30px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    color: var(--text);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 2rem 1.5rem;
}

/* ========== BACK TO TOP ========== */
.back-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 999;
    box-shadow: var(--shadow-md);
}

.back-top.show {
    opacity: 1;
    visibility: visible;
}

.back-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate.show {
    opacity: 1;
    transform: translateY(0);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 2;
    }

    .hero-visual {
        order: 1;
    }

    .hero p {
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-image-container {
        height: 300px;
    }

    .hero-illustration {
        font-size: 8rem;
    }

    .floating-card {
        display: none;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.8rem 1rem;
    }

    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-stats {
        flex-wrap: wrap;
    }

    .section-title {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .pdf-viewer {
        height: 500px;
    }
}
