:root {
    --bg-color: #f8fafc;
    --surface-color: #ffffff;
    --primary-color: #4f46e5;
    --secondary-color: #0891b2;
    --text-main: #0f172a;
    --text-muted: #475569;
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}


.projects-dual-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 0 2rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.project-dual-col {
    display: flex;
    flex-direction: column;
}

.project-dual-col .project-category {
    margin-bottom: 1rem !important;
    scroll-margin-top: 300px;
}

.project-card-text {
    background: var(--surface-color);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.project-card-text h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

.project-card-text p {
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
    font-size: 0.95rem;
}

.project-card-text .tech-stack {
    font-size: 0.88rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 1rem;
    margin-top: auto;
}

/* Lightbox navigation arrows */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    backdrop-filter: blur(4px);
    transition: background 0.2s;
}

.lightbox-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.lightbox-nav.prev {
    left: 1.5rem;
}

.lightbox-nav.next {
    right: 1.5rem;
}

.lightbox-nav:disabled {
    opacity: 0.25;
    cursor: default;
}

/* Lightbox image counter */
.lightbox-counter {
    position: absolute;
    bottom: 1.2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    background: rgba(0, 0, 0, 0.45);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

@media (max-width: 768px) {
    .projects-dual-row {
        grid-template-columns: 1fr;
        padding: 0 1rem 1rem;
    }

    .lightbox-nav {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .lightbox-nav.prev {
        left: 0.5rem;
    }

    .lightbox-nav.next {
        right: 0.5rem;
    }
}

/* ── Navbar ── */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 400;
    transition: color 0.3s;
}

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

/* ── Hero ── */
.hero {
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 3rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: var(--secondary-color);
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.08;
    top: -100px;
    right: -100px;
    z-index: 0;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 1;
}

/* Center wrapper: single centered column now that the video is gone */
.hero-center-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* Info row: photo left, text block right, vertically centered together */
.hero-info-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 2.5rem;
    margin-bottom: 0;
}

.hero-left-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: -100px;
    /* shift leftwards */
}

.hero-left-links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
    justify-content: center;
    align-items: center;
}


.photo-container {
    position: relative;
    flex-shrink: 0;
}

.profile-photo {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid transparent;
    background: linear-gradient(var(--bg-color), var(--bg-color)) padding-box, var(--gradient) border-box;
    position: relative;
    z-index: 2;
    display: block;
}

.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: var(--gradient);
    filter: blur(20px);
    opacity: 0.15;
    z-index: 1;
    animation: pulse 4s infinite alternate;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.05);
        opacity: 0.6;
    }
}

/* Text block: name / email / buttons / tagline / certified badges, left-aligned */
.hero-text-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    margin-top: 30px;
}

.hero-text-block h1 {
    font-size: 3rem;
    line-height: 1.1;
}

.highlight {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 3.5rem;
}

.hero-email-line {
    font-size: 1rem;
    color: var(--text-muted);
    margin: 0;
}

.hero-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-top: 0.2rem;
}

.hero-btn {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    border: 1px solid var(--primary-color);
    border-radius: 50px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: rgba(79, 70, 229, 0.03);
}

.hero-btn:hover {
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(79, 70, 229, 0.4);
    transform: translateY(-2px);
}

/* Tagline under the buttons */

.hero-tagline {
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--text-main);
    max-width: 480px;
    margin-top: 2rem;
    line-height: 1.5;
    text-align: left;
}

/* "Microsoft Certified" label + badge images */
.hero-certified {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    margin-top: 0.8rem;
    flex-wrap: wrap;
}

.hero-certified-label {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: 0.5px;
    text-transform: none;
}

.hero-badges {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-badges img {
    height: 70px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.hero-badges img:hover {
    transform: scale(1.05);
}

/* ── Lightbox ── */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 0 60px rgba(0, 240, 255, 0.2);
    cursor: default;
    animation: lbFadeIn 0.2s ease;
}

@keyframes lbFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lightbox-close {
    position: fixed;
    top: 1.2rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.4rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10000;
}

.lightbox-close:hover {
    background: var(--primary-color);
    color: #ffffff;
}

/* ── Projects ── */
.projects-section {
    padding: 1.5rem 2rem 2rem;
    max-width: 1350px;
    margin: 0 auto;
    margin-top: 50px;
}

/* Project category badge — centered, larger */
.project-category {
    display: block;
    text-align: center;
    padding: 0.45rem 1.2rem;
    border-radius: 20px;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    letter-spacing: 0.5px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.category-dl {
    background: rgba(79, 70, 229, 0.08);
    color: var(--primary-color);
    border: 1px solid rgba(79, 70, 229, 0.2);
}

.category-data {
    background: rgba(8, 145, 178, 0.08);
    color: var(--secondary-color);
    border: 1px solid rgba(8, 145, 178, 0.2);
}

.category-ml {
    background: rgba(13, 148, 136, 0.08);
    color: #0d9488;
    border: 1px solid rgba(13, 148, 136, 0.2);
}

.category-genai {
    background: rgba(217, 119, 6, 0.08);
    color: #d97706;
    border: 1px solid rgba(217, 119, 6, 0.2);
}

.project-card {
    display: flex;
    gap: 4rem;
    background: var(--surface-color);
    padding: 3rem;
    border-radius: 24px;
    margin-bottom: 4rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(79, 70, 229, 0.2);
}

.project-card.reverse {
    flex-direction: row-reverse;
}

.project-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

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

.project-visuals {
    flex: 1;
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

.visual-placeholder {
    width: 100%;
    height: 300px;
    background: rgba(0, 0, 0, 0.02);
    border: 2px dashed rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
    padding: 1rem;
}

.visual-img {
    width: 100%;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Clickable images */
.lightbox-trigger {
    cursor: zoom-in;
    transition: opacity 0.2s, transform 0.2s;
}

.lightbox-trigger:hover {
    opacity: 0.88;
    transform: scale(1.01);
}

/* ── Project Slider ── */
.project-slider {
    position: relative;
    width: 100%;
    height: 350px;
    border-radius: 16px;
    overflow: hidden;
    background: #f1f5f9;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.slides-track-container {
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.slides-track {
    display: flex;
    height: 100%;
    width: 100%;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.slide img.visual-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
    display: block;
}

.slide .visual-placeholder {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0;
    background: rgba(0, 0, 0, 0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    padding: 2rem;
    text-align: center;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.slider-arrow:hover {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 0 12px rgba(79, 70, 229, 0.4);
}

.prev-arrow {
    left: 12px;
}

.next-arrow {
    right: 12px;
}

.slider-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.slider-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dots .dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
    box-shadow: 0 0 6px var(--primary-color);
}

/* ── Skills & Experience — reduced spacing ── */
.skills-cert-section {
    padding: 3rem 2rem 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.experience-section {
    padding: 2rem 2rem 6rem;
    max-width: 900px;
    margin: 0 auto;
}

.skills-vertical-container,
.certifications-vertical-container,
.experience-vertical-container,
.education-vertical-container {
    margin-bottom: 3rem;
}

.skills-vertical-container h3,
.certifications-vertical-container h3,
.experience-vertical-container h3,
.education-vertical-container h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

/* Tech stack panel */
.tech-stack {
    margin-top: 1rem;
    padding: 0.8rem 1rem;
    background: rgba(0, 0, 0, 0.02);
    border-left: 3px solid var(--primary-color);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.tech-stack strong {
    color: var(--primary-color);
    font-weight: 600;
    margin-right: 0.5rem;
}

/* ── Timeline ── */
.timeline {
    border-left: 2px solid rgba(0, 0, 0, 0.08);
    padding-left: 2rem;
    position: relative;
}

.timeline-item {
    margin-bottom: 2rem;
    position: relative;
}

.timeline-dot {
    position: absolute;
    left: -2.45rem;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 4px solid var(--bg-color);
}

.timeline-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.timeline-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.04);
    padding: 3px;
    flex-shrink: 0;
}

.timeline-item h4 {
    font-size: 1.2rem;
    color: var(--text-main);
}

.timeline-item h5 {
    color: var(--primary-color);
    font-weight: 400;
    margin-bottom: 0.5rem;
}

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

/* ── Skills box ── */
.skills-cert-container {
    background: var(--surface-color);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.compact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.compact-list>li {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
    color: var(--text-muted);
}

.compact-list>li:last-child {
    margin-bottom: 0;
}

.compact-list>li strong {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.cert-item-compact ul {
    list-style: none;
    padding-left: 1.5rem;
    margin-top: 0.8rem;
}

.cert-item-compact ul li {
    font-size: 1.05rem;
    line-height: 1.5;
    margin-bottom: 0.6rem;
    position: relative;
}

.cert-item-compact ul li::before {
    content: '▹';
    position: absolute;
    left: -1.2rem;
    color: var(--primary-color);
}

.cert-item-compact ul li a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.3s;
}

.cert-item-compact ul li a:hover {
    color: var(--primary-color);
}

/* ── Footer ── */
footer {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--surface-color);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

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

/* ── Dropdown ── */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    min-width: 180px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    z-index: 1;
}

.dropdown-content a {
    color: var(--text-main);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    margin: 0;
}

.dropdown-content a:hover {
    background: rgba(79, 70, 229, 0.08);
    color: var(--primary-color);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .hero-info-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hero-text-block {
        align-items: center;
    }

    .hero-links,
    .hero-certified,
    .hero-badges {
        justify-content: center;
        align-items: center;
    }

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

    .profile-photo {
        width: 180px;
        height: 180px;
    }

    .glow-effect {
        width: 135px;
        height: 135px;
    }

    .hero-text-block h1 {
        font-size: 2.2rem;
    }

    .project-card,
    .project-card.reverse {
        flex-direction: column;
    }

    .skills-cert-section,
    .experience-section {
        padding: 2rem 1.5rem;
    }
}

/* ── AI/ML Projects Collapsible Accordion ── */
.aiml-projects-section {
    padding: 3rem 2rem 5rem;
    max-width: 900px;
    margin: 0 auto;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.accordion-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion-item {
    background: var(--surface-color);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.accordion-item:hover {
    border-color: rgba(79, 70, 229, 0.3);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
}

.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    font-size: 1.15rem;
    font-weight: 600;
    transition: background 0.3s;
}

.accordion-header:hover {
    background: rgba(79, 70, 229, 0.03);
}

.accordion-icon {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-inner {
    padding: 0 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: 0;
    padding-top: 1.25rem;
}

.accordion-inner h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.accordion-inner .github-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
}

.accordion-inner .github-link:hover {
    text-decoration: underline;
}

.accordion-inner p {
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
    font-size: 1rem;
}