/* app/static/css/style.css - FINAL VERSION */

:root {
    --background-color: #1E1E1E;
    --text-color: #D4D4D4;
    --primary-color: #36A4E1;    /* A sharp, modern blue */
    --border-color: #2C2C2C;
    --font-mono: 'Roboto Mono', monospace;
    --font-sans: 'Source Sans 3', sans-serif;
}

/* --- Global Resets & Body --- */
* {
    box-sizing: border-box;
}

html {
    background-color: var(--background-color);
}

body {
    color: var(--text-color);
    font-family: var(--font-sans);
    line-height: 1.7;
    margin: 0;
    padding: 2rem;
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
}


/* --- Typography Hierarchy --- */
h1, h2, h3, h4 {
    font-family: var(--font-mono);
    font-weight: 700;
    margin: 0;
}
h4 {
    color: var(--text-color);
    margin-top: 2rem;
}

p {
    margin-top: 0;
}

.subtitle {
    font-size: 1.25rem;
    color: #A0A0A0;
}

/* --- Navigation --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* CHANGE: Reduced padding to shrink the space below the logo */
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 4rem;
}

.nav-brand {
    /* REMOVED: All absolute positioning rules are gone. */
    /* This element now sits naturally in the flexbox layout. */
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-brand:hover {
    color: var(--primary-color);
}

.nav-brand img {
    /* CHANGE: Increased height to match the new reference image */
    height: 60px;
    width: auto;
    display: block;
    filter: invert(1);
}


nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 2rem;
}
nav ul a {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}
nav ul a:hover {
    color: var(--primary-color);
}


/* --- Page Intro Section --- */
.page-intro {
    margin-bottom: 6rem;
}
.intro-box {
    /* CHANGE: The border has been removed. */
    border: none;
    padding: 2rem;
    margin-bottom: 2rem;
}
.large-heading,
.large-heading-outline {
    /* CHANGE: Reduced the font sizes in the clamp() function */
    font-size: clamp(2.5rem, 8vw, 5rem);
    line-height: 1;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}
.large-heading-outline {
    color: transparent;
    -webkit-text-stroke: 1px var(--text-color);
}

/* --- Main Page Layout Grid --- */
.page-layout {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 4rem;
    align-items: start;
}
.sticky-sidebar {
    position: sticky;
    top: 4rem;
}

/* --- Footer --- */
footer {
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
    padding-top: 2rem;
    text-align: center;
    color: #555;
}

/* --- Atmosphere & Background --- */
body::before {
    content: '';
    position: fixed;
    top: -5%; left: -5%;
    width: 110%; height: 110%;
    background-image: url(../img/water.jpg);
    background-size: cover;
    background-position: center;
    opacity: 0.06;
    z-index: -1;
    pointer-events: none;
    animation: water-shimmer 60s ease-in-out infinite alternate;
}
@keyframes water-shimmer {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.1) translate(2%, 2%); }
}

/* --- Interactivity & Content Styling --- */
.path-item, .pillar-item {
    padding-bottom: 2rem;
    margin-bottom: 3rem;
}
.path-item:not(:last-child), .pillar-item:not(:last-child) {
     border-bottom: 1px solid var(--border-color);
}
.path-item:hover {
    background-color: rgba(54, 164, 225, 0.05);
}

/* --- Code Block --- */
.code-block {
    position: relative;
    /* CHANGE: Removed the grey background and border */
    background-color: transparent;
    border: none;
    margin-top: 1.5rem;
    border-radius: 4px;
    padding: 1.5rem;
    overflow: auto;
}
.code-block::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px;
    height: 100%;
    background-color: var(--primary-color);
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}
.code-block::-webkit-scrollbar { width: 10px; height: 10px; }
.code-block::-webkit-scrollbar-track { background: var(--border-color); border-radius: 4px; }
.code-block::-webkit-scrollbar-thumb { background-color: #555; border-radius: 10px; border: 2px solid var(--border-color); }

/* --- Projects Grid (Hobbies Page) --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}
.project-card {
    background-color: #1A1A1A;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); }
.project-image img { width: 100%; height: 250px; object-fit: cover; display: block; }
.project-info { padding: 1.5rem; flex-grow: 1; display: flex; flex-direction: column; }
.project-info h3 { color: var(--text-color); font-size: 1.5rem; margin-bottom: 0.5rem; }
.project-info p { color: #A0A0A0; margin-bottom: 1rem; flex-grow: 1; }
.project-tag { display: inline-block; background-color: #2C2C2C; color: var(--primary-color); font-family: var(--font-mono); font-size: 0.75rem; padding: 0.25rem 0.5rem; border-radius: 3px; margin-right: 0.5rem; text-transform: uppercase; }

/* --- Subtitle & Layout Polish --- */
.subtitle-container { min-height: 80px; }
.page-intro .subtitle { max-width: none; }
.page-content p { max-width: none; }

/* --- Project Modal --- */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(10, 10, 10, 0.9); display: none; align-items: center; justify-content: center; z-index: 1000; opacity: 0; transition: opacity 0.3s ease; }
.modal-overlay.active { display: flex; opacity: 1; }
.modal-content { background-color: var(--background-color); border: 1px solid var(--border-color); width: 90%; max-width: 1000px; max-height: 90vh; overflow-y: auto; position: relative; padding: 2rem; transform: scale(0.95); transition: transform 0.3s ease; }
.modal-overlay.active .modal-content { transform: scale(1); }
.modal-close { position: absolute; top: 1rem; right: 1.5rem; background: none; border: none; color: var(--text-color); font-size: 2.5rem; cursor: pointer; }
.modal-body { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.modal-body img { width: 100%; max-height: 70vh; object-fit: contain; }
.modal-text h2 { color: var(--primary-color); font-size: 2rem; margin-bottom: 1rem; }

/* --- Index Navigation --- */
.index-nav h2 { font-family: var(--font-mono); font-size: 1.2rem; line-height: 1.4; color: var(--primary-color); text-transform: uppercase; margin-bottom: 2rem; }
.index-nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1.5rem; }
.index-nav li a { display: flex; align-items: baseline; gap: 1rem; font-family: var(--font-sans); font-size: 1.1rem; color: #777; text-decoration: none; line-height: 1.3; transition: all 0.2s ease; font-weight: 400; }
.index-nav li a:hover { color: var(--text-color); }
.index-nav li a.active { color: var(--text-color); font-weight: 700; }
.index-nav li a span { font-family: var(--font-mono); font-size: 1rem; color: #777; transition: color 0.2s ease; }
.index-nav li a.active span { color: var(--primary-color); }

/* --- Navigation Dropdown --- */
.dropdown {
    position: relative; /* This is the positioning container for the menu */
}

.dropdown-menu {
    display: none; /* Hide the menu by default */
    position: absolute;
    top: 100%; /* Position it right below the parent link */
    left: 0;
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.5rem 0;
    list-style: none;
    margin: 0;
    min-width: 220px; /* Give it a nice width */
    z-index: 100; /* Ensure it appears above other content */
}

.dropdown:hover .dropdown-menu {
    display: block; /* Show the menu on hover */
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu li a {
    display: block;
    padding: 0.75rem 1.5rem; /* Give links some padding */
    font-size: 0.9rem; /* Slightly smaller font */
    white-space: nowrap; /* Prevent text wrapping */
}

/* Add a subtle indicator to the main dropdown link */
.dropdown-toggle::after {
    content: ' ▾';
    font-size: 0.8em;
}

/* --- Footer --- */
footer {
    border-top: 1px solid var(--border-color);
    margin-top: 6rem;
    padding-top: 3rem;
    text-align: center;
}
.footer-content h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.footer-content p {
    max-width: 600px;
    margin: 0 auto 2rem auto;
    color: #A0A0A0;
}
.social-links {
    list-style: none;
    padding: 0;
    margin: 0 0 3rem 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
}
.social-links a {
    font-family: var(--font-mono);
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}
.social-links a:hover {
    color: var(--primary-color);
}
.copyright {
    color: #555;
}
/* --- Navigation --- */
nav ul a.active {
    color: var(--primary-color);
}

/* Hide the mobile-only hamburger button on desktop */
.nav-toggle {
    display: none;
}

/* --- Responsiveness (Mobile & Tablet) --- */
@media (max-width: 768px) {
    /* Hide the full navigation menu on mobile */
nav ul {
    display: none;
}

/* Show the hamburger button on mobile */
.nav-toggle {
    display: block; /* This makes it visible */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

/* Basic styling for the hamburger icon lines */
.hamburger {
    display: block;
    position: relative;
    width: 25px;
    height: 3px;
    background: var(--text-color);
    transition: all 0.2s ease-in-out;
}
.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--text-color);
    transition: all 0.2s ease-in-out;
}
.hamburger::before {
    top: -8px;
}
.hamburger::after {
    bottom: -8px;
}
}

