:root {
    --bg-color: #0F1011;
    --card-bg: #121212;
    --text-main: #ffffff;
    --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;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    
    /* --- 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-x: 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 0.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;
}

/* 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);
}

.project-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 800px;
    line-height: 1.8;
}

.project-body {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start; /* Ensure top alignment */
}

/* Fix for grid overflow issues */
.project-body > * {
    min-width: 0;
}

.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(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1rem;
}

.project-gallery img {
    width: 100%;
    height: 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: 3rem;
    }
    
    .project-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .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 */
    }

    .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: 2rem;
    }
    
    .project-gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .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 */
    }
}