:root {
    --bg-dark: #0a110b;
    --forest-green: #1e3f20;
    --forest-green-light: #2c592f;
    --off-white: #f4f4f2;
    --accent: #d1e2c4;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark); /* Base background is dark */
    color: var(--bg-dark);
    overflow-x: hidden;
    cursor: default;
}

::selection {
    background-color: var(--forest-green);
    color: var(--off-white);
}

/* Navbar & Logo */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: difference;
    color: var(--off-white);
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
    transition: transform 0.4s ease;
}

.logo-container:hover {
    transform: scale(1.05) rotate(-2deg);
}

.logo-text {
    font-weight: 800;
    font-size: 2rem;
    letter-spacing: 2px;
    color: var(--off-white);
}

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

.nav-links a {
    color: var(--off-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.4s ease;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 101;
}

.hamburger .bar {
    width: 30px;
    height: 3px;
    background-color: var(--off-white);
    transition: all 0.4s ease;
    border-radius: 3px;
}

/* Abstract Shapes */
.abstract-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
    z-index: 1;
    pointer-events: none;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--forest-green) 0%, transparent 70%);
    top: -100px;
    right: -100px;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--forest-green-light) 0%, transparent 70%);
    bottom: -100px;
    left: 20%;
}

.shape-3 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    top: 30%;
    right: 20%;
    opacity: 0.2;
}

.shape-4 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--forest-green) 0%, transparent 70%);
    bottom: -200px;
    right: -200px;
    opacity: 0.15;
}

.shape-5 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--forest-green-light) 0%, transparent 70%);
    top: 0;
    left: -200px;
    opacity: 0.1;
}

.shape-6 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    bottom: -100px;
    left: 10%;
    opacity: 0.3;
}

/* Loader Overlay */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-dark);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.loader-text {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 4px;
    color: var(--off-white);
    animation: pulseText 1.5s infinite alternate;
}

.loader-bar-container {
    width: 200px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.loader-bar {
    width: 0%;
    height: 100%;
    background-color: var(--forest-green);
    animation: loadingBar 1.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes pulseText {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

@keyframes loadingBar {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

.loader-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Custom Cursor Glow */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(209, 226, 196, 0.15) 0%, rgba(209, 226, 196, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    transition: width 0.3s, height 0.3s;
}

/* Reveal Animations */
.reveal-element {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reveal-element.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Delay for staggered effect */
.about-card:nth-child(1), .post-card:nth-child(1), .contact-card-modern:nth-child(1) { transition-delay: 0.1s; }
.about-card:nth-child(2), .post-card:nth-child(2), .contact-card-modern:nth-child(2) { transition-delay: 0.2s; }
.about-card:nth-child(3), .post-card:nth-child(3), .contact-card-modern:nth-child(3) { transition-delay: 0.3s; }
.about-card:nth-child(4), .post-card:nth-child(4), .contact-card-modern:nth-child(4) { transition-delay: 0.4s; }


/* Sections Global */
section, footer {
    position: relative;
    padding: 8rem 10%;
    overflow: hidden;
    z-index: 20; /* Slides OVER the sticky hero */
}

.section-title {
    font-size: 4rem;
    font-weight: 800;
    color: var(--bg-dark);
    margin-bottom: 4rem;
    letter-spacing: -1px;
    position: relative;
    z-index: 10;
}

/* Hero Section (Sticky) */
.hero-section {
    position: relative;
    height: 200vh; /* Adds 100vh scroll distance for shrink + slide left effect */
    background-color: var(--bg-dark);
    z-index: 10;
}

.sticky-hero-wrapper {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 10%;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    width: 100%;
    align-items: center;
    z-index: 10;
    position: relative;
}

.hero-content {
    max-width: 800px;
    will-change: opacity, transform;
}

.hero-image-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.hero-logo {
    width: 100%;
    max-width: 450px;
    border-radius: 50%;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
    object-fit: cover;
    aspect-ratio: 1 / 1;
    will-change: transform;
    transform-origin: center center;
}

.hero-title {
    font-size: 6rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--off-white);
    margin-bottom: 2rem;
    letter-spacing: -2px;
}

.highlight {
    color: var(--forest-green);
    background-color: var(--off-white);
    padding: 0 1rem;
    border-radius: 4px;
    display: inline-block;
    transform: skewX(-10deg);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--accent);
    margin-bottom: 3rem;
    max-width: 600px;
    line-height: 1.6;
}

.cta-button {
    background-color: var(--off-white);
    color: var(--forest-green);
    border: none;
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    font-weight: 800;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px rgba(30, 63, 32, 0.4);
    background-color: var(--forest-green);
    color: var(--off-white);
}

/* About Section */
.about-section {
    background-color: var(--off-white);
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 -20px 50px rgba(0,0,0,0.5); /* Shadow when sliding over hero */
}

.about-content {
    width: 100%;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    position: relative;
    z-index: 10;
}

.about-card {
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.about-card.reveal-element.revealed:hover {
    transform: translateY(-10px);
}

.about-card h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--forest-green);
}

.about-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    font-weight: 400;
    color: #333;
}

/* Posts Section */
.posts-section {
    background-color: var(--bg-dark);
    color: var(--off-white);
    min-height: 80vh;
}

.posts-section .section-title {
    color: var(--off-white);
}

.posts-content {
    position: relative;
    z-index: 10;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.post-card {
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.post-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.post-card.reveal-element.revealed:hover {
    transform: scale(1.03) translateY(-10px);
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.post-date {
    font-size: 0.9rem;
    color: var(--accent);
    margin: 1.5rem 2rem 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
}

.post-text {
    font-size: 1.1rem;
    line-height: 1.6;
    font-weight: 300;
    padding: 0 2rem 2rem;
}

/* Footer / Contact */
.footer-section {
    background-color: var(--off-white);
    color: var(--bg-dark);
}

.footer-section .section-title {
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
    position: relative;
    z-index: 10;
}

.contact-card-modern {
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 3rem 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 20px 40px rgba(0,0,0,0.03);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-decoration: none;
    color: var(--bg-dark);
}

.contact-card-modern.reveal-element.revealed:hover {
    transform: translateY(-10px);
    background-color: #fff;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.contact-card-modern .icon {
    font-size: 3rem;
    background: var(--accent);
    padding: 1rem;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 20px rgba(209, 226, 196, 0.5);
}

.contact-text h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--forest-green);
    margin-bottom: 0.5rem;
}

.contact-text p {
    font-size: 1rem;
    color: #555;
    font-weight: 400;
}

.footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    position: relative;
    z-index: 10;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 4rem;
    }
}

@media (max-width: 768px) {
    /* Navbar Mobile */
    .navbar {
        padding: 1.5rem 2rem;
        mix-blend-mode: normal;
        background-color: var(--bg-dark); /* Solid background on mobile */
    }
    
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100vw;
        height: 100vh;
        background-color: var(--bg-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        transition: right 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        z-index: 100;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 2rem;
    }

    /* Hamburger Animation */
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Hero Fix */
    .sticky-hero-wrapper {
        align-items: flex-start;
        padding-top: 15vh; 
    }
    .hero-grid {
        display: flex;
        flex-direction: column-reverse; /* Logo on top */
        text-align: center;
        gap: 2rem;
    }
    .hero-image-container {
        justify-content: center;
    }
    .hero-logo {
        max-width: 200px;
    }
    .hero-title {
        font-size: 3.5rem;
    }
    .hero-subtitle {
        font-size: 1.2rem;
        margin: 0 auto 3rem;
    }
    
    .shape-1, .shape-2, .shape-3 {
        width: 300px;
        height: 300px;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    .contact-info {
        flex-direction: column;
        gap: 2rem;
    }
    
    .section-title {
        font-size: 3rem;
        text-align: center;
    }
}
