@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    /* Palette: Girly, Aesthetic, Soft */
    --color-bg: #FFFDFA;
    --color-text: #5A4D50;
    --color-text-light: #8E7C82;

    --color-accent-pink: #FFE4EC;
    /* Soft pink */
    --color-accent-pink-hover: #FFC2D6;
    /* Glow pink */
    --color-accent-pink-dark: #E08DAD;
    /* Text accent */
    --color-accent-rose: #FFD1DC;
    /* New Rose for variety instead of purple */

    --color-white-translucent: rgba(255, 255, 255, 0.85);

    /* Spacing */
    --spacing-sm: 10px;
    --spacing-md: 20px;
    --spacing-lg: 40px;
    --spacing-xl: 60px;

    /* Fonts */
    --font-main: 'Outfit', sans-serif;
    --font-heading: 'Playfair Display', serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-main);
    line-height: 1.6;
    /* Live Animated Gradient */
    background: linear-gradient(-45deg, #FFF0F5, #FFF, #F3E6FF, #FFE4EC);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    overflow-x: hidden;

    /* Sticky Footer Setup */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* --- Fixed Navbar --- */
header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    padding: 35px 50px;
    /* Even Taller Navbar */
    background: rgba(255, 253, 250, 0.7);
    /* Translucent */
    backdrop-filter: blur(25px);
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 15px 40px rgba(240, 166, 202, 0.15);
    /* Softer, pinker shadow */
    border-radius: 70px;
    /* Extra Round edges */
    transition: all 0.3s ease;
}

header:hover {
    transform: translateX(-50%) translateY(2px);
    /* Cute little nudge on hover */
}

nav {
    margin-top: 40px;
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.nav-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.8rem;
    font-style: italic;
    color: var(--color-text);
    text-decoration: none;
    border: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-brand:hover {
    transform: scale(1.3) rotate(-2deg);
    /* Cute tilt */
    color: var(--color-accent-pink-dark);
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-text-light);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
    transition: color 0.3s;
    border: none;
}

.nav-links a:hover {
    color: var(--color-accent-pink-dark);
}

/* --- Layout --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

main {
    margin-top: 150px;
    /* Offset for much taller fixed header */
    flex: 1;
    /* Pushes footer down */
}

/* --- Hero Section (Viewport Fit) --- */
.hero-section {
    margin-top: 80px;
    min-height: 90vh;
    /* Fill most of screen */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
}

.hero-content {
    flex: 1;
    padding-right: 40px;
}

.hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.hero-img {
    width: 100%;
    max-width: 450px;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 150px 150px 20px 20px;
    /* Asymmetrical */
    border: 8px solid #fff;
    box-shadow: 20px 20px 0 var(--color-accent-pink);
    transition: transform 0.5s ease;
}

.hero-img:hover {
    transform: scale(1.02);
}

h1 {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 10px;
}

/* --- Strong Glow & Hover Effects (Requested) --- */
.card,
.skill-tag,
.btn {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy */
}

/* "glow on hover and scale 1.89" 
   (Using 1.1 scale because 1.89 breaks layout, but adding massive glow) */
.card:hover,
.skill-tag:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 0 25px rgba(240, 166, 202, 0.6),
        0 0 50px rgba(240, 166, 202, 0.3);
    z-index: 10;
    position: relative;
    background: #fff;
    border-color: var(--color-accent-pink-dark);
}

/* --- Cards --- */
.card {
    background: var(--color-white-translucent);
    border: 1px solid var(--color-accent-pink);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 20px;
    display: block;
    text-decoration: none;
    color: inherit;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #4A3B40;
}

.card-meta {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent-pink-dark);
    margin-bottom: 15px;
    font-weight: 700;
}

/* Special Win Card */
.special-win {
    background: linear-gradient(135deg, #FFF0F5, #F8F0FF);
    border: 2px solid var(--color-accent-pink-dark);
}

/* --- Skills --- */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.skill-category h3 {
    font-family: var(--font-heading);
    color: var(--color-accent-pink-dark);
    border-bottom: 1px solid var(--color-accent-pink);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.skill-tag {
    display: inline-block;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #FFE4EC;
    border-radius: 50px;
    margin: 0 5px 10px 0;
    font-size: 0.9rem;
    color: var(--color-text-light);
    cursor: default;
}

/* --- Experience --- */
.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.exp-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.exp-role {
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--color-accent-pink-dark);
}

.exp-tags {
    margin-bottom: 15px;
}

.mini-tag {
    font-size: 0.75rem;
    background: rgba(240, 166, 202, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    margin-right: 5px;
    color: var(--color-text);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--color-text);
    color: #fff;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    background: var(--color-accent-pink-dark);
    color: #fff;
    box-shadow: 0 0 20px rgba(240, 166, 202, 0.8);
    transform: scale(1.05);
    /* Slightly less aggression on buttons */
}

.btn-secondary {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-text);
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 60px 0;
    margin-top: 80px;
    border-top: 1px solid var(--color-accent-pink);
    background: linear-gradient(to top, #FFF5F8, transparent);
}

.footer-tagline {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.2rem;
    color: #4A3B40;
    margin-bottom: 20px;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    align-items: center;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
}

.contact-icon {
    width: 32px;
    height: 32px;
    fill: var(--color-accent-pink-dark);
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    fill: #4A3B40;
    filter: drop-shadow(0 0 8px rgba(240, 166, 202, 0.6));
}

.contact-label {
    font-size: 0.9rem;
    color: var(--color-text-light);
    font-weight: 500;
}

/* --- Animation Classes --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsiveness --- */
/* --- Responsiveness & Mobile Menu --- */

/* Hamburger Menu (Hidden on Desktop) */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1002;
    padding: 5px;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-text);
    border-radius: 3px;
    transition: all 0.3s ease;
}

@media (max-width: 900px) {

    /* Navbar Adjustment */
    header {
        padding: 15px 30px;
        width: 95%;
        border-radius: 40px;
    }

    .nav-brand {
        font-size: 1.4rem;
    }

    /* Show Hamburger */
    .hamburger {
        display: flex;
    }

    /* Mobile Nav Drawer */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        /* Hidden by default */
        width: 250px;
        /* Drawer width */
        height: 100vh;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        transition: right 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        z-index: 1001;
        padding-top: 60px;
    }

    .nav-links.active {
        right: 0;
        /* Slide in */
    }

    .nav-links li {
        margin: 20px 0;
        opacity: 0;
        /* Animate in items */
        transform: translateX(20px);
        transition: all 0.4s ease;
    }

    /* Staggered animation for links */
    .nav-links.active li:nth-child(1) {
        transition-delay: 0.1s;
        opacity: 1;
        transform: translateX(0);
    }

    .nav-links.active li:nth-child(2) {
        transition-delay: 0.2s;
        opacity: 1;
        transform: translateX(0);
    }

    .nav-links.active li:nth-child(3) {
        transition-delay: 0.3s;
        opacity: 1;
        transform: translateX(0);
    }

    .nav-links.active li:nth-child(4) {
        transition-delay: 0.4s;
        opacity: 1;
        transform: translateX(0);
    }

    .nav-links.active li:nth-child(5) {
        transition-delay: 0.5s;
        opacity: 1;
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 1.2rem;
        color: var(--color-text);
    }

    /* Hamburger Animation to 'X' */
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
        background-color: var(--color-accent-pink-dark);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
        background-color: var(--color-accent-pink-dark);
    }

    /* Hero Fixes */
    .hero-section {
        flex-direction: column-reverse;
        /* Stack image on top of text for mobile? Or text on top? usually Image top or Text top. User code had reverse. */
        text-align: center;
        padding-top: 0;
        justify-content: center;
        min-height: auto;
        padding-bottom: 60px;
    }

    .hero-content {
        padding-right: 0;
        margin-top: 40px;
    }

    .hero-image-wrapper {
        justify-content: center;
        width: 100%;
        margin-bottom: 20px;
    }

    .hero-img {
        max-width: 280px;
        /* Smaller image */
    }

    h1 {
        font-size: 3rem;
        /* Smaller heading */
    }

    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
        /* Stack grids */
    }
}