:root {
    --bg: #0a0a0f;
    --bg-alt: #111118;
    --bg-elevated: #1a1a24;
    --accent: #a855f7;
    --accent-secondary: #ec4899;
    --accent-soft: rgba(168, 85, 247, 0.15);
    --accent-strong: #9333ea;
    --text: #f8f9fa;
    --muted: #adb5bd;
    --border-subtle: rgba(255, 255, 255, 0.1);
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-soft: 0 20px 50px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(168, 85, 247, 0.3);
    --nav-height: 80px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: 
        radial-gradient(circle at 20% 30%, rgba(168, 85, 247, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(236, 72, 153, 0.15) 0%, transparent 50%),
        linear-gradient(135deg, #0a0a0f 0%, #111118 50%, #0a0a0f 100%);
    background-attachment: fixed;
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

section {
    position: relative;
}

/* Background shapes */
.bg-shape {
    position: fixed;
    border-radius: 999px;
    filter: blur(60px);
    opacity: 0.18;
    pointer-events: none;
    z-index: -1;
}

.bg-shape-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle at 30% 30%, rgba(168, 85, 247, 0.4), transparent 70%);
    top: -100px;
    left: -100px;
    animation: float 20s ease-in-out infinite;
}

.bg-shape-2 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle at 70% 30%, rgba(236, 72, 153, 0.4), transparent 70%);
    top: -50px;
    right: -100px;
    animation: float 25s ease-in-out infinite reverse;
}

.bg-shape-3 {
    width: 480px;
    height: 480px;
    background: radial-gradient(circle at 50% 70%, rgba(168, 85, 247, 0.3), transparent 70%);
    bottom: -120px;
    right: -100px;
    animation: float 30s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(30px, -30px) scale(1.1);
    }
}

/* Layout helpers */
.nav,
.hero,
.section,
.footer {
    padding-inline: max(1.5rem, calc((100vw - 1120px) / 2));
}

.section {
    padding-block: 5.5rem;
}

.section-alt {
    background: 
        radial-gradient(circle at top left, rgba(168, 85, 247, 0.08), transparent 60%),
        radial-gradient(circle at bottom right, rgba(236, 72, 153, 0.08), transparent 60%),
        linear-gradient(180deg, rgba(17, 17, 24, 0.6) 0%, rgba(10, 10, 15, 0.3) 100%);
}

.section-inner {
    max-width: 1120px;
    margin-inline: auto;
}

.section-header {
    max-width: 640px;
    margin-inline: auto;
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out;
}

.section-kicker {
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.section h2 {
    font-family: "Space Grotesk", system-ui, sans-serif;
    font-size: clamp(1.9rem, 4vw, 2.4rem);
    margin: 0 0 0.6rem;
}

.section-header p {
    margin: 0;
    color: var(--muted);
    font-size: 0.98rem;
}

/* Nav */
.nav {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(20px) saturate(180%);
    background: linear-gradient(to bottom, rgba(10, 10, 15, 0.95), rgba(10, 10, 15, 0.7));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-inner {
    max-width: 1120px;
    margin-inline: auto;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-family: "Space Grotesk", system-ui, sans-serif;
}

.nav-logo-main {
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 1rem;
    color: var(--muted);
}

.nav-logo-accent {
    font-weight: 700;
    font-size: 1rem;
    color: var(--accent);
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    font-size: 0.9rem;
}

.nav-links a {
    position: relative;
    color: var(--muted);
    transition: color 0.3s ease, transform 0.3s ease;
}

.nav-links a:hover {
    transform: translateY(-2px);
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.35rem;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(to right, var(--accent), var(--accent-secondary));
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}


.nav-links a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.7));
    cursor: pointer;
    padding: 0;
}

.nav-toggle span {
    display: block;
    width: 1.1rem;
    height: 2px;
    border-radius: 999px;
    background: var(--text);
    margin-inline: auto;
}

/* Hero */
.hero {
    padding-top: calc(2.5rem + var(--nav-height));
    padding-bottom: 4.5rem;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(10, 10, 15, 0.95) 0%,
        rgba(10, 10, 15, 0.85) 30%,
        rgba(10, 10, 15, 0.6) 50%,
        rgba(10, 10, 15, 0.3) 70%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 1;
    animation: gradientShift 8s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.hero-inner {
    max-width: 1120px;
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-left {
    position: relative;
    z-index: 3;
}

.hero-kicker {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent);
    font-weight: 600;
    margin: 0 0 0.75rem;
    animation: fadeIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) backwards;
}

.hero-title {
    font-family: "Space Grotesk", system-ui, sans-serif;
    font-size: clamp(2.4rem, 4vw, 2.9rem);
    line-height: 1.1;
    margin: 0 0 1rem;
    animation: titleSlideIn 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) backwards;
}

@keyframes titleSlideIn {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.accent {
    color: var(--accent);
}

.hero-subtitle {
    margin: 0 0 1.75rem;
    color: var(--muted);
    font-size: 0.98rem;
    max-width: 34rem;
    animation: fadeInUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-bottom: 1.9rem;
    animation: fadeInUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s backwards;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    padding: 0.7rem 1.35rem;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    background: none;
    color: var(--text);
    transition:
        background 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        border-color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn i {
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(168, 85, 247, 0.4), 0 0 20px rgba(168, 85, 247, 0.2);
    font-weight: 600;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 40px rgba(168, 85, 247, 0.6), 0 0 40px rgba(168, 85, 247, 0.4);
    background: linear-gradient(135deg, var(--accent-strong), var(--accent));
}

.btn-ghost {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(26, 26, 36, 0.6);
    backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    border-color: var(--accent);
    background: rgba(168, 85, 247, 0.15);
    box-shadow: 0 8px 24px rgba(168, 85, 247, 0.3);
    transform: translateY(-2px);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.75rem;
    font-size: 0.85rem;
    color: var(--muted);
    animation: fadeIn 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s backwards;
}

.meta-label {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 600;
    margin-bottom: 0.12rem;
}

.meta-value {
    color: var(--text);
}

.hero-right {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    position: relative;
    z-index: 2;
}

.hero-card {
    width: min(360px, 100%);
    border-radius: 50%;
    padding: 0;
    background: 
        radial-gradient(circle at top left, rgba(168, 85, 247, 0.16), transparent 55%),
        radial-gradient(circle at bottom right, rgba(236, 72, 153, 0.1), transparent 55%),
        linear-gradient(145deg, rgba(26, 26, 36, 0.96), rgba(26, 26, 36, 0.92));
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    animation: cardFloat 4s ease-in-out infinite, cardGlow 6s ease-in-out infinite;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 1;
}

.hero-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(168, 85, 247, 0.4), 0 0 30px rgba(168, 85, 247, 0.2);
}

@keyframes cardFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes cardGlow {
    0%, 100% {
        box-shadow: var(--shadow-soft);
    }
    50% {
        box-shadow: 0 20px 60px rgba(168, 85, 247, 0.3), 0 0 30px rgba(168, 85, 247, 0.15);
    }
}

.hero-photo-card {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-badge {
    position: absolute;
    top: 1.2rem;
    left: 1.2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.38rem 0.8rem;
    border-radius: 999px;
    background: rgba(26, 26, 36, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.78rem;
    color: var(--muted);
    z-index: 10;
    animation: badgeSlideIn 1s ease-out 0.5s backwards;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

@keyframes badgeSlideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-badge i {
    color: var(--accent);
    font-size: 1rem;
}


.scroll-indicator {
    margin-top: 3.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--muted);
    position: relative;
    z-index: 2;
}

.scroll-indicator i {
    animation: bounce 1.4s infinite;
}

@keyframes bounce {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(4px);
    }
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.7rem;
}

.about-card {
    background: rgba(26, 26, 36, 0.8);
    border-radius: var(--radius-lg);
    padding: 2rem 1.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px) saturate(180%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    font-size: 0.95rem;
    color: var(--muted);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) backwards;
}

.about-card:nth-child(1) {
    animation-delay: 0.1s;
}

.about-card:nth-child(2) {
    animation-delay: 0.2s;
}

.about-card:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 20px 60px rgba(168, 85, 247, 0.4);
}

.about-card h3 {
    margin-top: 0;
    margin-bottom: 0.7rem;
    font-size: 1.05rem;
    font-family: "Space Grotesk", system-ui, sans-serif;
    color: var(--text);
}

.about-card p {
    margin: 0 0 0.7rem;
}

.about-card p:last-child {
    margin-bottom: 0;
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.6rem;
}

.skill-card {
    background: rgba(26, 26, 36, 0.8);
    border-radius: var(--radius-lg);
    padding: 1.8rem 1.6rem 1.6rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    font-size: 0.92rem;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: scaleIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) backwards;
}

.skill-card:nth-child(1) { animation-delay: 0.1s; }
.skill-card:nth-child(2) { animation-delay: 0.2s; }
.skill-card:nth-child(3) { animation-delay: 0.3s; }
.skill-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.85) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.skill-card:hover {
    transform: translateY(-8px) scale(1.04);
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 20px 60px rgba(168, 85, 247, 0.4);
}

.skill-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(236, 72, 153, 0.2));
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    border: 1px solid rgba(168, 85, 247, 0.3);
    transition: all 0.4s ease;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 8px rgba(168, 85, 247, 0);
    }
}

.skill-card:hover .skill-icon {
    animation: iconRotate 0.6s ease;
    transform: scale(1.1) rotate(5deg);
}

@keyframes iconRotate {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(10deg) scale(1.1); }
    100% { transform: rotate(0deg) scale(1.1); }
}

.skill-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    font-family: "Space Grotesk", system-ui, sans-serif;
}

.skill-card p {
    margin: 0 0 0.8rem;
    color: var(--muted);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.skill-tags span {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: rgba(15, 23, 42, 0.9);
    color: var(--muted);
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    align-items: start;
    width: 100%;
}

/* Force equal heights for project cards */
.projects-grid .project-card {
    align-self: stretch;
}

.project-card {
    border-radius: var(--radius-xl);
    padding: 2rem 1.8rem;
    background:
        radial-gradient(circle at top left, rgba(168, 85, 247, 0.15), transparent 60%),
        radial-gradient(circle at bottom right, rgba(236, 72, 153, 0.15), transparent 60%),
        linear-gradient(140deg, rgba(26, 26, 36, 0.95), rgba(17, 17, 24, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-soft);
    font-size: 0.94rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: cardSlideIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    will-change: transform, opacity;
}

.project-card:nth-child(1) {
    animation-delay: 0.1s;
}

.project-card:nth-child(2) {
    animation-delay: 0.2s;
}

@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.project-card.reveal.visible {
    animation: cardSlideIn 0.6s ease-out forwards;
}

.project-card:hover {
    transform: translateY(-8px) scale(1.01) !important;
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 24px 64px rgba(168, 85, 247, 0.35), var(--shadow-glow);
}

.project-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-shrink: 0;
    min-height: 3.2rem;
}

.project-header h3 {
    flex: 1;
    line-height: 1.4;
    margin: 0;
    font-size: 1.1rem;
    font-family: "Space Grotesk", system-ui, sans-serif;
    display: block;
}

.project-header a {
    width: 2.4rem;
    height: 2.4rem;
    min-width: 2.4rem;
    min-height: 2.4rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(26, 26, 36, 0.8);
    color: var(--text);
    font-size: 1rem;
    flex-shrink: 0;
    transition:
        background 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease;
}

.project-header a:hover {
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    color: #ffffff;
    border-color: transparent;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
}

.project-body {
    margin: 0 0 1rem;
    color: var(--muted);
    flex: 0 1 auto;
    line-height: 1.7;
}

.project-body:last-of-type {
    margin-bottom: 1.2rem;
}

.project-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1rem;
    flex-shrink: 0;
}

.project-tags span {
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(26, 26, 36, 0.8);
    color: var(--muted);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: tagFadeIn 0.4s ease-out backwards;
}

.project-tags span:hover {
    border-color: rgba(168, 85, 247, 0.5);
    color: var(--text);
    background: rgba(168, 85, 247, 0.15);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}

@keyframes tagFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr);
    gap: 1.8rem;
}

.contact-card {
    background: rgba(26, 26, 36, 0.8);
    border-radius: var(--radius-xl);
    padding: 2rem 1.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-soft);
    font-size: 0.94rem;
    backdrop-filter: blur(15px);
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-4px);
    border-color: rgba(168, 85, 247, 0.3);
    box-shadow: 0 12px 40px rgba(168, 85, 247, 0.2);
}

.contact-card h3 {
    margin: 0 0 0.7rem;
    font-size: 1.05rem;
    font-family: "Space Grotesk", system-ui, sans-serif;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    display: grid;
    gap: 0.6rem;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--muted);
}

.contact-list i {
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.5);
    color: var(--accent);
    font-size: 0.82rem;
}

.social-links {
    display: flex;
    gap: 0.6rem;
}

.social-links a {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: rgba(15, 23, 42, 0.96);
    color: var(--text);
    font-size: 0.98rem;
    transition:
        background 0.18s ease,
        color 0.18s ease,
        border-color 0.18s ease,
        transform 0.12s ease;
}

.social-links a:hover {
    background: var(--accent);
    color: #020617;
    border-color: transparent;
    transform: translateY(-1px);
}

.contact-form .field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.85rem;
}

.contact-form label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--muted);
}

.contact-form input,
.contact-form textarea {
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: rgba(15, 23, 42, 0.96);
    padding: 0.6rem 0.75rem;
    color: var(--text);
    font-family: inherit;
    font-size: 0.92rem;
    outline: none;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
    resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(148, 163, 184, 0.7);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.3), 0 0 20px rgba(168, 85, 247, 0.1);
    background: rgba(26, 26, 36, 0.95);
}

.contact-helper {
    margin: 0 0 1rem;
    color: var(--muted);
    font-size: 0.86rem;
}

/* Footer */
.footer {
    padding-block: 1.5rem 1.8rem;
    border-top: 1px solid rgba(148, 163, 184, 0.3);
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.98));
}

.footer-inner {
    max-width: 1120px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    font-size: 0.8rem;
    color: var(--muted);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.footer-links a {
    color: var(--muted);
}

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

/* Back to top */
.back-to-top {
    position: fixed;
    right: 1.4rem;
    bottom: 1.4rem;
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(236, 72, 153, 0.2));
    backdrop-filter: blur(10px);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition:
        opacity 0.3s ease,
        transform 0.3s ease,
        visibility 0.3s ease;
    z-index: 15;
}

.back-to-top:hover {
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(168, 85, 247, 0.4);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Scroll reveal + parallax base */
.reveal {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition:
        opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition:
        opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Prevent reveal animation from breaking grid alignment for project cards */
.project-card.reveal {
    opacity: 1;
    transform: none;
    transition: none;
}

.project-card.reveal.visible {
    opacity: 1;
    transform: none;
}

.parallax {
    will-change: transform;
    transition: transform 0.12s linear;
}

/* Disable parallax transform on project cards to maintain alignment */
.project-card.parallax {
    will-change: auto;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card.parallax[data-parallax-speed] {
    transform: none !important;
}

/* Responsive */
@media (max-width: 960px) {
    .hero-inner {
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
        gap: 2.4rem;
    }

    .about-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .skills-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .projects-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-inner {
        height: 64px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        inset-inline: 1.5rem;
        top: 68px;
        padding: 0.85rem 0.9rem;
        border-radius: 999px;
        background: rgba(15, 23, 42, 0.98);
        border: 1px solid rgba(148, 163, 184, 0.45);
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.4rem;
        font-size: 0.78rem;
        transform: translateY(-12px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition:
            opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
            transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
            visibility 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .nav-links.open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .hero {
        padding-top: calc(1.5rem + 64px);
    }

    .hero-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
    }

    .hero-right {
        order: -1;
        justify-content: center;
    }

    .hero-photo-container {
        width: 100%;
        max-width: 400px;
        height: 450px;
    }

    .scroll-indicator {
        margin-top: 2.4rem;
    }
}

@media (max-width: 640px) {
    .nav,
    .hero,
    .section,
    .footer {
        padding-inline: 1.25rem;
    }

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

    .about-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .skills-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .projects-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .back-to-top {
        right: 1rem;
        bottom: 1rem;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

