:root {
    --primary: #9333ea; /* Vibrant Purple from reference */
    --primary-hover: #7e22ce;
    --secondary: #fbbf24; /* Amber accent */
    --text-deep: #0f172a; /* Slate 900 */
    --text-main: #334155; /* Slate 700 */
    --text-muted: #64748b; /* Slate 500 */
    --white: #ffffff;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Outfit', 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
    width: 100%;
}

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

/* Vertical Side Nav */
.public-page .side-nav {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 280px;
    background: #f8fafc;
    border-right: 1px solid var(--border);
    z-index: 1000;
}

.side-nav-inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem 1.5rem;
    height: 100%;
}

.side-logo {
    text-decoration: none;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-deep);
    margin-bottom: 4rem;
    display: block;
    text-align: left;
    line-height: 1.1;
}

.side-logo span {
    display: block;
    color: var(--primary);
    font-size: 1.2rem;
}

.side-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.nav-link {
    width: 100%;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    color: var(--text-muted);
    transition: var(--transition);
    text-decoration: none;
    margin-bottom: 0.5rem;
}

.nav-link .nav-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.nav-label {
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
}

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

.nav-link.active {
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.15);
}

.side-contact .contact-trigger {
    width: 100%;
    padding: 1.25rem;
    border-radius: 12px;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    transition: var(--transition);
    text-decoration: none;
    font-weight: 600;
}

.side-contact .contact-trigger::after {
    content: "Contact";
    font-size: 0.95rem;
}

.side-contact .contact-trigger:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.side-contact svg {
    width: 20px;
    height: 20px;
}

/* Base adjustment */
.public-page {
    padding-left: 280px;
}

/* Navbar (Legacy/Removed) */
.navbar {
    display: none;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-deep);
    text-decoration: none;
    letter-spacing: -1.5px;
}

.logo span {
    color: var(--primary);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-deep);
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
}

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

.btn-cta {
    background: var(--primary);
    color: var(--white) !important;
    padding: 0.8rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 6px -1px rgba(147, 51, 234, 0.2);
    text-decoration: none;
}

/* Hero Section */
.hero {
    padding: 14rem 0 8rem;
    background: #ffffff; /* FORCE WHITE */
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 0 6rem; /* Removed row gap for tighter integration */
}

.hero-intro {
    text-align: left;
    grid-column: 1;
    grid-row: 1;
}

.hero-bio {
    text-align: left;
    grid-column: 1;
    grid-row: 2;
}

.hero-image-wrapper {
    grid-column: 2;
    grid-row: 1 / span 2;
}

.hero-tagline {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.hero-grid h1 {
    font-size: 5.5rem;
    line-height: 1.1;
    font-weight: 800;
    color: var(--text-deep);
    margin-bottom: 2rem;
    letter-spacing: -3px;
}

.hero-grid h1 span {
    color: var(--primary);
}

.hero-content .bio {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 3rem;
}

.hero-socials {
    display: flex;
    gap: 2rem;
}

.hero-socials a {
    color: var(--text-deep);
    transition: var(--transition);
}

.hero-socials a:hover {
    color: var(--primary);
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: flex-end;
    overflow: hidden; /* Contain the shape-bg */
    border-radius: 40px;
}

.hero-image-wrapper .shape-bg {
    position: absolute;
    width: 140%;
    height: 140%;
    background: #f1f5f9;
    border-radius: 40% 60% 70% 30% / 40% 40% 60% 60%;
    z-index: 1;
    top: -20%;
    right: -20%;
}

.hero-image-wrapper img {
    position: relative;
    z-index: 2;
    max-width: 100%;
    height: auto;
}

.dot {
    position: absolute;
    width: 25px;
    height: 25px;
    background: var(--secondary);
    border-radius: 50%;
    z-index: 3;
}

/* Common Sections */
section {
    padding: 10rem 0;
    background: var(--white);
}

.section-label {
    color: var(--primary);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 2rem;
    display: block;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-deep);
    margin-bottom: 4rem;
    letter-spacing: -1.5px;
}

/* Expertise/Skills Grid */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
}

.expertise-card {
    padding: 3rem;
    background: var(--bg-light);
    border-radius: 20px;
    transition: var(--transition);
}

.expertise-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-deep);
    margin-bottom: 1rem;
}

.expertise-card p {
    color: var(--text-muted);
}

/* Animations */
.animate-in {
    animation: fadeInUp 1s ease forwards;
}

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

@media (max-width: 1024px) {
    body.public-page { padding-left: 0; padding-bottom: 90px; }
    
    .public-page .side-nav {
        position: fixed;
        width: 100%;
        height: auto;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        border-right: none;
        border-top: 1px solid var(--border);
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(15px);
        z-index: 9999;
    }

    .public-page .side-nav-inner {
        padding: 0.5rem;
        flex-direction: row;
        align-items: center;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .public-page .side-nav-inner::-webkit-scrollbar {
        display: none; 
    }

    .public-page .side-logo {
        display: none;
    }

    .public-page .side-links {
        flex-direction: row;
        width: 100%;
        justify-content: flex-start;
        gap: 0.5rem;
        padding: 0 0.5rem;
    }

    .public-page .nav-link {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        padding: 0.75rem 0.5rem;
        min-width: 80px;
        border-radius: 12px;
        text-align: center;
        flex-shrink: 0;
    }

    .public-page .nav-icon {
        width: 20px;
        height: 20px;
    }

    .public-page .nav-label {
        font-size: 0.65rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.2px;
        white-space: nowrap;
    }

    .public-page .side-contact {
        display: none;
    }

    .hero { padding: 6rem 0 4rem; }
    .hero-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 2rem;
        text-align: center;
    }
    .hero-intro { order: 1; }
    .hero-image-wrapper { order: 2; justify-content: center; }
    .hero-bio { order: 3; display: flex; flex-direction: column; align-items: center; }
    .hero-intro h1 { font-size: 3.2rem; margin-bottom: 0.5rem; }
    
    .expertise-grid { grid-template-columns: 1fr; }
    .section-title { font-size: 2.5rem; }

    /* Fix Experience on tablet/small laptops */
    .experience-entry {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
}

@media (max-width: 768px) {
    .container { padding: 0 1.25rem; }
    .hero-content h1 { font-size: 2.75rem; }
    
    .experience-entry {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .projects-grid, .education-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Base Grid Styles */
.experience-entry {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 3rem;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 3rem;
}
/* Project Entry Polish */
.project-entry:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px -12px rgba(147, 51, 234, 0.15);
}

.project-entry:hover img {
    transform: scale(1.05);
}
