﻿/* --- Basic Reset & Global Styles --- */

html {
    height: 100%;
}

main {
    flex-grow: 1; /* This is the magic property that pushes the footer down */
}

body {
    margin: 0;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #fff;
    color: #333;
    /* Add padding to prevent content from hiding behind the new nav */
    padding-top: 80px;
    /* Removed bottom padding as footer is no longer fixed */
}

/* Global border-radius consistency */
* {
    border-radius: 12px;
}

/* Override for specific elements that need different border-radius */
.floating-nav,
.floating-nav a,
.floating-footer,
.project-tags span,
.tech-tag,
.skill-tag {
    border-radius: 999px; /* Pill shape for navigation and tags */
}

.project-image,
.project-image img,
.project-logo,
.about-photo,
.resume-photo,
.hero-photo {
    border-radius: 12px; /* Consistent rounded corners for images */
}

.value-icon,
.responsibility-icon,
.step-number,
.skill-icon-container {
    border-radius: 50%; /* Perfect circles for icons */
}

/* --- Remove Old Header & Navigation --- */
header {
    display: none; /* We hide the old header completely */
}

/* --- New Floating Navigation --- */
.floating-nav {
    position: fixed; /* Makes the nav float on top */
    top: 20px; /* Distance from the top */
    left: 50%; /* Center horizontally */
    transform: translateX(-50%); /* Fine-tune the centering */
    background-color: #f38d68; /* The orange background */
    border-radius: 999px; /* Pill shape */
    padding: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000; /* Ensures it stays on top of other content */
}

.floating-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 8px; /* Space between nav items */
}

.floating-nav a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: #000;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 999px; /* Pill shape for links */
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.floating-nav a.active {
    background-color: #fff; /* White background for the active link */
    color: #000;
}

.floating-nav a:not(.active):hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: rotate(-5deg); /* Add a slight tilt on hover */
}


/* --- Main Content --- */
.main-container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.about-section {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.profile-picture img {
    width: 200px;
    height: 200px;
    border-radius: 12px; /* Consistent with other images */
    object-fit: cover; /* Prevents the image from being squished */
}

.about-text p {
    font-size: 1.5rem;
    line-height: 1.7;
}

.about-text strong {
    font-weight: bold; /* Ensures strong tags are bold */
}

/* --- Skills Carousel --- */
.skills-carousel-section {
    width: 100%;
    padding: 2rem 0;
}




/* --- Separator Line --- */
.separator {
    border: none;
    height: 2px;
    background-color: #333;
    margin: 2rem 0 0 0;
}

/* --- Anchored Footer --- */
.floating-footer {
    /* Removed fixed positioning to anchor it to the bottom of the content */
    margin: 4rem auto 2rem auto; /* Adds space around the footer */
    width: 90%;
    max-width: 600px;
    background-color: #2c2c32; /* Dark background */
    border-radius: 999px; /* Pill shape */
    padding: 12px 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.footer-socials ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 20px;
}

.footer-socials a {
    color: #fff;
    font-size: 1.5rem; /* Larger icons */
    transition: color 0.2s;
}

.footer-socials a:hover {
    color: #f38d68; /* Orange hover color */
}

.footer-legal {
    color: #a0a0a0;
}

.footer-legal a {
    color: #a0a0a0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-legal a:hover {
    color: #fff;
}

.footer-legal span {
    margin: 0 8px;
}

/* --- Featured Work & Project Grid --- */
.work-section {
    max-width: 1024px;
    margin: 4rem auto; /* Adds space above/below the section */
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

/* --- Project Detail Page --- */

.project-detail-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    text-decoration: none;
    color: #555;
    font-weight: bold;
}

.back-link:hover {
    color: #000;
}

.project-header {
    background: linear-gradient(135deg, #f38d68 0%, #e37a55 100%);
    color: #000;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
}

.project-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(1px);
}

.project-hero {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.project-logo-section {
    margin-bottom: 2rem;
}

.project-logo {
    width: 140px;
    height: 140px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.4);
    margin: 0 auto;
    display: block;
}

.project-intro {
    margin-bottom: 2.5rem;
}

.project-intro h1 {
    font-size: 3rem;
    margin: 0 0 0.5rem 0;
    font-weight: 700;
    color: #000;
}

.project-subtitle {
    font-size: 1.4rem;
    margin: 0 0 1.5rem 0;
    color: #000;
    font-weight: 600;
}

.project-description {
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0 auto;
    color: #000;
    max-width: 600px;
}

.project-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.98);
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(4px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-width: 200px;
    max-width: 250px;
}

.meta-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.meta-item i {
    font-size: 1.75rem;
    color: #f38d68;
    width: 32px;
    text-align: center;
    flex-shrink: 0;
}

.meta-content {
    flex: 1;
    text-align: left;
}

.meta-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-value {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.project-about {
    flex: 2;
    display: flex;
    flex-direction: column;
    padding: 2rem;
}

.project-info-sidebar {
    flex: 1;
    padding: 2rem;
}

.project-logo {
    display: block;
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem auto;
    border-radius: 12px;
    object-fit: cover;
}

.project-info-sidebar h3 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.project-info-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.project-info-sidebar li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    color: #333;
}

.project-image-full {
    width: 100%;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.project-content h3 {
    margin-top: 3rem;
    font-size: 1.8rem;
}

.project-content ol {
    line-height: 1.8;
    padding-left: 20px;
}

.highlight-box {
    background-color: #e7f5ff;
    border-left: 4px solid #007bff;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 12px;
}

/* --- Back to Top Button --- */
.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #f38d68; /* Match your nav's brand color */
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 999;

    /* Initial hidden state for the animation */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out, transform 0.3s ease-in-out;
}

/* This class will be added by JavaScript to show the button */
.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top-btn:hover {
    background-color: #e37a55; /* A slightly darker shade for hover feedback */
}

/* --- Resume Page Styles --- */
.resume-container {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.resume-header {
    background: linear-gradient(135deg, #f38d68 0%, #e37a55 100%);
    color: #000;
    padding: 3rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.resume-profile {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 2;
}

.resume-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.3);
}

.resume-info h1 {
    font-size: 2.5rem;
    margin: 0 0 0.5rem 0;
    font-weight: 700;
}

.resume-info h2 {
    font-size: 1.3rem;
    margin: 0 0 1rem 0;
    font-weight: 400;
    opacity: 0.9;
}

.resume-tagline {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
    opacity: 0.8;
}

.resume-contact {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.95rem;
}

.contact-item i {
    width: 16px;
    color: rgba(0, 0, 0, 0.7);
}

.contact-item a {
    color: #000;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.contact-item a:hover {
    opacity: 0.7;
}

.resume-separator {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e0e0e0, transparent);
    margin: 0;
}

.resume-section {
    padding: 2.5rem 2rem;
}

.resume-section h3 {
    font-size: 1.5rem;
    margin: 0 0 2rem 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.resume-section h3 i {
    color: #f38d68;
    font-size: 1.3rem;
}

.experience-item {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #f0f0f0;
}

.experience-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.experience-header h4 {
    font-size: 1.3rem;
    margin: 0;
    color: #333;
    font-weight: 600;
}

.company {
    font-weight: 600;
    color: #f38d68;
    font-size: 1.1rem;
}

.duration {
    color: #666;
    font-size: 0.95rem;
    font-weight: 500;
}

.experience-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin: 0 0 1rem 0;
}

.experience-highlights {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.experience-highlights li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.5;
    color: #555;
}

.experience-highlights li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #f38d68;
    font-weight: bold;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: #f8f9fa;
    color: #495057;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid #e9ecef;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.skill-category h4 {
    font-size: 1.1rem;
    margin: 0 0 1rem 0;
    color: #333;
    font-weight: 600;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: #f38d68;
    color: #000;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: transform 0.2s ease;
}

.skill-tag:hover {
    transform: translateY(-2px);
}

.education-item {
    margin-bottom: 1.5rem;
}

.education-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.education-header h4 {
    font-size: 1.2rem;
    margin: 0;
    color: #333;
    font-weight: 600;
}

.institution {
    font-weight: 600;
    color: #f38d68;
    font-size: 1rem;
}

.languages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.language-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.language {
    font-weight: 600;
    color: #333;
}

.proficiency {
    color: #f38d68;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Responsive Design for Resume */
@media (max-width: 768px) {
    .resume-header {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
    }
    
    .resume-profile {
        flex-direction: column;
        text-align: center;
    }
    
    .resume-info h1 {
        font-size: 2rem;
    }
    
    .experience-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .languages-grid {
        grid-template-columns: 1fr;
    }
    
    .resume-section {
        padding: 2rem 1.5rem;
    }
}

/* --- Enhanced About Page Styles --- */
.about-container {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.about-header {
    background: linear-gradient(135deg, #f38d68 0%, #e37a55 100%);
    color: #000;
    padding: 3rem 2rem;
    text-align: center;
}

.about-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.about-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.about-info h1 {
    font-size: 2.5rem;
    margin: 0 0 0.5rem 0;
    font-weight: 700;
}

.about-info h2 {
    font-size: 1.3rem;
    margin: 0 0 1rem 0;
    font-weight: 400;
    opacity: 0.9;
}

.about-tagline {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
    opacity: 0.8;
    max-width: 600px;
}

.about-separator {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e0e0e0, transparent);
    margin: 0;
}

.about-section {
    padding: 2.5rem 2rem;
}

.about-section h3 {
    font-size: 1.5rem;
    margin: 0 0 2rem 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.about-section h3 i {
    color: #f38d68;
    font-size: 1.3rem;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
    margin: 0 0 1.5rem 0;
}

.about-content p:last-child {
    margin-bottom: 0;
}

.journey-highlights {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.highlight-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    min-width: 120px;
    transition: transform 0.2s ease;
}

.highlight-item:hover {
    transform: translateY(-2px);
}

.highlight-item i {
    font-size: 1.5rem;
    color: #f38d68;
}

.highlight-item span {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    text-align: center;
}

.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.interest-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.interest-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.interest-item i {
    font-size: 2rem;
    color: #f38d68;
    margin-bottom: 1rem;
}

.interest-item h4 {
    font-size: 1.1rem;
    margin: 0 0 0.5rem 0;
    color: #333;
    font-weight: 600;
}

.interest-item p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #666;
    margin: 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.value-item {
    text-align: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.value-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.value-icon {
    width: 60px;
    height: 60px;
    background: #f38d68;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
}

.value-icon i {
    font-size: 1.5rem;
    color: #000;
}

.value-item h4 {
    font-size: 1.1rem;
    margin: 0 0 0.5rem 0;
    color: #333;
    font-weight: 600;
}

.value-item p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #666;
    margin: 0;
}

/* Responsive Design for About Page */
@media (max-width: 768px) {
    .about-header {
        padding: 2rem 1.5rem;
    }
    
    .about-info h1 {
        font-size: 2rem;
    }
    
    .about-section {
        padding: 2rem 1.5rem;
    }
    
    .journey-highlights {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .highlight-item {
        min-width: 100px;
    }
    
    .interests-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* --- Enhanced Project Detail Page Styles --- */
.project-detail-container {
    max-width: 1000px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #f38d68;
    text-decoration: none;
    font-weight: 600;
    padding: 1rem 2rem;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: #e37a55;
}

.project-header {
    background: linear-gradient(135deg, #f38d68 0%, #e37a55 100%);
    color: #fff;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
}

.project-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(1px);
}

.project-hero {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.project-logo-section {
    margin-bottom: 2rem;
}

.project-logo {
    width: 140px;
    height: 140px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.4);
    margin: 0 auto;
    display: block;
}

.project-intro {
    margin-bottom: 2.5rem;
}

.project-intro h1 {
    font-size: 3rem;
    margin: 0 0 0.5rem 0;
    font-weight: 700;
    color: #000;
}

.project-subtitle {
    font-size: 1.4rem;
    margin: 0 0 1.5rem 0;
    color: #000;
    font-weight: 600;
}

.project-description {
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0 auto;
    color: #000;
    max-width: 600px;
}

.project-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.98);
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(4px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-width: 200px;
    max-width: 250px;
}

.meta-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.meta-item i {
    font-size: 1.75rem;
    color: #f38d68;
    width: 32px;
    text-align: center;
    flex-shrink: 0;
}

.meta-content {
    flex: 1;
    text-align: left;
}

.meta-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-value {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.project-content {
    padding: 3rem 2rem;
}

.content-section {
    margin-bottom: 3rem;
}

.content-section:last-child {
    margin-bottom: 0;
}

.content-section h2 {
    font-size: 1.8rem;
    margin: 0 0 2rem 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.content-section h2 i {
    color: #f38d68;
    font-size: 1.5rem;
}

.content-section p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
    margin: 0 0 1.5rem 0;
}

.content-section p:last-child {
    margin-bottom: 0;
}

.responsibilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.responsibility-item {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.responsibility-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.responsibility-icon {
    width: 60px;
    height: 60px;
    background: #f38d68;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
}

.responsibility-icon i {
    font-size: 1.5rem;
    color: #000;
}

.responsibility-item h3 {
    font-size: 1.2rem;
    margin: 0 0 1rem 0;
    color: #333;
    font-weight: 600;
}

.responsibility-item p {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.step-item:hover {
    transform: translateX(5px);
}

.step-number {
    width: 50px;
    height: 50px;
    background: #f38d68;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #000;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.3rem;
    margin: 0 0 0.5rem 0;
    color: #333;
    font-weight: 600;
}

.step-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

.highlight-box {
    background: linear-gradient(135deg, #f38d68 0%, #e37a55 100%);
    color: #000;
    padding: 2.5rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.highlight-box h2 {
    color: #000 !important;
    margin-bottom: 1.5rem;
}

.highlight-box h2 i {
    color: #000 !important;
}

.highlight-box p {
    color: rgba(0, 0, 0, 0.8) !important;
    margin-bottom: 1rem;
}

.highlight-box p:last-child {
    margin-bottom: 0;
}

.takeaways-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.takeaway-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #f38d68;
    transition: transform 0.2s ease;
}

.takeaway-item:hover {
    transform: translateY(-2px);
}

.takeaway-item h3 {
    font-size: 1.2rem;
    margin: 0 0 0.5rem 0;
    color: #333;
    font-weight: 600;
}

.takeaway-item p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #666;
    margin: 0;
}

/* Responsive Design for Project Detail Pages */
@media (max-width: 768px) {
    .project-header {
        padding: 2rem 1rem;
    }
    
    .project-hero {
        max-width: 100%;
    }
    
    .project-logo {
        width: 120px;
        height: 120px;
        padding: 1.25rem;
    }
    
    .project-intro h1 {
        font-size: 2.5rem;
    }
    
    .project-subtitle {
        font-size: 1.2rem;
    }
    
    .project-description {
        font-size: 1rem;
        max-width: 100%;
    }
    
    .project-meta {
        max-width: 100%;
        gap: 1rem;
        flex-direction: column;
        align-items: center;
    }
    
    .meta-item {
        padding: 1rem 1.25rem;
        min-width: 280px;
        max-width: 320px;
        width: 100%;
    }
    
    .meta-item i {
        font-size: 1.5rem;
        width: 28px;
    }
    
    .meta-value {
        font-size: 0.95rem;
    }
    
    .project-content {
        padding: 2rem 1.5rem;
    }
    
    .responsibilities-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .step-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .takeaways-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* --- Enhanced Index Page Styles --- */
.hero-section {
    background: linear-gradient(135deg, #f38d68 0%, #e37a55 100%);
    color: #000;
    padding: 4rem 2rem;
    margin-bottom: 3rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.hero-content {
    max-width: 1000px;
    margin: 0 auto;
}

.hero-profile {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.hero-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.hero-text h1 {
    font-size: 3rem;
    margin: 0 0 0.5rem 0;
    font-weight: 700;
}

.hero-text h2 {
    font-size: 1.5rem;
    margin: 0 0 1.5rem 0;
    font-weight: 400;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.7;
    margin: 0;
    opacity: 0.8;
    max-width: 600px;
}

.skills-section {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2rem;
    margin: 0 0 2rem 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.section-title i {
    color: #f38d68;
    font-size: 1.8rem;
}

.projects-section {
    margin-bottom: 3rem;
}

/* Enhanced Project Grid and Cards */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.project-card:focus {
    outline: 2px solid #f38d68;
    outline-offset: 2px;
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 200px;
    background: #f8f9fa;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(243, 141, 104, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.project-overlay i {
    font-size: 1.5rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.75rem;
    border-radius: 12px;
    backdrop-filter: blur(4px);
}

.project-card:hover .project-image img {
    transform: scale(1.02);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-info {
    padding: 1.5rem;
}

.project-header {
    margin-bottom: 1rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.project-tags span {
    background: #f8f9fa;
    color: #333;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid #e9ecef;
}

.project-header h3 {
    font-size: 1.5rem;
    margin: 0;
    color: #333;
    font-weight: 700;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.project-meta .role {
    font-weight: 600;
    color: #f38d68;
}

.project-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin: 0 0 1.5rem 0;
}

.project-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #f38d68;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    padding: 0.5rem 0;
    border-radius: 4px;
}

.project-cta i {
    transition: transform 0.2s ease;
    opacity: 0.8;
}

.project-card:hover .project-cta {
    color: #e37a55;
    background: rgba(243, 141, 104, 0.05);
    padding: 0.5rem 0.75rem;
    margin: 0 -0.75rem;
}

.project-card:hover .project-cta i {
    transform: translateX(2px);
    opacity: 1;
}

.project-card:focus .project-cta {
    color: #e37a55;
    background: rgba(243, 141, 104, 0.05);
    padding: 0.5rem 0.75rem;
    margin: 0 -0.75rem;
}

/* Enhanced Skills Carousel */
.skills-carousel {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 2rem 0;
    overflow: hidden;
    position: relative;
}

/* Fade overlays to prevent abrupt cutoff */
.skills-carousel::before,
.skills-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 10;
    pointer-events: none;
}

.skills-carousel::before {
    left: 0;
    background: linear-gradient(to right, #f8f9fa 0%, transparent 100%);
}

.skills-carousel::after {
    right: 0;
    background: linear-gradient(to left, #f8f9fa 0%, transparent 100%);
}

.skills-track {
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.1s ease;
}

.skill-icon-container {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    cursor: pointer;
}

.skill-icon-container:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.skill-icon-container img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.skill-icon-container:hover img {
    transform: scale(1.1);
}

.dynamic-tooltip {
    position: fixed;
    background: #333;
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.85rem;
    z-index: 1000;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    max-width: 250px;
    text-align: center;
}

.dynamic-tooltip .tooltip-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: #f38d68;
}

.dynamic-tooltip .tooltip-description {
    font-weight: 400;
    font-size: 0.8rem;
    line-height: 1.3;
    color: #e0e0e0;
}

/* Accessibility and Motion Preferences */
@media (prefers-reduced-motion: reduce) {
    .project-card,
    .project-image img,
    .project-overlay,
    .project-cta,
    .project-cta i,
    .skill-icon-container,
    .skill-icon-container img {
        transition: none;
    }
    
    .project-card:hover {
        transform: none;
    }
    
    .project-card:hover .project-image img {
        transform: none;
    }
    
    .project-card:hover .project-cta i {
        transform: none;
    }
    
    .skill-icon-container:hover {
        transform: none;
    }
    
    .skill-icon-container:hover img {
        transform: none;
    }
}

/* Responsive Design for Index Page */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 1.5rem;
        margin-bottom: 2rem;
    }
    
    .hero-profile {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-text h2 {
        font-size: 1.3rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-meta {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .skills-carousel {
        padding: 1.5rem 0;
    }
    
    .skill-icon-container {
        width: 60px;
        height: 60px;
    }
    
    .skill-icon-container img {
        width: 35px;
        height: 35px;
    }
}

/* --- Legal Page Styles --- */
.legal-container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 3rem 2rem;
}

.legal-container h1 {
    font-size: 2.5rem;
    margin: 0 0 2rem 0;
    color: #333;
    text-align: center;
    border-bottom: 3px solid #f38d68;
    padding-bottom: 1rem;
}

.legal-section {
    margin-bottom: 2.5rem;
}

.legal-section h2 {
    font-size: 1.5rem;
    margin: 0 0 1rem 0;
    color: #333;
    font-weight: 600;
}

.legal-section p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

.legal-section a {
    color: #f38d68;
    text-decoration: none;
    transition: color 0.2s ease;
}

.legal-section a:hover {
    color: #e37a55;
    text-decoration: underline;
}

.legal-separator {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e0e0e0, transparent);
    margin: 3rem 0 1rem 0;
}

.legal-source {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.legal-source a {
    color: #f38d68;
    text-decoration: none;
}

.legal-source a:hover {
    text-decoration: underline;
}

/* Responsive Design for Legal Page */
@media (max-width: 768px) {
    .legal-container {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }
    
    .legal-container h1 {
        font-size: 2rem;
    }
    
    .legal-section h2 {
        font-size: 1.3rem;
    }
}
