@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;500;700&family=Borel&display=swap');

/* --- VARIABLES --- */
:root {
    --brand-yellow: #F9D946;
    --brand-purple: #6F3798;
    --brand-orange: #F9794C;
    --bg-page: #FDFBF7;
    --bg-nav: rgba(242, 239, 233, 0.85);
    --text-main: #191919;
    --text-muted: #5D5461;
    --card-bg: #FFFFFF;
    --footer-bg: #2D1B3D;
    --transition-smooth: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

body.dark-theme {
    --bg-page: #1A161D;
    --bg-nav: rgba(37, 31, 41, 0.85);
    --text-main: #F4F0F7;
    --text-muted: #B4A9B9;
    --card-bg: #251F29;
    --footer-bg: #0F0D11;
}

/* --- RESET & BASE --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { 
    scroll-behavior: smooth; 
    overflow-x: hidden;
}

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

.font-QS { 
    font-family: 'Borel', cursive; 
    font-weight: 700; 
    color: var(--brand-orange); 
    margin-bottom: 20px; 
}

[id] { scroll-margin-top: 80px; }

/* --- TYPOGRAPHY --- */
h1, h2, .founder-note-title { 
    font-family: 'Borel', cursive; 
    color: var(--brand-purple); 
    line-height: 1.2; 
}

h1 { font-size: clamp(2.5rem, 8vw, 4.2rem); }

.professional-text { 
    font-size: 1.1rem; 
    line-height: 1.8; 
    color: var(--text-muted); 
}

.subtitle { 
    font-weight: 700; 
    font-size: 0.8rem; 
    color: var(--brand-orange); 
    text-transform: uppercase; 
    letter-spacing: 3px; 
    margin-bottom: 20px; 
    display: block; 
}

.highlight-bar { 
    width: 60px; 
    height: 5px; 
    background: var(--brand-yellow); 
    margin: 30px 0; 
    border-radius: 10px; 
}

/* --- NAVIGATION --- */
nav {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 2000;
    background: var(--bg-nav);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 20px 0;
    transition: 0.4s ease;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

nav.minimized { 
    padding: 10px 0; 
    box-shadow: 0 4px 25px rgba(0,0,0,0.1); 
}

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

.logo img { 
    height: 100px; 
    cursor: pointer; 
    transition: 0.3s ease; 
}

nav.minimized .logo img { height: 60px; }

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a { 
    text-decoration: none; 
    color: var(--text-main); 
    font-weight: 700; 
    font-size: 0.9rem; 
    transition: 0.3s; 
}

.nav-links a:hover { color: var(--brand-orange); }

.nav-right { display: flex; align-items: center; gap: 20px; }

.nav-cta {
    background: var(--brand-purple);
    color: white !important;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    transition: 0.3s;
}

.nav-cta:hover { 
    background: var(--brand-orange); 
    transform: translateY(-2px); 
}

/* --- MOBILE MENU OVERRIDE --- */
.hamburger { 
    display: none; 
    cursor: pointer; 
    z-index: 3000;
}

.hamburger span { 
    display: block; 
    width: 25px; 
    height: 2px; 
    background: var(--brand-purple); 
    margin: 6px; 
    border-radius: 2px; 
    transition: 0.3s;
}

@media (max-width: 1024px) {
    .hamburger { display: block; }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-page);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 35px;
        transition: 0.5s cubic-bezier(0.2, 1, 0.3, 1);
    }

    .nav-links.active { right: 0; }
    
    .nav-links a { font-size: 1.5rem; }

    .nav-cta { display: none; } /* Better to keep desktop CTA hidden on mobile nav */
}

/* --- LAYOUT & GRIDS --- */
section { 
    padding: 60px 5%; 
    max-width: 1400px; 
    margin: 0 auto; 
}

.pillar-grid, .blog-grid { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 30px; 
    margin-top: 40px; 
}

.blog-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 24px;
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition-smooth);
    text-decoration: none;
    color: inherit;
}

.blog-card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 30px 60px rgba(0,0,0,0.08); 
}

/* Responsive Grid Upgrades */
@media (min-width: 768px) {
    .pillar-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
    section { padding: 80px 7%; }
}

@media (min-width: 1100px) {
    .pillar-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
    section { padding: 100px 10%; }
}

/* --- FOUNDER SECTION --- */
.founder-container { 
    display: flex; 
    flex-direction: column;
    gap: 40px; 
    align-items: center; 
    background: var(--card-bg); 
    padding: 40px 30px; 
    border-radius: 30px; 
}

.founder-image img { 
    width: 100%; 
    max-width: 320px; 
    height: auto; 
    aspect-ratio: 3/4;
    object-fit: cover; 
    border-radius: 20px; 
}
.founder-image{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.founder-content { flex: 1; }

.founder-items{
    display: flex;
    flex-direction: column-reverse;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 1rem;
}
@media (min-width: 1024px) {
    .founder-items{
        flex-direction: row;
    }
}

@media (min-width: 1024px) {
    .founder-container { 
        flex-direction: row; 
        gap: 80px; 
        padding: 60px; 
        border-radius: 40px; 
    }
}

/* --- FOOTER --- */
footer { 
    background: var(--footer-bg); 
    color: white; 
    padding: 60px 5% 30px; 
    margin-top: 80px; 
}

.footer-grid { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 40px; 
    text-align: center; 
}

.footer-logo-large { height: 70px; margin-bottom: 20px; }

.social-link { 
    color: var(--brand-yellow); 
    text-decoration: none; 
    font-size: 0.9rem; 
    border: 1px solid var(--brand-yellow); 
    padding: 8px 16px; 
    border-radius: 20px; 
    transition: 0.3s; 
    display: inline-block;
}

.social-link:hover { 
    background: var(--brand-yellow); 
    color: var(--brand-purple); 
}

@media (min-width: 768px) {
    .footer-grid { 
        grid-template-columns: repeat(3, 1fr); 
        align-items: center; 
    }
    .footer-left { text-align: left; }
    .footer-right { text-align: right; }
    footer { padding: 80px 10% 40px; }
}

/* --- ANIMATIONS --- */
.reveal { 
    opacity: 0; 
    transform: translateY(30px); 
    transition: var(--transition-smooth); 
}
.reveal.active { 
    opacity: 1; 
    transform: translateY(0); 
}