:root{--bg-color:#0F1011;--card-bg:#121212;--text-main:#fff;--text-secondary:#a1a1aa;--accent-blue:#3b82f6;--accent-purple:#8b5cf6;--accent-pink:#ec4899;--border-color:#27272a;--hover-bg:#27272a;--font-main:'Inter',sans-serif}
/* Local Inter font faces */
/* Removed 300 weight - not used */
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url('assets/fonts/Inter-400.woff2') format('woff2')}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url('assets/fonts/Inter-500.woff2') format('woff2')}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url('assets/fonts/Inter-600.woff2') format('woff2')}
@font-face{font-family:'Inter';font-style:normal;font-weight:700;font-display:swap;src:url('assets/fonts/Inter-700.woff2') format('woff2')}
:root{--bg-color:#0F1011;--card-bg:#121212;--text-main:#fff;--text-secondary:#a1a1aa;--accent-blue:#3b82f6;--accent-purple:#8b5cf6;--accent-pink:#ec4899;--border-color:#27272a;--hover-bg:#27272a;--font-main:'Inter',sans-serif}

*{margin:0;padding:0;box-sizing:border-box}

html {
    overflow-x: hidden;
    overflow-y: scroll;
    scroll-behavior: smooth;
    height: 100%;
}

body{font-family:var(--font-main);background-color:var(--bg-color);min-height:100%;
    /* --- OPTION 1: IMAGE/GIF BACKGROUND --- */
    /* To use, uncomment the lines below and change the filename */
    /* background-image: url('assets/backgrounds/bg.jpg'); */
    /* background-size: cover; */
    /* background-position: center; */
    /* background-attachment: fixed; */
    /* background-repeat: no-repeat; */

    color:var(--text-main);line-height:1.6;overflow:hidden}

/* --- OPTION 2: VIDEO BACKGROUND STYLES --- */
#bg-video {
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -999;
    object-fit: cover;
    opacity: 0.4; /* Adjusts video brightness (0.1 to 1.0) */
}

a{text-decoration:none;color:inherit;transition:color .3s ease}

ul{list-style:none}

.container{max-width:1200px;margin:0 auto;padding:0 2rem}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-white {
    background-color: #fff;
    color: #000;
    border: 1px solid #fff;
}

.btn-white:hover {
    background-color: #e5e5e5;
    border-color: #e5e5e5;
}

.btn-outline {
    background-color: transparent;
    color: #fff;
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background-color: var(--hover-bg);
    border-color: #fff;
}

/* Navbar */
.navbar {
    padding: 1.5rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
}

.logo-img {
    width: 128px;
    height: 32px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--text-main);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: white;
}

/* Hero Section */
.hero {
    padding-top: 8rem;
    padding-bottom: 6rem;
    position: relative;
    overflow: hidden;

    /* --- HERO BACKGROUND GIF --- */
    /* 1. Place your 'hero-bg.gif' in assets/images/hero/ */
    /* 2. Uncomment the lines below: */
    
    background-image: url('assets/images/hero/hero-bg.gif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Dark Overlay for Hero Background */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 5, 0.5); /* Adjust opacity (0.85) to make GIF darker/lighter */
    z-index: 0;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.status-badge i {
    color: var(--accent-blue);
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.gradient-text {
    background: linear-gradient(to right, #60a5fa, #c084fc, #f472b6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--text-secondary);
    font-size: 1.25rem;
}

.social-links a:hover {
    color: var(--text-main);
}

.hero-image {
    position: relative;
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 1/1.2; /* Matched to profile page aspect ratio */
    background-color: #1a1a1a;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(59, 130, 246, 0.3); /* Match profile page border */
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5), 0 0 20px rgba(59, 130, 246, 0.1); /* Match profile page shadow */
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.floating-card {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(12px);
    padding: 1rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid rgba(255,255,255,0.1);
}

.icon-box {
    width: 40px;
    height: 40px;
    background: var(--accent-purple);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.card-text {
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
}

.card-text span {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.glow-effect {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(0,0,0,0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    pointer-events: none;
}

/* Featured Work */
.work-section {
    padding: 6rem 0;
}

.section-header {
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-secondary);
    max-width: 600px;
}

.project-card {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    margin-bottom: 6rem;
    align-items: center;
}

.project-card.reverse {
    direction: rtl;
}

.project-card.reverse .project-info {
    direction: ltr;
}

.project-meta {
    color: var(--accent-blue);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.project-info p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.tags span {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    border: 1px solid var(--border-color);
}

.link-arrow {
    color: var(--accent-blue);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.project-image {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    aspect-ratio: 16/10;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-image:hover img {
    transform: scale(1.05);
}

/* About Section */
.about-section {
    padding: 6rem 0;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.about-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.about-stats {
    display: flex;
    gap: 4rem;
    margin-top: 3rem;
}

.stat h4 {
    font-size: 0.9rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.stat p {
    color: var(--text-secondary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.about-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 200px;
    gap: 1rem;
}

.about-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.img-grid-1 {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
}

.img-grid-2 {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}

.img-grid-3 {
    grid-column: 1 / 3;
    grid-row: 2 / 3;
}

/* Experience Section */
.experience-section {
    padding: 6rem 0;
}

.section-subtitle {
    color: var(--text-secondary);
    margin-bottom: 4rem;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-blue), var(--accent-purple), var(--accent-pink), transparent);
}

.timeline-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--bg-color);
    border: 2px solid;
    margin-top: 1.5rem;
    margin-left: 19px;
    z-index: 1;
    flex-shrink: 0;
}

.timeline-dot.blue { border-color: var(--accent-blue); box-shadow: 0 0 10px var(--accent-blue); }
.timeline-dot.purple { border-color: var(--accent-purple); box-shadow: 0 0 10px var(--accent-purple); }
.timeline-dot.indigo { border-color: #6366f1; box-shadow: 0 0 10px #6366f1; }
.timeline-dot.red { border-color: #ef4444; box-shadow: 0 0 10px #ef4444; }

.timeline-content {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    width: 100%;
}

.role-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.company-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.meta-logo { background-color: #0064e0; color: white; }
.insta-logo { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: white; }
.stripe-logo { background-color: #635bff; color: white; }
.adobe-logo { background-color: #ff0000; color: white; }

.role-title h3 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.role-title .company {
    color: var(--accent-blue);
    font-size: 0.9rem;
}

.role-date {
    margin-left: auto;
    text-align: right;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.role-date .duration {
    font-size: 0.75rem;
    opacity: 0.7;
}

.timeline-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* FAQ Section */
.faq-section {
    padding: 6rem 0;
}

.faq-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
}

.faq-left h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.faq-left > p {
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.testimonial-card {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.user-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.user-profile div {
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
}

.user-profile span {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.stars {
    color: #fbbf24;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.testimonial-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
}

.faq-buttons {
    display: flex;
    gap: 1rem;
}

.accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion-item {
    background-color: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
}

.accordion-header i {
    transition: transform 0.3s ease;
}

.accordion-header.active i {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1.5rem;
}

.accordion-content p {
    padding-bottom: 1.5rem;
    color: var(--text-secondary);
}

/* Contact Section */
.contact-section {
    padding: 8rem 0 4rem;
    text-align: center;
    background: radial-gradient(circle at center, rgba(255,255,255,0.03) 0%, rgba(0,0,0,0) 70%);
}

.contact-container h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.contact-container p {
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 6rem;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    display: flex;
    justify-content: flex-end;
    max-width: 1200px;
    margin: 0 auto;
    padding-right: 2rem;
}

.made-in {
    background-color: #1a1a1a;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Homepage spacing overrides (index only) */
.home .hero{padding-top:8rem;padding-bottom:3rem}
.home .work-section,.home .about-section,.home .experience-section,.home .faq-section,.home .skills-section{padding:0 0 3rem}
.home .contact-section{padding:5rem 0 3rem}

/* Project Page Styles */
.page-header {
    padding-top: 8rem;
    padding-bottom: 4rem;
    text-align: center;
    background: radial-gradient(circle at top, rgba(59, 130, 246, 0.1) 0%, rgba(0,0,0,0) 50%);
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.project-detail-section {
    padding: 6rem 0;
    border-bottom: 1px solid var(--border-color);
}

.project-detail-section.alt-bg {
    background-color: rgba(255, 255, 255, 0.02);
}

.project-header-block {
    margin-bottom: 3rem;
}

.project-title-wrapper {
    display: flex;
    align-items: baseline;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.project-number {
    font-size: 4rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.05);
    line-height: 1;
    font-family: monospace;
}

.project-header-block h2 {
    font-size: 2.5rem;
    color: var(--text-main);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.project-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 100%; /* prevent overflow */
    line-height: 1.8;
    text-align: left; /* align all project descriptions to the right */
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Utilities for per-element adjustments on projects page */
.project-desc.full-width { max-width: none; }
.project-desc.align-right { text-align: left; }

.project-body {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start; /* Ensure top alignment */
    width: 100%;
    max-width: 100%;
}

/* Fix for grid overflow issues */
.project-body > * {
    min-width: 0;
    max-width: 100%;
}

.project-tasks h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--accent-blue);
}

.task-list {
    list-style: none;
}

.task-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.task-list li::before {
    content: "•";
    color: var(--accent-purple);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    line-height: 1.5;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* robust 2 columns */
    /* remove explicit rows; let grid auto-create rows */
    grid-auto-rows: 1fr; /* keep rows equal height */
    gap: 1rem;
    width: 100%;
    max-width: 100%;
}

.project-gallery img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    border-radius: 8px;
    aspect-ratio: 4/3;
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}

.project-gallery img:hover {
    transform: scale(1.03);
    z-index: 1;
    border-color: var(--accent-blue);
}

/* Profile Page Styles */
.profile-bio-section {
    padding: 4rem 0 6rem;
}

.bio-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.bio-image {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(59, 130, 246, 0.3); /* Subtle blue border */
    aspect-ratio: 1/1.2;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5), 0 0 20px rgba(59, 130, 246, 0.1); /* Professional shadow + glow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bio-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6), 0 0 30px rgba(59, 130, 246, 0.2);
}

.bio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bio-content h2 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.role-subtitle {
    color: var(--accent-blue);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    font-weight: 500;
}

.bio-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.bio-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border-color);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
}

.info-item i {
    color: var(--accent-purple);
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

/* Skills Section */
.skills-section {
    padding: 6rem 0;
}

.skills-section.alt-bg {
    background-color: rgba(255, 255, 255, 0.02);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.skill-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
}

.skill-icon {
    width: 50px;
    height: 50px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-blue);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.skill-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.skill-list {
    list-style: none;
}

.skill-list li {
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-list li::before {
    content: "▹";
    color: var(--accent-purple);
}

/* Certifications Section */
.cert-section {
    padding: 6rem 0;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.cert-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.cert-header {
    margin-bottom: 1.5rem;
}

.cert-header i {
    font-size: 2.5rem;
    color: var(--accent-pink);
    margin-bottom: 1rem;
    display: block;
}

.cert-header h3 {
    font-size: 1.1rem;
}

.cert-issuer {
    color: var(--accent-blue);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.cert-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* --- ANIMATED BACKGROUND STYLES (CANVAS) --- */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2; /* Behind everything */
    background: radial-gradient(circle at center, #1a1a2e 0%, #050505 100%); /* Deep space gradient */
}

/* Responsive */
@media (max-width: 968px) {
    .hero-container,
    .about-container,
    .faq-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero {
        text-align: center;
        padding-top: 6rem;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons, .social-links {
        justify-content: center;
    }

    .project-card {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .project-card.reverse {
        direction: ltr;
    }

    .project-card.reverse .project-info {
        direction: ltr;
    }

    .project-image {
        order: -1;
    }

    .timeline::before {
        left: 20px;
    }
    
    .timeline-dot {
        margin-left: 15px;
    }

    .project-body {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .project-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }
    
    .project-tasks {
        order: 2;
    }
    
    .project-gallery {
        order: 1;
    }

    .bio-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .bio-image {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 1.25rem; /* Reduced side padding for more content space */
        max-width: 100%;
        overflow-x: hidden;
    }

    .hero h1 {
        font-size: 2.2rem; /* Slightly smaller for better fit */
    }

    .section-header h2, 
    .about-content h2,
    .contact-container h2,
    .section-title,
    .bio-content h2 {
        font-size: 2rem; /* Consistent smaller headings */
    }

    .hero-subtitle, 
    .project-desc,
    .bio-content p {
        font-size: 1rem; /* Readable body text */
    }
    
    .hamburger {
        display: block;
    }

    /* Reduce vertical spacing between sections */
    .work-section, 
    .about-section, 
    .experience-section, 
    .faq-section,
    .skills-section,
    .cert-section,
    .project-detail-section {
        padding: 4rem 0;
    }

    .contact-section {
        padding: 5rem 0 3rem;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px;
        gap: 0;
        flex-direction: column;
        background-color: #050505;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        padding: 2rem 0;
        display: flex; /* Override display:none from previous code if it was there, but here we are replacing the block */
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 16px 0;
    }

    .nav-container .btn {
        display: none;
    }

    .contact-buttons {
        flex-direction: column;
    }
    
    .project-title-wrapper {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .project-number {
        font-size: 3rem;
    }
    
    .project-header-block h2 {
        font-size: 1.75rem;
        word-wrap: break-word;
    }
    
    .project-body {
        gap: 1.5rem;
        width: 100%;
    }
    
    .project-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem;
        width: 100%;
    }
    
    .project-gallery img {
        aspect-ratio: 4/3;
        height: auto;
    }
    
    .project-tasks h3 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .task-list li {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
        padding-left: 1.25rem;
    }
    
    .project-desc {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .bio-info-grid {
        grid-template-columns: 1fr;
    }

    /* Mobile Timeline Fix */
    .role-header {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .company-logo {
        margin-bottom: 0.5rem;
    }

    .role-title {
        display: flex;
        flex-direction: column;
        gap: 0.2rem;
    }

    .role-title h3 {
        font-size: 1.1rem;
        line-height: 1.3;
    }

    .role-date {
        text-align: left;
        margin-left: 0;
        margin-top: 0.5rem;
        font-size: 0.85rem;
        color: var(--text-secondary);
    }

    /* Mobile Certifications Grid (3x3) */
    .cert-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .cert-card {
        padding: 0.75rem 0.5rem;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        min-height: 180px; /* Ensure uniform height */
    }

    .cert-header {
        margin-bottom: 0.5rem;
    }

    .cert-header i {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .cert-header h3 {
        font-size: 0.7rem;
        line-height: 1.2;
        margin-bottom: 0.5rem;
    }

    .cert-issuer, .cert-date {
        font-size: 0.6rem;
        line-height: 1.2;
    }

    /* Mobile Logo Size */
    .logo-img {
        width: 128px; /* Smaller logo for mobile */
        height: 28px;
    }
    
    .logo-text {
        font-size: 1rem; /* Slightly smaller text */
    }

}
/* Blog Section Styles */
.blog-section {
    padding: 4rem 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-card {
    background-color: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.blog-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.blog-date {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-category {
    padding: 0.25rem 0.75rem;
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--accent-blue);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.blog-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    color: var(--text-main);
}

.blog-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
    flex-grow: 1;
}

.blog-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-blue);
    font-weight: 500;
    font-size: 0.95rem;
    transition: gap 0.3s ease;
}

.blog-link:hover {
    gap: 0.75rem;
}

.blog-notice {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.blog-notice i {
    font-size: 1.5rem;
    color: var(--accent-blue);
}

.blog-notice p {
    color: var(--text-secondary);
    margin: 0;
    max-width: 600px;
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .blog-notice {
        flex-direction: column;
        padding: 1.5rem;
    }
}

/* Footer Links */
.footer-links {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--text-main);
}

@media (max-width: 768px) {
    .footer-links {
        gap: 1rem;
        font-size: 0.85rem;
    }
}

/* ========================================
   LAB PAGE STYLES
   ======================================== */

.lab-project {
    padding: 4rem 0;
    border-bottom: 1px solid var(--border-color);
}

.lab-project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.lab-project-title {
    font-size: 1.75rem;
    color: var(--text-main);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.lab-project-title i {
    color: var(--accent-blue);
}

.lab-status {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.lab-badge {
    padding: 0.4rem 0.85rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.lab-badge-live {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.lab-badge-demo {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.3);
    text-decoration: none;
    transition: all 0.3s ease;
}

.lab-badge-demo:hover {
    background: rgba(99, 102, 241, 0.25);
    transform: translateY(-2px);
}

.lab-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.lab-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.lab-tech {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.lab-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    width: 100%;
    max-width: 100%;
}

.lab-content > * {
    min-width: 0;
    max-width: 100%;
}

.lab-section {
    margin-bottom: 2rem;
}

.lab-section:last-child {
    margin-bottom: 0;
}

.lab-section-title {
    font-size: 1rem;
    color: var(--accent-blue);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lab-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lab-list li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.65rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.lab-list li::before {
    content: "▸";
    color: var(--accent-purple);
    position: absolute;
    left: 0;
}

.lab-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.lab-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.lab-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-4px);
}

.lab-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.4rem;
}

.lab-card-icon.blue { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.lab-card-icon.purple { background: rgba(168, 85, 247, 0.15); color: #c084fc; }
.lab-card-icon.green { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.lab-card-icon.orange { background: rgba(251, 146, 60, 0.15); color: #fb923c; }
.lab-card-icon.pink { background: rgba(236, 72, 153, 0.15); color: #f472b6; }
.lab-card-icon.cyan { background: rgba(34, 211, 238, 0.15); color: #22d3ee; }

.lab-card h4 {
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.lab-card p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
}

.lab-cta {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.lab-highlight {
    background: rgba(99, 102, 241, 0.08);
    border-left: 3px solid var(--accent-blue);
    padding: 1.25rem 1.5rem;
    border-radius: 0 8px 8px 0;
    margin-top: 2rem;
    max-width: 100%;
    overflow: hidden;
}

.lab-highlight h4 {
    color: var(--text-main);
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
}

.lab-highlight ul {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.lab-highlight li {
    margin-bottom: 0.35rem;
}

/* Infrastructure Grid */
.infra-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
}

.infra-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.infra-item:hover {
    border-color: var(--accent-purple);
    background: rgba(255, 255, 255, 0.05);
}

.infra-item i {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--accent-blue);
}

/* Gallery Modal Styles */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    overflow-y: auto;
    padding: 2rem;
    box-sizing: border-box;
}

.gallery-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-modal-content {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    max-width: 1000px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.gallery-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

.gallery-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.gallery-modal-header h3 i {
    color: var(--accent-blue);
}

.gallery-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.3s ease;
}

.gallery-close:hover {
    color: var(--text-main);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.03);
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-blue);
}

.gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    padding: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
}

.gallery-placeholder {
    width: 100%;
    height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(168, 85, 247, 0.2) 100%);
    color: var(--text-secondary);
    gap: 0.5rem;
}

.gallery-placeholder i {
    font-size: 2.5rem;
    color: var(--accent-blue);
}

.gallery-placeholder span {
    font-size: 0.8rem;
}

.gallery-modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10001;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 2rem;
    box-sizing: border-box;
}

.lightbox.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.lightbox-close:hover {
    opacity: 0.7;
}

#lightbox-img {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

#lightbox-caption {
    color: white;
    margin-top: 1rem;
    font-size: 1rem;
}

/* Lab Page Responsive */
@media (max-width: 900px) {
    .lab-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .lab-cards {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .lab-project-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .lab-project-title {
        font-size: 1.5rem;
        flex-wrap: wrap;
    }
    
    .lab-highlight {
        padding: 1rem;
    }
    
    .lab-highlight ul {
        padding-left: 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-modal {
        padding: 1rem;
    }
    
    .lab-project-title {
        font-size: 1.25rem;
    }
    
    .lab-description {
        font-size: 0.9rem;
    }
    
    .lab-tech {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
    
    .lab-card {
        padding: 1rem;
    }
    
    .lab-card h4 {
        font-size: 0.85rem;
    }
    
    .lab-card p {
        font-size: 0.75rem;
    }
    
    .infra-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    
    .infra-item {
        padding: 0.75rem 0.5rem;
        font-size: 0.7rem;
    }
    
    .infra-item i {
        font-size: 1.2rem;
    }
}

/* ========================================
   SCROLL ANIMATION STYLES
   ======================================== */

/* Base animation state - hidden before animation */
.animate-on-scroll {
    opacity: 0;
    transition: all 1.2s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* Fade Up Animation */
.animate-on-scroll[data-animation="fade-up"] {
    transform: translateY(60px);
}

.animate-on-scroll[data-animation="fade-up"].animated {
    opacity: 1;
    transform: translateY(0);
}

/* Fade Down Animation */
.animate-on-scroll[data-animation="fade-down"] {
    transform: translateY(-60px);
}

.animate-on-scroll[data-animation="fade-down"].animated {
    opacity: 1;
    transform: translateY(0);
}

/* Fade Left Animation */
.animate-on-scroll[data-animation="fade-left"] {
    transform: translateX(60px);
}

.animate-on-scroll[data-animation="fade-left"].animated {
    opacity: 1;
    transform: translateX(0);
}

/* Fade Right Animation */
.animate-on-scroll[data-animation="fade-right"] {
    transform: translateX(-60px);
}

.animate-on-scroll[data-animation="fade-right"].animated {
    opacity: 1;
    transform: translateX(0);
}

/* Scale Up Animation */
.animate-on-scroll[data-animation="scale-up"] {
    transform: scale(0.9);
}

.animate-on-scroll[data-animation="scale-up"].animated {
    opacity: 1;
    transform: scale(1);
}

/* Fade In Animation */
.animate-on-scroll[data-animation="fade-in"] {
    opacity: 0;
}

.animate-on-scroll[data-animation="fade-in"].animated {
    opacity: 1;
}

/* Animated state - visible */
.animate-on-scroll.animated {
    opacity: 1;
}

/* Hover animations for cards */
.project-card,
.skill-card,
.lab-card,
.blog-card,
.certification-card,
.infra-item,
.stat-item,
.gallery-item {
    transition: all 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.project-card:hover,
.skill-card:hover,
.lab-card:hover,
.blog-card:hover,
.certification-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Button hover animations */
.btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.btn:active {
    transform: translateY(-1px);
}

/* Link hover effect */
.nav-links a {
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Image loading animation */
img {
    transition: opacity 0.5s ease;
}

img.loaded {
    opacity: 1;
}

/* Gradient text shimmer effect */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.gradient-text {
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
}

/* Floating animation for icons */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.lab-card-icon,
.skill-card i,
.stat-item i {
    animation: float 4s ease-in-out infinite;
}

.lab-card:nth-child(2) .lab-card-icon,
.skill-card:nth-child(2) i {
    animation-delay: 0.8s;
}

.lab-card:nth-child(3) .lab-card-icon,
.skill-card:nth-child(3) i {
    animation-delay: 1.6s;
}

/* Pulse animation for badges */
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
}

.lab-badge-live {
    animation: pulse 2s ease-in-out infinite;
}

/* Glow effect on hover for tech badges */
.lab-tech,
.tech-badge,
.post-tag {
    transition: all 0.3s ease;
}

.lab-tech:hover,
.tech-badge:hover,
.post-tag:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--accent-blue);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
}

/* Page header entrance animation */
.page-header h1,
.hero-content h1 {
    animation: titleReveal 1.4s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

.page-header p,
.hero-content p {
    animation: titleReveal 1.4s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

@keyframes titleReveal {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation for list items */
.lab-list li,
.task-list li {
    opacity: 0;
    transform: translateX(-30px);
    animation: listReveal 0.8s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

.lab-list li:nth-child(1), .task-list li:nth-child(1) { animation-delay: 0.15s; }
.lab-list li:nth-child(2), .task-list li:nth-child(2) { animation-delay: 0.3s; }
.lab-list li:nth-child(3), .task-list li:nth-child(3) { animation-delay: 0.45s; }
.lab-list li:nth-child(4), .task-list li:nth-child(4) { animation-delay: 0.6s; }
.lab-list li:nth-child(5), .task-list li:nth-child(5) { animation-delay: 0.75s; }
.lab-list li:nth-child(6), .task-list li:nth-child(6) { animation-delay: 0.9s; }

@keyframes listReveal {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .animate-on-scroll {
        opacity: 1;
        transform: none;
    }
}
