:root {
    /* Sporty Vibrant Colors */
    --primary: #ff6b35;
    --primary-dark: #e85d2f;
    --primary-light: #ff8559;
    --secondary: #00d9ff;
    --secondary-dark: #00b8d9;
    --accent: #ffd60a;
    --success: #06ffa5;
    --error: #ff006e;

    /* Dark Premium Background */
    --bg-dark: #0a0e27;
    --bg-gradient: linear-gradient(135deg, #0a0e27 0%, #16213e 50%, #0a0e27 100%);
    --bg-card: #1a1f3a;
    --bg-card-hover: #252b4a;

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #b8c1ec;
    --text-muted: #6b7280;

    /* Borders & Shadows */
    --border: #2d3561;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 20px 60px rgba(255, 107, 53, 0.3);
    --glow: 0 0 30px rgba(255, 107, 53, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 217, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 0.8;
    }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Header - Sporty & Bold */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    border-bottom: 2px solid var(--border);
    margin-bottom: 40px;
    background: rgba(26, 31, 58, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px 30px;
    box-shadow: var(--shadow);
}

.logo h1 {
    font-size: 32px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
    text-shadow: 0 0 30px rgba(255, 107, 53, 0.5);
    letter-spacing: -0.5px;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.nav {
    display: flex;
    gap: 16px;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.3), transparent);
    transition: left 0.5s;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.nav-link.active {
    color: var(--primary);
    background: rgba(255, 107, 53, 0.15);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
}

/* Hero Section - Dynamic & Energetic */
.hero {
    text-align: center;
    padding: 80px 40px;
    background: linear-gradient(135deg,
            rgba(255, 107, 53, 0.15) 0%,
            rgba(0, 217, 255, 0.15) 50%,
            rgba(255, 214, 10, 0.15) 100%);
    border-radius: 32px;
    margin-bottom: 60px;
    border: 2px solid var(--border);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 30%,
            rgba(255, 107, 53, 0.1) 50%,
            transparent 70%);
    animation: heroShine 6s linear infinite;
}

@keyframes heroShine {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.hero-title {
    font-size: 56px;
    font-weight: 900;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ff6b35, #00d9ff, #ffd60a);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
    position: relative;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* Section Styling */
.section {
    margin-bottom: 60px;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 32px;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

/* Grid Layout - Sporty Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(0, 217, 255, 0.1));
    opacity: 0;
    transition: opacity 0.4s;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
}

.card-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.card:hover .card-icon {
    animation: spin 0.6s ease-in-out;
}

@keyframes spin {
    0% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.2);
    }

    100% {
        transform: rotate(360deg) scale(1);
    }
}

.card-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.card-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Note Cards - Premium Design */
.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

.note-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 24px;
    padding: 28px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.note-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
}

.note-card:hover::after {
    opacity: 1;
}

.note-card:hover {
    transform: translateY(-12px);
    border-color: var(--primary);
    box-shadow: 0 20px 60px rgba(255, 107, 53, 0.4);
}

.note-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.note-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.note-meta {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.note-price {
    font-size: 28px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.note-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

/* Buttons - Sporty & Bold */
.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    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.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.6);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(0, 217, 255, 0.4);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 217, 255, 0.6);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* Back Button - Sporty */
.back-btn {
    background: var(--bg-card);
    border: 2px solid var(--border);
    color: var(--text-secondary);
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 24px;
}

.back-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateX(-4px);
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 20px;
    margin-top: 80px;
    border-top: 2px solid var(--border);
    color: var(--text-secondary);
    font-size: 14px;
}

/* Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

.loading {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* ═══════════════════════════════════════════════════════════════ */
/* BRANCH-SPECIFIC ANIMATIONS & COLORS */
/* ═══════════════════════════════════════════════════════════════ */

/* Computer Science / IT - Digital Tech Animation */
.card[data-branch*="Computer"],
.card[data-branch*="IT"],
.card[data-branch*="Information"] {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.05), rgba(99, 102, 241, 0.05));
}

.card[data-branch*="Computer"]:hover,
.card[data-branch*="IT"]:hover,
.card[data-branch*="Information"]:hover {
    border-color: #00d9ff;
    box-shadow: 0 20px 60px rgba(0, 217, 255, 0.4);
    animation: digitalPulse 1.5s ease-in-out infinite;
}

@keyframes digitalPulse {

    0%,
    100% {
        box-shadow: 0 20px 60px rgba(0, 217, 255, 0.4);
    }

    50% {
        box-shadow: 0 20px 80px rgba(0, 217, 255, 0.6);
    }
}

/* Mechanical / Civil - Industrial Animation */
.card[data-branch*="Mechanical"],
.card[data-branch*="Civil"],
.card[data-branch*="Production"] {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05), rgba(245, 158, 11, 0.05));
}

.card[data-branch*="Mechanical"]:hover,
.card[data-branch*="Civil"]:hover,
.card[data-branch*="Production"]:hover {
    border-color: #ff6b35;
    box-shadow: 0 20px 60px rgba(255, 107, 53, 0.4);
    animation: industrialRotate 2s ease-in-out infinite;
}

@keyframes industrialRotate {

    0%,
    100% {
        transform: translateY(-8px) scale(1.02) rotate(0deg);
    }

    50% {
        transform: translateY(-8px) scale(1.02) rotate(2deg);
    }
}

/* Electronics / Electrical - Electric Spark Animation */
.card[data-branch*="Electronic"],
.card[data-branch*="Electrical"],
.card[data-branch*="E&TC"] {
    background: linear-gradient(135deg, rgba(255, 214, 10, 0.05), rgba(6, 255, 165, 0.05));
}

.card[data-branch*="Electronic"]:hover,
.card[data-branch*="Electrical"]:hover,
.card[data-branch*="E&TC"]:hover {
    border-color: #ffd60a;
    box-shadow: 0 20px 60px rgba(255, 214, 10, 0.4);
    animation: electricSpark 0.8s ease-in-out infinite;
}

@keyframes electricSpark {

    0%,
    100% {
        box-shadow: 0 20px 60px rgba(255, 214, 10, 0.4);
        filter: brightness(1);
    }

    50% {
        box-shadow: 0 20px 80px rgba(255, 214, 10, 0.8);
        filter: brightness(1.2);
    }
}

/* Chemical / Biotech - Fluid Animation */
.card[data-branch*="Chemical"],
.card[data-branch*="Biotech"],
.card[data-branch*="Pharmaceutical"] {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(236, 72, 153, 0.05));
}

.card[data-branch*="Chemical"]:hover,
.card[data-branch*="Biotech"]:hover,
.card[data-branch*="Pharmaceutical"]:hover {
    border-color: #8b5cf6;
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.4);
    animation: fluidWave 2s ease-in-out infinite;
}

@keyframes fluidWave {

    0%,
    100% {
        transform: translateY(-8px) scale(1.02);
        border-radius: 20px;
    }

    25% {
        border-radius: 25px 20px 25px 20px;
    }

    50% {
        transform: translateY(-10px) scale(1.02);
        border-radius: 20px 25px 20px 25px;
    }

    75% {
        border-radius: 25px 20px 25px 20px;
    }
}

/* Year-Specific Glow Effects */
.card[data-year="1st Year"] {
    --year-glow: rgba(6, 255, 165, 0.3);
}

.card[data-year="2nd Year"] {
    --year-glow: rgba(0, 217, 255, 0.3);
}

.card[data-year="3rd Year"] {
    --year-glow: rgba(255, 107, 53, 0.3);
}

.card[data-year="4th Year"] {
    --year-glow: rgba(255, 214, 10, 0.3);
}

.card[data-year]:hover {
    box-shadow: 0 20px 60px var(--year-glow, rgba(255, 107, 53, 0.3));
}

/* Staggered Animation for Cards */
.card:nth-child(1) {
    animation-delay: 0s;
}

.card:nth-child(2) {
    animation-delay: 0.1s;
}

.card:nth-child(3) {
    animation-delay: 0.2s;
}

.card:nth-child(4) {
    animation-delay: 0.3s;
}

.card:nth-child(5) {
    animation-delay: 0.4s;
}

.card:nth-child(6) {
    animation-delay: 0.5s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeInUp 0.6s ease-out backwards;
}

/* Subject-Specific Icons Animation */
.card-icon {
    position: relative;
    display: inline-block;
}

.card:hover .card-icon {
    animation: iconBounce 0.6s ease-in-out;
}

@keyframes iconBounce {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    25% {
        transform: translateY(-15px) scale(1.1);
    }

    50% {
        transform: translateY(-8px) scale(1.15);
    }

    75% {
        transform: translateY(-12px) scale(1.05);
    }
}

/* Premium Hover Effect for Notes */
.note-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.note-card:hover {
    animation: noteFloat 2s ease-in-out infinite;
}

@keyframes noteFloat {

    0%,
    100% {
        transform: translateY(-12px);
    }

    50% {
        transform: translateY(-16px);
    }
}

/* Button Ripple Effect */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

/* Smooth Page Transitions */
.section {
    animation: sectionFadeIn 0.8s ease-out;
}

@keyframes sectionFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Professional Platform Styles */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(26, 31, 58, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 32px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 900;
    cursor: pointer;
}

.brand-icon {
    font-size: 32px;
}

.brand-name {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.navbar-search {
    flex: 1;
    max-width: 500px;
    display: flex;
    gap: 8px;
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 15px;
    transition: all 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
}

.search-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: 12px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
}

.search-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.navbar-links {
    display: flex;
    gap: 8px;
}

.navbar-links .nav-link {
    padding: 10px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s;
}

.navbar-links .nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-card-hover);
}

.navbar-links .nav-link.active {
    color: var(--primary);
    background: rgba(255, 107, 53, 0.15);
}

.hero-platform {
    padding: 80px 40px;
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(0, 217, 255, 0.1), rgba(255, 214, 10, 0.1));
    border-radius: 32px;
    margin: 40px 0 60px 0;
    border: 2px solid var(--border);
    position: relative;
    overflow: hidden;
}

.hero-title-platform {
    font-size: 64px;
    font-weight: 900;
    margin-bottom: 24px;
    line-height: 1.2;
}

.highlight {
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 4s ease infinite;
}

.hero-subtitle-platform {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 48px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 32px;
    max-width: 900px;
    margin: 0 auto 48px auto;
}

.stat-item {
    padding: 24px;
    background: rgba(26, 31, 58, 0.6);
    border: 2px solid var(--border);
    border-radius: 16px;
    transition: all 0.3s;
}

.stat-item:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

.stat-number {
    font-size: 36px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
}

.btn-large {
    padding: 18px 48px;
    font-size: 18px;
    font-weight: 700;
}

.features-section {
    margin: 80px 0;
}

.section-title-center {
    text-align: center;
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 48px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.feature-card {
    padding: 40px 32px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 60px rgba(255, 107, 53, 0.3);
}

.feature-icon {
    font-size: 56px;
    margin-bottom: 20px;
    display: inline-block;
}

.feature-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.testimonials-section {
    margin: 80px 0;
    padding: 60px 40px;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.05), rgba(255, 107, 53, 0.05));
    border-radius: 32px;
    border: 2px solid var(--border);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.testimonial-card {
    padding: 32px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 20px;
    transition: all 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.testimonial-rating {
    font-size: 20px;
    margin-bottom: 16px;
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 16px;
    font-style: italic;
}

.testimonial-author {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 600;
}

.footer-platform {
    margin-top: 100px;
    padding: 60px 0 20px 0;
    border-top: 2px solid var(--border);
    background: rgba(26, 31, 58, 0.6);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-title {
    font-size: 24px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-heading {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.footer-link:hover {
    color: var(--primary);
    padding-left: 4px;
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 14px;
}


/* Section Visibility and Transitions */
.hidden {
    display: none !important;
}

/* Smooth section transitions */
.section {
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }

    n
}



/* Payment Modal Centering */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 24px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 32px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: var(--primary);
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-dark);
    border: 2px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 15px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.help-text {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

#payment-options {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

#payment-options .btn {
    flex: 1;
}

/* ═══════════════════════════════════════════════════════════════ */
/* MOBILE-FIRST RESPONSIVE DESIGN */
/* ═══════════════════════════════════════════════════════════════ */

/* Hamburger Menu Styles */
.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    background: transparent;
    border: none;
}

.hamburger-menu span {
    width: 28px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 39, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 80px 20px 20px 20px;
    overflow-y: auto;
}

.mobile-menu-overlay.active {
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.mobile-menu-overlay .nav-link {
    display: block;
    padding: 16px 24px;
    font-size: 18px;
    text-align: center;
    background: var(--bg-card);
    border-radius: 12px;
    border: 2px solid var(--border);
    transition: all 0.3s;
}

.mobile-menu-overlay .nav-link:hover,
.mobile-menu-overlay .nav-link.active {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    color: var(--primary);
}

/* Base Mobile Optimizations - Apply to all screen sizes */
* {
    -webkit-tap-highlight-color: rgba(255, 107, 53, 0.2);
}

img {
    max-width: 100%;
    height: auto;
}

/* Prevent horizontal scroll */
body {
    overflow-x: hidden;
    width: 100%;
}

.container {
    overflow-x: hidden;
    width: 100%;
}

/* ═══════════════════════════════════════════════════════════════ */
/* MOBILE DEVICES: 320px - 767px */
/* ═══════════════════════════════════════════════════════════════ */

@media screen and (max-width: 767px) {

    /* Typography - Mobile Readable Sizes */
    body {
        font-size: 14px;
        line-height: 1.6;
    }

    h1 {
        font-size: 28px;
        line-height: 1.3;
    }

    h2 {
        font-size: 24px;
        line-height: 1.3;
    }

    h3 {
        font-size: 20px;
        line-height: 1.4;
    }

    h4 {
        font-size: 18px;
        line-height: 1.4;
    }

    p {
        font-size: 14px;
        line-height: 1.6;
    }

    /* Container - Mobile Padding */
    .container {
        padding: 0 16px;
        max-width: 100%;
    }

    /* Navigation - Hamburger Menu */
    .navbar {
        position: sticky;
        top: 0;
    }

    .navbar-content {
        flex-wrap: wrap;
        gap: 12px;
        padding: 12px 0;
    }

    .navbar-brand {
        font-size: 20px;
        flex: 1;
    }

    .brand-icon {
        font-size: 24px;
    }

    .brand-name {
        font-size: 18px;
    }

    /* Hide desktop navigation, show hamburger */
    .navbar-links {
        display: none;
    }

    .hamburger-menu {
        display: flex;
    }

    /* Search Bar - Full Width on Mobile */
    .navbar-search {
        order: 3;
        width: 100%;
        max-width: 100%;
        flex: 1 1 100%;
    }

    .search-input {
        font-size: 14px;
        padding: 10px 16px;
    }

    .search-btn {
        padding: 10px 16px;
        font-size: 16px;
    }

    /* Hero Section - Mobile Optimized */
    .hero-platform {
        padding: 40px 20px;
        margin: 20px 0 40px 0;
        border-radius: 20px;
    }

    .hero-title-platform {
        font-size: 32px;
        line-height: 1.2;
        margin-bottom: 16px;
    }

    .hero-subtitle-platform {
        font-size: 16px;
        margin-bottom: 32px;
        padding: 0 10px;
    }

    /* Stats - Stack Vertically on Small Screens */
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        margin-bottom: 32px;
    }

    .stat-item {
        padding: 16px;
    }

    .stat-number {
        font-size: 28px;
    }

    .stat-label {
        font-size: 12px;
    }

    /* Hero CTA Button */
    .hero-cta .btn-large {
        padding: 14px 32px;
        font-size: 16px;
        width: 100%;
    }

    /* Section Titles */
    .section-title-center {
        font-size: 28px;
        margin-bottom: 12px;
    }

    .section-subtitle {
        font-size: 15px;
        margin-bottom: 32px;
        padding: 0 10px;
    }

    /* Features Section */
    .features-section {
        margin: 40px 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card {
        padding: 28px 20px;
    }

    .feature-icon {
        font-size: 48px;
        margin-bottom: 16px;
    }

    .feature-title {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .feature-desc {
        font-size: 14px;
    }

    /* Grid Layouts - Single Column */
    .grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Cards - Mobile Optimized */
    .card {
        padding: 24px;
        border-radius: 16px;
    }

    .card-icon {
        font-size: 40px;
        margin-bottom: 12px;
    }

    .card-title {
        font-size: 20px;
        margin-bottom: 6px;
    }

    .card-subtitle {
        font-size: 13px;
    }

    /* Notes Grid - Single Column */
    .notes-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .note-card {
        padding: 20px;
        border-radius: 16px;
    }

    .note-title {
        font-size: 18px;
        margin-bottom: 6px;
    }

    .note-meta {
        font-size: 12px;
    }

    .note-price {
        font-size: 24px;
    }

    .note-actions {
        flex-direction: column;
        gap: 10px;
    }

    .note-actions .btn {
        width: 100%;
    }

    /* Buttons - Touch Friendly */
    .btn {
        min-height: 44px;
        padding: 12px 20px;
        font-size: 14px;
        width: 100%;
    }

    .btn-large {
        min-height: 48px;
        padding: 14px 24px;
        font-size: 15px;
    }

    /* Back Button */
    .back-btn {
        padding: 10px 20px;
        font-size: 14px;
        margin-bottom: 20px;
        min-height: 44px;
    }

    /* Modal - Mobile Optimized */
    .modal-content {
        width: 95%;
        max-width: 95%;
        padding: 24px;
        border-radius: 16px;
        max-height: 85vh;
    }

    .modal-title {
        font-size: 20px;
        margin-bottom: 20px;
        padding-right: 30px;
    }

    .close-btn {
        font-size: 28px;
        top: 16px;
        right: 16px;
    }

    .form-group {
        margin-bottom: 16px;
    }

    .form-group label {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .form-group input {
        padding: 10px 14px;
        font-size: 14px;
    }

    #payment-options {
        flex-direction: column;
        gap: 10px;
    }

    #payment-options .btn {
        width: 100%;
    }

    /* Footer - Mobile Stack */
    .footer-platform {
        margin-top: 60px;
        padding: 40px 0 20px 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .footer-section {
        align-items: center;
    }

    .footer-title {
        font-size: 20px;
    }

    .footer-desc,
    .footer-link {
        font-size: 13px;
    }

    .footer-heading {
        font-size: 15px;
    }

    .footer-bottom {
        font-size: 12px;
        padding-top: 24px;
    }

    /* SEO Content Section - Mobile */
    .seo-content-section {
        padding: 40px 16px !important;
        margin-top: 40px !important;
    }

    .seo-content-section h2 {
        font-size: 24px !important;
        margin-bottom: 32px !important;
    }

    .seo-content-section h3 {
        font-size: 20px !important;
        margin-bottom: 20px !important;
    }

    .seo-content-section h4 {
        font-size: 16px !important;
        margin-bottom: 8px !important;
    }

    .seo-content-section p {
        font-size: 14px !important;
        line-height: 1.6 !important;
    }

    .seo-content-section>div {
        margin-bottom: 40px !important;
    }

    .seo-content-section div[style*="grid"] {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .seo-content-section div[style*="padding"] {
        padding: 20px !important;
    }

    /* Tables - Horizontal Scroll */
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }

    /* Reduce Animations on Mobile for Performance */
    .card:hover {
        transform: translateY(-4px) scale(1.01);
    }

    .note-card:hover {
        transform: translateY(-6px);
    }

    .btn:hover {
        transform: translateY(-2px);
    }

    /* Disable complex animations */
    .hero::before,
    body::before {
        animation: none;
    }

    /* Section Spacing */
    .section {
        margin-bottom: 40px;
    }

    /* Header - Mobile */
    .header {
        flex-direction: column;
        gap: 16px;
        padding: 16px 20px;
        margin-bottom: 24px;
    }

    .logo h1 {
        font-size: 24px;
    }

    .nav {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 10px 20px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* ═══════════════════════════════════════════════════════════════ */
/* SMALL MOBILE: 320px - 374px */
/* ═══════════════════════════════════════════════════════════════ */

@media screen and (max-width: 374px) {

    /* Extra small screens - even more compact */
    .hero-title-platform {
        font-size: 28px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .stat-number {
        font-size: 24px;
    }

    .section-title-center {
        font-size: 24px;
    }

    .card {
        padding: 20px;
    }

    .note-card {
        padding: 16px;
    }

    .modal-content {
        padding: 20px;
    }
}

/* ═══════════════════════════════════════════════════════════════ */
/* TABLET: 768px - 1023px */
/* ═══════════════════════════════════════════════════════════════ */

@media screen and (min-width: 768px) and (max-width: 1023px) {

    /* Container */
    .container {
        padding: 0 24px;
    }

    /* Navigation - Show desktop nav on tablets */
    .hamburger-menu {
        display: none;
    }

    .navbar-links {
        display: flex;
    }

    .navbar-search {
        max-width: 400px;
    }

    /* Hero */
    .hero-title-platform {
        font-size: 48px;
    }

    .hero-stats {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Grids - 2 Columns on Tablet */
    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .notes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    /* SEO Content */
    .seo-content-section div[style*="grid"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ═══════════════════════════════════════════════════════════════ */
/* LANDSCAPE MOBILE: Height-based adjustments */
/* ═══════════════════════════════════════════════════════════════ */

@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero-platform {
        padding: 30px 20px;
    }

    .modal-content {
        max-height: 95vh;
        padding: 20px;
    }

    .mobile-menu-overlay {
        padding: 60px 20px 20px 20px;
    }
}

/* ═══════════════════════════════════════════════════════════════ */
/* TOUCH DEVICE OPTIMIZATIONS */
/* ═══════════════════════════════════════════════════════════════ */

@media (hover: none) and (pointer: coarse) {

    /* Remove hover effects on touch devices */
    .card:hover,
    .note-card:hover,
    .feature-card:hover {
        transform: none;
    }

    /* Make touch targets larger */
    a,
    button,
    .btn,
    .card,
    .note-card {
        min-height: 44px;
    }

    /* Improve tap feedback */
    .btn:active {
        transform: scale(0.98);
    }

    .card:active,
    .note-card:active {
        opacity: 0.9;
    }
}

/* ═══════════════════════════════════════════════════════════════ */
/* ACCESSIBILITY - Reduced Motion */
/* ═══════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}