/* 
   filename: style.css
   description: Professional, responsive CSS theme inspired by nature.
*/

/* Import a geometric sans-serif font (Poppins is a close, freely available match) */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@1,600;1,700;1,900&display=swap');

/* Remove this class (and the matching HTML class attribute) to bring these blocks back */
.temp-hidden {
    display: none;
}

/* Offset anchor jumps so content isn't hidden behind the sticky header */
#bio, #future, #social {
    scroll-margin-top: 100px;
}

:root {
    /* Color Palette */
    --primary-color: #4CAF50; /* Fresh Green */
    --primary-dark: #2E7D32; /* Darker Green */
    --secondary-color: #8D6E63; /* Earthy Brown */
    --accent-color: #FFC107; /* Sunny Yellow */
    --text-dark: #333333; /* Dark Grey for text */
    --text-light: #FFFFFF; /* White for text */
    --bg-light: #F1F8E9; /* Light Greenish-White background */
    --bg-white: #FFFFFF; /* Pure White background */
    --border-color: #D7CCC8; /* Light Brown border */
    --shadow-color: rgba(0, 0, 0, 0.1); /* Soft shadow */

    /* Typography */
    --font-family-base: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-family-heading: 'Montserrat', 'Segoe UI', Roboto, sans-serif;

    /* Spacing & Sizing */
    --border-radius: 12px; /* Soft, rounded corners */
    --spacing-unit: 16px;
}

/* --- Global Resets & Base Styles --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family-base);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    background-image: linear-gradient(to bottom, #e0f2f1, #f1f8e9); /* Subtle sky-to-grass gradient */
    background-attachment: fixed;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    color: var(--primary-dark);
    margin-bottom: var(--spacing-unit);
    font-weight: 600;
}

p {
    margin-bottom: var(--spacing-unit);
}

/* --- Layout Containers --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-unit);
}

.main-layout {
    display: flex;
    flex-wrap: wrap;
    gap: calc(var(--spacing-unit) * 2);
    margin-top: calc(var(--spacing-unit) * 2);
}

.main-content {
    flex: 3;
    min-width: 300px;
}

.sidebar {
    flex: 1;
    min-width: 250px;
}

/* --- Header & Navigation --- */
.site-header {
    background-color: rgba(255, 255, 255, 0.96);
    box-shadow: 0 2px 10px var(--shadow-color);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid var(--primary-color); /* Green line like the road */
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 5px;
    padding-bottom: 5px;
}

.brand-logo {
    font-family: 'Poppins', 'Futura', 'Century Gothic', sans-serif;
    font-style: italic;
    font-weight: 900;
    font-size: 3rem;
    letter-spacing: -0.02em;
    /* Underlying text stays "SLANT"; only rendered as Slant to match the reference logo */
    text-transform: lowercase;
    display: inline-block;
    transform: skewX(-10deg); /* enhances the "slant" visual effect */
    transform-origin: left bottom;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.brand-logo::first-letter {
    text-transform: uppercase;
}

.brand-logo:hover {
    color: transparent;
    transform: skewX(-10deg) scale(1.03);
    filter: brightness(1.15);
}

.brand-logo span {
    color: var(--primary-color);
}

.logo-img {
    height: 120px; /* fills the header, leaving exactly 5px above and below */
    width: auto;
    margin-right: 0.5rem;
}

.navbar-controls {
    display: flex;
    align-items: center;
    gap: var(--spacing-unit);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-unit);
}

.nav-item a {
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.nav-item a:hover, .nav-item a.active {
    background-color: var(--primary-color);
    color: var(--text-light);
}

/* Language Switcher */
.lang-switch {
    display: flex;
    gap: 6px;
}

.lang-btn {
    font-family: var(--font-family-base);
    font-weight: 600;
    font-size: 0.8rem;
    padding: 4px 10px;
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius);
    background-color: transparent;
    color: var(--primary-dark);
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn:hover, .lang-btn.active {
    background-color: var(--primary-color);
    color: var(--text-light);
}

/* Hamburger Menu (Mobile) */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-dark);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Morph the 3 lines into an X when the menu is open */
.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* --- Components --- */

/* Boxes & Cards */
.box, .card {
    background-color: var(--bg-white);
    padding: calc(var(--spacing-unit) * 1.5);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px var(--shadow-color);
    margin-bottom: calc(var(--spacing-unit) * 2);
    border: 1px solid var(--bg-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-color);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-color);
}

.card-header {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-unit);
    color: var(--primary-dark);
    border-bottom: 2px solid var(--bg-light);
    padding-bottom: 8px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 24px;
    font-family: var(--font-family-base);
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: 50px; /* Pill shape */
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px var(--shadow-color);
}

.btn-primary {
    background-image: linear-gradient(to right, var(--primary-color), var(--primary-dark));
    color: var(--text-light);
}

.btn-primary:hover {
    background-image: linear-gradient(to right, var(--primary-dark), var(--primary-color));
    box-shadow: 0 4px 10px rgba(46, 125, 50, 0.3);
}

.btn-secondary {
    background-color: var(--bg-white);
    color: var(--primary-dark);
    border: 2px solid var(--primary-color);
}

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

/* Form Elements */
.form-group {
    margin-bottom: var(--spacing-unit);
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary-dark);
}

.form-control {
    width: 100%;
    padding: 12px;
    font-family: var(--font-family-base);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--bg-light);
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--bg-white);
}

/* Custom Checkbox & Radio */
.custom-control {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    cursor: pointer;
}

.custom-control input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.custom-control input[type="radio"] + .checkmark {
    border-radius: 50%;
}

.custom-control input:checked + .checkmark {
    background-color: var(--primary-color);
}

.checkmark::after {
    content: '';
    display: none;
    width: 10px;
    height: 5px;
    border-left: 2px solid var(--text-light);
    border-bottom: 2px solid var(--text-light);
    transform: rotate(-45deg);
}

.custom-control input[type="radio"]:checked + .checkmark::after {
    width: 10px;
    height: 10px;
    background-color: var(--text-light);
    border: none;
    border-radius: 50%;
}

.custom-control input:checked + .checkmark::after {
    display: block;
}

/* Login Component */
.login-box {
    max-width: 400px;
    margin: calc(var(--spacing-unit) * 4) auto;
    text-align: center;
    border-top: 5px solid var(--primary-color);
}

/* Picture Frame */
.picture-frame {
    padding: 10px;
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px var(--shadow-color);
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.picture-frame:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-color);
}

.picture-frame img,
.picture-frame video {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: calc(var(--border-radius) - 5px);
}

.picture-frame + .picture-frame {
    margin-top: var(--spacing-unit);
}

/* Profile / Bio Box */
.profile-frame {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: calc(var(--spacing-unit) * 1.5);
    width: 100%;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.profile-frame .profile-pic {
    flex: 1 1 260px;
    width: 100%;
    max-width: 320px;
    height: auto;
    align-self: center;
    object-fit: cover;
    border-radius: calc(var(--border-radius) - 5px);
}

.bio-box {
    flex: 3 1 320px;
    margin-bottom: 0;
    padding: 8px 12px;
}

@media (max-width: 768px) {
    .profile-frame {
        flex-direction: column;
        align-items: center;
    }

    .profile-frame .profile-pic {
        max-width: 100%;
    }
}

/* Slight slide-up + fade-in when the Bio block scrolls into view */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
}

.picture-frame .hidden-placeholder {
    display: none;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Footer */
.site-footer {
    background-color: var(--primary-dark);
    color: var(--text-light);
    padding: calc(var(--spacing-unit) * 3) 0;
    text-align: center;
    margin-top: calc(var(--spacing-unit) * 4);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-unit);
    margin-bottom: var(--spacing-unit);
    list-style: none;
}

.footer-links a {
    color: var(--text-light);
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-unit);
    margin-bottom: var(--spacing-unit);
    list-style: none;
}

.social-links a {
    color: var(--text-light);
    opacity: 1;
    display: inline-flex;
}

.social-links a:hover {
    opacity: 1;
    color: var(--accent-color);
}

/* --- Media Queries for Responsiveness --- */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-white);
        flex-direction: column;
        gap: 0;
        padding: 0;
        box-shadow: 0 8px 20px var(--shadow-color);
        border-radius: 0 0 var(--border-radius) var(--border-radius);
        overflow: hidden; /* clips item rows to the box's rounded bottom edges */
        /* Kept in the DOM (not display:none) so opacity/transform can animate */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-16px);
        pointer-events: none;
        transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav-menu .nav-item {
        width: 100%;
        border-bottom: 3px solid rgba(0, 0, 0, 0.08); /* edge between stacked rows */
    }

    .nav-menu .nav-item:last-child {
        border-bottom: none;
    }

    .nav-menu .nav-item a {
        display: block;
        width: 100%;
        padding: 14px var(--spacing-unit);
        border-radius: 0; /* straight-edged row rather than a pill */
        background-color: transparent;
        color: var(--primary-color);
        text-align: center;
    }

    .nav-menu .nav-item a:hover {
        opacity: 0.45;
        background-color: var(--primary-color);
        color: var(--text-light);
    }
    
    .nav-menu .nav-item a.active {
        background-color: var(--primary-color);
        color: var(--text-light);
    }

    .main-layout {
        flex-direction: column;
    }

    .sidebar {
        order: 2; /* Move sidebar below main content on mobile */
    }
}