/* saram.ai - Premium AI Education Platform */
/* Colors: #1a1a2e (deep base), #4a90d9 (primary blue), #f5f0e8 (warm off-white), #e8b84b (accent gold), #6c757d (muted gray) */
/* Fonts: Libre Baskerville (headings), Inter (body) */

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

:root {
    --deep-base: #1a1a2e;
    --primary-blue: #4a90d9;
    --warm-white: #f5f0e8;
    --accent-gold: #e8b84b;
    --muted-gray: #6c757d;
    --glass-bg: rgba(26, 26, 46, 0.6);
    --glass-border: rgba(232, 184, 75, 0.15);
    --glass-blur: 12px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--deep-base);
    color: var(--warm-white);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Grain Overlay */
#grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* Gold Accent */
.gold-accent {
    color: var(--accent-gold);
}

/* ========== HEADER ========== */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 2rem;
    background: rgba(26, 26, 46, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

#site-header.scrolled {
    padding: 0.6rem 2rem;
    background: rgba(26, 26, 46, 0.95);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-icon {
    display: flex;
    align-items: center;
}

.logo-text {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--warm-white);
    letter-spacing: -0.02em;
}

.logo-dot {
    color: var(--accent-gold);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-gray);
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
    position: relative;
}

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

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

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

.nav-cta {
    color: var(--deep-base) !important;
    background: var(--accent-gold);
    padding: 0.5rem 1.25rem;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background: #d4a643;
    color: var(--deep-base) !important;
    transform: translateY(-1px);
}

.nav-cta::after {
    display: none;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--warm-white);
    transition: all 0.3s ease;
}

/* ========== HERO ========== */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 8rem 2rem 4rem;
    overflow: hidden;
    background: radial-gradient(ellipse at 30% 50%, rgba(74, 144, 217, 0.08) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 30%, rgba(232, 184, 75, 0.05) 0%, transparent 50%),
                var(--deep-base);
}

.hero-content {
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero-floating-labels {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-label {
    position: absolute;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--primary-blue);
    background: rgba(74, 144, 217, 0.08);
    border: 1px solid rgba(74, 144, 217, 0.15);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    animation: floatLabel 6s ease-in-out infinite;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.fl-1 { top: 10%; left: 5%; animation-delay: 0s; }
.fl-2 { top: 25%; right: 15%; animation-delay: 1.2s; }
.fl-3 { top: 60%; left: 10%; animation-delay: 2.4s; }
.fl-4 { bottom: 20%; right: 8%; animation-delay: 3.6s; }
.fl-5 { top: 40%; right: 5%; animation-delay: 4.8s; }

@keyframes floatLabel {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0.6; }
    25% { transform: translateY(-8px) translateX(4px); opacity: 0.8; }
    50% { transform: translateY(-4px) translateX(-2px); opacity: 0.5; }
    75% { transform: translateY(-10px) translateX(6px); opacity: 0.7; }
}

.hero-title {
    font-family: 'Libre Baskerville', serif;
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    max-width: 700px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--muted-gray);
    max-width: 550px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    letter-spacing: 0.02em;
}

.btn-primary {
    background: var(--accent-gold);
    color: var(--deep-base);
}

.btn-primary:hover {
    background: #d4a643;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(232, 184, 75, 0.25);
}

.btn-secondary {
    background: transparent;
    color: var(--warm-white);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    transform: translateY(-2px);
}

/* Hero Hex Grid */
.hero-hex-grid {
    position: absolute;
    top: 50%;
    right: -2%;
    transform: translateY(-50%);
    width: 500px;
    height: 500px;
    z-index: 1;
    opacity: 0.35;
}

.hex-node {
    position: absolute;
    width: 90px;
    height: 90px;
    transition: all 0.4s ease;
}

.hex-node:hover {
    transform: scale(1.15);
    opacity: 1 !important;
}

.hex-inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hex-inner svg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.hex-inner svg polygon {
    fill: rgba(74, 144, 217, 0.06);
    stroke: rgba(74, 144, 217, 0.3);
    stroke-width: 1.5;
    transition: all 0.3s ease;
}

.hex-node:hover .hex-inner svg polygon {
    fill: rgba(74, 144, 217, 0.12);
    stroke: var(--accent-gold);
}

.hex-text {
    position: relative;
    z-index: 2;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary-blue);
    letter-spacing: 0.1em;
}

.h1 { top: 5%; left: 35%; }
.h2 { top: 20%; left: 10%; }
.h3 { top: 20%; left: 60%; }
.h4 { top: 42%; left: 25%; }
.h5 { top: 42%; left: 55%; }
.h6 { top: 64%; left: 15%; }
.h7 { top: 64%; left: 45%; }

/* ========== SECTIONS COMMON ========== */
section {
    padding: 6rem 2rem;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-tag {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 1rem;
    padding: 0.3rem 1rem;
    border: 1px solid rgba(232, 184, 75, 0.25);
    border-radius: 20px;
}

.section-title {
    font-family: 'Libre Baskerville', serif;
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--muted-gray);
    line-height: 1.7;
    font-weight: 300;
}

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    transition: all 0.4s ease;
}

.glass-card:hover {
    transform: scale(1.05);
    border-color: rgba(232, 184, 75, 0.35);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(74, 144, 217, 0.05);
}

/* ========== COURSES / HONEYCOMB ========== */
#courses {
    background: radial-gradient(ellipse at 50% 0%, rgba(74, 144, 217, 0.06) 0%, transparent 60%),
                var(--deep-base);
}

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

.hex-card-inner {
    padding: 2.5rem 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.hex-card-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-gold), var(--primary-blue), var(--accent-gold));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.hex-card:hover .hex-card-inner::before {
    opacity: 1;
}

.hex-card-icon {
    margin-bottom: 1.5rem;
}

.hex-card-title {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--warm-white);
}

.hex-card-desc {
    font-size: 0.9rem;
    color: var(--muted-gray);
    line-height: 1.7;
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.hex-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(232, 184, 75, 0.1);
}

.meta-level {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.meta-duration {
    font-size: 0.75rem;
    color: var(--muted-gray);
}

/* ========== LEARNING PATHS ========== */
#paths {
    background: radial-gradient(ellipse at 80% 50%, rgba(232, 184, 75, 0.04) 0%, transparent 50%),
                var(--deep-base);
}

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

.path-card {
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
}

.path-number {
    font-family: 'Libre Baskerville', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent-gold);
    opacity: 0.15;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    line-height: 1;
}

.path-title {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--warm-white);
}

.path-desc {
    font-size: 0.9rem;
    color: var(--muted-gray);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.path-modules {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.path-module-tag {
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    background: rgba(74, 144, 217, 0.1);
    color: var(--primary-blue);
    border-radius: 20px;
    border: 1px solid rgba(74, 144, 217, 0.2);
    letter-spacing: 0.03em;
}

.path-stats {
    display: flex;
    gap: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(232, 184, 75, 0.1);
    font-size: 0.8rem;
    color: var(--muted-gray);
}

/* ========== RESEARCH ========== */
#research {
    background: radial-gradient(ellipse at 20% 80%, rgba(74, 144, 217, 0.06) 0%, transparent 50%),
                var(--deep-base);
}

.research-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.research-card {
    padding: 2.5rem 2rem;
    cursor: pointer;
}

.research-card.featured {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.8), rgba(74, 144, 217, 0.08));
}

.research-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.research-title {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--warm-white);
    line-height: 1.4;
}

.featured .research-title {
    font-size: 1.6rem;
}

.research-excerpt {
    font-size: 0.9rem;
    color: var(--muted-gray);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.research-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.8rem;
    color: var(--muted-gray);
}

/* ========== COMMUNITY ========== */
#community {
    background: radial-gradient(ellipse at 50% 30%, rgba(232, 184, 75, 0.04) 0%, transparent 50%),
                var(--deep-base);
}

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

.stat-hex {
    text-align: center;
    padding: 2.5rem 1.5rem;
    position: relative;
}

.stat-hex::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: rgba(232, 184, 75, 0.03);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    z-index: 0;
}

.stat-number {
    font-family: 'Libre Baskerville', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--muted-gray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

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

.testimonial {
    padding: 2.5rem 2rem;
}

.testimonial blockquote {
    font-family: 'Libre Baskerville', serif;
    font-size: 1rem;
    font-style: italic;
    line-height: 1.7;
    color: var(--warm-white);
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 1.5rem;
    border-left: 2px solid var(--accent-gold);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    flex-shrink: 0;
}

.author-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--warm-white);
    margin-bottom: 0.2rem;
}

.author-role {
    font-size: 0.75rem;
    color: var(--muted-gray);
}

/* ========== ENROLL ========== */
#enroll {
    padding: 8rem 2rem;
    background: radial-gradient(ellipse at 50% 50%, rgba(232, 184, 75, 0.06) 0%, transparent 50%),
                var(--deep-base);
}

.enroll-inner {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.enroll-hex-decoration {
    position: absolute;
    top: -100px;
    right: -120px;
    opacity: 0.5;
    animation: rotateHex 30s linear infinite;
    pointer-events: none;
}

@keyframes rotateHex {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.enroll-title {
    font-family: 'Libre Baskerville', serif;
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.enroll-desc {
    font-size: 1.05rem;
    color: var(--muted-gray);
    margin-bottom: 3rem;
    line-height: 1.7;
}

.enroll-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-input {
    flex: 1;
    padding: 1rem 1.25rem;
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    color: var(--warm-white);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.form-input::placeholder {
    color: var(--muted-gray);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 20px rgba(232, 184, 75, 0.1);
}

.form-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%236c757d'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-select option {
    background: var(--deep-base);
    color: var(--warm-white);
}

.btn-enroll {
    align-self: center;
    padding: 1rem 3rem;
    font-size: 1rem;
    margin-top: 0.5rem;
}

/* ========== FOOTER ========== */
#site-footer {
    background: rgba(26, 26, 46, 0.95);
    border-top: 1px solid var(--glass-border);
    padding: 4rem 2rem 0;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 4rem;
    padding-bottom: 3rem;
}

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

.footer-tagline {
    font-size: 0.9rem;
    color: var(--muted-gray);
    margin-top: 1rem;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-col h4 {
    font-family: 'Libre Baskerville', serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--warm-white);
    margin-bottom: 0.5rem;
}

.footer-col a {
    font-size: 0.85rem;
    color: var(--muted-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--accent-gold);
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid var(--glass-border);
    font-size: 0.8rem;
    color: var(--muted-gray);
}

/* ========== ANIMATIONS ========== */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .hero-title { font-size: 3rem; }
    .hero-hex-grid { display: none; }
    .honeycomb-grid { grid-template-columns: repeat(2, 1fr); }
    .paths-grid { grid-template-columns: repeat(2, 1fr); }
    .community-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .main-nav { display: none; }
    .main-nav.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(26, 26, 46, 0.98);
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--glass-border);
    }
    .mobile-menu-toggle { display: flex; }
    .hero-title { font-size: 2.25rem; }
    .section-title { font-size: 2rem; }
    .honeycomb-grid { grid-template-columns: 1fr; }
    .paths-grid { grid-template-columns: 1fr; }
    .research-grid { grid-template-columns: 1fr; }
    .research-card.featured { grid-column: auto; }
    .community-stats { grid-template-columns: repeat(2, 1fr); }
    .community-testimonials { grid-template-columns: 1fr; }
    .form-row { flex-direction: column; }
    .footer-inner { flex-direction: column; gap: 2rem; }
    .footer-links { flex-wrap: wrap; gap: 2rem; }
    .enroll-title { font-size: 2rem; }
    .enroll-hex-decoration { display: none; }
    .floating-label { display: none; }
}

@media (max-width: 480px) {
    #site-header { padding: 0.75rem 1rem; }
    section { padding: 4rem 1rem; }
    .hero-title { font-size: 1.85rem; }
    .stat-number { font-size: 2rem; }
}