/* Modern Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette - Premium Dark Theme */
    --bg-primary: #050505;
    --bg-secondary: #0f0f11;
    --bg-card: #141416;
    --bg-card-hover: #1a1a1d;

    --text-primary: #f2f2f2;
    --text-secondary: #a1a1aa;
    --text-muted: #52525b;

    /* Accents - AI/Future Tech Vibe */
    --accent-primary: #00d2ff;
    /* Cyan */
    --accent-secondary: #9d4edd;
    /* Purple */
    --accent-gradient: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));

    --border-color: #27272a;

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --section-spacing: 120px;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

body {
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    /* Standard property */
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 100px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: var(--font-heading);
}

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    /* Ensure contrast */
    box-shadow: 0 4px 20px rgba(0, 210, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 210, 255, 0.4);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--accent-primary);
    background: rgba(0, 210, 255, 0.05);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
}

nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
}

nav a:hover,
nav a.active {
    color: var(--text-primary);
}

/* Sections */
section {
    padding: var(--section-spacing) 0;
}

.section-header {
    margin-bottom: 60px;
    text-align: left;
}

.section-tag {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    background: rgba(0, 210, 255, 0.1);
    color: var(--accent-primary);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 60px;
}

.hero-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
    min-width: 300px;
    max-width: 650px;
}

.hero .name {
    font-size: 1.25rem;
    color: var(--accent-secondary);
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

/* Profile Card */
.profile-card-container {
    flex-shrink: 0;
}

.profile-card {
    background: rgba(20, 20, 22, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 32px;
    border-radius: 24px;
    text-align: center;
    width: 300px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, border-color 0.3s ease;
    animation: float 6s ease-in-out infinite;
}

.profile-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
}

.profile-image-wrapper {
    width: 145px;
    height: 180px;
    margin: 0 auto 20px;
    border-radius: 50%;
    padding: 4px;
    /* Border gap */
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    position: relative;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background-color: var(--bg-card);
    /* Fallback */
    border: 4px solid var(--bg-card);
    /* Inner border to separate form gradient */
}

.profile-name {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.profile-location {
    font-size: 0.95rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 20px;
}

.profile-location i {
    color: var(--accent-primary);
}

.profile-socials {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.profile-social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.2rem;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.profile-social-link:hover {
    background: rgba(0, 210, 255, 0.1);
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: scale(1.1);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Responsiveness for Hero */
@media (max-width: 968px) {
    .hero-wrapper {
        flex-direction: column-reverse;
        text-align: center;
        gap: 40px;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero {
        padding-top: 120px;
    }
}

/* Background Gradients/Glows */
.glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    top: -100px;
    right: -200px;
    z-index: -1;
    pointer-events: none;
}

.glow-2 {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(157, 78, 221, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    bottom: 0;
    left: -100px;
    z-index: -1;
    pointer-events: none;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

/* Experience Section */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto 0 0;
    /* Align left for MECE look */
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: var(--border-color);
}

.timeline-item {
    margin-bottom: 80px;
    padding-left: 40px;
    position: relative;
}

.timeline-dot {
    position: absolute;
    left: -6px;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--accent-primary);
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.4);
}

.role-header {
    margin-bottom: 24px;
}

.role-title {
    font-size: 1.75rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.company-name {
    font-size: 1.1rem;
    color: var(--accent-secondary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.role-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-family: var(--font-body);
    margin-top: 4px;
}

.mece-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 24px;
}

@media (max-width: 600px) {
    .mece-grid {
        grid-template-columns: 1fr;
    }
}

.mece-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: 12px;
    transition: transform 0.2s, border-color 0.2s;
    position: relative;
    /* For absolute positioning if needed, or just stacking */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.mece-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
}

.mece-icon {
    font-size: 1.5rem;
    color: var(--accent-primary);
    margin-bottom: 12px;
}

.mece-tag {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-secondary);
    background: rgba(157, 78, 221, 0.1);
    padding: 4px 10px;
    border-radius: 100px;
    margin-bottom: 12px;
    display: inline-block;
}

.mece-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.3;
}

.mece-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0;
}

.mece-desc-1 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0;
}

.mece-desc-2 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0;
}


/* Projects Section - Detailed Case Studies */
.projects-detailed-list {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.project-detailed-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.project-detailed-card:hover {
    border-color: var(--accent-secondary);
    /* Hint at interaction */
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.project-meta-header {
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 24px;
}

.skill-highlight {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--accent-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    background: rgba(157, 78, 221, 0.1);
    padding: 4px 12px;
    border-radius: 100px;
}

.project-title-large {
    font-size: 2rem;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
}

/* Case Grid Layout */
.project-case-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 900px) {
    .project-case-grid {
        grid-template-columns: repeat(3, 1fr);
        align-items: start;
        gap: 32px;
    }
}

/* Individual Case Sections */
.case-section {
    display: flex;
    gap: 16px;
}

.case-icon-wrapper {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    border: 1px solid transparent;
}

/* Specific Colors for Problem/Approach/Solution */
.problem .case-icon-wrapper {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
    /* Amber-400 */
    border-color: rgba(251, 191, 36, 0.2);
}

.approach .case-icon-wrapper {
    background: rgba(0, 210, 255, 0.1);
    color: var(--accent-primary);
    border-color: rgba(0, 210, 255, 0.2);
}

.solution .case-icon-wrapper {
    background: rgba(52, 211, 153, 0.1);
    color: #34d399;
    /* Emerald-400 */
    border-color: rgba(52, 211, 153, 0.2);
}

.case-content {
    flex: 1;
}

.case-content h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-weight: 700;
}

.case-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Component List Style */
.component-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.component-list li {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    position: relative;
    padding-left: 12px;
}

.component-list li:last-child {
    margin-bottom: 0;
}

.component-list li::before {
    content: "•";
    color: var(--accent-primary);
    position: absolute;
    left: 0;
    top: 0;
    line-height: 1.6;
}

.component-list strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Education Section */
.education-list {
    display: grid;
    gap: 24px;
    max-width: 800px;
}

.edu-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.edu-info h3 {
    font-size: 1.25rem;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.edu-info p {
    margin-bottom: 0;
    font-size: 1rem;
    color: var(--text-secondary);
}

.edu-meta {
    text-align: right;
}

.edu-year {
    display: block;
    color: var(--accent-primary);
    font-weight: 600;
    margin-bottom: 4px;
}

.edu-honors {
    font-size: 0.85rem;
    color: var(--accent-secondary);
    background: rgba(157, 78, 221, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
}

/* Contact / Footer */
footer {
    padding: 100px 0 40px;
    background: linear-gradient(to top, #000 0%, var(--bg-primary) 100%);
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.contact-box {
    max-width: 600px;
    margin: 0 auto;
}

.contact-box h2 {
    font-size: 3rem;
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin: 40px 0;
}

.social-link {
    font-size: 1.5rem;
    color: var(--text-secondary);
    transition: color 0.2s, transform 0.2s;
}

.social-link:hover {
    color: var(--accent-primary);
    transform: translateY(-3px);
}

.copyright {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 60px;
}