﻿/* *, *::before, *::after {
    box-sizing: border-box;
} */
:root {
    --bg-color: #ffffff;
    --text-primary: #000000;
    --text-secondary: #4b5563;
    --accent: #6366f1;
    --border-width: 2px;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

.container {
    max-width: 1000px;
    margin: -20px auto 0;
    padding: 0 20px;
}


.navbar {
    position: sticky;
    top: 0;
    background: #fff;
    padding: 20px 0;
    border-bottom: var(--border-width) solid #000;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: #000;
    font-family: 'Fira Code', monospace;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
    margin: 0;
    padding: 0;
}

    .nav-links a {
        text-decoration: none;
        color: #000;
        font-weight: 600;
        font-size: 0.9rem;
        transition: color 0.2s;
    }

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

.nav-btn {
    border: var(--border-width) solid #000;
    padding: 8px 20px;
    transition: all 0.2s;
}

    .nav-btn:hover {
        background: #000;
        color: #fff !important;
    }

.menu-toggle {
    display: none;
    background: #fff;
    border: var(--border-width) solid #000;
    padding: 5px 12px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s ease;
}

    .menu-toggle:hover {
        background: var(--accent);
        color: #fff;
        box-shadow: 3px 3px 0px #000;
        transform: translate(-2px, -2px);
    }


@media (max-width: 850px) {
    .menu-toggle {
        display: block; 
    }

    .nav-links {
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 100%; 
        left: 0;
        width: 100%;
        background: #fff;
        padding: 30px 0;
        border-bottom: var(--border-width) solid #000;
        gap: 25px;
        z-index: 1000;
    }

        
        .nav-links.active {
            display: flex;
            animation: slideDown 0.3s ease-out;
        }

        .nav-links li {
            width: 100%;
            text-align: center;
        }

    .nav-btn {
        display: inline-block;
        width: 70%;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero {
    display: flex;
    align-items: center;
    padding: 40px 0 80px 0;
    gap: 50px;
}

.hero-content {
    flex: 1;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 10px;
}

    .hero h1 span {
        color: var(--text-secondary);
        -webkit-text-stroke: 1px #000;
        -webkit-text-fill-color: transparent;
    }

.hero h2 {
    font-size: 1.8rem;
    color: #000;
    margin-bottom: 20px;
}

.terminal-window {
    border: var(--border-width) solid #000;
    border-radius: 12px;
    background: #fff;
    margin: 25px 0;
    box-shadow: 6px 6px 0px #000;
    overflow: hidden;
}

.terminal-header {
    background: #f1f1f1;
    padding: 10px 15px;
    border-bottom: var(--border-width) solid #000;
    display: flex;
    gap: 8px;
    align-items: center;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid #000;
}

.red {
    background: #ff5f56;
}

.yellow {
    background: #ffbd2e;
}

.green {
    background: #27c93f;
}

.terminal-title {
    font-size: 0.7rem;
    font-family: monospace;
    margin-left: auto;
    opacity: 0.5;
}

.terminal-body {
    padding: 20px;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.9rem;
    color: #333;
}

.prompt {
    color: var(--accent);
    font-weight: bold;
}

.cursor {
    animation: blink 1s infinite;
    font-weight: bold;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.hero-illustration img {
    width: 400px;
}

#contact {
    padding-top: 0px;
    margin-top: -20px;
}

#skills {
    padding-top: 0;
}


.section {
    padding: 50px 0;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 40px;
    text-align: center;
}

    .section-title span {
        font-weight: 400;
        font-style: italic;
        text-decoration: underline var(--accent);
    }

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
}

.skill-box {
    border: var(--border-width) solid #000;
    padding: 30px;
    text-align: center;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #fff;
}

    .skill-box:hover {
        background: #000;
        color: #fff;
        transform: translate(-4px, -4px);
        box-shadow: 4px 4px 0px #000;
    }

    .skill-box i {
        font-size: 2.5rem;
    }

.project-card {
    border: var(--border-width) solid #000;
    margin-bottom: 40px;
    background: #fff;
    transition: box-shadow 0.3s;
}

    .project-card:hover {
        box-shadow: 8px 8px 0px #f3f4f6;
    }

.project-info {
    padding: 40px;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.status-tag {
    font-size: 0.7rem;
    padding: 2px 8px;
    border: 1px solid #000;
    font-weight: bold;
    text-transform: uppercase;
}

.code-snippet {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 15px;
    border-radius: 6px;
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    margin-top: 20px;
    overflow-x: auto;
    max-width: 100%;
    box-sizing: border-box;
}

.code-snippet pre {
    margin: 0;
    white-space: pre-wrap; 
    word-break: break-word;
}
.k {
    color: #d946ef;
}

.v {
    color: #2563eb;
}

.s {
    color: #16a34a;
}


.view-btn {
    display: inline-block;
    margin-top: 15px;
    font-weight: 800;
    color: #000;
    text-decoration: none;
    border-bottom: 2px solid #000;
    transition: padding-left 0.2s;
}

    .view-btn:hover {
        padding-left: 10px;
        color: var(--accent);
        border-color: var(--accent);
    }

footer {
    padding: 20px 0;
    border-top: var(--border-width) solid #000;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
}

@media (max-width: 850px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 40px 0;
    }

        .hero h1 {
            font-size: 2.8rem;
        }

    .hero-illustration img {
        width: 100%;
        max-width: 350px;
    }

    .nav-links {
        display: none;
    }

    .project-info {
        padding: 25px;
    }
}

.contact-text {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px;
    color: var(--text-secondary);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.contact-card {
    border: var(--border-width) solid #000;
    padding: 30px;
    text-align: center;
    text-decoration: none;
    color: #000;
    background: #fff;
    transition: all 0.2s ease;
}

    .contact-card:hover {
        background: #000;
        color: #fff;
        transform: translate(-4px, -4px);
        box-shadow: 4px 4px 0px #000;
    }

    .contact-card i {
        font-size: 2rem;
        margin-bottom: 15px;
        display: block;
    }

    .contact-card span {
        font-weight: 800;
        display: block;
        margin-bottom: 5px;
        text-transform: uppercase;
        font-size: 0.8rem;
    }

    .contact-card p {
        font-size: 0.9rem;
        opacity: 0.8;
    }

.code-name {
    font-family: 'Fira Code', 'Courier New', monospace;
    font-weight: 800;
    color: var(--accent);
    background: #f3f4f6;
    padding: 0 15px;
    border-radius: 8px;
    border: 1px solid #000;
    display: inline-block;
    -webkit-text-stroke: 0px !important;
    -webkit-text-fill-color: var(--accent) !important;
}

.code-name-outline {
    font-family: 'Fira Code', monospace;
    color: var(--text-secondary);
    -webkit-text-stroke: 1px #000;
    -webkit-text-fill-color: transparent;
}


/* ==========================================================================
   CAREER SCROLLABLE TIMELINE (For Experiences Page)
   ========================================================================== */

.timeline {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 20px 0;
}

.timeline-rail {
    position: absolute;
    left: 140px;
    top: 30px;
    bottom: 160px;
    width: 2px;
    background: #000;
}

.timeline-block {
    position: relative;
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 50px;
    margin-bottom: 140px;
}

.timeline-marker {
    position: relative;
    text-align: right;
    padding-right: 40px;
}

    .timeline-marker::after {
        content: '';
        position: absolute;
        right: -9px;
        top: 12px;
        width: 14px;
        height: 14px;
        background: var(--accent);
        border: 2px solid #000;
        border-radius: 50%;
        z-index: 2;
    }

.year {
    font-size: 2.4rem;
    font-weight: 800;
    opacity: 0.25;
    line-height: 1;
}

.timeline-card {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s ease;
}

    .timeline-card.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

.exp-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .exp-list li {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 8px;
    }

.filename {
    margin-left: 15px;
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    opacity: 0.6;
}

/* ==========================================================================
   PROJECTS BENTO GRID
   ========================================================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 80px;
}

.project-card {
    border: var(--border-width) solid #000;
    background: #fff;
    display: flex;
    flex-direction: column;
    box-shadow: 6px 6px 0px #000;
    transition: all 0.3s ease;
}

    .project-card.large {
        grid-column: span 2;
    }

    .project-card.tall {
        grid-row: span 2;
    }

    .project-card:hover {
        transform: translate(-4px, -4px);
        box-shadow: 10px 10px 0px var(--accent);
    }

.window-bar {
    background: #f1f1f1;
    border-bottom: var(--border-width) solid #000;
    padding: 10px 15px;
    display: flex;
    align-items: center;
}

.dots {
    display: flex;
    gap: 6px;
}

    .dots span {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        border: 1px solid #000;
    }

.file-name {
    margin-left: auto;
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    opacity: 0.6;
}

.window-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

    .window-body h3 {
        margin: 0 0 10px 0;
        font-size: 1.4rem;
    }

.code-snippet {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 15px;
    border-radius: 6px;
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    margin-top: 20px;
    overflow-x: auto;
}

@media (max-width: 900px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 30px; 
        margin-top: 20px;
    }

    .project-card.large, .project-card.tall {
        grid-column: auto;
        grid-row: auto;
    }

    .window-body {
        padding: 20px 15px;
    }

        .window-body h3 {
            font-size: 1.2rem;
        }

   
    .code-snippet {
        font-size: 0.75rem;
        padding: 10px;
        margin-top: 15px;
    }

    
    .section-header {
        margin-top: 30px !important;
        margin-bottom: 30px !important;
        padding: 0 10px;
    }

        .section-header h1 {
            font-size: 2.2rem;
        }
}

@media (max-width: 480px) {
    .terminal-btn {
        font-size: 0.7rem; 
        padding: 8px 12px;
        display: flex;
        flex-wrap: wrap; 
    }
}

.terminal-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 10px 18px;
    background: #000;
    color: #fff;
    text-decoration: none;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    border: 2px solid #000;
    transition: all 0.2s ease;
}

    .terminal-btn .prompt {
        color: var(--accent);
    }

    .terminal-btn .repo-name {
        text-decoration: underline;
    }

    .terminal-btn:hover {
        background: #fff;
        color: #000;
        box-shadow: 4px 4px 0px var(--accent);
        transform: translate(-2px, -2px);
    }

.review-window {
    max-width: 800px;
    margin: 40px auto;
}

.testimonial-slider.min-view {
    padding: 60px 40px;
    min-height: 120px;
    display: flex;
    align-items: center;
    background: #fff;
}

.review-slide {
    display: none;
    width: 100%;
    animation: fadeIn 0.4s cubic-bezier(0.39, 0.575, 0.565, 1);
}

    .review-slide.active {
        display: block;
    }

.review-meta.no-desc {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: none;
    padding-bottom: 0;
}

.reviewer-info {
    font-family: 'Fira Code', monospace;
    font-size: 1rem;
}

.pdf-download-btn {
    background: #f3f4f6;
    border: 1px solid #000;
    color: #000;
    padding: 8px 16px;
    text-decoration: none;
    font-size: 0.75rem;
    font-family: 'Fira Code', monospace;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

    .pdf-download-btn:hover {
        background: #000;
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 4px 4px 0px var(--accent);
    }

.terminal-footer {
    background: #f1f1f1;
    border-top: var(--border-width) solid #000;
    padding: 12px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

/* ==========================================================================
   MOBILE EXPERIENCE ADJUSTMENTS (Max-width: 850px)
   ========================================================================== */
@media (max-width: 850px) {
    /* 1. Reset the Timeline Layout */
    .timeline {
        padding: 40px 15px;
    }

    .timeline-rail {
        left: 20px;
        top: 20px;
        bottom: 20px;
    }

    .timeline-block {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 80px;
        padding-left: 40px;
    }

   
    .timeline-marker {
        text-align: left;
        padding-right: 0;
    }

        .timeline-marker::after {
            left: -27px;
            right: auto;
            top: 8px;
        }

    .year {
        font-size: 1.8rem;
        opacity: 0.5;
    }

    
    .exp-bento-card {
        flex-direction: column;
        padding: 20px !important;
        gap: 20px;
    }

    .exp-preview-window {
        width: fit-content;
        margin: 20px 0;
        max-width: 100%;
        border: var(--border-width) solid #000;
        overflow: hidden;
    }

    
    .preview-grid {
        flex-direction: column !important;
    }

        .preview-grid img {
        width: 100% !important;
        max-width: 100% !important;
        border-right: none !important; 
        border-bottom: 2px solid #000 !important;
    }

    .preview-grid img:last-child {
        border-bottom: none !important;
    }

    .exp-body h3 {
        font-size: 1.2rem;
    }

   
    .exp-footer {
        gap: 5px;
    }

        .exp-footer span {
            font-size: 0.6rem;
        }
}

.project-link-btn {
    display: flex; 
    align-items: center;
    justify-content: center; 
    gap: 10px;
    margin-top: auto; 
    padding: 10px 16px;
    background: #fff;
    color: #000;
    text-decoration: none;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    font-weight: 800;
    border: 2px solid #000;
    border-radius: 4px;
    transition: all 0.2s ease;
    width: 100%; 
    box-sizing: border-box;
}

.project-link-btn i {
    font-size: 1.1rem;
    transition: color 0.2s ease;
}

.project-link-btn:hover {
    background: #000;
    color: black;
    transform: translate(-4px, -4px);
    box-shadow: 4px 4px 0px var(--accent);
}

.project-link-btn:hover i {
    color: black !important; 
}

/* ==========================================================================
   HOBBY WIDGETS (For me.html)
   ========================================================================== */
.hobby-stack {
    display: flex;
    flex-direction: column;
    gap: 15px;
}


.hobby-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #ffffff;
    border: var(--border-width) solid #000;
    padding: 12px 15px;
    border-radius: 8px;
    box-shadow: 5px 5px 0px #000;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: default;
}

  
    .hobby-card:hover {
        transform: translate(3px, 3px);
        box-shadow: 2px 2px 0px #000;
        background-color: #f9fafb;
    }

.card-icon {
    width: 45px;
    height: 45px;
    background: #000;
    color: var(--accent);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 6px;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.card-content h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
}

.card-content .tag {
    display: block;
    margin-top: 4px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    width: fit-content;
    border: 1px solid #e2e8f0;
}

.expandable-img {
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

    .expandable-img:hover {
        transform: scale(1.02);
    }

.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1000px;
    border: 3px solid #fff;
    box-shadow: 0px 0px 20px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s;
}

@keyframes zoomIn {
    from {
        transform: scale(0.7);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

@media (max-width: 700px) {
    .lightbox-content {
        width: 95%;
    }
}

.hobby-link {
    text-decoration: none;
    color: inherit;
    display: block; 
}

.hobby-link h4 {
    color: #000;
    transition: color 0.2s ease; 
}

.hobby-link:hover .hobby-card {
    border-color: var(--accent);
    background-color: #f5f3ff; 
}

.hobby-link:hover h4 {
    color: var(--accent); 
}

/* ==========================================================================
   PROJECTS TIMELINE (FINAL FIX)
   ========================================================================== */
.timeline-container {
    position: relative;
    max-width: 750px;
    margin: 50px auto 100px auto;
    padding: 0 20px;
}

.timeline-line {
    position: absolute;
    left: 28px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #000;
}

.timeline-item {
    position: relative;
    margin-bottom: 70px;
    padding-left: 70px;
    width: 100%;
    box-sizing: border-box;
}

.timeline-dot {
    position: absolute;
    left: 21px;
    top: 6px;
    width: 16px;
    height: 16px;
    background: var(--accent);
    border: 2px solid #000;
    border-radius: 50%;
    z-index: 2;
}

.timeline-date {
    display: inline-block;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    font-weight: 800;
    color: #000;
    background: #f3f4f6;
    border: 2px solid #000;
    padding: 6px 15px;
    border-radius: 20px;
    margin-bottom: 20px;
    box-shadow: 2px 2px 0px var(--accent);
}

.timeline-item .project-card {
    width: 100%;
    max-width: 100%; 
    display: block;
    margin-bottom: 0;
    box-sizing: border-box;
}

.timeline-item .window-body {
    display: block;
}

.window-body .status-tag {
    display: inline-block;
    width: fit-content;
    margin-bottom: 12px;
}

.timeline-item .terminal-btn {
    width: fit-content;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .timeline-line {
        left: 20px;
    }

    .timeline-dot {
        left: 13px;
    }

    .timeline-item {
        padding-left: 50px;
    }

    .timeline-date {
        font-size: 0.75rem;
    }
}


/* ==========================================================================
   PROJECT DETAIL PAGES (MEDIA EMBEDS)
   ========================================================================== */
.video-container {
    position: relative;
    padding-bottom: 56.25%; 
    height: 0;
    overflow: hidden;
    background: #000;
}

    .video-container iframe,
    .video-container video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: none;
    }

@media (max-width: 800px) {
    
    header[style*="display: flex"] {
        flex-wrap: nowrap !important;
        align-items: flex-start !important; 
        gap: 15px !important;
    }

    header[style*="display: flex"] a {
        white-space: nowrap !important; 
        padding: 8px 12px !important;
        font-size: 0.75rem !important;
        margin-top: 5px !important; 
    }

    header h1[style*="font-size: 3rem"] {
        font-size: 1.8rem !important;
    }
    
    header p[style*="font-size: 1.2rem"] {
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
    }

    div[style*="grid-template-columns: 2fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .img-slide > div, .img-slide img {
        height: auto !important;
        min-height: 200px;
    }
    
    .project-details + div > .project-card {
        padding: 20px !important;
    }
}
/* ==========================================================================
   INTEGRATED MOTTO WINDOW (SMALLER VERSION)
   ========================================================================== */
.motto-window {
    margin: 30px auto 50px;
    max-width: 650px;
    background: #fff;
    border: var(--border-width) solid #000;
    box-shadow: 8px 8px 0px var(--accent);
}

.motto-body {
    padding: 20px 20px 30px;
    text-align: center;
}

.command-line {
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    opacity: 0.7;
}

.motto-display {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
    margin: 0 0 15px 0;
    font-style: italic;
    color: #000;
    line-height: 1;
}

    .motto-display span {
        color: var(--accent);
        -webkit-text-stroke: 1.5px #000;
        -webkit-text-fill-color: transparent;
    }

.motto-credit {
    font-family: 'Fira Code', monospace;
    font-size: 0.7rem;
    color: var(--text-secondary);
    opacity: 0.5;
    margin: 0;
}

/* ==========================================================================
   ABOUT ME GRID 
   ========================================================================== */
.about-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ==========================================================================
   ACHIEVEMENTS PAGE (achievements.html) - 2 COLUMN LAYOUT
   ========================================================================== */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Changed to 2 equal columns */
    gap: 30px;
}

/* Makes the locked banner take up both columns */
.achievement-card.wide {
    grid-column: span 2;
}

/* Mobile View: Force all cards to stack in 1 single column */
@media (max-width: 900px) {
    .achievements-grid {
        grid-template-columns: 1fr;
    }
    .achievement-card.wide {
        grid-column: auto;
    }
}


/* ==========================================================================
   NAVBAR DROPDOWN MENU
   ========================================================================== */
.dropdown {
    position: relative;
    display: inline-block;
}
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 250px;
    border: 2px solid #000;
    box-shadow: 4px 4px 0px #000;
    z-index: 200;
    top: 100%;
    left: 0;
    margin-top: 0; 
    border-radius: 4px;
}

.dropdown-content::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 20px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-top: 2px solid #000;
    border-left: 2px solid #000;
    transform: rotate(45deg);
}

.dropdown-content a {
    color: #000 !important;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    border-bottom: 1px solid #f1f1f1;
    transition: all 0.2s ease;
}

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

.dropdown-content a:hover {
    background-color: #f8fafc;
    color: var(--accent) !important;
    padding-left: 25px;
}

.dropdown:hover .dropdown-content {
    display: block;
}

@media (max-width: 850px) {
    .dropdown-content {
        position: static;
        display: none; 
        box-shadow: none;
        border: none; 
        margin: 10px auto; 
        width: 100%;
        background: transparent;
    }
    .dropdown-content::before {
        display: none; 
    }
    .dropdown-content a {
        padding: 10px 15px;
        text-align: center; 
        border-bottom: none; 
    }
    .dropdown-content a:hover {
        padding-left: 15px; 
        background-color: transparent;
    }
    div[style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: 1fr !important; 
    }

    div[style*="grid-template-columns: repeat(3, 1fr)"] > div {
        height: 250px !important; 
    }
}

/* ==========================================================================
   ECHO SYNC DUAL-PITCH GRID (Responsive)
   ========================================================================== */
.dual-pitch-grid {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 15px;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

@media (max-width: 650px) {
    /* On mobile, stack the columns into a single column */
    .dual-pitch-grid {
        grid-template-columns: 1fr; 
        gap: 5px;
    }
    
    /* Adds a little breathing room between the two proposals on mobile */
    .dual-pitch-grid .pitch-title {
        margin-top: 15px;
    }
}