:root {
    --bg-dark: #050508;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --blob-1: #0077b6;
    --blob-2: #00b4d8;
    --blob-3: #90e0ef;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, .logo, .footer-title {
    font-family: 'Playfair Display', serif;
}

.italic {
    font-style: italic;
    font-weight: 400;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Mesh Background */
.mesh-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: var(--bg-dark);
}

.blob {
    position: absolute;
    filter: blur(90px);
    border-radius: 50%;
    opacity: 0.5;
    animation: float 15s infinite ease-in-out;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: var(--blob-1);
    animation-delay: 0s;
}

.blob-2 {
    bottom: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: var(--blob-2);
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 40%;
    width: 40vw;
    height: 40vw;
    background: var(--blob-3);
    animation-delay: -10s;
    opacity: 0.3;
}

@keyframes float {
    0% { translate: 0 0; scale: 1; }
    33% { translate: 15vw 10vh; scale: 1.15; }
    66% { translate: -10vw 15vh; scale: 0.85; }
    100% { translate: 0 0; scale: 1; }
}

/* Glassmorphism Utilities */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--glass-shadow);
    padding: 2.5rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1000;
    padding: 1rem 2rem;
}

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

.logo {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 1px;
}

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

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.btn-glass {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-glass.primary {
    background: var(--text-primary);
    color: var(--bg-dark);
    border: none;
}

.btn-glass.primary:hover {
    background: rgba(255, 255, 255, 0.8);
}

.btn-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-text:hover {
    color: var(--text-primary);
}

/* Layout */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.section-header {
    margin-bottom: 4rem;
    text-align: center;
}

.section-title {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 6rem;
}

.hero-content {
    max-width: 1000px;
    width: 100%;
}

.hero-label {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    line-height: 1.1;
    margin-bottom: 2rem;
    font-weight: 400;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 3rem;
}

.hero-actions {
    display: flex;
    gap: 2rem;
    align-items: center;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 3.5rem;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1;
}

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

/* Process Section */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.process-card {
    position: relative;
    overflow: hidden;
}

.card-number {
    font-size: 4rem;
    font-family: 'Playfair Display', serif;
    color: rgba(255, 255, 255, 0.1);
    position: absolute;
    top: -10px;
    right: 10px;
    line-height: 1;
}

.process-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    margin-top: 1rem;
}

.process-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Expertise Section */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--blob-3);
}

.expertise-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.expertise-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Ventures Section */
.ventures-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.venture-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 3rem;
    text-decoration: none;
    color: inherit;
}

.venture-info h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.venture-info p {
    color: var(--text-secondary);
}

.venture-arrow {
    font-size: 2rem;
    font-family: 'Playfair Display', serif;
    opacity: 0.5;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.venture-item:hover .venture-arrow {
    transform: translate(5px, -5px);
    opacity: 1;
}

/* Footer */
.footer {
    padding: 0 2rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    text-align: center;
    margin-bottom: 4rem;
}

.footer-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.footer-content p {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-size: 1.2rem;
}

.footer-bottom {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid var(--glass-border);
    padding-top: 2rem;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 5, 8, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-links {
    list-style: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mobile-menu-links a {
    font-size: 2rem;
    font-weight: 500;
    font-family: 'Playfair Display', serif;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.mobile-menu-links a:hover, .mobile-menu-links a.active {
    color: var(--text-primary);
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    z-index: 1001;
    padding: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    main {
        padding: 0 1rem;
    }

    .glass-card {
        padding: 1.5rem;
    }

    .nav-links, .desktop-contact {
        display: none;
    }

    .mobile-menu-toggle {
        display: block !important;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .venture-item {
        padding: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .venture-arrow {
        display: none;
    }
    
    .footer-title {
        font-size: 2.5rem;
    }
}

/* --- Multi-Page Additions --- */
/* Page Header */
.page-header {
    padding-top: 10rem;
    padding-bottom: 4rem;
    text-align: center;
}

.page-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 6rem;
}

.blog-card {
    display: flex;
    flex-direction: column;
    padding: 2.5rem;
}

.blog-meta {
    font-size: 0.85rem;
    color: var(--blob-3);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
}

.blog-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.blog-card p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    flex-grow: 1;
}

/* Article Page */
.article-header {
    padding-top: 10rem;
    margin-bottom: 3rem;
    text-align: center;
}

.article-meta {
    font-size: 0.9rem;
    color: var(--blob-3);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.article-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.1;
}

.article-cover {
    width: 100%;
    height: 60vh;
    border-radius: 24px;
    object-fit: cover;
    margin-bottom: 4rem;
    border: 1px solid var(--glass-border);
}

.article-body {
    max-width: 800px;
    margin: 0 auto 6rem;
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.article-body p { margin-bottom: 1.5rem; }
.article-body h2 { font-size: 2rem; color: var(--text-primary); margin: 3rem 0 1.5rem; font-family: 'Playfair Display', serif; }
.article-body h3 { font-size: 1.5rem; color: var(--text-primary); margin: 2rem 0 1rem; font-family: 'Playfair Display', serif; }
.article-body blockquote {
    border-left: 4px solid var(--blob-3);
    padding-left: 1.5rem;
    font-style: italic;
    margin: 2.5rem 0;
    color: var(--text-primary);
    font-size: 1.3rem;
}
.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 2rem 0;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

/* Connect / Form */
.connect-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 6rem;
}

.contact-info h2 { font-size: 2.5rem; margin-bottom: 1.5rem; }
.contact-info p { color: var(--text-secondary); margin-bottom: 2rem; }
.social-links { display: flex; flex-direction: column; gap: 1.5rem; }

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 1rem;
    color: var(--text-primary);
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--blob-3);
}

textarea.form-input {
    resize: vertical;
    min-height: 150px;
}

/* About Layout extension */
.about-detailed {
    max-width: 1000px;
    margin: 0 auto 6rem;
}
.about-hero {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 4rem;
}
.about-image {
    flex: 1;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    aspect-ratio: 1 / 1;
    display: flex;
}
.about-image img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.1); }
.about-content { flex: 1; }

@media (max-width: 768px) {
    .connect-grid { grid-template-columns: 1fr; }
    .about-hero { flex-direction: column; }
    .article-cover { height: 40vh; }
}

/* --- Final Polish Additions --- */
/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--blob-1), var(--blob-3));
    width: 0%;
    z-index: 9999;
    box-shadow: 0 0 10px var(--blob-2);
    transition: width 0.1s ease-out;
}

/* Image Parallax / Zoom */
.article-cover, .about-image img {
    transition: transform 0.5s ease;
}

.article-cover:hover, .about-image:hover img {
    transform: scale(1.05);
}

/* --- Ultra-Premium Features --- */

/* Custom Cursor */
@media (pointer: fine) {
    body, a, button, input, textarea, .magnetic {
        cursor: none !important;
    }
}

.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background-color: #ffffff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}

.cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.cursor-follower.hovering {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.1);
    border-color: transparent;
    backdrop-filter: blur(2px);
}

@media (pointer: coarse) {
    .custom-cursor, .cursor-follower {
        display: none !important;
    }
}

/* Noise Overlay */
.noise-overlay {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.05;
    pointer-events: none;
    z-index: 9998;
    animation: noiseAnim 0.5s steps(1) infinite;
    mix-blend-mode: overlay;
}

@keyframes noiseAnim {
    0% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -5%); }
    20% { transform: translate(-10%, 5%); }
    30% { transform: translate(5%, -10%); }
    40% { transform: translate(-5%, 15%); }
    50% { transform: translate(-10%, 5%); }
    60% { transform: translate(15%, 0); }
    70% { transform: translate(0, 15%); }
    80% { transform: translate(3%, 35%); }
    90% { transform: translate(-10%, 10%); }
    100% { transform: translate(0, 0); }
}

/* Staggered Text Reveals */
.reveal-text {
    overflow: hidden;
}

.reveal-text .word {
    display: inline-block;
    white-space: pre;
    will-change: transform, opacity;
}

/* Page Transitions (Native View Transitions API) */
@view-transition {
    navigation: auto;
}

/* --- Final Masterclass Enhancements --- */

/* Theme Variants */
body.theme-emerald {
    --blob-1: #00ff87;
    --blob-2: #60efff;
    --blob-3: #0061ff;
    --bg-dark: #051014;
}

body.theme-sunset {
    --blob-1: #ff512f;
    --blob-2: #f09819;
    --blob-3: #ff0844;
    --bg-dark: #140805;
}

body.theme-light {
    --bg-dark: #f8fafc;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --glass-bg: rgba(255, 255, 255, 0.4);
    --glass-border: rgba(0, 0, 0, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
    --blob-1: #38bdf8;
    --blob-2: #818cf8;
    --blob-3: #c084fc;
}

/* Theme Switcher */
.theme-switcher {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 2rem;
    padding: 0.75rem 1rem;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    z-index: 1000;
    box-shadow: var(--glass-shadow);
}

.cli-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.cli-link:hover {
    opacity: 1;
    color: var(--blob-3);
    transform: scale(1.1);
}

.theme-divider {
    width: 1px;
    height: 20px;
    background: var(--glass-border);
    margin: 0 0.2rem;
}

.theme-btn {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease;
    padding: 0;
    outline: none;
}

.theme-btn:hover {
    transform: scale(1.2);
    border-color: rgba(255, 255, 255, 0.8);
}

.theme-btn.active {
    border-color: #fff;
    transform: scale(1.2);
}

.theme-btn.btn-blue { background: linear-gradient(135deg, #00c6ff, #0072ff); }
.theme-btn.btn-emerald { background: linear-gradient(135deg, #00ff87, #60efff); }
.theme-btn.btn-sunset { background: linear-gradient(135deg, #ff512f, #f09819); }
.theme-btn.btn-light { background: linear-gradient(135deg, #f8fafc, #cbd5e1); }

/* Transform smooth for vanilla-tilt */
.glass-card {
    transform-style: preserve-3d;
}
