/* ==========================================
   1. CSS RESET & GLOBAL VARIABLES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #0b0f0e;
    --surface-color: #121a18;
    --accent-sage: #8a9a86;
    --text-primary: #f0f4f1;
    --text-muted: #94a39b;
    --border-color: #222d28;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
}

/* ==========================================
   2. NAVIGATION BAR
   ========================================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 5%;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo {
    font-weight: 700;
    letter-spacing: 1px;
}

.logo span {
    color: var(--accent-sage);
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

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

/* ==========================================
   Hire Me Dropdown Context Menu
   ========================================== */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    cursor: pointer;
    background-color: var(--accent-sage);
    color: var(--bg-color);
    padding: 0.6rem 1.25rem;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    font-size: 0.9rem;
    font-family: inherit;
    transition: background-color 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.dropdown-toggle:hover {
    background-color: #9ab095;
    transform: translateY(-2px);
}

/* Dropdown Menu Box (Hidden by default, reveals on hover) */
.dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    min-width: 220px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    z-index: 100;
    overflow: hidden;
}

/* Reveal menu when hovering over the dropdown container */
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Individual Links Inside the Context Menu */
.dropdown-menu a {
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a span {
    color: var(--accent-sage);
}

.dropdown-menu a:hover {
    background-color: rgba(138, 154, 134, 0.1);
    color: var(--accent-sage);
}

/* ==========================================
   3. HERO SECTION
   ========================================== */
.hero-section {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 5% 2rem;
}

.badge {
    display: inline-block;
    background-color: var(--surface-color);
    color: var(--accent-sage);
    border: 1px solid var(--border-color);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    max-width: 900px;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero-content h1 span {
    color: var(--accent-sage);
}

.hero-content p {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 600px;
    margin-bottom: 2rem;
}

.hero-asset-container {
    width: 100%;
    max-width: 260px;
    margin: 1.5rem auto 0;
    padding: 2rem;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-asset-container:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 25px 50px rgba(138, 154, 134, 0.25);
}

.floating-asset {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.6));
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

/* ==========================================
   4. ARCHIVE / PROGRESSION GRID
   ========================================== */
.archive-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 5% 4rem;
}

.archive-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    position: relative;
    padding-left: 1rem;
}

.archive-section h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--accent-sage);
    border-radius: 2px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.archive-card {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.archive-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-sage);
    box-shadow: 0 12px 30px rgba(138, 154, 134, 0.15);
}

.card-tag {
    align-self: flex-start;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-sage);
    background-color: rgba(138, 154, 134, 0.1);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 1.25rem;
}

.archive-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.archive-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.card-media {
    width: 100%;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    background-color: #f4f6f5;
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 1rem;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.archive-card:hover .card-img {
    transform: scale(1.05);
}

.placeholder-media {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(138, 154, 134, 0.04) 100%);
    border: 1px dashed var(--border-color);
    padding: 0;
}

.placeholder-text {
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1.5rem;
    color: var(--accent-sage);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: gap 0.2s ease, color 0.2s ease;
}

.card-link span {
    transition: transform 0.2s ease;
}

.card-link:hover {
    color: #ffffff;
}

.card-link:hover span {
    transform: translateX(4px);
}

/* ==========================================
   5. FOOTER
   ========================================== */
.site-footer {
    text-align: center;
    padding: 4rem 5%;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
    background-color: var(--surface-color);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    text-align: left;
}

.footer-brand p {
    margin-top: 0.5rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.visitor-counter {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.counter-label {
    letter-spacing: 1px;
}

.visitor-counter img {
    height: 20px;
    border-radius: 4px;
}

/* Ensures the card frames the image perfectly */
.portfolio-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.portfolio-card .portfolio-img {
    width: 100%;
    height: 180px;
    object-fit: cover; /* Crops the image nicely to fit the 180px slot */
    display: block;
}