:root {
    --bg-primary: #0a0a0b;
    --bg-secondary: #111113;
    --bg-card: #161618;
    --text-primary: #f5f5f7;
    --text-secondary: #8e8e93;
    --text-muted: #636366;
    --accent-primary: #00d4aa;
    --accent-secondary: #7c3aed;
    --accent-gradient: linear-gradient(135deg, #00d4aa 0%, #7c3aed 100%);
    --border-subtle: rgba(255, 255, 255, 0.06);
    --glow-primary: rgba(0, 212, 170, 0.15);
    --glow-secondary: rgba(124, 58, 237, 0.15);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Space Mono', monospace;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

::selection {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

/* Noise texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 1;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.5rem 0;
    background: rgba(10, 10, 11, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}

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

.logo {
    font-family: 'Space Mono', monospace;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 0.2em;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-link {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Social Sidebar */
.social-sidebar {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 50;
}

.social-link {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-decoration: none;
    letter-spacing: 0.2em;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--accent-primary);
}

/* Scroll Indicator */
.scroll-indicator {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    z-index: 50;
}

.scroll-text {
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.2em;
    writing-mode: vertical-rl;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--accent-primary), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.8); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    padding-top: 4rem;
}

.hero-label {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.label-line {
    width: 60px;
    height: 1px;
    background: var(--accent-primary);
}

.label-text {
    font-size: 0.75rem;
    color: var(--accent-primary);
    letter-spacing: 0.3em;
    font-weight: 400;
}

.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.title-line {
    display: block;
}

.title-line.accent {
    font-style: italic;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin-top: 2rem;
}

.hero-decoration {
    position: absolute;
    right: 10%;
    bottom: 10%;
    opacity: 0.1;
}

.decoration-circle {
    border: 1px solid var(--text-primary);
    border-radius: 50%;
    position: absolute;
}

.decoration-circle:nth-child(1) {
    width: 300px;
    height: 300px;
    right: 0;
    bottom: 0;
}

.decoration-circle:nth-child(2) {
    width: 400px;
    height: 400px;
    right: -50px;
    bottom: -50px;
}

.decoration-circle:nth-child(3) {
    width: 500px;
    height: 500px;
    right: -100px;
    bottom: -100px;
}

/* Section Styles */
.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 8rem 4rem;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

/* About Section */
.about {
    background: var(--bg-secondary);
}

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

.about-image {
    position: relative;
}

.image-placeholder {
    aspect-ratio: 3/4;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.about-content {
    padding-top: 2rem;
}

.about-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.9;
}

.about-cta {
    display: flex;
    gap: 1.5rem;
    margin-top: 3rem;
}

.btn {
    padding: 1rem 2.5rem;
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
}

.btn-primary:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

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

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

.btn-large {
    padding: 1.25rem 3rem;
    font-size: 0.85rem;
}

/* Expertise Section */
.expertise {
    background: var(--bg-primary);
}

.expertise-list {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 400;
    font-style: italic;
    line-height: 1.4;
    color: var(--text-primary);
}

.expertise-item {
    display: inline;
}

.expertise-item:not(:last-child)::after {
    content: ', ';
    color: var(--text-muted);
}

.expertise-item:last-child {
    color: var(--text-muted);
}

/* Projects Section */
.projects {
    background: var(--bg-secondary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 3rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.project-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-number {
    font-size: 0.75rem;
    color: var(--accent-primary);
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
}

.project-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.75rem;
    font-weight: 500;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.project-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

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

.project-tech span {
    font-size: 0.7rem;
    color: var(--text-muted);
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--border-subtle);
    letter-spacing: 0.1em;
}

.project-link {
    font-size: 0.8rem;
    color: var(--accent-primary);
    text-decoration: none;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: var(--text-primary);
}

/* Experience Section */
.experience {
    background: var(--bg-primary);
}

.experience-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
}

.experience-item {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 3rem;
}

.experience-marker {
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
}

.experience-company {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.experience-role {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.experience-date {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
}

.experience-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Contact Section */
.contact {
    background: var(--bg-secondary);
}

.contact-content {
    max-width: 700px;
}

.contact-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.contact-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-email {
    font-family: 'Space Mono', monospace;
    font-size: 1.25rem;
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-email:hover {
    color: var(--text-primary);
}

.contact-cta {
    margin-top: 3rem;
}

/* Footer */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-subtle);
    padding: 2rem 0;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-text {
    font-size: 0.75rem;
    color: var(--text-muted);
}

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

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

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

/* Responsive */
@media (max-width: 1024px) {
    .nav-container,
    .section-container,
    .footer-container {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .hero {
        padding: 0 2rem;
    }

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

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

    .experience-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .social-sidebar {
        display: none;
    }
}

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

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

    .scroll-indicator {
        display: none;
    }

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

    .btn {
        text-align: center;
    }
}

/* Profile Image */
.profile-image {
    width: 100%;
    height: auto;
    aspect-ratio: 3/4;
    object-fit: cover;
    object-position: top;
    border: 1px solid var(--border-subtle);
    filter: grayscale(10%);
    transition: filter 0.4s ease;
}

.profile-image:hover {
    filter: grayscale(0%);
}

/* Multiple Project Links */
.project-links-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.project-links-group .project-link {
    position: relative;
}

.project-links-group .project-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-primary);
    transition: width 0.3s ease;
}

.project-links-group .project-link:hover::before {
    width: 100%;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger-line {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        padding: 2rem;
        border-left: 1px solid var(--border-subtle);
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-link {
        font-size: 1rem;
    }

    /* Overlay when menu is open */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .nav-overlay.active {
        display: block;
    }
}


@media (max-width: 768px) {
    .nav-links.active {
        display: flex !important;
        pointer-events: auto !important;
    }
    
    .nav-links.active li {
        pointer-events: auto !important;
    }
    
    .nav-links.active .nav-link {
        pointer-events: auto !important;
        cursor: pointer !important;
        padding: 15px 20px;
        display: block;
        width: 100%;
        text-align: center;
    }
}


@media (max-width: 768px) {
    .nav-links.active {
        display: flex !important;
    }
    
    .nav-links.active li {
        display: block;
        width: 100%;
        text-align: center;
    }
    
    .nav-links.active a {
        display: block;
        padding: 20px;
        width: 100%;
        -webkit-tap-highlight-color: rgba(0, 212, 170, 0.3);
    }
}


@media (max-width: 768px) {
    .nav-overlay {
        z-index: 999 !important;
    }
    
    .nav-links {
        z-index: 1001 !important;
    }
    
    .nav-links.active li {
        z-index: 1002 !important;
        position: relative;
    }
    
    .nav-links.active li a {
        z-index: 1003 !important;
        position: relative;
        display: block;
        padding: 25px 30px;
        color: #f5f5f7;
        text-decoration: none;
    }
    
    .hamburger {
        z-index: 1002 !important;
    }
}

/* ========== MOBILE MENU - FINAL FIX ========== */
@media (max-width: 768px) {
    /* Hamburger Button */
    .hamburger {
        display: flex;
        position: relative;
        z-index: 9999;
    }

    /* Navigation Menu */
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: #111113;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0;
        padding: 0;
        border-left: 1px solid rgba(255, 255, 255, 0.06);
        z-index: 9998;
        list-style: none;
    }

    /* Menu Open State */
    .nav-links.active {
        display: flex !important;
    }

    /* List Items */
    .nav-links li {
        width: 100%;
        text-align: center;
        margin: 0;
        padding: 0;
    }

    /* THE ACTUAL CLICKABLE LINKS */
    .nav-links li a.nav-link {
        display: block;
        width: 100%;
        padding: 20px 30px;
        font-size: 1rem;
        color: #8e8e93;
        text-decoration: none;
        letter-spacing: 0.15em;
        text-transform: uppercase;
        -webkit-tap-highlight-color: rgba(0, 212, 170, 0.5);
        cursor: pointer;
    }

    .nav-links li a.nav-link:active {
        background: rgba(0, 212, 170, 0.2);
        color: #00d4aa;
    }

    /* Overlay - MUST be behind the menu */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        z-index: 9997;
    }

    .nav-overlay.active {
        display: block;
    }
}

/* ========== MOJISOLA STYLE MOBILE MENU ========== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
        position: relative;
        z-index: 1001;
    }

    .nav-links {
        display: none;
    }

    .nav-links.active {
        display: block;
        position: fixed;
        top: 70px;
        left: 0;
        width: 65%;
        background: #0a0a0b;
        padding: 30px 25px;
        z-index: 1000;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        border-right: 1px solid rgba(255,255,255,0.1);
    }

    .nav-links.active li {
        display: block;
        margin: 0;
        padding: 0;
    }

    .nav-links.active li a {
        display: block;
        padding: 12px 0;
        font-family: 'Cormorant Garamond', Georgia, serif;
        font-size: 1.4rem;
        font-weight: 400;
        font-style: italic;
        color: #8e8e93;
        text-decoration: none;
        text-transform: capitalize;
        letter-spacing: 0;
        transition: color 0.3s ease;
    }

    .nav-links.active li a.active,
    .nav-links.active li a:active {
        color: #d4a574;
    }

    /* Make nav position relative for dropdown */
    nav {
        position: fixed;
    }

    .nav-container {
        position: relative;
        padding: 0 1.5rem;
    }
}
