/* --- CSS Reset and Variables --- */
:root {
    --primary-accent: #6C3FC5;
    --light-accent: #8B5CF6;
    --blob-bg: #EDE9FE;
    --text-dark: #1a1a1a;
    --text-light: #828282;
    --bg-light: #ffffff;
    --bg-alt: #f3f4f6;
    /* Off-white for placeholders */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Nunito', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.75;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Typography --- */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* --- Common Buttons --- */
.btn {
    text-decoration: none;
    padding: 0.75rem 2.25rem;
    font-weight: 700;
    font-family: var(--font-body);
    display: inline-block;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-accent);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(108, 63, 197, 0.15);
}

.btn-primary:hover {
    background-color: var(--light-accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(108, 63, 197, 0.3);
}

.about-resume-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-accent);
    border: 2px solid var(--primary-accent);
}

.btn-outline:hover {
    background-color: var(--primary-accent);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(108, 63, 197, 0.25);
}

.rounded {
    border-radius: 24px;
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
}

/* --- Navigation --- */
nav {
    padding: 2rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: -0.5px;
}

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

.nav-links li a {
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--primary-accent);
}

.nav-icon {
    display: none;
    margin-right: 0.75rem;
    color: var(--primary-accent);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
    z-index: 1000;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    padding: 5rem 0 0rem 0;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10;
}

.hero-content {
    flex: 1;
    max-width: 500px;
    position: relative;
    z-index: 2;
}

.role-animation {
    position: relative;
    height: 1.5rem;
    margin-bottom: 0.5rem;
    width: 100%;
}

.role {
    font-size: 1.4rem;
    color: var(--light-accent);
    font-weight: 700;
    letter-spacing: 1.5px;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    animation: fadeRole 6s infinite;
}

.product-role {
    animation-delay: 0s;
}

.uiux-role {
    animation-delay: 3s;
}

@keyframes fadeRole {

    0%,
    10% {
        opacity: 0;
        transform: translateY(5px);
    }

    15%,
    45% {
        opacity: 1;
        transform: translateY(0);
    }

    50%,
    100% {
        opacity: 0;
        transform: translateY(-5px);
    }
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-desc {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center; /* Center them perfectly */
    position: relative;
    z-index: 1;
    padding-left: 5rem;
}

/* Premium smooth geometric backdrop card */
.image-backdrop {
    position: absolute;
    width: 380px;
    height: 520px;
    background: var(--blob-bg);
    border-radius: 200px 200px 30px 30px; /* Elegant pill/arch shape */
    transform: rotate(8deg);
    z-index: 0;
    box-shadow: 0 30px 60px rgba(108, 63, 197, 0.15);
    transition: transform 0.4s ease;
}

.image-backdrop:hover {
    transform: rotate(12deg) scale(1.02);
}

.hero-img {
    max-width: 450px;
    width: 100%;
    position: relative;
    z-index: 2;
    -webkit-filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
    margin-bottom: 0;
}

/* --- About Section (From Second Image reference) --- */
.about-section {
    padding: 8rem 0;
}

/* ─── Skills / Tools & Technologies Section ─── */
.skills-section {
    padding: 7rem 0;
    background: #f4f0ff;
}

.skills-inner {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 5%;
    text-align: center;
}

.skills-eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary-accent);
    margin-bottom: 0.6rem;
}

.skills-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--text-dark);
    margin-bottom: 3.5rem;
}

/* Two-column category groups */
.skills-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    text-align: left;
}

.skills-group-title {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    letter-spacing: 0.2px;
}

/* 2-column grid of icon cards within each group */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
}

/* Individual tool card */
.skill-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 20px -2px rgba(108, 63, 197, 0.05);
    border: 1px solid rgba(237, 233, 254, 0.6);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: default;
}

/* Staggered grid effect to look less intentionally rigid */
.skill-card:nth-child(even) {
    transform: translateY(12px);
}

.skill-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px -8px rgba(108, 63, 197, 0.15);
}

.skill-card:nth-child(even):hover {
    transform: translateY(6px);
    box-shadow: 0 16px 40px -8px rgba(108, 63, 197, 0.15);
}

/* Circular icon badge — colour driven by inline --icon-color */
.skill-icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--blob-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--icon-color, var(--primary-accent));
    background: #faf8ff;
    transition: border-color 0.25s ease, background 0.25s ease;
}

.skill-card:hover .skill-icon-wrap {
    border-color: var(--icon-color, var(--primary-accent));
    background: #f4f0ff;
}

.skill-card span {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    line-height: 1.3;
}

/* Responsive */
@media (max-width: 900px) {
    .skills-columns {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 480px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.9rem;
    }

    .skills-title {
        font-size: 2.2rem;
    }
}



.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5rem;
}

.about-content {
    flex: 1;
    order: 2;
}

.section-heading {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.about-text {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.about-image-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    order: 1;
}

/* The lavender circle from the About image */
.yellow-circle {
    position: absolute;
    width: 500px;
    height: 500px;
    background-color: var(--blob-bg);
    border-radius: 50%;
    z-index: 0;
}

.about-img {
    max-width: 360px;
    width: 100%;
    filter: grayscale(0%);
    border-radius: 0%;
    z-index: 1;
    position: relative;
}

/* --- Projects Section --- */
.projects-section {
    padding: 5rem 0 6rem 0;
}

/* CTA row below the preview card */
.projects-cta-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    margin-top: 4rem;
    padding: 3rem 5%;
    background: linear-gradient(135deg, #f8f5ff 0%, #ede9fe 100%);
    border-radius: 20px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 3rem;
    text-align: center;
}

.projects-cta-label {
    color: var(--text-light);
    font-size: 1.05rem;
}

.projects-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.75rem 2.2rem;
}

.projects-cta-btn:hover {
    background-color: var(--light-accent);
    transform: translateY(-2px);
}



.section-title-center {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.title-underline {
    width: 80px;
    height: 4px;
    background-color: var(--primary-accent);
    margin: 0 auto 4rem auto;
    border-radius: 2px;
}

.projects-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.project-card {
    display: flex;
    background-color: var(--bg-light);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 32px -4px rgba(108, 63, 197, 0.08);
    height: 400px;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px -12px rgba(108, 63, 197, 0.18);
}

.project-card.reverse {
    flex-direction: row-reverse;
}

.project-info {
    flex: 1;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-name {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.project-desc {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 2rem;
}

.project-img-container {
    flex: 1;
    position: relative;
}

.placeholder-bg {
    background-color: var(--bg-alt);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

/* Vouchpath project image — homepage card */
.vouchpath-img-wrap {
    background: #ffffff; /* Fallback for the image's background */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    height: 100%;
}

.vouchpath-mockup {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    display: block;
    transition: transform 0.4s ease;
}

.vouchpath-img-wrap:hover .vouchpath-mockup {
    transform: scale(1.03);
}



.placeholder-text {
    text-align: center;
    color: #9ca3af;
    font-family: var(--font-body);
}

.icon-large {
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
    color: #cbd5e1;
}

.missing-note {
    text-align: center;
    color: #ef4444;
    font-size: 0.9rem;
    margin-top: -2rem;
}

/* --- Contact Section --- */
.contact-section {
    padding: 6rem 0 5rem;
    background: #fafafa;
}

.contact-container {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 5%;
}

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

.contact-subtext {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-dark);
    letter-spacing: 0.3px;
}

.form-group input,
.form-group textarea {
    padding: 0.85rem 1.1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-dark);
    background: #ffffff;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    outline: none;
    resize: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #b0b5bf;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-accent);
    box-shadow: 0 0 0 4px rgba(108, 63, 197, 0.1);
}

.contact-submit {
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.75rem 2.2rem;
    transition: background-color 0.3s ease, transform 0.2s ease, opacity 0.2s ease;
}

.contact-submit:hover {
    transform: translateY(-2px);
}

.contact-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-submit {
        align-self: stretch;
        justify-content: center;
    }
}

/* --- Footer --- */

.footer {
    padding: 5rem 0;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.social-links a {
    color: var(--text-dark);
    font-size: 1.8rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--primary-accent);
}

.copyright {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 600;
}

/* --- Responsive Layout --- */
@media (max-width: 992px) {

    .hero-container,
    .about-container {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }

    .hero-image-wrapper {
        padding-left: 0;
        margin-top: 2rem;
    }

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

    .image-backdrop {
        position: absolute;
        width: 280px;
        height: 400px;
        border-radius: 120px 120px 20px 20px;
        transform: rotate(4deg);
    }

    .hero-img {
        max-width: 360px;
    }

    .about-content {
        order: 1;
        /* Reset order to standard on mobile */
    }

    .about-image-wrapper {
        order: 2;
    }

    .yellow-circle {
        width: 350px;
        height: 350px;
    }

    .about-img {
        max-width: 300px;
    }

    .project-card,
    .project-card.reverse {
        flex-direction: column;
        height: auto;
    }

    .project-img-container {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Hidden off-screen */
        width: 260px;
        height: 100vh;
        background-color: var(--bg-light);
        box-shadow: -5px 0 25px rgba(0,0,0,0.1);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1);
        z-index: 999;
    }

    .nav-links.nav-active {
        right: 0;
    }

    .nav-icon {
        display: inline-block;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .section-heading,
    .section-title-center {
        font-size: 2.5rem;
    }
}

/* --- Scroll Animations --- */
.fade-in {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.slide-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.fade-in.is-visible,
.slide-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }