/* --- Variables & Reset (Dark Fintech Theme) --- */
:root {
    --primary: #9b8bf4;       /* Neon Purple Accent */
    --primary-light: #d8cbf9; /* Soft Lavender */
    --primary-dark: #634fd6;  /* Deep Purple */
    --bg-color: #0b0f19;      /* Very Dark Blue/Black */
    --bg-alt: rgba(11, 15, 25, 0.6); /* Translucent dark for sections */
    --text-main: #f0f4f8;     /* Off-white Text */
    --text-muted: #a0aec0;    /* Gray muted text */
    --glass-bg: rgba(20, 25, 40, 0.7); /* Dark Glassmorphism */
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.6);
    --shadow-hover: 0 16px 48px rgba(155, 139, 244, 0.25);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-color);
    /* NEW: Stock Market Blurred Background */
    background-image: url('assets/new_-000.png');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Optional Overlay to darken the market image so text is readable */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: linear-gradient(to bottom, rgba(11,15,25,0.85), rgba(11,15,25,0.7));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: -2;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- Layout Defaults --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--bg-alt);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: -1.5rem auto 3rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* --- Utilities & Glassmorphism --- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    padding: 2.5rem;
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(155, 139, 244, 0.4);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    font-family: var(--font-heading);
    transition: var(--transition);
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(155, 139, 244, 0.3);
    border: 1px solid var(--primary-light);
}

.btn-primary:hover {
    background: var(--primary-light);
    color: var(--bg-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(155, 139, 244, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-light);
    border: 2px solid var(--primary);
}

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

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(11, 15, 25, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    background: rgba(11, 15, 25, 0.9);
}

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

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-light);
    letter-spacing: -0.5px;
    text-shadow: 0 0 10px rgba(155, 139, 244, 0.4);
}

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

.nav-links a {
    font-weight: 500;
    color: var(--text-main);
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary);
    transition: var(--transition);
}

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

.nav-links a:hover::after {
    width: 100%;
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px; 
    overflow: hidden;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    z-index: 2;
}

.greeting {
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 1rem;
}

.title {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-main);
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--text-main), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(155,139,244,0.3));
}

.subtitle {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--primary-light);
    margin-bottom: 2rem;
}

.hero-text .description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 480px;
    background: rgba(0,0,0,0.3);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
}

.hero-text .description strong {
    color: var(--text-main);
}

.hero-text .description em {
    color: var(--primary-light);
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.blob-bg {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(155, 139, 244, 0.4) 0%, rgba(20, 25, 40, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    animation: pulse 8s infinite alternate ease-in-out;
}

.hero-image {
    width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    box-shadow: 0 0 30px rgba(155,139,244,0.3);
    border: 4px solid rgba(255,255,255,0.1);
    animation: morph 8s ease-in-out infinite;
    z-index: 1;
}

/* --- Academics Section --- */
.academics-hero {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3rem;
    padding: 3rem;
    /* Dark Theme adjusted */
    background: linear-gradient(135deg, rgba(20, 25, 40, 0.8), rgba(155, 139, 244, 0.15));
    border: 1px solid var(--glass-border);
}

.cfa-showcase {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 2rem;
    min-width: 300px;
    padding: 2rem;
    border-radius: 20px;
    background: rgba(0,0,0,0.3);
}

.glow-effect-large {
    position: relative;
    border: 1px solid rgba(155,139,244,0.4);
}

.glow-effect-large::before {
    content: '';
    position: absolute;
    top: -4px; left: -4px; right: -4px; bottom: -4px;
    background: linear-gradient(45deg, var(--primary), var(--primary-light), var(--primary-dark));
    z-index: -1;
    border-radius: 22px;
    filter: blur(15px);
    opacity: 0.6;
    animation: pulse 4s infinite alternate;
}

.cfa-badge-large {
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.5));
}

.cfa-text h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary-light);
    margin-bottom: 0.5rem;
    white-space: nowrap; /* Added text constraint */
}

.cfa-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    white-space: normal;
}

.cfa-credential-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 44px;
    max-width: 100%;
    margin-top: 1.25rem;
    padding: 0.6rem 1rem;
    border: 1px solid rgba(155, 139, 244, 0.45);
    border-radius: 999px;
    background: rgba(155, 139, 244, 0.08);
    color: var(--primary-light);
    font-size: 0.9rem;
    font-weight: 600;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.cfa-credential-link svg {
    flex-shrink: 0;
}

.cfa-credential-link:hover {
    background: rgba(155, 139, 244, 0.2);
    border-color: var(--primary);
}

.cfa-credential-link:focus-visible {
    outline: 2px solid var(--primary-light);
    outline-offset: 4px;
}
.university-stats {
    display: flex;
    gap: 2rem;
}

.stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(11, 15, 25, 0.6);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
    min-width: 180px;
    text-align: center;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-light);
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 15px rgba(155,139,244,0.5);
}

.stat-label {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 600;
}

.awards-grid-large {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.award-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(20, 25, 40, 0.5);
    border: 1px solid var(--glass-border);
}

.award-icon-large {
    font-size: 4rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.2));
}

.award-logo-large {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 1rem;
    background: white; /* Keep white bg behind logos so they don't disappear on dark bg */
    border-radius: 12px;
    padding: 10px;
}

.award-card h4 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.award-card p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* --- Experience Timeline --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: rgba(255,255,255,0.1);
    top: 0;
    bottom: 0;
    left: 30px;
    margin-left: -1px;
}

.timeline-item {
    padding: 2rem 0;
    padding-left: 80px;
    position: relative;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border: 4px solid var(--bg-color);
    border-radius: 50%;
    left: 21px;
    top: 3rem;
    z-index: 1;
    box-shadow: 0 0 15px var(--primary);
}

.timeline-content {
    padding: 2rem;
}

.exp-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.company-logo {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    object-fit: contain;
    background: white; /* Logos need white background usually */
    padding: 5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.exp-title-role h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--text-main);
}

.exp-title-role h4 {
    font-weight: 500;
    color: var(--primary-light);
}

.exp-date {
    margin-left: auto;
    background: rgba(155,139,244,0.15);
    color: var(--primary-light);
    border: 1px solid rgba(155,139,244,0.3);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

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

/* --- Projects Section --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.project-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.project-card:focus-visible {
    outline: 3px solid var(--primary-light);
    outline-offset: 5px;
}

.project-chart-link {
    display: inline-block;
    margin-top: 1.25rem;
    color: var(--primary-light);
    font-weight: 600;
}

.project-img-wrapper {
    height: 200px;
    background: rgba(255,255,255,0.9); /* Keep white for stock logos to be readable */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    border-bottom: 1px solid var(--glass-border);
}

.project-logo {
    max-height: 100px;
    max-width: 80%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.project-card:hover .project-logo {
    transform: scale(1.1);
}

.project-info {
    padding: 2rem;
}

.project-info h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--primary-light);
    margin-bottom: 0.8rem;
}

.project-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- Contact Section --- */
.contact-card {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(20, 25, 40, 0.8), rgba(155, 139, 244, 0.1));
}

.contact-card p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.5rem;
    background: rgba(11, 15, 25, 0.8);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: var(--text-main);
    font-weight: 600;
    transition: var(--transition);
}

.contact-link:hover {
    background: var(--primary);
    border-color: var(--primary-light);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(155,139,244,0.4);
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 2rem;
    background: rgba(0,0,0,0.8);
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* --- Animations --- */
@keyframes morph {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    25% { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; }
    50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
    75% { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.1); opacity: 0.8; }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* --- Responsive Design --- */
@media (max-width: 900px) {
    .title { font-size: 3.5rem; }
    .hero-content { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
    .hero-text .description { margin: 0 auto 2.5rem; }
    .hero-actions { justify-content: center; }
    .hero { padding-top: 120px; text-align: center;}
    .nav-links { display: none; } 
    
    .timeline::after { left: 20px; }
    .timeline-item { padding-left: 60px; }
    .timeline-dot { left: 11px; }
    
    .exp-date { margin-left: 0; width: 100%; text-align: left; margin-top: 10px; }
    .exp-header { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
    .container, .hero-content { padding-left: 1.25rem; padding-right: 1.25rem; }
    .academics-hero { padding: 1.25rem; gap: 1.5rem; }
    .cfa-showcase { min-width: 0; width: 100%; padding: 1.25rem; }
    .cfa-text h3 { white-space: normal; font-size: 1.75rem; }
    .university-stats { width: 100%; gap: 1rem; }
    .projects-grid { grid-template-columns: minmax(0, 1fr); }
    .hero-actions { flex-wrap: wrap; }
    .contact-link { overflow-wrap: anywhere; min-width: 0; padding: 1rem; }
    .contact-link svg { flex-shrink: 0; }
    .timeline-item { padding-left: 40px; }
    .timeline-content { padding: 1.25rem; }
    .title { font-size: 2.5rem; }
    .hero-image { width: 300px; height: 300px; }
    .cfa-showcase { flex-direction: column; text-align: center; }
    .university-stats { flex-direction: column; }
    .contact-links { flex-direction: column; }
}
