/* ============================================
   RESET & ROOT VARIABLES
============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #190F1B;
    --bg-secondary: #211425;
    --bg-tertiary: #2a1b2e;
    --surface: rgba(255, 201, 206, 0.05);
    /* Blush tint */
    --surface-hover: rgba(255, 201, 206, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #FFC9CE;
    /* Blush Pink */
    --text-muted: #544E58;
    /* Muted Slate */
    --accent: #F9A1A9;
    /* Rose Pink */
    --accent-light: #FFC9CE;
    /* Blush Pink */
    --accent-dark: #cc7e85;
    --accent-glow: rgba(249, 161, 169, 0.4);
    --glass-bg: rgba(33, 20, 37, 0.6);
    --glass-border: rgba(249, 161, 169, 0.15);
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    --noise: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--bg-primary);
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 3px;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    cursor: auto;
    /* Changed to auto for fail-safety; set to none via JS */
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--noise);
    opacity: 0.04;
    pointer-events: none;
    z-index: 10000;
}

/* ============================================
   CUSTOM CURSOR
============================================ */
.cursor {
    width: 30px;
    height: 30px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    transition: transform 0.2s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.3s ease, background 0.3s ease, width 0.3s, height 0.3s;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cursor::after {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.cursor-dot {
    display: none;
    /* Merged into main cursor for cleaner look */
}

.cursor.hover {
    width: 60px;
    height: 60px;
    background: rgba(249, 161, 169, 0.1);
    border-color: var(--accent-light);
    backdrop-filter: blur(4px);
}

.timeline-box:hover {
    background: rgba(249, 161, 169, 0.05);
    border-color: var(--accent);
    transform: scale(1.02) translateX(10px);
}

.cursor.hover::after {
    transform: scale(0);
}

/* Loader styles moved to index.html for critical path optimization */

/* ============================================
   NAVIGATION
============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.4s ease;
}

.nav.scrolled {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 4rem;
}

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: opacity 0.3s ease;
}

.nav-logo span {
    color: var(--accent);
}

.nav-logo:hover {
    opacity: 0.8;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

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

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

.nav-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

.nav-menu-btn span {
    width: 25px;
    height: 1.5px;
    background: var(--text-primary);
    transition: all 0.3s ease;
    display: block;
}

.nav-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 5px);
}

.nav-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.nav-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -5px);
}

/* ============================================
   FLOATING BACKGROUND ELEMENTS
============================================ */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.floating-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.035;
    filter: blur(40px);
}

.floating-circle:nth-child(1) {
    width: 500px;
    height: 500px;
    background: var(--accent);
    top: 10%;
    right: -150px;
    animation: float1 20s ease-in-out infinite;
    filter: blur(80px);
}

.floating-circle:nth-child(2) {
    width: 350px;
    height: 350px;
    background: var(--accent-light);
    bottom: 20%;
    left: -80px;
    animation: float2 25s ease-in-out infinite;
    filter: blur(60px);
}

.floating-circle:nth-child(3) {
    width: 250px;
    height: 250px;
    background: #544E58;
    top: 50%;
    left: 40%;
    animation: float3 18s ease-in-out infinite;
    filter: blur(50px);
}

.floating-circle:nth-child(4) {
    width: 180px;
    height: 180px;
    background: var(--accent-dark);
    top: 30%;
    left: 15%;
    animation: float4 22s ease-in-out infinite;
    filter: blur(40px);
}

@keyframes float1 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(-60px, 60px) scale(1.1);
    }

    66% {
        transform: translate(40px, -40px) scale(0.9);
    }
}

@keyframes float2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(50px, -50px) scale(1.15);
    }

    66% {
        transform: translate(-30px, 30px) scale(0.95);
    }
}

@keyframes float3 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-70px, 50px) scale(1.1);
    }
}

@keyframes float4 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    40% {
        transform: translate(40px, 60px) scale(1.08);
    }

    80% {
        transform: translate(-30px, -20px) scale(0.92);
    }
}

/* ============================================
   HERO SECTION
============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 10% 60px 10%;
    /* Increased top padding to clear nav */
    overflow: hidden;
}

.hero-bg-gradient {
    position: absolute;
    top: -50%;
    right: -30%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(249, 161, 169, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 8s ease-in-out infinite;
}

@keyframes particleFloat {
    0% {
        opacity: 0;
        transform: translateY(100vh) scale(0);
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        opacity: 0;
        transform: translateY(-10vh) scale(1);
    }
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero-subtitle {
    font-size: 0.85rem;
    letter-spacing: 0.6em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease 1.8s forwards;
    font-weight: 500;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.hero-title .line {
    display: block;
    overflow: hidden;
    padding-bottom: 0.15em;
    /* Space for descenders like 'g' */
    margin-bottom: -0.15em;
}

.hero-title .line span {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
    animation: slideUp 1s ease forwards;
}

.hero-title .line:nth-child(1) span {
    animation-delay: 2.3s;
}

.hero-title .line:nth-child(2) {
    font-size: 0.65em;
    margin-top: 0.5rem;
}

.hero-title .line:nth-child(2) span {
    animation-delay: 2.5s;
}

.hero-title em {
    font-style: italic;
    color: var(--accent);
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-tagline {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3.5rem auto;
    line-height: 1.9;
    font-weight: 300;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease 2.7s forwards;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInLeft 0.8s ease 2.9s forwards;
    margin-bottom: 4rem;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.highlight {
    color: var(--accent);
    font-weight: 600;
}

/* Hero Footer / Icons Bar */
.hero-footer {
    display: flex;
    gap: 4rem;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease 3.2s forwards;
    flex-wrap: wrap;
}

.hero-footer-group {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.hero-footer-group span {
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 500;
}

.hero-icon-row {
    display: flex;
    gap: 1rem;
}

.hero-icon-box {
    width: 50px;
    height: 50px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: var(--text-secondary);
    box-shadow: var(--shadow);
}

.hero-icon-box svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.hero-icon-box:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    background: var(--accent-glow);
    color: var(--accent-light);
    box-shadow: 0 10px 25px rgba(249, 161, 169, 0.2);
}

.hero-icon-box:hover svg {
    transform: scale(1.1);
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2.5rem;
    border: 1px solid var(--accent);
    color: var(--accent);
    text-decoration: none;
    font-size: 0.82rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    background: transparent;
    cursor: none;
    font-family: 'Inter', sans-serif;
}

.hero-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent);
    transition: left 0.4s ease;
    z-index: -1;
}

.hero-cta:hover {
    color: var(--bg-primary);
}

.hero-cta:hover::before {
    left: 0;
}

.hero-cta svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.hero-cta:hover svg {
    transform: translateX(5px);
}

.hero-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2.5rem;
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.82rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: all 0.4s ease;
    background: transparent;
    cursor: none;
    font-family: 'Inter', sans-serif;
}

.hero-cta-secondary:hover {
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

.hero-scroll {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeUp 0.8s ease 3.2s forwards;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollPulse 2s ease infinite;
}

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 1;
        transform: scaleY(1);
    }

    50% {
        opacity: 0.3;
        transform: scaleY(0.5);
    }
}

/* ============================================
   MODERN ANIMATION FRAMEWORK
============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.9s cubic-bezier(0.17, 0.55, 0.55, 1);
    pointer-events: none;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.9s cubic-bezier(0.17, 0.55, 0.55, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.9s cubic-bezier(0.17, 0.55, 0.55, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.92) translateY(20px);
    transition: all 0.9s cubic-bezier(0.17, 0.55, 0.55, 1);
}

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

/* 3D Perspective Grid */
.tilt-card {
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.1s ease-out;
}

.tilt-card-inner {
    transform: translateZ(20px);
    transition: transform 0.3s ease;
}

/* Staggered Delay Utilities */
.stagger-1 {
    transition-delay: 0.15s;
}

.stagger-2 {
    transition-delay: 0.3s;
}

.stagger-3 {
    transition-delay: 0.45s;
}

.stagger-4 {
    transition-delay: 0.6s;
}

/* ============================================
   SECTION COMMON STYLES
============================================ */
section {
    position: relative;
    z-index: 1;
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 5.5rem;
    position: relative;
}

.section-label {
    font-size: 0.75rem;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.2rem;
    display: block;
    font-weight: 600;
    opacity: 0.9;
    position: relative;
}

.section-label::before {
    content: '';
    display: inline-block;
    width: 40px;
    height: 1px;
    background: var(--accent);
    vertical-align: middle;
    margin-right: 15px;
    transform-origin: left;
    animation: scaleRight 1.2s cubic-bezier(0.23, 1, 0.32, 1) 0.5s forwards;
    transform: scaleX(0);
}

@keyframes scaleRight {
    to {
        transform: scaleX(1);
    }
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.section-title em {
    font-style: italic;
    color: var(--accent);
    position: relative;
    z-index: 1;
}

.section-divider {
    width: 80px;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    margin: 1.8rem auto 0;
    opacity: 0.6;
}

/* ============================================
   ABOUT SECTION
============================================ */
.about {
    padding: 8rem 4rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 6rem;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    max-width: 420px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
}

/* Block Reveal Animation */
.about-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent);
    z-index: 5;
    transform-origin: left;
    transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1);
    transition-delay: 0.3s;
}

.about-image-wrapper.active::after {
    transform: scaleX(0);
    transform-origin: right;
}

.about-image {
    width: 100%;
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.1s 0.2s;
}

.about-image-wrapper.active .about-image {
    opacity: 1;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.about-image-wrapper:hover .about-image img {
    transform: scale(1.05);
}

.about-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.08), transparent);
    z-index: 1;
}

.about-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, var(--bg-tertiary), transparent);
    z-index: 1;
}

.about-image-placeholder {
    width: 140px;
    height: 140px;
    border: 2px solid rgba(212, 165, 116, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.about-image-placeholder::before {
    content: '';
    position: absolute;
    inset: -8px;
    border: 1px solid rgba(212, 165, 116, 0.1);
    border-radius: 50%;
    animation: pulseRing 3s ease infinite;
}

@keyframes pulseRing {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.5;
    }
}

.about-image-placeholder svg {
    width: 50px;
    height: 50px;
    color: var(--accent);
    opacity: 0.7;
}

.about-image-frame {
    position: absolute;
    top: -15px;
    left: -15px;
    right: 15px;
    bottom: 15px;
    border: 1px solid var(--accent);
    border-radius: 12px;
    opacity: 0.2;
    transition: all 0.4s ease;
}

.about-image-wrapper:hover .about-image-frame {
    top: -10px;
    left: -10px;
    opacity: 0.35;
}

.about-floating-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    z-index: 3;
}

.about-floating-badge .number {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--accent);
    line-height: 1;
}

.about-floating-badge .label {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

.about-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.about-content h3 em {
    font-style: italic;
    color: var(--accent);
}

.about-text {
    color: var(--text-secondary);
    line-height: 1.9;
    font-weight: 300;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2.5rem;
}

.about-tag {
    padding: 0.5rem 1.2rem;
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.about-tag:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(212, 165, 116, 0.05);
    transform: translateY(-2px);
}

/* ============================================
   SKILLS SECTION
============================================ */
.skills {
    padding: 8rem 4rem;
    background: var(--bg-secondary);
}

.skills-container {
    max-width: 1200px;
    margin: 0 auto;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.skill-category {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.skill-category:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 25px 80px rgba(25, 15, 27, 0.8);
    background: rgba(33, 20, 37, 0.8);
}

.skill-category:hover::before {
    opacity: 1;
}

.skill-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.12), rgba(212, 165, 116, 0.03));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.skill-category:hover .skill-icon {
    transform: scale(1.1);
}

.skill-icon svg {
    width: 24px;
    height: 24px;
    color: var(--accent);
}

.skill-category h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.skill-category>p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skill-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skill-item-name {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.skill-item-percent {
    font-size: 0.72rem;
    color: var(--accent);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.skill-bar {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    border-radius: 3px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ============================================
   PORTFOLIO SECTION
============================================ */
.portfolio {
    padding: 8rem 4rem;
}

.portfolio-container {
    max-width: 1400px;
    margin: 0 auto;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    border: 1px solid var(--glass-border);
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    cursor: none;
    transition: all 0.3s ease;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
}

.filter-btn.active,
.filter-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(212, 165, 116, 0.05);
}

/* Sub-filters for Graphic Design */
.subfilter-container {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-bottom: 0;
    flex-wrap: wrap;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    transform: translateY(-10px);
    pointer-events: none;
}

.subfilter-container.show {
    max-height: 200px;
    opacity: 1;
    transform: translateY(0);
    margin-top: -2.5rem;
    margin-bottom: 4rem;
    pointer-events: all;
    overflow: visible; /* Prevent spotlight clipping */
}

.sub-btn {
    padding: 0.4rem 0.5rem;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: none;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    position: relative;
}

.sub-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.sub-btn.active {
    color: var(--accent);
}

.sub-btn.active::after,
.sub-btn:hover::after {
    width: 80%;
}

.sub-btn:hover {
    color: var(--text-secondary);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

.portfolio-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 1/1;
    background: var(--bg-tertiary);
    cursor: none;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.portfolio-item:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 3s ease-out;
    /* Slow pan zoom for Ken Burns */
}

.portfolio-item:hover img {
    transform: scale(1.15) rotate(1deg);
    /* Added slight rotation for dramatic effect */
    transition: transform 6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0.3) 40%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.5rem 2rem;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 2;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay .category {
    font-size: 0.68rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.5rem;
    transform: translateX(-30px);
    opacity: 0;
    transition: all 0.5s ease 0.1s;
}

.portfolio-item:hover .portfolio-overlay .category {
    transform: translateX(0);
    opacity: 1;
}

.portfolio-overlay h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    transform: translateY(20px) translateX(20px);
    opacity: 0;
    transition: all 0.6s ease 0.15s;
}

.portfolio-item:hover .portfolio-overlay h4 {
    transform: translateY(0) translateX(0);
    opacity: 1;
}

.portfolio-overlay p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.5s ease 0.2s;
}

.portfolio-item:hover .portfolio-overlay p {
    transform: translateY(0);
    opacity: 1;
}

/* ============================================
   SERVICES SECTION
============================================ */
.services {
    padding: 8rem 4rem;
    background: var(--bg-secondary);
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

@keyframes levitate {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }

    100% {
        transform: translateY(0);
    }
}

.service-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
    animation: levitate 6s ease-in-out infinite;
}

.service-card:nth-child(even) {
    animation-delay: -3s;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Glare sweep */
.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: skewX(-25deg);
    transition: left 0.7s ease;
    z-index: 10;
    pointer-events: none;
}

.service-card:hover {
    animation-play-state: paused;
    border-color: rgba(249, 161, 169, 0.25);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover::after {
    left: 200%;
}

.service-icon {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(249, 161, 169, 0.1), rgba(249, 161, 169, 0.02));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.4s ease;
    transform-style: preserve-3d;
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, rgba(249, 161, 169, 0.2), rgba(249, 161, 169, 0.05));
    transform: scale(1.15);
}

.service-icon svg {
    width: 26px;
    height: 26px;
    color: var(--accent);
}

.service-card h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.service-card p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ============================================
   EXPERIENCE / TIMELINE SECTION
============================================ */
.experience {
    padding: 8rem 4rem;
}

.experience-container {
    max-width: 850px;
    margin: 0 auto;
}

.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(249, 161, 169, 0.1);
    transform: translateX(-50%);
}

.timeline::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: var(--line-height, 0%);
    background: var(--accent);
    transform: translateX(-50%);
    box-shadow: 0 0 15px rgba(249, 161, 169, 0.4);
    transition: height 0.1s linear;
    /* Smooth scroll tracking */
}

.timeline-item {
    display: flex;
    gap: 3rem;
    margin-bottom: 4rem;
    position: relative;
    align-items: flex-start;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
    text-align: right;
}

.timeline-content {
    flex: 1;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    transform-origin: top;
    transform: perspective(800px) rotateX(-90deg) translateY(20px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.timeline-item.active .timeline-content {
    transform: perspective(800px) rotateX(0deg) translateY(0);
    opacity: 1;
}

.timeline-content:hover {
    border-color: rgba(249, 161, 169, 0.25);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 2rem;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    background: var(--bg-primary);
    z-index: 2;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.timeline-item.active .timeline-dot {
    background: var(--accent);
    box-shadow: 0 0 25px rgba(249, 161, 169, 0.6);
    transform: translateX(-50%) scale(1.5);
}

.timeline-item:hover .timeline-dot {
    background: var(--accent);
    box-shadow: 0 0 15px rgba(212, 165, 116, 0.4);
}

.timeline-year {
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: 0.75rem;
    display: block;
}

.timeline-content h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.timeline-company {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: block;
}

.timeline-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.timeline-spacer {
    flex: 1;
}

/* ============================================
   TESTIMONIALS SECTION
============================================ */
.testimonials {
    padding: 8rem 4rem;
    background: var(--bg-secondary);
    overflow: hidden;
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
}

.testimonials-slider {
    position: relative;
    overflow: hidden;
    perspective: 1200px;
    padding: 2rem 0;
}

.testimonials-track {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.testimonial-card {
    min-width: 100%;
    padding: 0 2rem;
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: scale(0.85) rotateY(15deg);
    opacity: 0.4;
    filter: blur(5px);
}

.testimonial-card.prev {
    transform: scale(0.85) rotateY(-15deg);
}

.testimonial-card.active {
    transform: scale(1) rotateY(0deg);
    opacity: 1;
    filter: blur(0px);
    z-index: 10;
}

@keyframes deblur {
    0% {
        filter: blur(12px);
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    100% {
        filter: blur(0);
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.testimonial-card.active .testimonial-quote {
    animation: deblur 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.testimonial-inner {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 3.5rem;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    transition: all 0.3s ease;
}

.testimonial-inner:hover {
    border-color: rgba(212, 165, 116, 0.1);
}

.testimonial-stars {
    display: flex;
    justify-content: center;
    gap: 0.3rem;
    margin-bottom: 1.5rem;
}

.testimonial-stars svg {
    width: 14px;
    height: 14px;
    fill: var(--accent);
    color: var(--accent);
}

.testimonial-quote {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 400;
    font-style: italic;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 2rem;
    position: relative;
}

.testimonial-quote::before {
    content: '"';
    display: block;
    font-size: 4rem;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 1rem;
    opacity: 0.4;
    font-style: normal;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--bg-primary);
    font-weight: 600;
}

.testimonial-info {
    text-align: left;
}

.testimonial-info h5 {
    font-size: 0.9rem;
    font-weight: 500;
}

.testimonial-info span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.testimonials-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.5rem;
}

.testimonial-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: transparent;
    color: var(--text-secondary);
    cursor: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.testimonial-nav-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(212, 165, 116, 0.05);
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.testimonial-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: none;
    border: none;
}

.testimonial-dot.active {
    background: var(--accent);
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(212, 165, 116, 0.3);
}

/* ============================================
   CONTACT SECTION
============================================ */
.contact {
    padding: 8rem 4rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: start;
}

.contact-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.contact-info h3 em {
    font-style: italic;
    color: var(--accent);
}

.contact-info>p,
.contact-info p.reveal {
    color: var(--text-secondary);
    line-height: 1.8;
    font-weight: 300;
    margin-bottom: 3rem;
    font-size: 0.95rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-detail-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-detail:hover .contact-detail-icon {
    border-color: var(--accent);
    background: var(--glass-bg);
    box-shadow: 0 0 15px rgba(249, 161, 169, 0.1);
}

.contact-detail-icon svg {
    width: 16px;
    height: 16px;
    color: var(--accent);
}

.contact-detail span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

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

.social-link {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.4s ease;
    cursor: none;
}

.social-link:hover {
    border-color: var(--accent);
    background: rgba(212, 165, 116, 0.1);
    box-shadow: 0 0 25px rgba(212, 165, 116, 0.2);
    transform: translateY(-4px);
}

.social-link svg {
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.social-link:hover svg {
    color: var(--accent);
}

.contact-form {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    outline: none;
    cursor: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(138, 126, 114, 0.5);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 25px rgba(212, 165, 116, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.form-group textarea {
    height: 130px;
    resize: vertical;
}

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

.submit-btn {
    width: 100%;
    padding: 1.1rem;
    border: 1px solid var(--accent);
    background: transparent;
    color: var(--accent);
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: none;
    transition: all 0.4s ease;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    margin-top: 0.5rem;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent);
    transition: left 0.4s ease;
    z-index: -1;
}

.submit-btn:hover {
    color: var(--bg-primary);
    font-weight: 500;
}

.submit-btn:hover::before {
    left: 0;
}

/* ============================================
   INTERACTIVE BUTTON SPOTLIGHT
============================================ */
.hero-cta::after,
.hero-cta-secondary::after,
.filter-btn::after,
.submit-btn::after {
    content: '';
    position: absolute;
    top: var(--spot-y, 50%);
    left: var(--spot-x, 50%);
    width: 180px;
    height: 180px;
    background: radial-gradient(circle at center, rgba(249, 161, 169, 0.4) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.hero-cta:hover::after,
.hero-cta-secondary:hover::after,
.filter-btn:hover::after,
.submit-btn:hover::after {
    opacity: 1;
}

/* Dedicated Spotlight for Sub-buttons using ::before to avoid underline conflict */
.sub-btn::before {
    content: '';
    position: absolute;
    top: var(--spot-y, 50%);
    left: var(--spot-x, 50%);
    width: 140px;
    height: 140px;
    background: radial-gradient(circle at center, rgba(249, 161, 169, 0.25) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.sub-btn:hover::before {
    opacity: 1;
}

/* Ensure text stays visible over spotlight */
.hero-cta span,
.filter-btn span,
.submit-btn span {
    position: relative;
    z-index: 2;
}

/* ============================================
   PORTFOLIO MODAL
============================================ */
.portfolio-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-modal.show {
    display: flex;
    opacity: 1;
}

.portfolio-modal .close-modal {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 10001;
}

.portfolio-modal .close-modal:hover {
    color: var(--accent);
}

.portfolio-modal .modal-content {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.portfolio-modal.show .modal-content {
    transform: scale(1);
}

#modalCaption {
    margin-top: 20px;
    color: #fff;
    text-align: center;
    font-size: 1.2rem;
    max-width: 80%;
}

/* ============================================
   FOOTER
============================================ */
.footer {
    padding: 3rem 4rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-primary);
}

.footer-text {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-text span {
    color: var(--accent);
}

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

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

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

/* ============================================
   SCROLL REVEAL ANIMATIONS
============================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

/* ============================================
   RESPONSIVE — TABLET
============================================ */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }



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

    .contact-container {
        gap: 4rem;
    }
}

/* ============================================
   RESPONSIVE — MOBILE
============================================ */
@media (max-width: 768px) {
    body {
        cursor: auto;
    }

    .cursor,
    .cursor-dot {
        display: none !important;
    }

    .nav {
        padding: 1rem 1.5rem;
    }

    .nav.scrolled {
        padding: 0.75rem 1.5rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 10, 10, 0.97);
        backdrop-filter: blur(30px);
        flex-direction: column;
        padding: 2rem 1.5rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--glass-border);
    }

    .nav-links.show {
        display: flex;
    }

    .nav-menu-btn {
        display: flex;
    }

    .hero {
        padding: 0 1.5rem;
    }

    .about {
        padding: 5rem 1.5rem;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image-wrapper {
        max-width: 350px;
        margin: 0 auto;
    }

    .skills {
        padding: 5rem 1.5rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .portfolio {
        padding: 5rem 1.5rem;
    }



    .services {
        padding: 5rem 1.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .experience {
        padding: 5rem 1.5rem;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        flex-direction: column;
        text-align: left;
        padding-left: 50px;
        gap: 0;
    }

    .timeline-dot {
        left: 20px;
    }

    .timeline-spacer {
        display: none;
    }

    .testimonials {
        padding: 5rem 1.5rem;
    }

    .testimonial-card {
        padding: 0 0.5rem;
    }

    .testimonial-inner {
        padding: 2rem 1.5rem;
    }

    .contact {
        padding: 5rem 1.5rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer {
        padding: 2rem 1.5rem;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    /* Reset cursors on mobile */
    .hero-cta,
    .hero-cta-secondary,
    .filter-btn,
    .testimonial-nav-btn,
    .testimonial-dot,
    .social-link,
    .submit-btn,
    .form-group input,
    .form-group textarea,
    a,
    button {
        cursor: auto;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(2.2rem, 10vw, 3.5rem);
    }

    .hero-tagline {
        font-size: 0.92rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .about-content h3,
    .contact-info h3 {
        font-size: 1.8rem;
    }

    .testimonial-quote {
        font-size: 1.05rem;
    }

    .about-floating-badge {
        bottom: -15px;
        right: -10px;
        padding: 1rem 1.5rem;
    }

    .about-floating-badge .number {
        font-size: 1.8rem;
    }
}
/* ============================================
   PORTFOLIO MODAL
============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(15px);
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    padding: 2rem;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: rgba(33, 20, 37, 0.9);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(249, 161, 169, 0.2);
    border-radius: 32px;
    max-width: 1000px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.9);
    transform: scale(0.95) translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg-primary);
    transform: rotate(90deg) scale(1.1);
}

.modal-img-container {
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.modal-img-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent 0%, rgba(10, 10, 10, 0.2) 100%);
    pointer-events: none;
}

.modal-img-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 2rem;
    transition: transform 0.5s ease;
}

.modal-overlay.portrait .modal-img-container img {
    padding: 3rem 1.5rem; /* More vertical space for portraits */
}

.modal-body {
    padding: 5rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%);
}

.modal-body h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
    line-height: 1.1;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.6s ease 0.3s;
}

.modal-overlay.active .modal-body h2 {
    transform: translateY(0);
    opacity: 1;
}

.modal-body p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 2;
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease 0.4s;
}

.modal-overlay.active .modal-body p {
    opacity: 0.8;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .modal-content {
        grid-template-columns: 1fr;
        max-height: 95vh;
    }
    .modal-img-container {
        height: 300px;
    }
    .modal-body {
        padding: 2rem;
    }
    .modal-body h2 {
        font-size: 1.8rem;
    }
}
