/* CSS Variables & Reset */
:root {
    --color-bg: #ffffff;
    /* White background */
    --color-surface: #f5f5f5;
    --color-text: #0a0a0a;
    /* Black text */
    --color-text-muted: #0a0a0a;
    /* Changed to black as requested */
    /* Dark gray for muted text */
    /* Pure White as requested */
    --color-accent: #000000;

    --font-main: 'Times New Roman', serif;

    --transition: all 0.2s ease;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-main);
    line-height: 1.5;
    /* Compact line height */
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
    /* Bold headers */
    line-height: 1.2;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 1.25rem;
    font-weight: 400;
    /* Unbolded as requested */
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

h3 {
    font-size: 1.25rem;
}

.text-gradient {
    color: var(--color-text);
    /* Removed gradient for monochrome */
}

/* Utilities */
.container {
    width: 90%;
    max-width: 1000px;
    /* Reduced max-width for compact feel */
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 10px 0;
    /* Reduced from 30px to bring sections closer */
}

.section-title {
    margin-bottom: 30px;
    position: relative;
    display: block;
    /* Full width to make line long */
    padding-bottom: 12px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    /* Long (matches text) */
    height: 3px;
    background-color: var(--color-text);
}

.text-center {
    text-align: center;
}

.page-title {
    margin-top: 40px;
    margin-bottom: 40px;
    color: var(--color-text);
    /* Changed to black */
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Buttons (Instant, Flat) */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    cursor: pointer;
    font-size: 0.95rem;
    transition: var(--transition);
}

.btn-primary {
    background: var(--color-text);
    color: var(--color-bg);
    border: 1px solid var(--color-text);
}

.btn-primary:hover {
    background: transparent;
    color: var(--color-text);
}

.btn-outline {
    background: transparent;
    color: var(--color-text-muted);
    border: 1px solid var(--color-surface);
    margin-left: 10px;
}

.btn-outline:hover {
    border-color: var(--color-text);
    color: var(--color-text);
}

/* Header (Compact) */
/* Header (Dark Mode) */
.header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 32px 0;
    background: #000000;
    /* Always Black */
    border-bottom: 1px solid #222;
}

.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.nav-container .logo {
    position: absolute;
    left: 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    /* White logo */
}

.accent {
    color: #ffffff;
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-size: 1.1rem;
    color: #ffffff;
    /* White for all links */
    font-weight: 700;
    /* Bold */
    position: relative;
}

.nav-link.active {
    color: #ffffff;
    /* White for active */
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #ffffff;
}

.nav-link:hover {
    color: #ffffff;
    /* White on hover */
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    /* White toggle */
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
/* Hero Section (Split Layout) */
.hero {
    min-height: auto;
    padding: 180px 0 60px;
}

.hero-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 120px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.eyebrow {
    color: var(--color-text);
    font-size: 2rem;
    /* Reduced as requested */
    font-weight: 700;
    text-transform: none;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    display: block;
    line-height: 1.1;
    position: relative;
    padding-bottom: 15px;
}

.eyebrow::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    /* Same fixed length */
    height: 3px;
    background-color: var(--color-text);
}

.hero-description {
    font-size: 0.95rem;
    /* Reduced from 1.1rem */
    color: #000000;
    line-height: 1.7;
    margin: 24px 0 32px;
    max-width: 100%;
    text-align: left;
}

.hero-description p {
    margin-bottom: 20px;
    /* Add spacing between paragraphs */
}

.image-wrapper {
    margin: 0;
    width: 100%;
    aspect-ratio: 1 / 1.15;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #1a1a1a;
    border: none;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* About & Future Sections */
/* About & Future Sections */
/* About & Future Sections */
.about-container {
    max-width: 1100px;
    margin: 0 auto;
    text-align: left;
    padding-left: 440px;
    /* Align with hero text (20px pad + 300px img + 120px gap = 440px) */
}

.about-content p {
    color: #000000;
    margin-bottom: 1rem;
    font-size: 1rem;
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
}

.about-list {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
    color: #000000;
}

.about-list li {
    margin-bottom: 0.5rem;
}

/* Stats (Compact) */
/* Stats */
.stats-grid {
    display: flex;
    justify-content: flex-start;
    gap: 48px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid #e4e4e7;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Lists & Cards (Projects, Skills, Education) */
.portfolio-grid,
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.project-card,
.skill-card,
.education-card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.project-card:hover,
.skill-card:hover,
.education-card:hover {
    background: #eaeaea;
    /* Light gray hover */
    border-color: #ccc;
    transform: none;
    /* No float, just color change */
}

/* Projects Specific */
.project-content h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.project-content p {
    font-size: 0.9rem;
    color: var(--color-text);
    /* Changed to black */
    margin-bottom: 16px;
}

.project-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.project-tags li {
    font-size: 0.75rem;
    background: #eee;
    /* Light gray tag bg */
    padding: 4px 10px;
    border-radius: 4px;
    color: #333;
    /* Dark text */
}

.project-link {
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Skills Specific */
.skill-icon {
    font-size: 2rem;
    color: var(--color-text);
    margin-bottom: 16px;
}

/* Education Specific */
.education-card {
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: 100%;
}

.edu-logo {
    width: 60px;
    flex-shrink: 0;
}

.edu-content h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: #000000;
}

.edu-location,
.edu-degree,
.edu-year {
    font-size: 0.9rem;
    color: #000000;
}

/* Contact */
.contact-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.contact-content {
    max-width: 100%;
}

.contact-options {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.contact-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--color-surface);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    font-size: 0.95rem;
    transition: var(--transition);
}

.contact-option:hover {
    background: #222;
}

/* Footer */
.footer {
    padding: 40px 0;
    border-top: 1px solid #eee;
    /* Light border */
    color: #0a0a0a;
    /* Changed to black */
    font-size: 0.85rem;
    text-align: center;
}

/* Banner Styles */
.banner {
    background: #ffffff;
    color: #000000;
    padding: 20px 0;
    text-align: center;
    border-bottom: 1px solid #e5e5e5;
    position: fixed;
    top: 73px;
    /* Positioned below header */
    left: 0;
    right: 0;
    width: 100%;
    z-index: 999;
    opacity: 0;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.banner.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.banner.hidden {
    opacity: 0;
    transform: translateY(-100%);
    pointer-events: none;
}


.banner-text {
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    margin: 0;
}


/* Responsive */
@media (max-width: 768px) {
    .header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background: #000000;
        /* Keep black on mobile */
        z-index: 1000;
        padding: 15px 0;
        border-bottom: 1px solid #222;
    }

    /* Adjust Navigation for Mobile */
    .nav-list {
        display: none;
        /* Hide for now, mobile toggle logic in JS remains */
        position: fixed;
        top: 60px;
        /* Matches header height approx */
        left: 0;
        width: 100%;
        background: #000000;
        /* Black mobile menu */
        flex-direction: column;
        padding: 30px 20px;
        border-bottom: 1px solid #222;
        gap: 24px;
        height: auto;
    }

    .nav-list.active {
        display: flex;
    }

    .mobile-toggle {
        display: block;
    }

    /* Adjust Banner Position */
    .banner {
        top: 60px;
        /* Adjust for mobile header height */
    }

    /* Fix Hero Layout - Stack vertical */
    .hero {
        padding-top: 140px;
        /* Add space for fixed header + banner */
    }

    .hero-container {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    .image-wrapper {
        width: 100%;
        max-width: 280px;
        /* Limit image size on mobile */
        margin: 0 auto;
    }

    /* Fix About Layout - Remove large padding */
    .about-container {
        padding-left: 0;
        text-align: left;
    }

    /* Adjust Typography */
    .eyebrow {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    /* Fix Education Card */
    .education-card {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 16px;
    }

    .edu-logo {
        margin-bottom: 8px;
    }

    /* Fix Stats Grid */
    .stats-grid {
        flex-wrap: wrap;
        gap: 24px;
    }

    /* Social Pills Stack */
    .social-pills {
        flex-direction: column;
        width: 100%;
    }

    .social-pill {
        justify-content: center;
    }
}

/* Animations (Minimal Fade) */
.fade-in-up {
    animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

/* Projects List Layout */
.portfolio-list {
    display: flex;
    flex-direction: column;
    gap: 80px;
    max-width: 800px;
    margin: 0 auto;
}

.project-item {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.project-image-container {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid #333;
    max-width: 400px;
    /* Shrink the photo */
}

.project-preview {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.project-item:hover .project-preview {
    transform: scale(1.02);
}

.project-info h3 {
    font-size: 1.8rem;
    margin-bottom: 12px;
    color: var(--color-text);
}

.project-desc {
    font-size: 1.1rem;
    color: var(--color-text);
    /* Changed to black */
    line-height: 1.6;
    margin-bottom: 20px;
}

.project-meta h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--color-text);
    /* Changed to black */
    margin-bottom: 8px;
}

.tech-stack-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    /* Row gap, Column gap */
    margin-bottom: 24px;
    list-style: none;
    /* Remove default bullets */
    padding-left: 0;
    color: var(--color-text);
}

.tech-stack-list li {
    display: flex;
    align-items: center;
}

.tech-stack-list li::before {
    content: "•";
    margin-right: 8px;
    /* Clear space between bullet and text */
    color: var(--color-text);
}

/* Contact Form Layout */
.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 40px 0;
    text-align: left;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #333;
    /* Detailed border color for dark mode */
    background: transparent;
    border-radius: var(--radius-sm);
    color: var(--color-text);
    font-size: 1rem;
    font-family: var(--font-main);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-text);
}

.btn-submit {
    width: 100%;
    background: #ffffff;
    /* White button on dark bg? Or Text color. Ref had black btn on white bg. Dark mode: White btn on black bg? */
    /* Ref: Black button on white background.
       My Site: Black background.
       Contrast: White button on black background looks best. */
    background: var(--color-text);
    color: var(--color-bg);
    border: none;
    padding: 14px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-sm);
}

.btn-submit:hover {
    opacity: 0.9;
    background: #cccccc;
    color: var(--color-bg);
}

/* Social Pills */
.social-pills {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.social-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    border-radius: 50px;
    /* Pill shape */
    background: #ffffff;
    color: #000000;
    font-weight: 500;
    border: 1px solid #e5e5e5;
    transition: transform 0.2s ease;
}

.social-pill:hover {
    transform: translateY(-2px);
}

.instagram-icon {
    /* Instagram Gradient Text? Or just colored icon */
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.2rem;
}

.linkedin-icon {
    color: #0077b5;
    font-size: 1.2rem;
}



/* Tech Stack Ticker (Home Page) */

.tech-stack-ticker {
    padding: 24px 0;
    border-top: 1px solid #eaeaea;
    border-bottom: 1px solid #eaeaea;
    margin-bottom: 60px;
    background: #fafafa;
    overflow: hidden;
    /* Mask the scrolling content */
}

/* Ensure container allows full width scrolling if needed, or keeping it constrained */
.tech-stack-ticker .container {
    overflow: hidden;
    max-width: 100%;
    /* Allow full width for ticker feel if desired, though centered container usually restricts it */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.tech-list {
    display: flex;
    /* Ensure flexbox */
    flex-direction: row;
    /* Force row */
    gap: 60px;
    /* Increased gap for marquee */
    flex-wrap: nowrap;
    /* Prevent wrapping */
    list-style: none;
    color: var(--color-text);
    /* Changed to black */
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: max-content;
    /* Force width to fit content */

    /* Force width to fit content */
}

.ticker-track {
    display: flex;
    gap: 60px;
    /* Gap between the two lists */
    width: max-content;
    animation: marquee-scroll 60s linear infinite;
    /* Slower 60s for loop */
}

/* Pause on hover over the container */
.tech-stack-ticker:hover .ticker-track {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
        /* Move exactly half the total width (one distinct set) */
    }
}




.tech-list li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tech-list i {
    font-size: 1.2rem;
    color: var(--color-text);
}

@media (max-width: 768px) {
    .tech-list {
        gap: 20px;
        font-size: 0.75rem;
    }
}

/* Interactive Skills Chips */
.skill-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.skill-chip {
    background: transparent;
    border: 1px solid var(--color-text);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--color-text);
}

.skill-chip:hover,
.skill-chip.active {
    background: var(--color-text);
    color: var(--color-bg);
}

.skill-explanation {
    font-size: 0.9rem;
    color: var(--color-text);
    font-style: italic;
    min-height: 1.4em;
    /* Reserve space */
    border-left: 3px solid var(--color-text);
    padding-left: 12px;
    margin-top: 10px;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

.skill-explanation.visible {
    opacity: 1;
    transform: translateY(0);
}