:root{
    --neutral:#faeee7;
    --base-100:#33272a;
    --neutral-focus:#fffffe;
    --neutral-highlight:#d1d1e9;
    --primary:#6246ea;
    --secondary: #594a4e;
    --accent:#33272a;
    --spanhover: #c3f0ca;
    --card-bg-light: #ffffff;
    --card-bg-dark: #333333;
    --card-headline-light: #333333;
    --card-headline-dark: #ffffff;
}

* {
    margin:0;
    scroll-behavior: smooth;
    box-sizing: border-box; /* Added for better responsive behavior */
}

body {
    font-family: "Poppins", 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    background-color: var(--neutral);
    text-align: center;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins','Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

h1 {
    font-size: clamp(2rem, 6vw, 3.75rem); /* Responsive font size */
}

#navbar {
    display: flex;
    justify-content: center;
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--neutral);
    padding: 10px 5px;
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    border-bottom: 2px solid var(--primary);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Hamburger Menu Button */
.menu-toggle {
    display: none;
    cursor: pointer;
    padding: 10px;
    background: none;
    border: none;
    z-index: 1001;
    font-size: 24px;
    color: var(--base-100);
    transition: all 0.3s ease;
    border-radius: 4px;
}

.menu-toggle:hover {
    background-color: rgba(51, 39, 42, 0.1);
    transform: scale(1.1);
}

.menu-toggle:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
    font-family: 'Poppins','Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    gap: clamp(5px, 2vw, 10px);
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--neutral);
    border-bottom: 2px solid var(--primary);
    padding: 20px;
}

.nav-links a {
    display: flex;
    text-decoration: none;
    justify-content: center;
    align-items: center;
    color: var(--base-100);
    padding: 8px clamp(10px, 3vw, 25px);
    transition: color 0.3s ease, transform 0.2s ease;
    border-radius: 8px;
    white-space: nowrap;
}

.nav-links a:hover .nav-icon,
.nav-links a:hover .nav-text {
    color: #7f5af0;
    transform: translateY(-2px);
}

.nav-icon {
    font-size: clamp(16px, 2.5vw, 20px);
    color: var(--base-100);
    transition: transform 0.3s ease, color 0.3s ease;
    margin-right: 8px;
}

.nav-text {
    font-size: clamp(14px, 2.2vw, 20px);
    color: var(--base-100);
    transition: color 0.3s ease;
}

/* ABOUT SECTION */
#about {
    background-color: var(--neutral);
    color: var(--base-100);
    display: flex;
    flex-direction: column;
    min-height: 85vh;
    padding: 80px 20px 20px;
}

#about h1 {
    font-size: clamp(2rem, 8vw, 3.75rem);
    margin-bottom: 1rem;
}

#about h3 {
    font-size: clamp(1.2rem, 4vw, 2.2rem);
    margin-bottom: 1rem;
}

#about p {
    color: var(--primary);
    font-size: clamp(1rem, 5vw, 1.4rem);
    margin: 10px 0;
    font-style: italic;
    max-width: auto;
    margin-left: auto;
    margin-right: auto;
}

#about .headshot {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

#about .headshot img {
    width: clamp(200px, 50vw, 300px);
    height: clamp(200px, 50vw, 300px);
    border-radius: 20%;
    box-shadow: 2px 2px 2px 2px var(--secondary);
}

/* SERVICES SECTION */
#services {
    background-color: var(--secondary);
    color: var(--neutral);
    padding: 60px 20px 20px;
    min-height: 85vh;
}

#services h1 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: 2rem;
    color: var(--neutral);
}

.services-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    justify-items: center;
    margin: 2rem 0;
    padding: 0 10px;
}

.service-card {
    background: var(--card-bg-light);
    color: var(--card-headline-light);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: background 0.3s, color 0.3s, box-shadow 0.3s, transform 0.2s;
    width: 100%;
    max-width: 350px;
    min-height: 450px;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.18), 0 1.5px 6px rgba(0,0,0,0.10);
    transform: translateY(-8px) scale(1.04);
    z-index: 2;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-title {
    font-size: clamp(1.1rem, 3.5vw, 1.4rem);
    font-weight: 700;
    color: var(--card-headline-light);
    margin-bottom: 8px;
    text-align: center;
}

.service-subtitle {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 16px;
    font-style: italic;
    text-align: center;
}

.service-description {
    color: var(--accent);
    margin-bottom: 20px;
    font-size: clamp(0.8rem, 2.5vw, 0.95rem);
    flex-grow: 1;
    text-align: center;
}

.service-offerings {
    margin-top: 15px;
    flex-grow: 1;
    width: 100%;
}

.offerings-title {
    font-weight: 600;
    color: var(--card-headline-light);
    margin-bottom: 12px;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.offerings-list {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
    text-align: left;
}

.offerings-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: var(--accent);
    font-size: clamp(0.8rem, 2vw, 0.9rem);
}

.offerings-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary);
    font-weight: bold;
    font-size: 1.2em;
}

.service-button {
    display: inline-block;
    background: var(--neutral-highlight);
    color: var(--primary);
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: clamp(0.8rem, 2.5vw, 0.95rem);
    text-align: center;
    transition: all 0.3s ease;
    margin-top: auto;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.service-button:hover {
    background: var(--primary);
    color: var(--neutral-focus);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(98, 70, 234, 0.3);
}

.service-button:active {
    transform: translateY(0);
}

/* EXPERIENCE SECTION */
#experience {
    background-color: var(--neutral);
    color: var(--accent);
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    padding: 60px 20px 20px;
    min-height: 85vh;
}

#experience h1 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: 2rem;
}

#experience p {
    color: var(--primary);
    font-size: clamp(0.9rem, 3vw, 1.25rem);
    margin: 10px 0;
    font-style: italic;
}

.experience-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    justify-items: center;
    margin: 2rem 0;
    padding: 0 10px;
}

.experience-card {
    background: var(--card-bg-light);
    color: var(--card-headline-light);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: background 0.3s, color 0.3s, box-shadow 0.3s, transform 0.2s;
    width: 100%;
    max-width: 350px;
    min-height: 220px;
}

/* SKILLS SECTION */
#skills {
    background-color: var(--secondary);
    color: var(--neutral);
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    padding: 60px 20px 20px;
    min-height: 85vh;
}

#skills h1 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: 2rem;
}

#skills p {
    color: var(--primary);
    font-size: clamp(0.9rem, 3vw, 1rem);
    font-style: italic;
    margin: 20px 0;
}

#skills p.techskills {
    font-size: clamp(2rem, 8vw, 3.75rem);
}

.edu-card {
    background: var(--card-bg-light);
    color: var(--card-headline-light);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: background 0.3s, color 0.3s, box-shadow 0.3s, transform 0.2s;
    width: 100%;
    max-width: 350px;
    min-height: 220px;
    margin: 1rem auto;
}

#skills .skills-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 0.8rem;
    list-style: none;
    padding: 0;
    margin: 1.1rem 0 0 0;
    justify-content: center;
}

#skills .skills-pills li {
    background: var(--neutral-highlight);
    color: var(--primary);
    font-weight: 400;
    font-size: clamp(0.8rem, 2.5vw, 0.9rem);
    border-radius: 2rem;
    padding: 0.45rem 1.2rem;
    box-shadow: 0 1px 4px rgba(255,139,167,0.07);
    border: 1px solid var(--primary);
    transition: background 0.2s, color 0.2s;
}

#skills .skills-pills li:hover {
    background: var(--primary);
    color: #fff;
}

/* PROJECTS SECTION */
#projects {
    background-color: var(--neutral);
    color: var(--accent);
    min-height: 85vh;
    padding: 60px 20px 20px;
}

#projects h1 {
    border-bottom: 5px solid var(--accent);
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    width: fit-content;
    margin: 0 auto 2rem;
}

#projects .projects {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    justify-items: center;
    margin: 2rem 0;
}

#projects .project-tile {
    background: var(--card-bg-light);
    color: var(--card-headline-light);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: background 0.3s, color 0.3s, box-shadow 0.3s, transform 0.2s;
    width: 100%;
    max-width: 350px;
    min-height: 400px;
    text-decoration: none;
}

#projects .project-tile img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin: 1rem 0;
}

#projects .project-tile p {
    color: var(--primary);
    font-size: clamp(1rem, 3vw, 1.1rem);
    padding: 10px;
}

#projects .project-tile:hover span {
    opacity: 1;
    color: var(--primary);
    transition: 0.25s ease-in;
}

/* WORK SNAPSHOT SECTION - FIXED CENTERING */
#work-snapshot {
    background-color: var(--secondary);
    color: var(--neutral);
    padding: 60px 20px 20px;
    min-height: 35vh;
}

.work-snapshot-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
}

.work-snapshot-heading {
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--neutral);
    margin-bottom: 1rem;
    font-weight: 600;
}

.work-snapshot-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
}

.work-snapshot-card {
    background: var(--neutral-highlight);
    color: var(--card-headline-light);
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(173, 172, 172, 0.08);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    flex-direction: column;
    text-align: center;
    min-height: 120px;
    transition: box-shadow 0.3s, transform 0.2s;
    flex: 1 1 250px; /* Smaller min-width for better flexibility */
    max-width: 280px; /* Slightly smaller max width */
    min-width: 220px; /* Minimum width to prevent too narrow cards */
}

.work-snapshot-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.18), 0 1.5px 6px rgba(0,0,0,0.10);
    transform: translateY(-8px) scale(1.04);
    z-index: 2;
}

.work-snapshot-icon {
    font-size: clamp(2rem, 6vw, 2.5rem);
    color: var(--primary);
}

.work-snapshot-card h3 {
    font-size: clamp(0.9rem, 3vw, 1.1rem);
    color: var(--primary);
    font-weight: 500;
    margin: 0.5rem 0;
}

.work-snapshot-card p {
    font-size: clamp(0.8rem, 2.5vw, 0.9rem);
    color: var(--accent);
    margin: 0;
}

/* CONTACT SECTION */
#contact {
    background-color: var(--neutral);
    color: var(--accent);
    min-height: 90vh;
    padding: 60px 20px 20px;
}

#contact h1 {
    margin-top: 10vh;
    font-size: clamp(1.8rem, 5vw, 2.5rem);
}

#contact .social-medias {
    display: flex;
    flex-wrap: nowrap;
    max-width: 100%;
    width: 100%;
    justify-content: center;
    align-items: center;
    margin: auto;
    margin-top: 5vh;
    gap: clamp(10px, 3vw, 30px);
    padding: 0 20px;
}

#contact .social-media {
    text-decoration: none;
    color: var(--accent);
    transition: transform 0.25s ease-in;
    display: flex;
    align-items: center;
    font-size: clamp(0.9rem, 3vw, 1.5rem);
    white-space: nowrap;
    flex-shrink: 0;
}

#contact .social-media:hover {
    color: var(--primary);
    transform: scale(1.2);
}

/* FOOTER */
footer {
    border-top: 3px solid var(--primary);
    color: var(--base-100);
    font-size: clamp(1rem, 3vw, 1.5rem);
    padding: 20px;
}

/* BACK TO TOP BUTTON */
#backToTop {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    background: var(--primary);
    color: var(--neutral-focus);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: background 0.2s;
}

#backToTop:hover {
    background: var(--neutral-highlight);
    color: var(--primary);
}

/* UTILITY CLASSES */
.show-all {
    text-decoration: none;
    width: max-content;
    margin: 2rem auto;
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background-color: var(--neutral);
    color: var(--accent);
    font-size: clamp(1rem, 3vw, 1.5rem);
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.25s ease-in;
}

.show-all:hover {
    background-color: var(--secondary);
    color: var(--neutral-focus);
}



/* HOVER EFFECTS */
#projects .project-tile:hover,
.experience-card:hover,
.edu-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.18), 0 1.5px 6px rgba(0,0,0,0.10);
    transform: translateY(-8px) scale(1.04);
    z-index: 2;
}

@media (max-width: 768px) {
    #navbar {
        padding: 8px 15px;
        justify-content: space-between;
        align-items: center;
        flex-direction: row;
    }
    
    .menu-toggle {
        display: block;
        order: -1;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--neutral);
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: all 0.4s ease;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        border-bottom: 2px solid var(--primary);
        z-index: 999;
    }
    
    .nav-links.active {
        max-height: 500px;
        opacity: 1;
    }
    
    .nav-links li {
        width: 100%;
        margin: 0;
    }
    
    .nav-links a {
        padding: 15px 25px;
        width: 100%;
        justify-content: center;
        border-bottom: 1px solid rgba(51, 39, 42, 0.1);
        display: flex;
        align-items: center;
    }
    
    .nav-links a:last-child {
        border-bottom: none;
    }
    
    .nav-text {
        display: block;
        margin-left: 12px;
    }
    
    .nav-icon {
        margin-right: 0;
    }
    #about {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        padding: 100px 40px 40px;
        max-width: 1200px;
        margin: 0 auto;
    }
    
    #about .content {
        flex: 1;
        text-align: center;
        order: 2;
        max-width: 600px;
    }
    
    #about .headshot {
        flex: 0 0 auto;
        margin: 0 40px;
        order: 1;
    }
    
    .services-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
    
    .experience-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
    
    #projects .projects {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    /* Work Snapshot Tablet Layout */
    .work-snapshot-cards {
        gap: 2rem;
    }
    
    .work-snapshot-card {
        flex: 1 1 calc(50% - 1rem);
        max-width: calc(50% - 1rem);
    }
}

/* DESKTOP BREAKPOINT */
@media (min-width: 1024px) {
    .services-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 4rem;
    }
    
    .experience-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 4rem;
    }
    
    #projects .projects {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
    
    #about {
        padding: 120px 60px 60px;
    }
    
    #services,
    #experience,
    #skills,
    #projects,
    #contact {
        padding: 80px 60px 60px;
    }
    
    /* Work Snapshot Desktop Layout */
    .work-snapshot-cards {
        gap: 2.5rem;
    }
    
    .work-snapshot-card {
        flex: 1 1 calc(33.333% - 1.67rem);
        max-width: calc(33.333% - 1.67rem);
    }
}

/* LARGE DESKTOP BREAKPOINT */
@media (min-width: 1200px) {
    .services-container {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1200px;
        margin: 2rem auto;
    }
    
    .experience-cards {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1200px;
        margin: 2rem auto;
    }
    
    #projects .projects {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1200px;
        margin: 2rem auto;
    }
    
    /* Work Snapshot Large Desktop Layout */
    .work-snapshot-cards {
        gap: 3rem;
    }
    
    .work-snapshot-card {
        flex: 1 1 calc(25% - 2.25rem);
        max-width: calc(25% - 2.25rem);
    }
}

/* ULTRA-WIDE MONITOR BREAKPOINT */
@media (min-width: 1600px) {
    .work-snapshot-container {
        max-width: 1800px;
        padding: 0 40px;
    }
    
    .work-snapshot-cards {
        gap: 3.5rem;
    }
    
    .work-snapshot-card {
        flex: 1 1 calc(20% - 2.8rem);
        max-width: calc(20% - 2.8rem);
        min-width: 250px;
    }
}

/* SUPER ULTRA-WIDE BREAKPOINT */
@media (min-width: 2000px) {
    .work-snapshot-container {
        max-width: 2200px;
        padding: 0 60px;
    }
    
    .work-snapshot-cards {
        gap: 4rem;
    }
    
    .work-snapshot-card {
        flex: 1 1 calc(16.666% - 3.33rem);
        max-width: calc(16.666% - 3.33rem);
        min-width: 260px;
    }
}
