/* ========================================================================
   MURITHADOR DEV — MODERN TECH PORTFOLIO
   ======================================================================== */

:root {
    --accent: #B8FF2C;
    --accent-dark: #9FDD1B;
    --bg: #000000;
    --bg-secondary: #0a0a0a;
    --text: #FFFFFF;
    --text-muted: #888888;
    --border: #1a1a1a;
    --success: #10b981;
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'Fira Code', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    line-height: 1.6;
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ========================================================================
   NAVIGATION
   ======================================================================== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.8);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 1.5rem 0;
}

.nav-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: 0.05em;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 42px;
    height: 42px;
    background: transparent;
    border: 1px solid rgba(184, 255, 44, 0.2);
    border-radius: 8px;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 100%;
    height: 2px;
    background: var(--text);
    border-radius: 999px;
    display: block;
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

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

.nav-links a:hover:after {
    width: 100%;
}

/* ========================================================================
   HERO SECTION
   ======================================================================== */

.hero {
    padding-top: 150px;
    padding-bottom: 100px;
    position: relative;
}

.hero .container {
    max-width: 900px;
}

.hero-tag {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.12;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.hero-title .highlight {
    color: var(--accent);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 700px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.2rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(184, 255, 44, 0.05) 0%, transparent 100%);
    border: 1px solid rgba(184, 255, 44, 0.1);
    border-radius: 12px;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-value {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0 0 2rem;
}

.hero-badges span {
    display: inline-block;
    padding: 0.55rem 0.9rem;
    background: rgba(184, 255, 44, 0.06);
    border: 1px solid rgba(184, 255, 44, 0.14);
    border-radius: 999px;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--accent);
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* ========================================================================
   BUTTONS
   ======================================================================== */

.btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--bg);
    box-shadow: 0 8px 24px rgba(184, 255, 44, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(184, 255, 44, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.btn-secondary:hover {
    background: rgba(184, 255, 44, 0.1);
    transform: translateY(-2px);
}

.project-link {
    margin-top: 1.5rem;
    background: transparent;
    border: none;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.project-link:hover {
    transform: translateX(4px);
    color: #d5ff69;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    width: min(820px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    background: rgba(17, 17, 17, 0.96);
    border: 1px solid rgba(184, 255, 44, 0.2);
    border-radius: 16px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(184, 255, 44, 0.2);
    background: rgba(184, 255, 44, 0.06);
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 5;
}

.modal-close:hover {
    background: var(--accent);
    color: #000;
}

.modal-content {
    padding: 3rem 2rem 2rem;
}

.modal-header-tag {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.modal-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
}

.modal-section {
    margin-bottom: 1.75rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.modal-section-title {
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.modal-section p {
    color: var(--text-muted);
    line-height: 1.8;
}

.modal-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.modal-tech-tags span {
    border: 1px solid rgba(184, 255, 44, 0.2);
    background: rgba(184, 255, 44, 0.06);
    color: var(--accent);
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-family: var(--font-mono);
}

.modal-cta-box {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(184, 255, 44, 0.04);
    border: 1px solid rgba(184, 255, 44, 0.12);
    border-radius: 12px;
    text-align: center;
}

.modal-cta-box h4 {
    margin-bottom: 0.5rem;
}

.modal-cta-box p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* ========================================================================
   ABOUT SECTION
   ======================================================================== */

.about-section {
    padding: 100px 0 80px;
    border-top: 1px solid var(--border);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    align-items: stretch;
}

.about-copy {
    padding: 2rem 0;
}

.about-copy p {
    color: var(--text-muted);
    font-size: 1.08rem;
    line-height: 1.9;
    margin-bottom: 1.4rem;
}

.about-name {
    color: var(--accent);
    font-weight: 600;
}

.about-highlights {
    display: grid;
    gap: 1.25rem;
}

.about-card {
    background: rgba(184, 255, 44, 0.05);
    border: 1px solid rgba(184, 255, 44, 0.12);
    border-radius: 12px;
    padding: 1.5rem;
}

.about-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.about-card h3 {
    font-size: 1.2rem;
    line-height: 1.5;
}

/* ========================================================================
   STACK SECTION
   ======================================================================== */

.stack-section {
    padding: 100px 0;
    border-top: 1px solid var(--border);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

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

.stack-column h3 {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--accent);
    font-weight: 600;
}

.tech-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tech-list li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.tech-badge {
    font-family: var(--font-mono);
    display: inline-block;
    background: rgba(184, 255, 44, 0.1);
    color: var(--accent);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.tech-list li > span:last-child {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ========================================================================
   WORK SECTION
   ======================================================================== */

.work-section {
    padding: 100px 0;
    border-top: 1px solid var(--border);
}

.projects-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.project-card {
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(184, 255, 44, 0.05) 0%, transparent 100%);
    border: 1px solid rgba(184, 255, 44, 0.15);
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    animation: floatIn 0.7s ease both;
}

.project-card:hover {
    border-color: rgba(184, 255, 44, 0.3);
    box-shadow: 0 20px 40px rgba(184, 255, 44, 0.1);
    transform: translateY(-4px);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.project-header h3 {
    font-size: 1.75rem;
    font-weight: 700;
}

.project-year {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.project-description {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.project-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(184, 255, 44, 0.1);
    border-bottom: 1px solid rgba(184, 255, 44, 0.1);
}

.metric {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.metric-value {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.metric-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.project-tech span {
    background: rgba(184, 255, 44, 0.1);
    color: var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(184, 255, 44, 0.2);
}

/* ========================================================================
   EXPERIENCE SECTION
   ======================================================================== */

.experience-section {
    padding: 100px 0;
    border-top: 1px solid var(--border);
}

.experience-timeline {
    position: relative;
    max-width: 800px;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), transparent);
}

.timeline-item {
    position: relative;
    padding-left: 80px;
    margin-bottom: 3rem;
}

.timeline-marker {
    position: absolute;
    left: 0;
    top: 6px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg);
    border: 3px solid var(--accent);
}

.timeline-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.company {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 0.25rem;
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: block;
}

.timeline-achievements {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    color: var(--text-muted);
}

.timeline-achievements li {
    padding-left: 1.5rem;
    position: relative;
}

.timeline-achievements li:before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* ========================================================================
   WHY SECTION
   ======================================================================== */

.why-section {
    padding: 100px 0;
    border-top: 1px solid var(--border);
}

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

.why-card {
    padding: 2rem;
    background: rgba(184, 255, 44, 0.05);
    border: 1px solid rgba(184, 255, 44, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
    animation: revealUp 0.7s ease both;
}

.why-card:hover {
    border-color: var(--accent);
    box-shadow: 0 15px 35px rgba(184, 255, 44, 0.15);
    transform: translateY(-4px);
}

.why-card h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

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

/* ========================================================================
   CONTACT SECTION
   ======================================================================== */

.contact-section {
    padding: 100px 0;
    border-top: 1px solid var(--border);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: start;
}

.contact-copy {
    max-width: 560px;
}

.social-header {
    display: grid;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}

.social-header p {
    color: var(--text-muted);
    line-height: 1.7;
}

.contact-actions {
    display: grid;
    gap: 2rem;
    justify-items: end;
}

.social-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.8rem;
    max-width: 360px;
}

.social-pill {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(184, 255, 44, 0.05);
    border: 1px solid rgba(184, 255, 44, 0.18);
    color: var(--accent);
    text-decoration: none;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.social-pill:hover {
    transform: translateY(-2px);
    background: rgba(184, 255, 44, 0.09);
    border-color: rgba(184, 255, 44, 0.4);
    box-shadow: 0 14px 30px rgba(184, 255, 44, 0.1);
}

.social-pill svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.resume-pill {
    width: auto;
    min-width: 88px;
    padding: 0 1rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
}

.contact-form-wrapper {
    width: 100%;
    max-width: 500px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    background: rgba(184, 255, 44, 0.05);
    border: 1px solid rgba(184, 255, 44, 0.15);
    border-radius: 8px;
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(184, 255, 44, 0.1);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-muted);
}

/* ========================================================================
   FOOTER
   ======================================================================== */

.footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
}

.footer p {
    margin: 0.5rem 0;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.95rem;
}

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

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

/* ========================================================================
   RESPONSIVE
   ======================================================================== */

@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 12px);
        right: 0;
        left: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem 1.25rem;
        background: rgba(10, 10, 10, 0.98);
        border: 1px solid var(--border);
        border-radius: 10px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.2s ease;
    }

    .nav-links.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .hero {
        padding-top: 120px;
        padding-bottom: 60px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .stack-grid {
        grid-template-columns: 1fr;
    }

    .project-header {
        flex-direction: column;
    }

    .project-metrics {
        grid-template-columns: 1fr;
    }

    .experience-timeline::before {
        left: 10px;
    }

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

    .timeline-marker {
        width: 24px;
        height: 24px;
        left: -2px;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-actions {
        justify-items: stretch;
    }

    .social-row {
        justify-content: flex-start;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .nav-wrapper {
        padding: 0 1rem;
    }

    .hero {
        padding-top: 100px;
        padding-bottom: 40px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .project-card {
        padding: 1.5rem;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .social-row {
        gap: 0.6rem;
    }

    .social-pill {
        width: 46px;
        height: 46px;
    }

    .resume-pill {
        min-width: 82px;
        padding: 0 0.85rem;
    }
}
