@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* ==================== CSS VARIABLES ==================== */
:root {
    --primary: #00f5ff;
    --secondary: #7b2ff7;
    --accent: #ff006e;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --dark: #0a0e27;
    --darker: #050816;
    --light: #ffffff;
    --gray: #8892b0;
    --gray-light: #ccd6f6;
    --bg-card: rgba(255, 255, 255, 0.05);
    --border: rgba(0, 245, 255, 0.2);
}

/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background: linear-gradient(135deg, var(--darker) 0%, var(--dark) 100%);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

::selection {
    background: var(--primary);
    color: var(--dark);
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--darker);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ==================== PARTICLE BACKGROUND ==================== */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ==================== LOADER ==================== */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, var(--darker) 0%, var(--dark) 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.loader-content {
    text-align: center;
}

.quantum-logo {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 30px;
}

.quantum-circle {
    position: absolute;
    border: 3px solid var(--primary);
    border-radius: 50%;
    animation: orbit 3s linear infinite;
}

.quantum-circle:nth-child(1) {
    width: 150px;
    height: 150px;
    top: 0;
    left: 0;
    border-color: var(--primary);
}

.quantum-circle:nth-child(2) {
    width: 100px;
    height: 100px;
    top: 25px;
    left: 25px;
    border-color: var(--secondary);
    animation-duration: 2s;
}

.quantum-circle:nth-child(3) {
    width: 50px;
    height: 50px;
    top: 50px;
    left: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    animation-duration: 1.5s;
}

@keyframes orbit {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.glitch {
    font-size: 4rem;
    font-weight: 900;
    color: var(--primary);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 10px;
}

.loading-bar {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin: 30px auto;
    overflow: hidden;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    width: 0;
    animation: loading 2s ease-in-out forwards;
}

@keyframes loading {
    0% { width: 0%; }
    100% { width: 100%; }
}

.loader-text {
    font-family: 'JetBrains Mono', monospace;
    color: var(--primary);
    font-size: 0.9rem;
    animation: pulse 1.5s ease-in-out infinite;
}

/* ==================== NAVIGATION ==================== */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: all 0.3s ease;
}

#navbar.scrolled {
    padding: 15px 0;
    background: rgba(10, 14, 39, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    animation: pulse 2s ease-in-out infinite;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--light);
}

.logo-text .highlight {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-link {
    color: var(--gray-light);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.progress-indicator {
    position: relative;
}

.progress-circle {
    position: relative;
    width: 40px;
    height: 40px;
}

.progress-circle svg {
    transform: rotate(-90deg);
}

.progress-bg {
    fill: none;
    stroke: rgba(0, 245, 255, 0.1);
    stroke-width: 3;
}

.progress-bar {
    fill: none;
    stroke: var(--primary);
    stroke-width: 3;
    stroke-dasharray: 113;
    stroke-dashoffset: 113;
    transition: stroke-dashoffset 0.5s ease;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* ==================== MOBILE MENU ==================== */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: linear-gradient(135deg, var(--darker), var(--dark));
    padding: 30px;
    z-index: 2000;
    transition: right 0.4s ease;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.mobile-menu-header h2 {
    color: var(--primary);
}

.close-menu {
    width: 40px;
    height: 40px;
    background: none;
    border: 2px solid var(--primary);
    border-radius: 50%;
    color: var(--primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-menu:hover {
    background: var(--primary);
    color: var(--dark);
    transform: rotate(90deg);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-nav-link {
    color: var(--gray-light);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.mobile-nav-link:hover {
    color: var(--primary);
    padding-left: 20px;
}

/* ==================== SECTIONS ==================== */
.section {
    position: relative;
    padding: 100px 0;
    z-index: 1;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-tag {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(0, 245, 255, 0.1);
    border: 1px solid var(--primary);
    border-radius: 50px;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--light);
    margin-bottom: 20px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--gray);
}

/* ==================== HERO SECTION ==================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 120px;
    overflow: hidden;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
}

.hero-left {
    animation: fadeInUp 1s ease;
    padding-left: 40px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(0, 245, 255, 0.1);
    border: 1px solid var(--primary);
    border-radius: 50px;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 30px;
}

.badge.pulse {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 30px;
}

.gradient-text {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 50px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(0, 245, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 245, 255, 0.2);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-info h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-info p {
    font-size: 0.85rem;
    color: var(--gray);
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Space Grotesk', sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 10px 30px rgba(0, 245, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 245, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--dark);
}

.btn-learn {
    padding: 10px 20px;
    font-size: 0.9rem;
    margin-top: 15px;
}

/* ==================== HERO VISUAL ==================== */
.hero-right {
    position: relative;
    animation: fadeInRight 1s ease;
}

.hero-visual {
    position: relative;
    padding: 40px;
}

.api-diagram {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

.api-node {
    width: 150px;
    height: 150px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 2.5rem;
    animation: float 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

.api-node:hover {
    transform: scale(1.1);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 245, 255, 0.3);
}

.api-node.client {
    animation-delay: 0s;
}

.api-node.server {
    animation-delay: 0.5s;
}

.api-node.database {
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.api-node i {
    color: var(--primary);
}

.api-node span {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-light);
}

.api-connection {
    position: relative;
    width: 4px;
    height: 60px;
}

.connection-line {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: 4px;
}

.data-flow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    animation: dataFlow 2s ease-in-out infinite;
}

@keyframes dataFlow {
    0% { top: 0; opacity: 0; }
    50% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* ==================== FLOATING ELEMENTS ==================== */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.float-item {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(0, 245, 255, 0.1);
    border: 2px solid rgba(0, 245, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    animation: floatRandom 6s ease-in-out infinite;
}

@keyframes floatRandom {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(20px, -20px) rotate(90deg); }
    50% { transform: translate(-20px, 20px) rotate(180deg); }
    75% { transform: translate(20px, 20px) rotate(270deg); }
}

/* ==================== CONCEPTS SECTION ==================== */
.concepts-section {
    background: var(--dark);
}

.concepts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.concept-card {
    padding: 40px 30px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s ease;
    cursor: pointer;
}

.concept-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 245, 255, 0.2);
}

.concept-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    transition: transform 0.3s ease;
}

.concept-card:hover .concept-icon {
    transform: scale(1.1) rotate(10deg);
}

.concept-card h3 {
    font-size: 1.5rem;
    color: var(--light);
    margin-bottom: 15px;
}

.concept-card p {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* ==================== METHODS SECTION ==================== */
.methods-section {
    background: var(--darker);
}

.methods-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

.method-card {
    padding: 30px 20px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s ease;
}

.method-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.method-card.get-method:hover { border-color: #3b82f6; box-shadow: 0 20px 40px rgba(59, 130, 246, 0.3); }
.method-card.post-method:hover { border-color: #10b981; box-shadow: 0 20px 40px rgba(16, 185, 129, 0.3); }
.method-card.put-method:hover { border-color: #f59e0b; box-shadow: 0 20px 40px rgba(245, 158, 11, 0.3); }
.method-card.patch-method:hover { border-color: #8b5cf6; box-shadow: 0 20px 40px rgba(139, 92, 246, 0.3); }
.method-card.delete-method:hover { border-color: #ef4444; box-shadow: 0 20px 40px rgba(239, 68, 68, 0.3); }

.method-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.method-badge {
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
}

.method-badge.get { background: #3b82f6; }
.method-badge.post { background: #10b981; }
.method-badge.put { background: #f59e0b; }
.method-badge.patch { background: #8b5cf6; }
.method-badge.delete { background: #ef4444; }

.method-header i {
    font-size: 2.5rem;
    color: var(--primary);
}

.method-card h3 {
    font-size: 1.3rem;
    color: var(--light);
    margin-bottom: 10px;
}

.method-card p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.method-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.method-details span {
    font-size: 0.85rem;
    color: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* ==================== METHOD COMPARISON ==================== */
.method-comparison {
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    margin-top: 60px;
}

.method-comparison h3 {
    font-size: 2rem;
    color: var(--light);
    margin-bottom: 30px;
    text-align: center;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.comparison-card {
    padding: 30px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid var(--border);
    border-radius: 15px;
}

.put-card { border-left: 4px solid #f59e0b; }
.patch-card { border-left: 4px solid #8b5cf6; }

.comparison-card h4 {
    font-size: 1.5rem;
    color: var(--light);
    margin-bottom: 20px;
}

.comparison-card ul {
    list-style: none;
    margin-bottom: 20px;
}

.comparison-card li {
    padding: 10px 0;
    color: var(--gray);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.comparison-card li strong {
    color: var(--primary);
}

.example-code {
    padding: 20px;
    background: var(--darker);
    border-radius: 10px;
    border: 1px solid var(--border);
}

.example-code code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--gray-light);
    white-space: pre-wrap;
}

/* ==================== EXERCISES SECTION ==================== */
.exercises-section {
    background: var(--dark);
}

.exercise-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.exercise-tab {
    padding: 15px 30px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 50px;
    color: var(--gray-light);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.exercise-tab:hover,
.exercise-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
}

.exercise-content {
    position: relative;
    min-height: 500px;
}

.exercise-panel {
    display: none;
    animation: fadeIn 0.5s ease;
}

.exercise-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.exercise-info {
    padding: 30px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: 15px;
    margin-bottom: 30px;
}

.exercise-info h3 {
    font-size: 1.8rem;
    color: var(--light);
    margin-bottom: 10px;
}

.exercise-info p {
    color: var(--gray);
}

.exercise-controls {
    display: flex;
    gap: 15px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.exercise-result,
.demo-result {
    margin-top: 30px;
    padding: 30px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 15px;
    min-height: 200px;
}

/* Form Styles */
.form-container {
    padding: 30px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 15px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--gray-light);
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border);
    border-radius: 10px;
    color: var(--light);
    font-size: 1rem;
    font-family: 'Space Grotesk', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0, 245, 255, 0.05);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.comparison-demo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.demo-column {
    padding: 30px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 15px;
}

.demo-column h4 {
    font-size: 1.5rem;
    color: var(--light);
    margin-bottom: 20px;
}

.crud-container {
    padding: 30px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 15px;
}

.crud-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.post-card {
    padding: 25px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 245, 255, 0.2);
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.post-id {
    padding: 5px 12px;
    background: var(--primary);
    color: var(--dark);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

.post-title {
    font-size: 1.2rem;
    color: var(--light);
    margin-bottom: 10px;
    font-weight: 600;
}

.post-body {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.post-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.post-actions .btn {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* ==================== VIVA SECTION ==================== */
.viva-section {
    background: var(--darker);
}

.viva-container {
    max-width: 1200px;
    margin: 0 auto;
}

.viva-categories {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.viva-category {
    padding: 12px 25px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 50px;
    color: var(--gray-light);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.viva-category:hover,
.viva-category.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
}

.viva-questions {
    display: grid;
    gap: 20px;
}

.viva-question {
    padding: 30px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.viva-question:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 245, 255, 0.2);
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.question-text {
    font-size: 1.3rem;
    color: var(--light);
    font-weight: 600;
    flex: 1;
}

.question-toggle {
    width: 40px;
    height: 40px;
    background: rgba(0, 245, 255, 0.1);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.viva-question.active .question-toggle {
    transform: rotate(180deg);
    background: var(--primary);
    color: var(--dark);
}

.answer-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.viva-question.active .answer-content {
    max-height: 1000px;
    margin-top: 20px;
}

.answer-text {
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    color: var(--gray-light);
    font-size: 1.1rem;
    line-height: 1.8;
}

.answer-text strong {
    color: var(--primary);
}

.question-category-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(0, 245, 255, 0.1);
    border: 1px solid var(--primary);
    border-radius: 20px;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 15px;
}

/* ==================== QUICK REFERENCE ==================== */
.quick-reference {
    margin-top: 80px;
    padding: 40px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 20px;
}

.quick-reference h3 {
    font-size: 2rem;
    color: var(--light);
    margin-bottom: 30px;
    text-align: center;
}

.reference-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.reference-card {
    padding: 30px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 15px;
}

.reference-card h4 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.reference-card ul {
    list-style: none;
}

.reference-card li {
    padding: 10px 0;
    color: var(--gray-light);
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.method-tag {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
}

.method-tag.get { background: #3b82f6; }
.method-tag.post { background: #10b981; }
.method-tag.put { background: #f59e0b; }
.method-tag.patch { background: #8b5cf6; }
.method-tag.delete { background: #ef4444; }

.status-tag {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
}

.status-tag.success { background: #10b981; }
.status-tag.error { background: #ef4444; }

/* ==================== PROGRESS SECTION ==================== */
.progress-section {
    padding: 80px 0;
    background: var(--dark);
}

.progress-card {
    padding: 50px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 20px;
    text-align: center;
}

.progress-card h3 {
    font-size: 2rem;
    color: var(--light);
    margin-bottom: 40px;
}

.progress-stats {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 60px;
    align-items: center;
}

.progress-item {
    text-align: center;
}

.progress-circle-large {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
}

.progress-circle-large svg {
    transform: rotate(-90deg);
}

.progress-circle-large .progress-bg {
    fill: none;
    stroke: rgba(0, 245, 255, 0.1);
    stroke-width: 6;
}

.progress-circle-large .progress-bar {
    fill: none;
    stroke: var(--primary);
    stroke-width: 6;
    stroke-dasharray: 339;
    stroke-dashoffset: 339;
    transition: stroke-dashoffset 1s ease;
}

.progress-circle-large .progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
}

.progress-item p {
    font-size: 1.1rem;
    color: var(--gray);
    font-weight: 600;
}

.progress-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.progress-bar-item span {
    display: block;
    margin-bottom: 10px;
    color: var(--gray-light);
    font-weight: 600;
}

.progress-bar-bg {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
    transition: width 1s ease;
}

/* ==================== MODAL ==================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    background: var(--dark);
    border: 2px solid var(--border);
    border-radius: 20px;
    padding: 50px;
    overflow-y: auto;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: none;
    border: 2px solid var(--primary);
    border-radius: 50%;
    color: var(--primary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--primary);
    color: var(--dark);
    transform: rotate(90deg);
}

#modal-body h2 {
    font-size: 2.5rem;
    color: var(--light);
    margin-bottom: 20px;
}

#modal-body h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin: 30px 0 15px;
}

#modal-body p {
    color: var(--gray-light);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

#modal-body ul {
    list-style: none;
    margin: 20px 0;
}

#modal-body li {
    padding: 10px 0 10px 30px;
    color: var(--gray-light);
    position: relative;
}

#modal-body li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

#modal-body code {
    padding: 2px 8px;
    background: var(--darker);
    border: 1px solid var(--border);
    border-radius: 5px;
    color: var(--primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9em;
}

#modal-body pre {
    padding: 20px;
    background: var(--darker);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow-x: auto;
    margin: 20px 0;
}

#modal-body pre code {
    padding: 0;
    background: none;
    border: none;
    color: var(--gray-light);
}

/* ==================== TOAST ==================== */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 20px 30px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 50px;
    box-shadow: 0 20px 40px rgba(0, 245, 255, 0.4);
    z-index: 4000;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.4s ease;
    font-weight: 600;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.success {
    background: linear-gradient(135deg, var(--success), #059669);
}

.toast.error {
    background: linear-gradient(135deg, var(--error), #dc2626);
}

/* ==================== FOOTER ==================== */
.footer {
    padding: 60px 0 30px;
    background: var(--darker);
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand h3 {
    font-size: 2rem;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.footer-brand p {
    color: var(--gray);
}

.footer-info {
    text-align: right;
}

.footer-info p {
    color: var(--gray);
    margin: 5px 0;
}

.footer-info i {
    color: var(--accent);
}

/* ==================== QUIZ SECTION ==================== */
.quiz-section {
    background: var(--dark);
}

/* Quiz Start Screen */
.quiz-start {
    max-width: 1200px;
    margin: 0 auto;
}

.quiz-options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.quiz-option-card {
    padding: 40px 30px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s ease;
    cursor: pointer;
}

.quiz-option-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 245, 255, 0.3);
}

.quiz-option-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    transition: transform 0.3s ease;
}

.quiz-option-card:hover .quiz-option-icon {
    transform: scale(1.1) rotate(10deg);
}

.quiz-option-card h3 {
    font-size: 1.8rem;
    color: var(--light);
    margin-bottom: 15px;
}

.quiz-option-card > p {
    color: var(--gray);
    margin-bottom: 25px;
    font-size: 1.05rem;
}

.quiz-features {
    list-style: none;
    text-align: left;
    margin-bottom: 30px;
}

.quiz-features li {
    padding: 10px 0;
    color: var(--gray-light);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.quiz-features i {
    color: var(--success);
    font-size: 0.9rem;
}

.quiz-option-card .btn {
    width: 100%;
    justify-content: center;
}

/* Quiz Container */
.quiz-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 20px;
}

/* Quiz Header */
.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.quiz-progress-info h3 {
    font-size: 1.8rem;
    color: var(--light);
    margin-bottom: 5px;
}

.quiz-progress-info p {
    color: var(--gray);
    font-size: 1rem;
}

.quiz-progress-info span {
    color: var(--primary);
    font-weight: 700;
}

.quiz-stats {
    display: flex;
    gap: 25px;
}

.quiz-stat {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(0, 245, 255, 0.1);
    border: 1px solid var(--border);
    border-radius: 50px;
}

.quiz-stat i {
    color: var(--primary);
    font-size: 1.2rem;
}

.quiz-stat span {
    color: var(--light);
    font-weight: 700;
    font-size: 1.1rem;
}

/* Progress Bar */
.quiz-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 40px;
}

.quiz-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 10px;
    transition: width 0.5s ease;
    width: 0%;
}

/* Question Card */
.quiz-question-card {
    padding: 40px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 15px;
    margin-bottom: 30px;
}

.question-number {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(0, 245, 255, 0.1);
    border: 1px solid var(--primary);
    border-radius: 50px;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 25px;
}

.question-number span {
    color: var(--primary);
}

.question-text {
    font-size: 1.5rem;
    color: var(--light);
    line-height: 1.6;
    margin-bottom: 35px;
    font-weight: 600;
}

/* Quiz Options */
.quiz-options {
    display: grid;
    gap: 15px;
}

.quiz-option {
    padding: 20px 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border);
    border-radius: 12px;
    color: var(--gray-light);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
}

.quiz-option:hover {
    background: rgba(0, 245, 255, 0.1);
    border-color: var(--primary);
    transform: translateX(10px);
}

.option-letter {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: var(--dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.quiz-option.selected {
    background: rgba(0, 245, 255, 0.2);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.3);
}

.quiz-option.selected .option-letter {
    background: var(--light);
    color: var(--primary);
}

.quiz-option.correct {
    background: rgba(16, 185, 129, 0.2);
    border-color: var(--success);
    pointer-events: none;
}

.quiz-option.correct .option-letter {
    background: var(--success);
    color: white;
}

.quiz-option.incorrect {
    background: rgba(239, 68, 68, 0.2);
    border-color: var(--error);
    pointer-events: none;
}

.quiz-option.incorrect .option-letter {
    background: var(--error);
    color: white;
}

.quiz-option.disabled {
    pointer-events: none;
    opacity: 0.6;
}

/* Quiz Explanation */
.quiz-explanation {
    margin-top: 30px;
    padding: 25px;
    background: rgba(0, 245, 255, 0.1);
    border: 1px solid var(--primary);
    border-left: 4px solid var(--primary);
    border-radius: 10px;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quiz-explanation h4 {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.quiz-explanation p {
    color: var(--gray-light);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Quiz Navigation */
.quiz-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.quiz-navigation .btn {
    padding: 14px 28px;
}

#prev-btn:disabled,
#next-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Quiz Results */
.quiz-results {
    max-width: 800px;
    margin: 0 auto;
}

.results-content {
    padding: 60px 40px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 20px;
    text-align: center;
}

.results-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.results-icon.excellent {
    background: linear-gradient(135deg, #10b981, #059669);
}

.results-icon.good {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.results-icon.average {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.results-icon.poor {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

#results-title {
    font-size: 2.5rem;
    color: var(--light);
    margin-bottom: 40px;
}

/* Results Score Circle */
.results-score {
    margin-bottom: 50px;
}

.score-circle {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
}

.score-circle svg {
    transform: rotate(-90deg);
}

.score-circle .progress-bg {
    fill: none;
    stroke: rgba(0, 245, 255, 0.1);
    stroke-width: 10;
}

.score-circle .progress-bar {
    fill: none;
    stroke: var(--primary);
    stroke-width: 10;
    stroke-dasharray: 565;
    stroke-dashoffset: 565;
    transition: stroke-dashoffset 1.5s ease;
    stroke-linecap: round;
}

.score-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

#results-percentage {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary);
    display: block;
}

#results-fraction {
    font-size: 1.2rem;
    color: var(--gray);
    margin-top: 5px;
}

/* Results Stats */
.results-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.result-stat {
    padding: 25px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 15px;
}

.result-stat i {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.result-stat:nth-child(1) i {
    color: var(--success);
}

.result-stat:nth-child(2) i {
    color: var(--error);
}

.result-stat:nth-child(3) i {
    color: var(--primary);
}

.result-stat span {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--light);
    margin-bottom: 5px;
}

.result-stat p {
    color: var(--gray);
    font-size: 1rem;
}

.results-message {
    font-size: 1.3rem;
    color: var(--gray-light);
    line-height: 1.6;
    margin-bottom: 40px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}

.results-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.results-actions .btn {
    padding: 16px 32px;
}

/* ==================== RESPONSIVE - QUIZ ==================== */
@media (max-width: 1024px) {
    .quiz-options-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .quiz-container {
        padding: 25px 20px;
    }

    .quiz-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .quiz-stats {
        width: 100%;
        justify-content: space-between;
    }

    .quiz-stat {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    .quiz-question-card {
        padding: 25px 20px;
    }

    .question-text {
        font-size: 1.2rem;
    }

    .quiz-option {
        padding: 15px 20px;
        font-size: 1rem;
    }

    .option-letter {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .quiz-navigation {
        flex-direction: column-reverse;
        gap: 10px;
    }

    .quiz-navigation .btn {
        width: 100%;
        justify-content: center;
    }

    .results-content {
        padding: 40px 20px;
    }

    #results-title {
        font-size: 2rem;
    }

    .results-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .score-circle {
        width: 180px;
        height: 180px;
    }

    #results-percentage {
        font-size: 2.5rem;
    }

    .results-actions {
        flex-direction: column;
        width: 100%;
    }

    .results-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .quiz-progress-info h3 {
        font-size: 1.4rem;
    }

    .quiz-stat span {
        font-size: 1rem;
    }

    .question-text {
        font-size: 1.1rem;
    }

    .quiz-option {
        padding: 12px 15px;
        font-size: 0.95rem;
    }

    .quiz-explanation {
        padding: 20px 15px;
    }

    .quiz-explanation h4 {
        font-size: 1.1rem;
    }

    .quiz-explanation p {
        font-size: 0.95rem;
    }

    .score-circle {
        width: 160px;
        height: 160px;
    }

    #results-percentage {
        font-size: 2rem;
    }

    #results-fraction {
        font-size: 1rem;
    }

    .result-stat i {
        font-size: 2rem;
    }

    .result-stat span {
        font-size: 2rem;
    }
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.counter {
    transition: all 0.3s ease;
}

/* ==================== RESPONSIVE ==================== */

/* Tablets and Medium Screens */
@media (max-width: 1200px) {
    .methods-container {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .reference-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .hero-left,
    .hero-right {
        text-align: center;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .badge {
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .concepts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison-demo {
        grid-template-columns: 1fr;
    }
    
    .progress-stats {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .methods-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Landscape and Small Tablets */
@media (max-width: 768px) {
    /* Typography */
    html {
        font-size: 15px;
    }
    
    /* Navigation */
    #navbar {
        padding: 15px 0;
    }
    
    .nav-container {
        padding: 0 20px;
    }
    
    .nav-links {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .logo-text {
        font-size: 1.3rem;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    /* Sections */
    .section {
        padding: 60px 0;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .section-header {
        margin-bottom: 50px;
    }
    
    .section-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: auto;
        padding: 100px 0 60px;
    }
    
    .hero-content {
        padding-right: 40px;
        gap: 40px;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .stat-info h3 {
        font-size: 1.8rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
        padding: 14px 28px;
    }
    
    /* API Diagram - Make More Compact */
    .api-node {
        width: 120px;
        height: 120px;
        font-size: 2rem;
    }
    
    .api-node span {
        font-size: 0.9rem;
    }
    
    .api-connection {
        height: 40px;
    }
    
    /* Floating Elements - Smaller on Mobile */
    .float-item {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    /* Concepts Grid */
    .concepts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .concept-card {
        padding: 30px 20px;
    }
    
    .concept-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .concept-card h3 {
        font-size: 1.3rem;
    }
    
    .concept-card p {
        font-size: 0.95rem;
    }
    
    /* Methods Section */
    .methods-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .method-card {
        padding: 25px 15px;
    }
    
    .method-header i {
        font-size: 2rem;
    }
    
    .method-card h3 {
        font-size: 1.2rem;
    }
    
    .method-details span {
        font-size: 0.8rem;
    }
    
    /* Method Comparison */
    .method-comparison {
        padding: 30px 20px;
        margin-top: 40px;
    }
    
    .method-comparison h3 {
        font-size: 1.5rem;
    }
    
    .comparison-card {
        padding: 20px;
    }
    
    .comparison-card h4 {
        font-size: 1.2rem;
    }
    
    .example-code {
        padding: 15px;
    }
    
    .example-code code {
        font-size: 0.75rem;
    }
    
    /* Exercises */
    .exercise-tabs {
        flex-direction: column;
        gap: 10px;
    }
    
    .exercise-tab {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    
    .exercise-info {
        padding: 20px;
    }
    
    .exercise-info h3 {
        font-size: 1.4rem;
        line-height: 1.3;
    }
    
    .exercise-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-container {
        padding: 20px;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .comparison-demo {
        gap: 20px;
    }
    
    .demo-column {
        padding: 20px;
    }
    
    /* Posts Grid */
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .post-card {
        padding: 20px;
    }
    
    .post-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .post-actions .btn {
        width: 100%;
    }
    
    /* Viva Section */
    .viva-categories {
        flex-direction: column;
        gap: 10px;
    }
    
    .viva-category {
        width: 100%;
        justify-content: center;
        padding: 10px 20px;
    }
    
    .viva-question {
        padding: 20px;
    }
    
    .question-text {
        font-size: 1.1rem;
        line-height: 1.4;
    }
    
    .question-toggle {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .answer-text {
        font-size: 1rem;
        padding: 15px;
    }
    
    /* Quick Reference */
    .quick-reference {
        padding: 30px 20px;
        margin-top: 50px;
    }
    
    .quick-reference h3 {
        font-size: 1.5rem;
        margin-bottom: 25px;
    }
    
    .reference-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .reference-card {
        padding: 20px;
    }
    
    /* Progress Section */
    .progress-card {
        padding: 30px 20px;
    }
    
    .progress-card h3 {
        font-size: 1.5rem;
    }
    
    .progress-circle-large {
        width: 100px;
        height: 100px;
    }
    
    .progress-circle-large svg {
        width: 100px;
        height: 100px;
    }
    
    .progress-circle-large .progress-text {
        font-size: 1.5rem;
    }
    
    /* Modal */
    .modal-content {
        width: 95%;
        max-height: 85vh;
        padding: 40px 20px;
        margin: 20px;
    }
    
    .modal-close {
        top: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
    
    #modal-body h2 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    #modal-body h3 {
        font-size: 1.5rem;
    }
    
    #modal-body p {
        font-size: 1rem;
    }
    
    #modal-body pre {
        padding: 15px;
        font-size: 0.8rem;
    }
    
    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .footer-info {
        text-align: center;
    }
    
    .footer-brand h3 {
        font-size: 1.8rem;
    }
    
    /* Toast */
    .toast {
        right: 15px;
        left: 15px;
        bottom: 15px;
        padding: 15px 20px;
        font-size: 0.95rem;
        text-align: center;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    /* Typography - Even Smaller */
    html {
        font-size: 14px;
    }
    
    /* Hero */
    .hero-title {
        font-size: 2rem;
        letter-spacing: -0.5px;
    }
    
    .gradient-text {
        display: block;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    /* Section Headers */
    .section-title {
        font-size: 2rem;
        letter-spacing: -0.5px;
    }
    
    .section-tag {
        font-size: 0.75rem;
        padding: 6px 15px;
    }
    
    /* Loader */
    .quantum-logo {
        width: 120px;
        height: 120px;
    }
    
    .quantum-circle:nth-child(1) {
        width: 120px;
        height: 120px;
    }
    
    .quantum-circle:nth-child(2) {
        width: 80px;
        height: 80px;
        top: 20px;
        left: 20px;
    }
    
    .quantum-circle:nth-child(3) {
        width: 40px;
        height: 40px;
        top: 40px;
        left: 40px;
    }
    
    .glitch {
        font-size: 3rem;
        letter-spacing: 5px;
    }
    
    .loading-bar {
        width: 250px;
    }
    
    /* Navigation */
    .logo-text {
        font-size: 1.1rem;
    }
    
    .logo-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .progress-indicator {
        display: none; /* Hide on very small screens */
    }
    
    /* Hero Stats - Stack All */
    .stat-card {
        flex-direction: row;
        text-align: left;
        padding: 12px;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        flex-shrink: 0;
    }
    
    .stat-info h3 {
        font-size: 1.5rem;
    }
    
    .stat-info p {
        font-size: 0.85rem;
    }
    
    /* API Diagram - Even More Compact */
    .api-node {
        width: 100px;
        height: 100px;
        font-size: 1.5rem;
    }
    
    .api-node span {
        font-size: 0.8rem;
    }
    
    /* Buttons */
    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
    
    .btn i {
        font-size: 0.9rem;
    }
    
    /* Cards */
    .concept-card {
        padding: 25px 15px;
    }
    
    .concept-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .method-card {
        padding: 20px 15px;
    }
    
    /* Exercise Info */
    .exercise-info {
        padding: 15px;
    }
    
    .exercise-info h3 {
        font-size: 1.2rem;
    }
    
    .exercise-info p {
        font-size: 0.9rem;
    }
    
    /* Form Elements */
    .form-group label {
        font-size: 0.95rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px 15px;
        font-size: 16px; /* iOS zoom prevention */
    }
    
    /* Viva Questions */
    .question-text {
        font-size: 1rem;
        padding-right: 10px;
    }
    
    .answer-text {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    /* Method Comparison */
    .method-comparison h3 {
        font-size: 1.3rem;
        line-height: 1.3;
    }
    
    .comparison-card h4 {
        font-size: 1.1rem;
    }
    
    .comparison-card li {
        font-size: 0.9rem;
    }
    
    /* Modal */
    .modal-content {
        width: 98%;
        padding: 30px 15px;
        border-radius: 15px;
    }
    
    #modal-body h2 {
        font-size: 1.8rem;
    }
    
    #modal-body h3 {
        font-size: 1.3rem;
        margin: 25px 0 12px;
    }
    
    #modal-body p,
    #modal-body li {
        font-size: 0.95rem;
    }
    
    /* Progress Bars */
    .progress-bar-item span {
        font-size: 0.9rem;
    }
    
    .progress-bar-fill {
        font-size: 0.75rem;
    }
    
    /* Footer */
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-brand h3 {
        font-size: 1.5rem;
    }
    
    .footer-brand p,
    .footer-info p {
        font-size: 0.9rem;
    }
    
    /* Mobile Menu */
    .mobile-menu {
        width: 100%;
        right: -100%;
    }
    
    .mobile-nav-link {
        font-size: 1.5rem;
        padding: 12px 0;
    }
    
    /* Hide Floating Elements on Small Screens */
    .floating-elements {
        display: none;
    }
}

/* Extra Small Devices (320px) */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .api-node {
        width: 90px;
        height: 90px;
        font-size: 1.3rem;
    }
    
    .api-node span {
        font-size: 0.75rem;
    }
    
    .concept-card h3 {
        font-size: 1.2rem;
    }
    
    .method-card h3 {
        font-size: 1.1rem;
    }
}

/* Landscape Mobile Optimization */
@media (max-height: 600px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 80px 0 40px;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .modal-content {
        max-height: 95vh;
    }
}

/* Tablet Portrait Optimization */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .concepts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .methods-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .reference-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Larger tap targets */
    .btn,
    .exercise-tab,
    .viva-category {
        min-height: 48px;
        padding: 14px 24px;
    }
    
    /* Remove hover effects that don't work on touch */
    .concept-card:hover,
    .method-card:hover,
    .service-card:hover {
        transform: none;
    }
    
    /* Active state for touch feedback */
    .btn:active {
        transform: scale(0.98);
    }
    
    .concept-card:active,
    .method-card:active {
        transform: scale(0.98);
    }
}
