/* Reset and Base Styles */
:root {
    --bg-color: #0a192f;
    --bg-light: #112240;
    --text-primary: #ccd6f6;
    --text-secondary: #8892b0;
    --accent: #64ffda;
    --accent-tint: rgba(100, 255, 218, 0.1);
    --white: #e6f1ff;
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'Fira Code', monospace;
    --transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

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

ul {
    list-style: none;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 3rem;
    position: relative;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.section-title::after {
    content: "";
    display: block;
    width: 300px;
    height: 1px;
    background: var(--bg-light);
    margin-left: 20px;
}

.section-title::before {
    content: "0" counter(section) ".";
    margin-right: 10px;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 400;
}

section {
    padding: 100px 0;
    counter-increment: section;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
    transition: var(--transition);
}

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

.nav-logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    font-family: var(--font-mono);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.contact-content {
    text-align: left;
}

.contact-info {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

.contact-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid var(--accent);
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

.contact-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.contact-image:hover img {
    transform: scale(1.03);
}

.contact-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--accent);
    border-radius: 4px;
    color: var(--accent);
    text-decoration: none;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    transition: var(--transition);
}

.contact-btn:hover {
    background: rgba(100, 255, 218, 0.1);
}

.email a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

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

/* Research Images */
.timeline-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.timeline-text-content {
    flex: 1;
}

.research-image {
    width: 100px;
    /* Fixed width for consistency */
    height: 100px;
    /* Fixed height for square/circle look */
    flex-shrink: 0;
    border-radius: 50%;
    /* Circular images */
    overflow: hidden;
    border: 2px solid var(--accent);
    box-shadow: 0 5px 15px rgba(2, 12, 27, 0.7);
    margin-top: 0;
    /* Reset margin */
}

.research-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Venture/Professional Images */
.venture-image {
    margin-top: 1.5rem;
    width: 100%;
    height: 150px;
    /* Fixed height for consistency */
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--accent);
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    /* White background for logos */
}

.venture-image img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.nav-link {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: var(--font-mono);
}

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

.nav-link::before {
    content: counter(item) ". ";
    margin-right: 5px;
    color: var(--accent);
    font-size: 0.8rem;
    counter-increment: item;
}

.nav-menu {
    counter-reset: item 0;
}

.nav-socials {
    display: flex;
    gap: 1rem;
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 1px solid var(--text-secondary);
}

.nav-icon {
    color: var(--text-primary);
    font-size: 1.2rem;
    transition: var(--transition);
}

.nav-icon:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 30px;
    height: 2px;
    background: var(--accent);
    margin: 4px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.9) 0%, rgba(17, 34, 64, 0.8) 100%),
        radial-gradient(circle at 50% 50%, rgba(100, 255, 218, 0.1) 0%, transparent 50%);
    z-index: -2;
}

#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: transparent;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    padding: 0 2rem;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    /* Space between image and text */
}

.hero-image-container {
    flex-shrink: 0;
}

.hero-profile-img-large {
    width: 500px;
    /* Narrower width */
    height: 800px;
    /* Longer height for portrait look */
    object-fit: cover;
    border-radius: 12px;
    /* Rectangular with rounded corners */
    border: 4px solid var(--accent);
    box-shadow: 0 0 30px rgba(100, 255, 218, 0.3);
    transition: var(--transition);
}

.hero-profile-img-large:hover {
    transform: scale(1.02);
    box-shadow: 0 0 50px rgba(100, 255, 218, 0.5);
}

.hero-text {
    text-align: left;
    /* Align text to the left */
    max-width: 600px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--lightest-slate);
    /* Solid color for visibility */
    /* Removed gradient text to ensure visibility */
    font-family: 'Fira Code', monospace;
}

/* Responsive adjustments */
@media (max-width: 968px) {
    .hero-container {
        flex-direction: column;
        /* Stack on smaller screens */
        text-align: center;
        gap: 2rem;
    }

    .hero-text {
        text-align: center;
        align-items: center;
        display: flex;
        flex-direction: column;
    }

    .hero-socials {
        justify-content: center;
    }

    .hero-profile-img-large {
        width: 200px;
        /* Smaller on mobile */
        height: 280px;
        /* Maintain portrait ratio */
    }

    .hero-title {
        font-size: 3rem;
    }
}

.hero-subtitle {
    font-size: 2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 500;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.hero-description a {
    color: var(--accent);
    text-decoration: none;
    position: relative;
}

.hero-description a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--accent);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

.hero-description a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

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

.btn {
    padding: 1.25rem 1.75rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.hero-icon {
    font-size: 4rem;
    /* Significantly larger size */
    color: var(--text-primary);
    transition: var(--transition);
}

.btn-primary {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
}

.btn-primary:hover {
    background: var(--accent-tint);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--text-secondary);
    color: var(--text-secondary);
}

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

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    color: var(--accent);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 4px;
    transition: var(--transition);
    box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
}

.about-image:hover img {
    transform: translateY(-5px);
}

.about-image::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent);
    border-radius: 4px;
    z-index: -1;
    transition: var(--transition);
}

.about-image:hover::after {
    top: 10px;
    left: 10px;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.skills-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.skill-category h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-category h3 i {
    color: var(--accent);
}

.skill-category p {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Education Section */
.education-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: center;
}

.education-image img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
    transition: var(--transition);
    border: 1px solid var(--accent);
}

.education-image:hover img {
    transform: translateY(-5px);
}

.education-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 4px;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.education-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

.education-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

.education-header h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.education-logos {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.edu-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    background: #fff;
    /* White background for visibility */
    padding: 2px;
    border-radius: 4px;
}

.education-period {
    font-family: 'Fira Code', monospace;
    color: var(--accent);
    font-size: 0.9rem;
}

.education-subtitle {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.education-details p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.education-details strong {
    color: var(--text-primary);
}

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

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: var(--bg-light);
}

.timeline-item {
    position: relative;
    padding-left: 40px;
    margin-bottom: 3rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--bg-color);
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.timeline-subtitle {
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.timeline-text {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.research-icon {
    text-align: center;
    margin-top: 1rem;
    padding: 2rem;
    background: rgba(2, 12, 27, 0.3);
    border-radius: 4px;
    border: 1px solid rgba(100, 255, 218, 0.1);
    transition: var(--transition);
}

.research-icon i {
    font-size: 3rem;
    color: var(--accent);
    text-shadow: 0 0 10px rgba(100, 255, 218, 0.3);
}

.timeline-item:hover .research-icon {
    background: rgba(2, 12, 27, 0.5);
    border-color: var(--accent);
}

.timeline-item:hover .research-icon i {
    transform: scale(1.1);
    transition: var(--transition);
}

/* Card Grid (Professional, Entrepreneurial, Leadership) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 4px;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-7px);
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

.venture-card {
    padding: 0;
    overflow: hidden;
}

.venture-image {
    width: 100%;
    height: 150px;
    background-size: cover;
    background-position: center;
}

.medpen-bg {
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
    /* Fallback gradient */
    position: relative;
}

.medpen-bg::after {
    content: 'MedPen';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.medjourney-bg {
    background: linear-gradient(135deg, #667db6, #0082c8, #0082c8, #667db6);
    /* Fallback gradient */
    position: relative;
}

.medjourney-bg::after {
    content: 'MedJourney';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.venture-content {
    padding: 2rem;
}

.card-header {
    margin-bottom: 1rem;
}

.card-header h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.card-date {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.card-subtitle {
    color: var(--accent);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.card ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.card ul li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Publications */
.publication-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.publication-item {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 4px;
    border-left: 3px solid var(--accent);
}

.publication-item p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.publication-item strong {
    color: var(--white);
}

.publication-item a {
    color: var(--accent);
}

.sub-list {
    margin-top: 0.5rem;
    margin-left: 1rem;
}

.sub-list li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

/* Awards */
.awards-list {
    display: grid;
    gap: 1rem;
}

.award-item {
    display: flex;
    align-items: baseline;
    gap: 1.5rem;
    padding: 1rem;
    border-bottom: 1px solid var(--bg-light);
}

.award-date {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 0.9rem;
    min-width: 100px;
}

.award-desc {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Teaching */
.teaching-list li {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.teaching-list strong {
    color: var(--white);
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.contact-content {
    text-align: left;
}

.contact-image img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
    border: 1px solid var(--accent);
}

.contact-content p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: 1px solid var(--accent);
    border-radius: 4px;
    color: var(--accent);
    font-family: var(--font-mono);
    width: fit-content;
}

.contact-btn:hover {
    background: var(--accent-tint);
}

.location {
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

/* Footer */
.footer {
    padding: 2rem 0;
    text-align: center;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

/* Animations */
@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .about-content,
    .education-content,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .about-image,
    .education-image,
    .contact-image {
        max-width: 300px;
        margin: 0 auto 2rem;
    }

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

    .contact-links {
        align-items: center;
    }

    .nav-menu {
        display: none;
        /* Add JS for mobile menu later if needed, or keep simple */
    }

    .hamburger {
        display: flex;
    }

    .timeline::before {
        left: 0;
    }

    .timeline-item {
        padding-left: 30px;
    }

    .contact-links {
        flex-direction: column;
        gap: 1rem;
    }
}