/* RESET & BASICS */
:root {
    --bg-color: #0f172a;
    --text-color: #e2e8f0;
    --accent-color: #38bdf8;
    --card-bg: #1e293b;
    --sub-text: #94a3b8;
    --font-main: "Inter", system-ui, -apple-system, sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--accent-color);
    transition: 0.3s;
}

a:hover {
    color: #fff;
    text-decoration: underline;
}

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

section {
    padding: 80px 0;
    border-bottom: 1px solid #334155;
}

section:last-child {
    border-bottom: none;
}

h1,
h2,
h3 {
    color: #f8fafc;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1px;
}

h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    border-left: 4px solid var(--accent-color);
    padding-left: 15px;
}

/* HEADER */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    z-index: 1000;
    border-bottom: 1px solid #334155;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 1.2rem;
    color: #fff;
}

.nav-links a {
    margin-left: 20px;
    font-size: 0.9rem;
    color: var(--sub-text);
    text-decoration: none;
}

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

/* HERO */
#hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
}

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

.tagline {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.bio {
    font-size: 1.1rem;
    color: var(--sub-text);
    margin-bottom: 30px;
    max-width: 600px;
}

.btn {
    display: inline-block;
    background: var(--accent-color);
    color: var(--bg-color);
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
}

.btn:hover {
    background: #fff;
    transform: translateY(-2px);
    text-decoration: none;
}

/* SKILLS GRID */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.skill-item {
    background: var(--card-bg);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #334155;
}

/* EXPERIENCE TIMELINE */
.timeline-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 50px;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 2px;
    height: 100%;
    background: var(--accent-color);
}

.job-header {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.role {
    font-weight: 700;
    font-size: 1.2rem;
}

.company {
    color: var(--accent-color);
}

.date {
    font-family: monospace;
    color: var(--sub-text);
}

.achievements li {
    margin-bottom: 8px;
    color: var(--sub-text);
}

/* PROJECTS */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #334155;
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.tech-stack span {
    font-size: 0.8rem;
    background: #334155;
    padding: 4px 8px;
    border-radius: 4px;
    margin-right: 5px;
    display: inline-block;
    margin-top: 10px;
}

/* CONTACT */
.contact-box {
    text-align: center;
    background: var(--card-bg);
    padding: 50px;
    border-radius: 10px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }

    /* Simplified for MVP */
}


.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        color: #fff;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        right: 0;
        background: var(--card-bg);
        width: 100%;
        display: none;
        flex-direction: column;
        padding: 20px;
        border-top: 1px solid #334155;
    }

    .nav-links a {
        margin: 10px 0;
        font-size: 1rem;
    }

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

.about-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-photo img {
    width: 100%;
    max-width: 280px;
    border-radius: 12px;
    border: 2px solid #334155;
    object-fit: cover;
}

/* Mobile */
@media (max-width: 768px) {
    .about-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-photo img {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .project-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        padding: 20px;
    }
}

#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    #hero {
        padding-top: 120px;
        text-align: center;
    }

    .hero-content {
        margin: 0 auto;
    }

    .bio {
        font-size: 1rem;
    }

    .btn {
        margin-bottom: 15px;
    }
}


/* Add this under your existing .btn class in the CSS */
.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    margin-left: 15px;
    /* Spacing between buttons */
}

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

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

/* Mobile check: Stack buttons on small screens so they don't squish */
@media (max-width: 600px) {

    .btn,
    .btn-outline {
        display: block;
        width: 100%;
        margin: 10px 0 0 0;
        text-align: center;
    }
}

.project-desc {
    color: var(--sub-text);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.project-links {
    margin-top: 20px;
}

@media (max-width: 768px) {
    .project-desc {
        font-size: 0.9rem;
    }
}


.skill-item h4 {
    margin-bottom: 8px;
    color: #f8fafc;
    font-size: 1rem;
}

.skill-item p {
    font-size: 0.9rem;
    color: var(--sub-text);
    line-height: 1.5;
}

.skill-item.highlight {
    border: 1px solid var(--accent-color);
    background: linear-gradient(145deg,
            rgba(56, 189, 248, 0.08),
            rgba(30, 41, 59, 1));
}


.site-footer {
    background: #020617;
    border-top: 1px solid #334155;
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer-brand h3 {
    margin-bottom: 10px;
    color: #f8fafc;
}

.footer-brand p {
    color: var(--sub-text);
    font-size: 0.95rem;
    max-width: 350px;
}

.footer-links,
.footer-contact {
    display: flex;
    flex-direction: column;
}

.footer-links h4,
.footer-contact h4 {
    margin-bottom: 12px;
    font-size: 1rem;
    color: #f8fafc;
}

.footer-links a,
.footer-contact a {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--sub-text);
}

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

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #334155;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--sub-text);
}

/* Mobile */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand p {
        margin: 0 auto;
    }
}