@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=DM+Sans:wght@300;400;500;600&family=Space+Mono:wght@400;700&display=swap');

:root {
    --pink: #CC8899;
    --light-pink: #6F8FAF;
    --light-green: #E5DFCF;
    --dark-gray: #434343;
    --gold: #BE9A60;
    --cream: #FAF7F2;
    --deep-dark: #1a1a1a;
    --accent-glow: rgba(204, 136, 153, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background-color: var(--cream);
    overflow-x: hidden;
    cursor: none;
}

/* ── Custom Cursor ── */
.cursor {
    width: 12px;
    height: 12px;
    background: var(--pink);
    border-radius: 50%;
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, background 0.3s ease;
}

.cursor-follower {
    width: 36px;
    height: 36px;
    border: 1.5px solid var(--pink);
    border-radius: 50%;
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.18s ease, border-color 0.3s ease, width 0.3s, height 0.3s;
    opacity: 0.7;
}

body:hover .cursor { opacity: 1; }

a:hover ~ .cursor, button:hover ~ .cursor { transform: translate(-50%, -50%) scale(2); }

/* ── Noise Texture Overlay ── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1000;
    opacity: 0.5;
}

/* ── Navbar ── */
#navbar {
    background: rgba(67, 67, 67, 0.0);
    backdrop-filter: blur(0px);
    border-bottom: 1px solid transparent;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

#navbar.scrolled {
    background: rgba(67, 67, 67, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(204, 136, 153, 0.2);
    box-shadow: 0 4px 40px rgba(0,0,0,0.15);
}

#navbar h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, #fff 0%, var(--pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#navbar ul a {
    position: relative;
    padding-bottom: 4px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s;
}

#navbar ul a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0;
    height: 1px;
    background: var(--pink);
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

#navbar ul a:hover {
    color: var(--pink);
}

#navbar ul a:hover::after {
    width: 100%;
}

/* ── Hero Section ── */
#home {
    background: var(--dark-gray);
    position: relative;
    overflow: hidden;
}

/* Animated background grid */
#home::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(204,136,153,0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(204,136,153,0.07) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridDrift 20s linear infinite;
}

@keyframes gridDrift {
    0% { transform: translateY(0) translateX(0); }
    100% { transform: translateY(60px) translateX(60px); }
}

/* Floating orbs */
#home::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(204,136,153,0.18) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: orbPulse 6s ease-in-out infinite;
    border-radius: 50%;
}

@keyframes orbPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    color: var(--cream);
    line-height: 1.1;
    opacity: 0;
    transform: translateY(40px);
    animation: heroReveal 0.9s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
}

.hero-content h1 span {
    color: var(--pink);
}

.hero-content p {
    font-size: 1rem;
    color: rgba(229, 223, 207, 0.75);
    letter-spacing: 0.04em;
    font-family: 'Space Mono', monospace;
    opacity: 0;
    transform: translateY(30px);
    animation: heroReveal 0.9s cubic-bezier(0.4, 0, 0.2, 1) 0.55s forwards;
}

.hero-btn {
    display: inline-block;
    background: transparent;
    color: var(--pink);
    border: 1.5px solid var(--pink);
    padding: 0.75rem 2.5rem;
    border-radius: 0;
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    animation: heroReveal 0.9s cubic-bezier(0.4, 0, 0.2, 1) 0.75s forwards;
    transition: color 0.4s ease;
    z-index: 1;
}

.hero-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--pink);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.hero-btn:hover {
    color: var(--dark-gray);
}

.hero-btn:hover::before {
    transform: scaleX(1);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    opacity: 0;
    animation: heroReveal 0.9s ease 1.2s forwards;
}

.scroll-indicator span {
    display: block;
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--pink));
    margin: 0 auto;
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
    50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
    51% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

@keyframes heroReveal {
    to { opacity: 1; transform: translateY(0); }
}

/* ── Section Headers ── */
.section-heading {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--dark-gray);
    position: relative;
    display: inline-block;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--pink), var(--gold), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-heading.visible::after {
    transform: scaleX(1);
}

/* ── About Section ── */
#about {
    background: var(--cream);
    position: relative;
    overflow: hidden;
    padding: 7rem 0;
}

#about::before {
    content: '"';
    position: absolute;
    top: -2rem;
    left: 2rem;
    font-family: 'Playfair Display', serif;
    font-size: 20rem;
    color: rgba(204, 136, 153, 0.06);
    line-height: 1;
    pointer-events: none;
}

.about-text {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #5a5a5a;
    font-weight: 300;
}

/* ── Education Section ── */
#education {
    background: var(--dark-gray);
    padding: 7rem 0;
    position: relative;
    overflow: hidden;
}

#education .section-heading {
    color: var(--cream);
}

#education .section-heading::after {
    background: linear-gradient(90deg, var(--gold), var(--pink), transparent);
}

.edu-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 2px;
    padding: 2rem 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50px);
    opacity: 0;
}

.edu-card.visible {
    transform: translateX(0);
    opacity: 1;
}

.edu-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--pink), var(--gold));
    transform: scaleY(0);
    transition: transform 0.5s ease 0.2s;
}

.edu-card.visible::before {
    transform: scaleY(1);
}

.edu-card:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(204, 136, 153, 0.25);
    transform: translateX(8px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.edu-card h3 {
    font-family: 'Playfair Display', serif;
    color: var(--cream);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.edu-card .edu-meta {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: rgba(229, 223, 207, 0.5);
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.edu-card .edu-grade {
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 0.08em;
}

/* ── Projects Section ── */
#projects {
    background: var(--cream);
    padding: 7rem 0;
}

.project-card {
    background: #fff;
    border: 1px solid rgba(67, 67, 67, 0.08);
    border-radius: 2px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(40px);
    opacity: 0;
}

.project-card.visible {
    transform: translateY(0);
    opacity: 1;
}

.project-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(204, 136, 153, 0.05), rgba(190, 154, 96, 0.05));
    opacity: 0;
    transition: opacity 0.4s;
}

.project-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 24px 60px rgba(67,67,67,0.12), 0 0 0 1px rgba(204, 136, 153, 0.2);
}

.project-card:hover::after {
    opacity: 1;
}

.project-card .project-num {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    color: var(--pink);
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
    opacity: 0.7;
}

.project-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: var(--dark-gray);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.project-card .project-desc {
    font-size: 0.9rem;
    color: #777;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tech-tag {
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    padding: 0.2rem 0.6rem;
    background: transparent;
    border: 1px solid rgba(190, 154, 96, 0.4);
    color: var(--gold);
    letter-spacing: 0.05em;
    border-radius: 0;
    transition: all 0.3s;
}

.project-card:hover .tech-tag {
    border-color: var(--gold);
    background: rgba(190, 154, 96, 0.08);
}

/* ── Skills Section ── */
#skills {
    background: var(--dark-gray);
    padding: 7rem 0;
    position: relative;
}

#skills .section-heading {
    color: var(--cream);
}

#skills .section-heading::after {
    background: linear-gradient(90deg, var(--gold), var(--pink), transparent);
}

.skill-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 1.75rem;
    position: relative;
    overflow: hidden;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

.skill-card.visible {
    transform: scale(1);
    opacity: 1;
}

.skill-card:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(204, 136, 153, 0.2);
    box-shadow: 0 0 40px rgba(204, 136, 153, 0.08), inset 0 0 40px rgba(204, 136, 153, 0.03);
}

.skill-card .skill-icon {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.skill-card h3 {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--pink);
    margin-bottom: 0.75rem;
}

.skill-card p {
    font-size: 0.9rem;
    color: rgba(229, 223, 207, 0.65);
    line-height: 1.6;
}

/* ── Contact Section ── */
#contact {
    background: var(--cream);
    padding: 7rem 0;
    position: relative;
    overflow: hidden;
}

#contact::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 70vw;
    height: 70vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(204, 136, 153, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.contact-line {
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    color: #666;
    transition: color 0.3s;
}

.contact-line a {
    color: inherit;
    text-decoration: none;
}

.contact-line:hover {
    color: var(--pink);
}

.contact-line .label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--pink);
    display: block;
    margin-bottom: 0.2rem;
    opacity: 0.7;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(67, 67, 67, 0.15);
    color: var(--dark-gray);
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--dark-gray);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.social-link i {
    position: relative;
    z-index: 1;
    transition: color 0.35s;
}

.social-link:hover::before {
    transform: scaleY(1);
}

.social-link:hover i {
    color: var(--cream);
}

/* ── Reveal Animations ── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* staggered children */
.stagger-parent .stagger-child {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.stagger-parent.visible .stagger-child:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: translateY(0); }
.stagger-parent.visible .stagger-child:nth-child(2) { transition-delay: 0.15s; opacity: 1; transform: translateY(0); }
.stagger-parent.visible .stagger-child:nth-child(3) { transition-delay: 0.25s; opacity: 1; transform: translateY(0); }
.stagger-parent.visible .stagger-child:nth-child(4) { transition-delay: 0.35s; opacity: 1; transform: translateY(0); }
.stagger-parent.visible .stagger-child:nth-child(5) { transition-delay: 0.45s; opacity: 1; transform: translateY(0); }
.stagger-parent.visible .stagger-child:nth-child(6) { transition-delay: 0.55s; opacity: 1; transform: translateY(0); }

/* edu card stagger */
.edu-stack .edu-card:nth-child(1) { transition: all 0.5s ease 0.05s; }
.edu-stack .edu-card:nth-child(2) { transition: all 0.5s ease 0.18s; }
.edu-stack .edu-card:nth-child(3) { transition: all 0.5s ease 0.32s; }

/* ── Marquee strip between sections ── */
.marquee-strip {
    background: var(--pink);
    padding: 0.75rem 0;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-inner {
    display: inline-block;
    animation: marqueeScroll 18s linear infinite;
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--dark-gray);
}

.marquee-inner span {
    margin: 0 2.5rem;
    opacity: 0.8;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── Footer line ── */
.footer-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--pink), var(--gold), transparent);
    margin-bottom: 1.5rem;
}

/* ── Misc utilities ── */
.bg-pink { background-color: var(--pink); }
.bg-light-pink { background-color: var(--light-pink); }
.bg-light-green { background-color: var(--light-green); }
.bg-dark-gray { background-color: var(--dark-gray); }
.text-pink { color: var(--pink); }
.text-dark-gray { color: var(--dark-gray); }
.text-gold { color: var(--gold); }
.bg-gold { background-color: var(--gold); }

/* ── Responsive ── */
@media (max-width: 768px) {
    #navbar ul { gap: 1rem; }
    #navbar ul li a { font-size: 0.7rem; }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-content p { font-size: 0.8rem; }
    #home::after { width: 300px; height: 300px; }
}
