/* =========================================
   1. VARIABLES & PALETTE
   ========================================= */
:root {
    --cream: #F2F0D8;
    --taupe: #D1B999;
    --sage: #A3BC96;
    --forest: #5B7255;
    --deep-olive: #3A533A;
    
    --bg-main: var(--cream);
    --text-dark: var(--deep-olive);
    --text-light: var(--cream);
    --card-bg: #F9F8EE;
    
    --font-header: 'Syne', sans-serif;
    --font-tech: 'Space Grotesk', monospace;
    
    --bottom-nav-height: 80px;
}

/* =========================================
   2. GLOBAL RESET & BASE STYLES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-dark);
    font-family: var(--font-tech);
    overflow-x: hidden;
    line-height: 1.6;
    padding-bottom: calc(var(--bottom-nav-height) + 20px);
}

/* Noise Texture Overlay */
.paper-grain {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url("https://grainy-gradients.vercel.app/noise.svg");
    opacity: 0.08;
    pointer-events: none;
    z-index: 999;
    mix-blend-mode: multiply;
}

/* =========================================
   3. LAYOUT UTILITIES
   ========================================= */
.journal-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 120px 20px 50px;
}

.section-block {
    position: relative;
    margin-bottom: 150px;
}

.number-tag {
    font-family: var(--font-header);
    font-size: 6rem;
    font-weight: 800;
    color: var(--taupe);
    opacity: 0.3;
    position: absolute;
    top: -50px;
    left: -20px;
    z-index: 0;
    line-height: 1;
}

.section-header {
    font-family: var(--font-header);
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
    border-bottom: 3px solid var(--sage);
    display: inline-block;
    padding-bottom: 10px;
}

.italic-accent {
    font-style: italic;
    color: var(--forest);
}

/* =========================================
   4. NAVIGATION (DESKTOP)
   ========================================= */
.desktop-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(242, 240, 216, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8px 10px;
    border-radius: 50px;
    border: 1px solid var(--taupe);
    display: flex;
    gap: 5px;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(58, 83, 58, 0.1);
}

.desktop-nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 10px 20px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.desktop-nav a.active, .desktop-nav a:hover {
    background: var(--forest);
    color: var(--text-light);
}

/* =========================================
   5. NAVIGATION (MOBILE - FLOATING ISLAND)
   ========================================= */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: calc(20px + env(safe-area-inset-bottom)); 
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    height: 70px;
    background: rgba(58, 83, 58, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--sage);
    border-radius: 50px;
    justify-content: space-evenly;
    align-items: center;
    z-index: 9999;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: rgba(242, 240, 216, 0.6);
    font-size: 0.7rem;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 5px;
}

.mobile-bottom-nav .nav-item i {
    font-size: 1.3rem;
    margin-bottom: 3px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mobile-bottom-nav .nav-item.active {
    color: var(--cream);
}

.mobile-bottom-nav .nav-item.active i {
    transform: translateY(-5px);
    color: var(--sage);
}

/* =========================================
   6. HERO SECTION
   ========================================= */
.hero-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 2px solid var(--forest);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    color: var(--forest);
    font-weight: 700;
    margin-bottom: 20px;
}

.status-dot {
    width: 10px;
    height: 10px;
    background: var(--forest);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hero-text h1 {
    font-family: var(--font-header);
    font-size: clamp(3.5rem, 6vw, 5rem);
    line-height: 0.9;
    margin-bottom: 15px;
    color: var(--deep-olive);
}

.role-subtitle {
    font-size: 1.3rem;
    color: var(--forest);
    margin-bottom: 25px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Social Media Icons */
.hero-socials {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 50px;
    height: 50px;
    border: 2px solid var(--forest);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--forest);
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background-color: transparent;
}

.social-icon:hover {
    background-color: var(--forest);
    color: var(--cream);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 5px 15px rgba(58, 83, 58, 0.2);
}

/* --- Hero Visual (Profile + Flower Image) --- */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.profile-frame {
    height: 450px;
    width: 350px;
    background-color: var(--sage);
    border-radius: 175px 175px 0 0; /* Arch shape */
    border: 4px solid var(--taupe);
    position: relative;
    overflow: visible; 
    margin-top: 30px; 
}

/* Your Profile Photo (Top Layer) */
.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    position: relative;
    z-index: 2; 
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* The Flower Overlay (Bottom Layer) */
.flower-overlay {
    position: absolute;
    top: -60px;     
    right: -70px;   
    width: 160%;    
    height: auto;
    z-index: 1; 
    pointer-events: none;
    mix-blend-mode: multiply; /* Optional: Makes white bg transparent */
    transform: rotate(10deg); 
}

/* =========================================
   7. SKILLS GRID
   ========================================= */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
}

.skill-card {
    background: var(--card-bg);
    border: 2px solid var(--taupe);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: transform 0.3s, border-color 0.3s;
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--forest);
}

.skill-card i {
    font-size: 2.5rem;
    color: var(--forest);
    margin-bottom: 15px;
}

.skill-card h3 {
    font-family: var(--font-header);
    font-size: 1rem;
    color: var(--deep-olive);
}

/* =========================================
   8. PROJECTS GRID
   ========================================= */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.project-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 20px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 5px 5px 0px var(--taupe);
}

.project-card:hover {
    border-color: var(--forest);
    box-shadow: 8px 8px 0px var(--forest);
    transform: translate(-3px, -3px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: var(--forest);
}

.project-card h3 {
    font-family: var(--font-header);
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--deep-olive);
}

.tech-tags {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.tech-tags span {
    background: var(--sage);
    color: var(--deep-olive);
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
}

/* =========================================
   9. HOBBIES BENTO GRID
   ========================================= */
.hobby-bento-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    grid-template-rows: 250px 250px;
    gap: 20px;
}

.bento-box {
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    background: var(--deep-olive);
    text-decoration: none;
    display: block;
    border: 3px solid var(--taupe);
}

.bento-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.5;
    transition: all 0.5s ease;
}

.bento-content {
    position: relative;
    z-index: 2;
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: var(--cream);
    background: linear-gradient(to top, rgba(58, 83, 58, 0.9), transparent);
}

.bento-box:hover .bento-bg {
    opacity: 0.2;
    transform: scale(1.1);
}

.bento-box:hover {
    border-color: var(--forest);
}

.bento-content h3 {
    font-family: var(--font-header);
    font-size: 1.8rem;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.large { grid-row: span 2; }
.tall { grid-column: 2; grid-row: 1; }
.cook-box { grid-column: 2; grid-row: 2; }

/* =========================================
   10. FOOTER STYLES
   ========================================= */
.main-footer {
    border-top: 3px solid var(--taupe);
    padding: 80px 20px 40px;
    text-align: center;
    background: var(--card-bg);
    border-radius: 40px 40px 0 0;
    margin-top: 100px;
}

.footer-content h2 {
    font-family: var(--font-header);
    font-size: 3rem;
    color: var(--deep-olive);
    margin-bottom: 10px;
}

.footer-content p {
    font-size: 1.1rem;
    color: var(--forest);
    margin-bottom: 30px;
}

.footer-btn {
    display: inline-block;
    background: var(--deep-olive);
    color: var(--cream);
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: transform 0.3s;
}

.footer-btn:hover {
    transform: scale(1.05);
    background: var(--forest);
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--taupe);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.9rem;
}

.footer-socials {
    display: flex;
    gap: 20px;
}

.footer-socials a {
    color: var(--deep-olive);
    text-decoration: none;
    font-weight: 600;
}

/* =========================================
   11. ANIMATIONS & REVEAL
   ========================================= */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   12. HOBBY/CONTACT PAGE HEADER
   ========================================= */
.hobby-header {
    background: var(--deep-olive);
    color: var(--cream);
    padding: 100px 20px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.back-link {
    position: absolute;
    top: 30px;
    left: 30px;
    text-decoration: none;
    color: var(--cream);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10;
    background: rgba(0,0,0,0.3);
    padding: 10px 20px;
    border-radius: 30px;
}

.hobby-title-large {
    font-family: var(--font-header);
    font-size: 3rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.hobby-intro {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.2rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.hobby-hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    filter: blur(5px);
}

/* =========================================
   13. CONTACT PAGE STYLES
   ========================================= */
.contact-header-bg {
    background: var(--deep-olive);
    padding-bottom: 80px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: -40px; /* Overlap header slightly */
    position: relative;
    z-index: 5;
}

.contact-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
    border: 2px solid var(--taupe);
    transition: transform 0.3s, border-color 0.3s;
    display: block;
}

.contact-card:hover {
    transform: translateY(-10px);
    border-color: var(--forest);
}

.icon-circle {
    width: 60px;
    height: 60px;
    background: var(--sage);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--deep-olive);
    margin: 0 auto 20px;
}

.contact-card h3 {
    font-family: var(--font-header);
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.contact-card p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 20px;
}

.action-text {
    font-weight: 700;
    color: var(--forest);
    font-size: 0.9rem;
}

/* Form Styles */
.form-wrapper {
    max-width: 600px;
    margin: 80px auto 0;
    text-align: center;
}

.form-wrapper h3 {
    font-family: var(--font-header);
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--deep-olive);
}

.styled-form .form-group {
    margin-bottom: 20px;
}

.styled-form input, 
.styled-form textarea {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    border: 2px solid var(--taupe);
    background: rgba(255, 255, 255, 0.5);
    font-family: var(--font-tech);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.styled-form input:focus, 
.styled-form textarea:focus {
    border-color: var(--forest);
    background: #fff;
}

.submit-btn {
    background: var(--deep-olive);
    color: var(--cream);
    border: none;
    padding: 15px 40px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: var(--forest);
}

/* =========================================
   14. MOBILE ADJUSTMENTS
   ========================================= */
@media screen and (max-width: 768px) {
    /* Hide Desktop Nav, Show Mobile Nav */
    .desktop-nav { display: none; }
    .mobile-bottom-nav { display: flex; }
    
    .journal-container { padding-top: 60px; }
    
    .hero-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-layout .hero-visual {
        order: -1;
        margin-bottom: 40px;
    }

    .hero-socials {
        justify-content: center;
    }
    
    .profile-frame {
        height: 350px;
        width: 280px;
        border-radius: 140px 140px 20px 20px;
    }
    
    .flower-overlay {
        width: 150%;
        top: -40px;
        right: -50px;
    }
    
    .number-tag { font-size: 4rem; top: -40px; }
    
    .hobby-bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .large, .tall, .cook-box {
        grid-column: 1;
        grid-row: auto;
        height: 250px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
html, body {
    width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}