:root {
    --background: #020617;
    /* Deep slate/black */
    --foreground: #f8fafc;
    --card: #0f172a;
    --card-hover: #1e293b;
    --primary: #2dd4bf;
    /* Teal/Green accent */
    --primary-dim: rgba(45, 212, 191, 0.1);
    --secondary: #8b5cf6;
    /* Purple accent for gradients */
    --muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.1);

    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Plus Jakarta Sans', sans-serif;

    --transition: all 0.3s ease;
}

/* Reset & Base */
html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--background);
    /* Removed direct background-image to control opacity via pseudo-element */
    color: var(--foreground);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Global Subtle Background via Pseudo-element */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/abstract_dark_financial_data_background-DWLrF7Na.png');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    /* Much lighter/subtle */
    pointer-events: none;
    z-index: -1;
    background-blend-mode: soft-light;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: white;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    height: 80px;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--muted);
    position: relative;
}

.nav-links a:not(.btn-nav):hover {
    color: white;
}

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

.nav-links a:not(.btn-nav):hover::after {
    width: 100%;
}

.btn-nav {
    border: 1px solid var(--border);
    padding: 8px 24px;
    border-radius: 99px;
    color: white !important;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-nav:hover {
    background: var(--primary);
    color: black !important;
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-dim);
}



.hamburger {
    display: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero - Left Aligned */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    background:
        radial-gradient(circle at 10% 20%, rgba(45, 212, 191, 0.1), transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.1), transparent 40%);
}

.hero-content {
    max-width: 800px;
    text-align: left;
    /* Left Aligned */
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(45, 212, 191, 0.15);
    border: 1px solid rgba(45, 212, 191, 0.3);
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 32px;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.title {
    font-size: 5.5rem;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 24px;
    background: linear-gradient(to right, #fff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--muted);
    margin-bottom: 48px;
    max-width: 650px;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 64px;
    flex-wrap: wrap;
    justify-content: flex-start;
    /* Left Align Buttons */
}

/* Attractive Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    box-shadow: 0 4px 20px rgba(45, 212, 191, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(45, 212, 191, 0.5);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.btn-ghost {
    color: var(--muted);
    padding: 14px 24px;
    border: 1px solid transparent;
    /* To prevent jumping */
}

.btn-ghost:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border);
    transform: translateY(-2px);
}

.hero-tags {
    display: flex;
    gap: 32px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--muted);
    justify-content: flex-start;
    /* Left Align Tags */
}

.hero-tag {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tag-line {
    width: 40px;
    height: 1px;
    background: var(--border);
}

/* Sections */
.section {
    padding: 120px 0;
    position: relative;
}

.section:nth-child(even) {
    background: rgba(255, 255, 255, 0.01);
}

.text-center {
    text-align: center;
}

.section-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary);
    margin-bottom: 16px;
    display: inline-block;
    padding: 6px 12px;
    background: rgba(45, 212, 191, 0.05);
    border-radius: 4px;
}

.section-heading {
    font-size: 3rem;
    margin-bottom: 24px;
    line-height: 1.2;
    letter-spacing: -1px;
}

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

.section-subtext {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto;
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: center;
}

.bio {
    font-size: 1.1rem;
    color: var(--muted);
    margin-bottom: 40px;
}

.bio p {
    margin-bottom: 24px;
    line-height: 1.8;
}

.focus-areas {
    margin-top: 32px;
    border-left: 2px solid var(--primary);
    padding-left: 28px;
}

.focus-areas li {
    margin-bottom: 16px;
    color: var(--foreground);
    display: flex;
    flex-direction: column;
}

.focus-areas strong {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    padding: 24px;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    background: rgba(45, 212, 191, 0.05);
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: white;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
}

.about-image {
    position: relative;
}

.image-wrapper {
    aspect-ratio: 0.9;
    background: var(--card);
    border-radius: 32px;
    border: 1px solid var(--border);
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.image-wrapper:hover .profile-img {
    transform: scale(1.05);
}

/* Timeline (Experience & Education) - Vertical Line Layout */
.timeline-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    position: relative;
}

.timeline-col {
    position: relative;
}

.col-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
}

.icon-box {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--card), var(--background));
    border: 1px solid var(--border);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.timeline-items {
    position: relative;
    padding-left: 0;
    /* Reset previous padding */
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Vertical Line */
.timeline-items::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 16px;
    /* Center with the dots */
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), rgba(255, 255, 255, 0.05));
    border-radius: 2px;
}

.timeline-card {
    position: relative;
    padding-left: 60px;
    /* Space for the dot and line */
    background: transparent;
    border: none;
}

/* Timeline Dot */
.timeline-card::after {
    content: '';
    position: absolute;
    left: 10px;
    top: 24px;
    width: 14px;
    height: 14px;
    background: var(--background);
    border: 3px solid var(--primary);
    border-radius: 50%;
    z-index: 2;
    transition: all 0.3s;
    box-shadow: 0 0 0 4px var(--background);
    /* Spacing from line */
}

.timeline-card:hover::after,
.timeline-card.active::after {
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary);
}

/* Card Visuals */
.timeline-card>h5,
.timeline-card>p,
.timeline-card>.card-header,
.timeline-card>.card-meta {
    /* These elements are always visible */
}

.card-meta {
    margin-bottom: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--primary);
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.ss-tags {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.ss-tags span {
    color: white;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

/* Remove old before pseudo-element */
.ss-tags span::before {
    content: none;
}

.ss-divider {
    width: 2px;
    height: 24px;
    background: linear-gradient(to bottom, transparent, var(--primary), transparent);
    box-shadow: 0 0 10px var(--primary);
    transform: rotate(15deg);
    /* Slight tilt for style */
    margin: 0 8px;
    opacity: 0.8;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4px;
}

.card-header h5 {
    font-size: 1.25rem;
    font-weight: 600;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.skill-tags span {
    font-size: 1rem;
    color: var(--muted);
    font-weight: 500;
    /* Removed chip styling to match soft skills look */
    background: transparent;
    padding: 0;
    border: none;
}

.skill-tags span:hover {
    color: white;
    /* Simple hover effect for text */
    background: transparent;
}

.cert-card.disabled {
    cursor: default;
    opacity: 0.9;
}

.cert-card.disabled:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.02);
    border-color: var(--border);
}


.cert-link {
    font-size: 0.75rem;
    color: var(--foreground);
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 99px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.cert-link:hover {
    background: var(--primary);
    color: black;
    border-color: var(--primary);
}

.company {
    color: var(--muted);
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

/* Interactive Description Logic */
.details-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s ease-out;
}

.card-details {
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.4s ease-out;
}

.card-details li {
    font-size: 0.95rem;
    color: var(--muted);
    margin-bottom: 8px;
    position: relative;
    padding-left: 18px;
    line-height: 1.6;
}

.card-details li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 0.8rem;
    top: 4px;
}

/* Reveal on Hover or Active Class */
.timeline-card:hover .details-wrapper,
.timeline-card.active .details-wrapper {
    grid-template-rows: 1fr;
    margin-top: 16px;
}

.timeline-card:hover .card-details,
.timeline-card.active .card-details {
    opacity: 1;
}

/* Education Cards (No Expansion Needed generally, but consistent style) */
.timeline-col:last-child .timeline-card {
    padding-bottom: 16px;
}

/* Cohorts */
.cohorts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.cohort-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    padding: 40px 32px;
    border-radius: 24px;
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cohort-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s;
}

.cohort-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    background: var(--card);
}

.cohort-card:hover::before {
    opacity: 1;
}

.cohort-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 32px;
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.2), rgba(139, 92, 246, 0.2));
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cohort-card h4 {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.cohort-date {
    margin-top: 16px;
}

/* Certifications */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.cert-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: var(--transition);
    cursor: pointer;
}

.cert-card:hover {
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.05), rgba(139, 92, 246, 0.05));
    border-color: var(--primary);
    transform: scale(1.02);
}

.cert-icon {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 16px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-card h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    line-height: 1.4;
    color: var(--foreground);
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}

.skill-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border);
    padding: 32px;
    border-radius: 24px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Left Align */
}

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

.skill-icon {
    color: var(--primary);
    /* Changed to correct blue/teal as per screenshot vibe */
    font-size: 2rem;
    margin-bottom: 24px;
    width: 60px;
    height: 60px;
    background: rgba(45, 212, 191, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: none;
}

.skill-card h4 {
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: #38bdf8;
    /* Light blue like the screenshot text */
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.soft-skills {
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.5), rgba(45, 212, 191, 0.05));
    border: 1px solid var(--border);
    padding: 32px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

/* Portfolio */
.portfolio-grid {
    max-width: 700px;
    margin: 0 auto;
}

.portfolio-item {
    border: 1px solid var(--border);
    border-radius: 32px;
    overflow: hidden;
    background: var(--card);
    transition: var(--transition);
    position: relative;
}

.portfolio-item:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.portfolio-cover {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.portfolio-content {
    padding: 40px;
}

.btn-link {
    background: white;
    color: black;
    border: none;
    font-weight: 700;
    padding: 16px;
    border-radius: 16px;
    width: 100%;
    display: block;
    text-align: center;
    transition: var(--transition);
}

.btn-link:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

/* Extracurricular */
.extra-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.extra-card {
    display: flex;
    gap: 24px;
    padding: 32px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    align-items: center;
    transition: var(--transition);
}

.extra-card:hover {
    border-color: var(--secondary);
    transform: translateX(10px);
}

.extra-icon {
    min-width: 64px;
    height: 64px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    font-size: 1.8rem;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-subtext {
    font-size: 1.2rem;
    color: var(--muted);
    margin-bottom: 48px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 20px;
    margin-bottom: 20px;
}

.contact-link:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(8px);
    border-color: var(--primary);
}

.icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
}

.contact-link.no-hover:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.02);
    border-color: var(--border);
}

.contact-form-wrapper {
    background: rgba(15, 23, 42, 0.6);
    padding: 48px;
    border-radius: 32px;
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.contact-form-wrapper h4 {
    font-size: 1.5rem;
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--muted);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(2, 6, 23, 0.5);
    border: 1px solid var(--border);
    padding: 16px;
    border-radius: 12px;
    color: white;
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group textarea {
    min-height: 150px;
    resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-dim);
    outline: none;
    background: rgba(2, 6, 23, 0.8);
}

.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-weight: 700;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(45, 212, 191, 0.2);
}

.btn-submit:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(45, 212, 191, 0.4);
}

/* Footer */
.footer {
    padding: 64px 0;
    border-top: 1px solid var(--border);
    background: #020617;
}

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

    .hamburger {
        display: block;
    }

    .title {
        font-size: 3rem;
    }

    .hero {
        text-align: left;
    }

    /* Keep left align on mobile too for this design */
    .about-grid,
    .timeline-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .timeline-items::before {
        left: 15px;
    }

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

    .timeline-card::after {
        left: 10px;
    }

    .about-image {
        order: -1;
    }

    .hero-buttons {
        justify-content: flex-start;
    }

    .hero-tags {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}