:root {
    --primary: #2a6bff;
    --primary-light: #e6eeff;
    --primary-dark: #1a56d8;
    --secondary: #00c4cc;
    --accent: #ff7d45;
    --text: #1a1a1a;
    --text-light: #666;
    --text-lighter: #999;
    --bg: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #0f172a;
    --border: #e0e0e0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    --transition: all 0.1s ease;
    --slider-bg-color: #4d4d4d;
    --slider-circle-color: #f0f0f0;
    --btn-text: #ffffff;
}

[data-theme="dark"] {
    --primary: #16DB93;
    --primary-light: rgba(22, 219, 147, 0.1);
    --primary-dark: #14c483;
    --secondary: #EFCA08;
    --accent: #E94560;
    --text: #F0F0F0;
    --text-light: #c8c8c8;
    --text-lighter: #a0a0a0;
    --bg: #1A1A2E;
    --bg-light: #242438;
    --bg-dark: #121224;
    --border: #2d2d45;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.4);
    --slider-bg-color: #16DB93;
    --slider-circle-color: #ffffff;
    --btn-text: #0D0D1A;
}

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

html,
body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    transition: var(--transition);
    -webkit-font-smoothing: antialiased;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

h1,
h2,
h3,
h4 {
    font-weight: 600;
    line-height: 1.2;
}

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

img, video, table, pre, canvas, svg {
    max-width: 100%;
    height: auto;
}

pre, table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

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

.section {
    padding: 6rem 0;
}

.section-header {
    margin-bottom: 3rem;
    text-align: center;
}

.section-header.left-align {
    text-align: left;
}

@media (max-width: 768px) {
    .section-header {
        margin-top: 1rem;
    }
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 500px;
    margin: 0 auto;
}

.section-header.left-align .section-subtitle {
    margin: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary);
    color: var(--btn-text);
    box-shadow: var(--shadow-sm);
    font-weight: 600;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary i {
    color: var(--primary);
}

.btn-secondary:hover {
    background: var(--bg-light);
    border-color: var(--primary);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1rem 0;
    background: var(--bg);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9);
    width: 100%;
    box-sizing: border-box;
}

[data-theme="dark"] .header {
    background: rgba(10, 10, 10, 0.9);
}

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

.logo {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    color: var(--primary);
}

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

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

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

.nav-links a.active {
    color: var(--text);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
}

/* Hidden navigation items and sections */
.hidden-nav-item {
    display: none !important;
}

/* Hide commented sections completely */
.section {
    display: block;
}

/* This will override the above rule when a section is commented out */
.section.commented-out {
    display: none !important;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border: none;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.theme-toggle:hover {
    color: var(--text);
    background: var(--primary-light);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.25rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding-top: 8rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(to bottom, var(--bg) 0%, var(--bg-light) 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(2rem, 8vw, 3.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-image {
    position: relative;
}

.code-card {
    background: var(--bg-dark);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.code-header {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.code-dot {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
}

.dot-red {
    background: #ff5f56;
}

.dot-yellow {
    background: #ffbd2e;
}

.dot-green {
    background: #27c93f;
}

.code-content {
    font-family: 'Menlo', 'Monaco', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #e5e7eb;
}

.code-line {
    display: flex;
    margin-bottom: 0.5rem;
}

.line-number {
    color: var(--text-lighter);
    margin-right: 1rem;
    min-width: 2rem;
    text-align: right;
}

.keyword {
    color: #8b5cf6;
}

.function {
    color: #3b82f6;
}

.string {
    color: #10b981;
}

.comment {
    color: #6b7280;
}

/* About Section */
.about {
    background: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Premium profile image wrapper */
.about-image {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
}

.profile-image-wrapper {
    position: relative;
    width: 280px;
    height: 340px;
    flex-shrink: 0;
}

/* Gradient glow ring behind the image */
.profile-image-wrapper::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: calc(var(--radius-xl) + 4px);
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--primary));
    z-index: 0;
    opacity: 0.7;
    filter: blur(1px);
}

/* Soft outer glow */
.profile-image-wrapper::after {
    content: '';
    position: absolute;
    inset: -16px;
    border-radius: calc(var(--radius-xl) + 16px);
    background: radial-gradient(ellipse at center, rgba(42, 107, 255, 0.18) 0%, transparent 70%);
    z-index: 0;
    animation: profileGlow 4s ease-in-out infinite alternate;
}

@keyframes profileGlow {
    from {
        opacity: 0.5;
        transform: scale(1);
    }

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

.profile-image-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--bg-dark);
    box-shadow: var(--shadow-lg);
    animation: profileFloat 6s ease-in-out infinite;
}

@keyframes profileFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.profile-image-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.skill-item {
    background: var(--bg);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border);
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.skill-item:hover {
    transform: translateY(-5px) !important;
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
    transition-duration: 0.1s !important;
}

.skill-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
    transition: transform 0.1s ease;
}

.skill-item:hover .skill-icon {
    transform: scale(1.2);
}

/* LangChain logo: swap light/dark variant with theme */
.langchain-light,
.langchain-dark {
    display: block;
    margin: 0 auto;
}

.langchain-dark {
    display: none;
}

[data-theme="dark"] .langchain-light {
    display: none;
}

[data-theme="dark"] .langchain-dark {
    display: block;
}

.skill-item div:last-child {
    font-size: 0.95rem;
    line-height: 1.2;
    font-weight: 500;
}

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

.project-card {
    background: var(--bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.project-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.project-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
    transition-duration: 0.1s !important;
}

.project-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    overflow: hidden;
}

.project-image i {
    transition: transform 0.1s ease;
}

.project-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--text-lighter);
}

.project-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.project-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    flex: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background: var(--primary-light);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.project-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.project-card:hover .project-image {
    background: linear-gradient(135deg, var(--primary-dark), var(--accent));
}

.project-card:hover .project-image i {
    transform: scale(1.2);
}

.project-card-link:hover .project-title {
    color: var(--primary);
}

.project-card-link:hover .read-more-btn {
    background: var(--primary);
    color: var(--btn-text);
}

.project-card-link:hover .read-more-btn i {
    color: var(--btn-text);
}

/* Blog Section */
.blog {
    background: var(--bg-light);
}

.blog-grid,
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.blog-card {
    display: flex;
    flex-direction: column;
    height: auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
    transition-duration: 0.1s !important;
}

.blog-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.blog-image {
    height: 180px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--btn-text);
    font-size: 2.5rem;
}

.blog-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--text-lighter);
}

.blog-title {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.blog-excerpt {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    flex: 1;
}

.blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-excerpt {
    flex: 1;
}

/* Add these for enhanced hover effects */
.blog-link:hover .blog-title {
    color: var(--primary);
}

.blog-link:hover .read-more-btn {
    background: var(--primary);
    color: var(--btn-text);
}

.blog-link:hover .read-more-btn i {
    color: var(--btn-text);
}

.blog-card:hover .blog-image {
    background: linear-gradient(135deg, var(--primary-dark), var(--accent));
}

.read-more-btn {
    margin-top: auto;
    align-self: flex-start;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.contact-info p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

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

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.contact-method:hover {
    background: var(--primary-light);
}

.contact-icon {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: var(--btn-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.contact-form {
    background: var(--bg);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg);
    color: var(--text);
    transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(42, 107, 255, 0.2);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-section p,
.footer-section a {
    color: #b0b0b0;
    margin-bottom: 0.75rem;
    display: block;
}

.footer-section a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
}

/* ── Reading Progress ── */
#reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--primary);
    z-index: 9999;
    transition: width 0.1s linear;
}


.social-link {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: #808080;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--bg);
    padding: 1rem;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--border);
    z-index: 999;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu a {
    display: block;
    padding: 1rem;
    color: var(--text);
    border-radius: var(--radius-sm);
}

.mobile-menu a:hover {
    background: var(--bg-light);
}

/* Responsive Design */
@media (max-width: 1024px) {

    .hero-content,
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image {
        justify-content: center;
        align-items: center;
    }

    .hero-text {
        order: 1;
        text-align: center;
        margin: 0 auto;
    }

    .hero-image {
        order: 2;
        margin: 0 auto;
    }

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

    .hero-text p {
        margin: 0 auto 2rem;
    }

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

@media (max-width: 768px) {
    .section {
        padding: 6rem 0 4rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .projects-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        margin-top: 0;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Experience cards - stack header vertically on mobile */
    .exp-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .exp-meta {
        text-align: left;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .exp-toggle {
        position: absolute;
        top: 1rem;
        right: 1rem;
    }

    .exp-card {
        position: relative;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.slide-up {
    animation: slideUp 0.6s ease forwards;
}

/* Scroll animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Fast transitions for cards and skill items after reveal */
.project-card.revealed,
.blog-card.revealed,
.skill-item.revealed {
    transition: var(--transition) !important;
}

/* Code typing animation */
@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: var(--primary);
    margin-left: 2px;
    animation: blink 1s infinite;
    vertical-align: middle;
}

/* See All Articles Button */
.see-all-container {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.see-all-container .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.see-all-container .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ═══════════════════════════════════════
   IMPACT / STATS STRIP
   ═══════════════════════════════════════ */
.impact-bar {
    padding: 3.5rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-light);
}

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

.impact-stat {
    padding: 2rem;
    text-align: center;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: background 0.3s;
}

.impact-stat:hover {
    background: var(--primary-light);
}

.impact-number {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.impact-label {
    font-size: 0.8125rem;
    color: var(--text-lighter);
    margin-top: 0.5rem;
    letter-spacing: 0.5px;
}

/* ═══════════════════════════════════════
   EXPERIENCE TIMELINE
   ═══════════════════════════════════════ */
.experience-section {
    padding: 6rem 0;
}

.exp-section-label {
    font-size: 0.75rem;
    color: var(--primary);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    font-family: 'Menlo', 'Monaco', monospace;
}

.timeline {
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--border) 10%, var(--border) 90%, transparent);
}

.exp-item {
    position: relative;
    padding-left: 72px;
    margin-bottom: 1rem;
}

.exp-dot {
    position: absolute;
    left: 20px;
    top: 28px;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--primary);
    z-index: 1;
    transition: box-shadow 0.3s;
}

.exp-item:hover .exp-dot {
    box-shadow: 0 0 16px var(--primary);
}

.exp-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    cursor: pointer;
    transition: border-color 0.3s;
}

.exp-card:hover,
.exp-card.open {
    border-color: var(--primary);
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.exp-header>div:first-child {
    flex: 1;
}

.exp-company {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--text);
}

.exp-role {
    font-size: 0.875rem;
    color: var(--primary);
    margin-top: 0.25rem;
}

.exp-meta {
    text-align: right;
    flex-shrink: 0;
}

.exp-dates {
    font-family: 'Menlo', 'Monaco', monospace;
    font-size: 0.75rem;
    color: var(--text-lighter);
    background: var(--bg-light);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    min-width: 170px;
    text-align: center;
    display: inline-block;
}

.exp-location {
    font-size: 0.75rem;
    color: var(--text-lighter);
    margin-top: 0.375rem;
}

.exp-toggle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-light);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    /* Slightly smaller for FA icon */
    color: var(--primary);
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-top: 2px;
}

.exp-card.open .exp-toggle {
    transform: rotate(45deg);
}

.exp-badges {
    margin-top: 0.625rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.exp-badge {
    display: inline-block;
    background: var(--primary-light);
    border: 1px solid var(--border);
    color: var(--primary);
    font-size: 0.7rem;
    padding: 2px 10px;
    border-radius: var(--radius-full);
}

.exp-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.3s;
}

.exp-body.show {
    max-height: 700px;
    padding-top: 1.25rem;
}

.exp-body ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.exp-body li {
    font-size: 0.875rem;
    color: var(--text-light);
    padding-left: 1.25rem;
    position: relative;
    line-height: 1.7;
}

.exp-body li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

/* ═══════════════════════════════════════
   GEN AI SECTION
   ═══════════════════════════════════════ */
.genai-section {
    padding: 6rem 0;
    background: var(--bg-light);
}

.genai-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.genai-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: border-color 0.3s, transform 0.2s, box-shadow 0.3s;
}

.genai-card:hover {
    border-color: var(--secondary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.genai-icon {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.genai-title {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text);
    line-height: 1.4;
}

/* ═══════════════════════════════════════
   FEATURED PROJECT
   ═══════════════════════════════════════ */
.featured-projects-section {
    padding: 6rem 0;
}

.project-feature-card {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.project-feature-card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 60px rgba(42, 107, 255, 0.07);
}

.project-status-badge {
    display: inline-block;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: #d97706;
    font-size: 0.7rem;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    margin-bottom: 1.25rem;
    font-family: 'Menlo', 'Monaco', monospace;
    letter-spacing: 0.5px;
}

[data-theme="dark"] .project-status-badge {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.08);
}

.project-feature-title {
    font-size: clamp(1.375rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 1.25rem;
    color: var(--text);
}

.project-bullets {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.project-bullets li {
    font-size: 0.8125rem;
    color: var(--text-light);
    padding-left: 1.125rem;
    position: relative;
    line-height: 1.6;
}

.project-bullets li::before {
    content: '◆';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 8px;
    top: 5px;
}

/* ═══════════════════════════════════════
   SKILLS SECTION
   ═══════════════════════════════════════ */
.skills-new-section {
    padding: 6rem 0;
    background: var(--bg-light);
}

.skills-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.skill-category-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: border-color 0.3s;
}

.skill-category-card:hover {
    border-color: var(--primary);
}

.skill-category-name {
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--primary);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.875rem;
}

.skill-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag-pill {
    background: var(--bg-light);
    border: 1px solid var(--border);
    color: var(--text);
    font-family: 'Menlo', 'Monaco', monospace;
    font-size: 0.75rem;
    padding: 5px 13px;
    border-radius: var(--radius-sm);
    transition: border-color 0.2s, color 0.2s;
}

.skill-tag-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ═══════════════════════════════════════
   RESPONSIVE - NEW SECTIONS
   ═══════════════════════════════════════ */
@media (max-width: 991px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-text p {
        margin: 0 auto 2rem;
    }

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

    .hero, .section {
        padding-top: 6rem;
        padding-bottom: 4rem;
        min-height: auto;
        display: block;
        overflow-x: hidden;
        width: 100%;
    }

    .hero .container, .section .container, .container {
        max-width: 100%;
        overflow-x: hidden;
        width: 100%;
        min-width: 0;
    }

    .hero-text,
    .hero-image {
        min-width: 0;
        width: 100%;
    }

    .code-card {
        padding: 1rem;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .code-content {
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 0.75rem 0;
    }

    .logo {
        font-size: 1.1rem;
        flex-shrink: 0;
    }

    .nav {
        width: 100%;
        gap: 0.5rem;
    }

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

    .timeline::before {
        left: 14px;
    }

    .exp-item {
        padding-left: 44px;
    }

    .exp-dot {
        left: 6px;
    }

    .project-bullets {
        grid-template-columns: 1fr;
    }

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

    .exp-meta {
        text-align: left;
    }
}

@media (max-width: 600px) {
    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }

    .hero-buttons .btn {
        width: 100%;
        padding: 0.625rem 1rem;
        font-size: 0.9rem;
    }

    .hero-content {
        gap: 1.5rem;
        width: 100%;
    }

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

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