/* ==========================================================================
   Zeesu Royalist Portfolio - Modern Glassmorphic Dark-Slate Theme Stylesheet
   ========================================================================== */

/* --- Import Premium Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@500;600;700;800&display=swap');

/* --- CSS Custom Variables (Design System) --- */
:root {
    /* Color Palette */
    --bg-dark: #07070f;
    --bg-darker: #040409;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.07);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-focus: rgba(99, 102, 241, 0.4);

    /* Primary Accents & Gradients */
    --accent-indigo: #6366f1;
    --accent-purple: #a855f7;
    --accent-pink: #ec4899;
    --accent-teal: #06b6d4;

    --gradient-primary: linear-gradient(135deg, var(--accent-indigo) 0%, var(--accent-purple) 50%, var(--accent-pink) 100%);
    --gradient-glow: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(236, 72, 153, 0.15) 100%);
    --gradient-teal-blue: linear-gradient(135deg, var(--accent-teal) 0%, var(--accent-indigo) 100%);

    /* Text Colors */
    --text-white: #ffffff;
    --text-silver: #f1f5f9;
    --text-gray: #94a3b8;
    --text-dark: #475569;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    /* System Globals */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --shadow-glow: 0 0 25px rgba(99, 102, 241, 0.3);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
}

/* --- Global Resets & Elements --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-silver);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Radial Blobs for ambient glowing */
body::before,
body::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -2;
    opacity: 0.15;
    pointer-events: none;
}

body::before {
    top: 5%;
    left: -10%;
    background: var(--accent-indigo);
    animation: blobFloat 20s infinite alternate;
}

body::after {
    bottom: 10%;
    right: -10%;
    background: var(--accent-pink);
    animation: blobFloat 25s infinite alternate-reverse;
}

@keyframes blobFloat {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(80px, 50px) scale(1.15);
    }
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-white);
    line-height: 1.25;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    color: var(--text-gray);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

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

/* --- Global Containers --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.section-header h2 {
    display: inline-block;
    background: linear-gradient(135deg, var(--text-white) 30%, var(--text-gray) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    position: relative;
}

.section-header p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Glassmorphism Card Style Utility --- */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-glass);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.5);
}

/* --- Scroll Progress Bar --- */
.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 1001;
    background: rgba(255, 255, 255, 0.05);
}

.scroll-progress-bar {
    height: 100%;
    width: 0;
    background: var(--gradient-primary);
    box-shadow: 0 0 8px var(--accent-indigo);
    transition: width 0.1s ease-out;
}

/* --- Custom Sticky Navigation Bar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    padding: 0.8rem 0;
    background: rgba(7, 7, 15, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand img {
    height: 35px;
    width: auto;
    filter: drop-shadow(0 0 4px var(--accent-indigo));
}

.nav-links {
    display: flex;
    gap: 2.2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-gray);
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-white);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-smooth);
    border-radius: var(--radius-full);
}

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

/* Burger Menu */
.burger-menu {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1002;
}

.burger-menu div {
    width: 25px;
    height: 2px;
    background-color: var(--text-white);
    transition: var(--transition-smooth);
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--accent-indigo);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-white) 40%, var(--accent-indigo) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-typing {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-weight: 500;
    min-height: 2.7rem;
    color: var(--text-silver);
}

.typed-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.typed-cursor {
    color: var(--accent-pink);
    animation: blink 0.8s infinite;
}

.profile-frame video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Image ki tarah crop hoke fill karega */
    display: block;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    color: var(--text-gray);
    max-width: 580px;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* Premium Profile Photo Frame */
.hero-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.profile-frame {
    position: relative;
    width: 320px;
    height: 320px;
    /* border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; */
    background: var(--bg-card);
    border: 2px solid var(--border-glass);
    overflow: hidden;
    box-shadow: var(--shadow-glass);
    animation: morphFrame 12s ease-in-out infinite alternate;
    transition: var(--transition-smooth);
}

.profile-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    scale: 1.05;
    transition: var(--transition-smooth);
}

.profile-frame:hover img {
    scale: 1.12;
}

/* Glowing Border behind Profile */
.profile-glow {
    position: absolute;
    width: 330px;
    height: 330px;
    /* border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; */
    background: var(--gradient-primary);
    filter: blur(12px);
    z-index: -1;
    opacity: 0.6;
    animation: morphFrame 12s ease-in-out infinite alternate;
}

@keyframes morphFrame {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    50% {
        border-radius: 50% 50% 30% 70% / 50% 60% 40% 60%;
    }

    100% {
        border-radius: 60% 40% 60% 40% / 40% 50% 50% 60%;
    }
}

/* Floating Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-gray);
}

.scroll-indicator .mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--border-glass);
    border-radius: var(--radius-full);
    position: relative;
}

.scroll-indicator .wheel {
    width: 4px;
    height: 8px;
    background-color: var(--accent-indigo);
    border-radius: var(--radius-full);
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: mouseScroll 1.5s infinite;
}

@keyframes mouseScroll {
    0% {
        top: 6px;
        opacity: 1;
    }

    100% {
        top: 22px;
        opacity: 0;
    }
}

/* --- Premium Buttons System --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    box-sizing: border-box;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-white);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
    border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

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

.btn-outline:hover {
    background: var(--accent-indigo);
    box-shadow: var(--shadow-glow);
    transform: translateY(-3px);
}

/* --- Social Icons Dock --- */
.social-dock {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-dock a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    color: var(--text-gray);
    font-size: 1.2rem;
    transition: var(--transition-smooth);
}

.social-dock a:hover {
    color: var(--text-white);
    background: var(--gradient-primary);
    border-color: transparent;
    transform: translateY(-4px) scale(1.1);
    box-shadow: var(--shadow-glow);
}

/* --- About Me Section --- */
.about {
    padding: 8rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-white) 40%, var(--accent-teal) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-box {
    padding: 2rem;
    text-align: center;
}

.stat-box h4 {
    font-size: 2.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.stat-box p {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Skills Section --- */
.skills {
    padding: 8rem 0;
    background: rgba(255, 255, 255, 0.01);
}

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

.skill-category {
    padding: 2.5rem;
}

.skill-category h3 {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-white);
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 1rem;
}

.skill-category h3 i {
    color: var(--accent-teal);
    background: var(--gradient-glow);
    padding: 0.5rem;
    border-radius: var(--radius-sm);
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-tag {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    color: var(--text-silver);
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-fast);
}

.skill-tag:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
    color: var(--text-white);
    transform: translateY(-2px);
}

/* --- Education & Experience (Timeline) --- */
.timeline-section {
    padding: 8rem 0;
}

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

.timeline-column h3 {
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.timeline-column h3 i {
    color: var(--accent-pink);
}

.timeline {
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid var(--border-glass);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: calc(-2rem - 6px);
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--accent-indigo);
    border: 2px solid var(--bg-dark);
    box-shadow: 0 0 8px var(--accent-indigo);
    transition: var(--transition-fast);
}

.timeline-item:hover::before {
    background-color: var(--accent-pink);
    box-shadow: 0 0 12px var(--accent-pink);
    scale: 1.3;
}

.timeline-card {
    padding: 1.8rem;
}

.timeline-date {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-teal);
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.15);
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
}

.timeline-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
}

.timeline-org {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
    font-weight: 500;
}

.timeline-desc {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* --- Journey/Offers Section --- */
.journey {
    padding: 8rem 0;
}

.journey-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.2rem;
}

.journey-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.journey-card img {
    height: 220px;
    width: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.journey-card:hover img {
    scale: 1.06;
}

.journey-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.journey-body h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.journey-body p {
    font-size: 0.95rem;
    line-height: 1.7;
    flex-grow: 1;
}

/* --- Projects Showcase Preview --- */
.projects-preview {
    padding: 8rem 0;
    background: rgba(255, 255, 255, 0.01);
}

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

.project-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.project-img-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.project-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.project-card:hover .project-img-wrapper img {
    scale: 1.08;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 4, 9, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-fast);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-body {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-body h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    transition: var(--transition-fast);
}

.project-card:hover .project-body h3 {
    color: var(--accent-indigo);
}

.project-body p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.7rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-full);
    color: var(--text-silver);
}

.project-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.project-links a {
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.project-links a.btn-link {
    color: var(--text-gray);
}

.project-links a.btn-link:hover {
    color: var(--text-white);
}

.project-links a.btn-main {
    color: var(--accent-indigo);
}

.project-links a.btn-main:hover {
    color: var(--accent-pink);
}

.section-footer {
    text-align: center;
}

/* --- Certificates Gallery Preview --- */
.certificates-preview {
    padding: 8rem 0;
}

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

.cert-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.cert-img-wrapper {
    height: 220px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--border-glass);
}

.cert-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.cert-card:hover .cert-img-wrapper img {
    scale: 1.05;
}

.cert-body {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.cert-body h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.cert-body p {
    font-size: 0.85rem;
    margin-bottom: 1.2rem;
    flex-grow: 1;
}

/* --- Contact & Footer --- */
.contact-section {
    padding: 8rem 0;
    background: rgba(255, 255, 255, 0.01);
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-card {
    padding: 2rem;
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--gradient-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-indigo);
    font-size: 1.4rem;
    flex-shrink: 0;
    border: 1px solid var(--border-glass);
}

.contact-details h4 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
}

.contact-details p {
    font-size: 0.95rem;
    color: var(--text-gray);
}

.contact-details a:hover {
    color: var(--accent-indigo);
}

/* Contact Form */
.contact-form {
    padding: 3rem;
}

.form-group {
    margin-bottom: 1.8rem;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.6rem;
    color: var(--text-gray);
}

.form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    padding: 0.9rem 1.2rem;
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-indigo);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}

.form-control.invalid {
    border-color: var(--accent-pink);
    box-shadow: 0 0 15px rgba(236, 72, 153, 0.2);
}

.form-error {
    font-size: 0.8rem;
    color: var(--accent-pink);
    margin-top: 0.4rem;
    display: block;
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

/* ========================================================================
   PREMIUM FOOTER REDESIGN
   ======================================================================== */
footer {
    position: relative;
    background: linear-gradient(180deg, var(--bg-darker) 0%, #0f0c09 100%);
    border-top: 1px solid transparent;
    overflow: hidden;
    padding: 0;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(139, 107, 74, 0.25) 20%,
            rgba(231, 200, 155, 0.55) 50%,
            rgba(139, 107, 74, 0.25) 80%,
            transparent 100%);
}

footer::after {
    content: '';
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(139, 107, 74, 0.07) 0%, transparent 70%);
    pointer-events: none;
}

/* Brand Banner */
.footer-brand-banner {
    text-align: center;
    padding: 4.5rem 1rem 3rem;
    position: relative;
    z-index: 1;
}

.footer-brand-name {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 900;
    letter-spacing: -2px;
    background: linear-gradient(135deg,
            rgba(231, 221, 209, 0.35) 0%,
            rgba(231, 200, 155, 0.8) 45%,
            rgba(169, 127, 90, 0.6) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    display: block;
    margin-bottom: 0.9rem;
    filter: drop-shadow(0 0 30px rgba(139, 107, 74, 0.2));
}

.footer-tagline {
    font-size: 0.82rem;
    color: var(--text-gray);
    letter-spacing: 3.5px;
    text-transform: uppercase;
    opacity: 0.55;
}

.footer-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-glass) 30%, var(--border-glass) 70%, transparent);
}

/* Main grid */
.footer-main {
    padding: 4rem 0 2.5rem;
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3.5rem;
}

@media (max-width: 1100px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem 3rem;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* Column headings */
.footer-col h3 {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 800;
    color: rgba(231, 200, 155, 0.65);
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-col h3::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 1px;
    background: rgba(231, 200, 155, 0.45);
    flex-shrink: 0;
}

/* About */
.footer-about p {
    font-size: 0.87rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 1.8rem;
    max-width: 270px;
}

/* Social icons */
.footer-socials {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.footer-social-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    font-size: 0.92rem;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.footer-social-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.footer-social-btn i {
    position: relative;
    z-index: 1;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.footer-social-btn:hover {
    border-color: rgba(231, 200, 155, 0.4);
    color: #fff;
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 8px 20px rgba(139, 107, 74, 0.28);
}

.footer-social-btn:hover::before {
    opacity: 1;
}

.footer-social-btn:hover i {
    transform: scale(1.15) rotate(-8deg);
}

/* Links */
.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.footer-links a {
    font-size: 0.87rem;
    color: var(--text-gray);
    display: inline-flex;
    align-items: center;
    transition: all 0.25s ease;
    position: relative;
}

.footer-links a::before {
    content: '→';
    font-size: 0.72rem;
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.25s ease;
    color: rgba(231, 200, 155, 0.8);
    display: inline-block;
    margin-right: 0;
}

.footer-links a:hover {
    color: rgba(231, 200, 155, 0.95);
    padding-left: 18px;
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(-18px);
}

/* Contact */
.footer-contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.84rem;
    color: var(--text-gray);
    line-height: 1.5;
}

.footer-contact-list i {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(139, 107, 74, 0.07);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(231, 200, 155, 0.65);
    font-size: 0.75rem;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.footer-contact-list li:hover i {
    background: rgba(139, 107, 74, 0.16);
    border-color: rgba(231, 200, 155, 0.3);
    color: rgba(231, 200, 155, 1);
    transform: scale(1.1);
}

/* Bottom bar */
.footer-bottom {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding: 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-bottom p {
    font-size: 0.78rem;
    color: var(--text-dark);
    opacity: 0.55;
}

.footer-bottom p span {
    color: rgba(231, 200, 155, 0.55);
}

/* Back-to-top */
.footer-back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(139, 107, 74, 0.06);
    border: 1px solid var(--border-glass);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    opacity: 0.65;
}

.footer-back-to-top i {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: 0.68rem;
}

.footer-back-to-top:hover {
    opacity: 1;
    color: rgba(231, 200, 155, 0.9);
    border-color: rgba(231, 200, 155, 0.25);
    background: rgba(139, 107, 74, 0.12);
    transform: translateY(-2px);
}

.footer-back-to-top:hover i {
    transform: translateY(-3px);
}

@media (max-width: 600px) {
    .footer-brand-name {
        font-size: clamp(2rem, 11vw, 3rem);
    }

    .footer-bottom {
        justify-content: center;
        text-align: center;
    }

    .footer-brand-banner {
        padding: 3rem 1rem 2.5rem;
    }
}

/* --- Pages Layout Specifics (Filter and details) --- */
.page-header {
    padding: 10rem 0 4rem;
    text-align: center;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.05) 0%, transparent 100%);
    position: relative;
}

.filter-bar {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    color: var(--text-gray);
    padding: 0.6rem 1.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient-primary);
    color: var(--text-white);
    border-color: transparent;
    box-shadow: var(--shadow-glow);
}

/* Search Box */
.search-container {
    max-width: 450px;
    margin: 0 auto 3rem;
    position: relative;
}

.search-container input {
    width: 100%;
    padding: 0.9rem 1.5rem 0.9rem 3rem;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-full);
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.search-container input:focus {
    outline: none;
    border-color: var(--accent-indigo);
    box-shadow: var(--shadow-glow);
}

.search-container i {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
}

/* Project Details Page Specifics */
.project-details-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 4rem;
    padding-bottom: 8rem;
}

.project-details-main h2 {
    margin-bottom: 1.5rem;
}

.project-meta-info {
    padding: 2.2rem;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.meta-item h5 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
}

.meta-item p {
    font-size: 1rem;
    color: var(--text-silver);
}

.project-large-banner {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-glass);
    margin-bottom: 3rem;
}

.project-screenshots-gallery {
    margin-top: 3rem;
}

.project-screenshots-gallery h3 {
    margin-bottom: 1.5rem;
}

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

.screenshot-grid img {
    border-radius: var(--radius-md);
    border: 1px solid var(--border-glass);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.screenshot-grid img:hover {
    transform: scale(1.02);
    border-color: var(--accent-indigo);
}

/* --- Toast & UI Modals System --- */
.toast-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1050;
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition-smooth);
}

.toast-notification.active {
    transform: translateY(0);
    opacity: 1;
}

.toast-content {
    background: #0f172a;
    border: 1px solid rgba(16, 185, 129, 0.4);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-white);
}

.toast-content i {
    color: #10b981;
    font-size: 1.2rem;
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: none;
    color: var(--text-white);
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    box-shadow: var(--shadow-glow);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    display: none;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.5);
}

/* Lightbox Modal */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 4, 9, 0.95);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-glass);
}

.lightbox-close {
    position: absolute;
    top: -3rem;
    right: 0;
    color: var(--text-white);
    font-size: 2rem;
    cursor: pointer;
}

/* ================= New Portfolio Modal ================= */
.np-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 4, 9, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 24px 1rem;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.np-card {
    position: relative;
    background: var(--bg-dark, #07070f);
    border: 1px solid var(--border-glass-focus, rgba(99, 102, 241, 0.35));
    border-radius: var(--radius-md, 16px);
    max-width: 480px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), var(--shadow-glow);
    transform: translateY(-20px) scale(0.98);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.np-overlay.active .np-card {
    transform: translateY(0) scale(1);
}

.np-close-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-white, #fff);
    font-size: 1.25rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-fast, all 0.2s ease);
}

.np-close-icon:hover {
    background: rgba(239, 68, 68, 0.85);
    transform: scale(1.08);
}

.np-media {
    width: 100%;
    background: #000;
    border-bottom: 1px solid var(--border-glass, rgba(255, 255, 255, 0.08));
}

.np-media img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.np-body {
    padding: 1.25rem 1.4rem 1.35rem;
    text-align: center;
}

.np-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: var(--accent-indigo, #818cf8);
    border-radius: var(--radius-full, 9999px);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.45rem;
}

.np-body h3 {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-white, #fff);
    margin-bottom: 0.3rem;
}

.np-body p {
    font-size: 0.85rem;
    color: var(--text-gray, #94a3b8);
    line-height: 1.45;
    margin-bottom: 1.1rem;
}

.np-actions {
    display: flex;
    gap: 0.65rem;
    justify-content: center;
    flex-wrap: wrap;
}

.np-actions .btn {
    padding: 0.65rem 1.35rem;
    font-size: 0.86rem;
    font-weight: 600;
    border-radius: var(--radius-full, 9999px);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth, all 0.4s cubic-bezier(0.16, 1, 0.3, 1));
}

.np-actions .btn-primary {
    background: var(--gradient-primary);
    color: var(--text-white, #fff);
    box-shadow: var(--shadow-glow);
    border: none;
}

.np-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.5);
}

.np-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-silver, #f1f5f9);
    border: 1px solid var(--border-glass, rgba(255, 255, 255, 0.08));
}

.np-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white, #fff);
    transform: translateY(-2px);
}

@media (max-width: 576px) {
    .np-overlay {
        padding: 12px 10px;
    }

    .np-body {
        padding: 1rem 0.85rem 1.15rem;
    }

    .np-body h3 {
        font-size: 1.1rem;
    }

    .np-body p {
        font-size: 0.8rem;
    }

    .np-actions {
        flex-direction: column;
        width: 100%;
    }

    .np-actions .btn {
        width: 100%;
        justify-content: center;
    }
}



/* --- Intersection Observer Animations classes --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

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

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

/* --- Responsive Layout Adjustments --- */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .hero-grid,
    .about-grid,
    .project-details-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-image-container {
        order: -1;
    }

    .about-stats {
        margin-top: 2rem;
    }

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

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

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .navbar {
        padding: 1rem 0;
    }

    .burger-menu {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(7, 7, 15, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 2.5rem;
        transition: var(--transition-smooth);
        border-left: 1px solid var(--border-glass);
    }

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

    .burger-menu.active div:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .burger-menu.active div:nth-child(2) {
        opacity: 0;
    }

    .burger-menu.active div:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

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

    .hero-typing {
        font-size: 1.4rem;
    }

    .skills-grid,
    .projects-grid,
    .certs-grid,
    .journey-grid {
        grid-template-columns: 1fr;
    }

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

    .contact-form {
        padding: 2rem 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .profile-frame {
        width: 260px;
        height: 260px;
    }

    .profile-glow {
        width: 270px;
        height: 270px;
    }
}

/* ========================================================================
   2026 Portfolio refresh — architectural hero, editorial about & skills
   ======================================================================== */
:root {
    --cream: #fffdf9;
    --cream-deep: #f4e9dc;
    --soft-brown: #79593d;
    --ink-brown: #493526;
    --muted-brown: #806d5b;
    --line-brown: rgba(130, 94, 62, .22);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    color: #9a744f;
    font: 800 .67rem/1 var(--font-heading);
    letter-spacing: .15em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: '';
    width: 25px;
    height: 1px;
    background: currentColor;
}

/* Hero: an open, editorial split canvas rather than a boxed composition. */
.hero {
    min-height: 870px;
    overflow: hidden;
    padding: 8.8rem 0 5.4rem;
    background: linear-gradient(118deg, #fffdf9 0 56%, #f3e5d4 56% 100%);
}

.hero::before {
    width: min(42vw, 610px);
    height: min(42vw, 610px);
    right: -12vw;
    top: 10%;
    border: 1px solid rgba(121, 89, 61, .25);
    box-shadow: 0 0 0 30px rgba(255, 253, 249, .18), 0 0 0 75px rgba(255, 253, 249, .1);
    animation: hero-ring 22s linear infinite;
}

.hero::after {
    width: 250px;
    height: 250px;
    left: 43%;
    bottom: -130px;
    background: transparent;
    border: 1px solid rgba(121, 89, 61, .18);
    box-shadow: none;
}

.hero-monogram {
    position: absolute;
    z-index: 0;
    right: 5%;
    top: 9%;
    color: rgba(121, 89, 61, .09);
    font: 700 clamp(12rem, 26vw, 25rem)/.72 Georgia, serif;
    letter-spacing: -.17em;
    pointer-events: none;
}

.hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(370px, .92fr);
    gap: clamp(3rem, 8vw, 9.5rem);
}

.hero-content {
    max-width: 690px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.hero-kicker {
    justify-content: flex-start;
    color: var(--soft-brown);
}

.hero-kicker b {
    margin-left: .7rem;
    padding-left: .8rem;
    border-left: 1px solid var(--line-brown);
    color: #a7896d;
    font: inherit;
}

.hero-index {
    margin: 3.1rem 0 1.05rem;
}

.hero-title {
    margin-bottom: 1.8rem;
    color: var(--ink-brown);
    font-size: clamp(4rem, 7.1vw, 7.75rem);
    line-height: .83;
    letter-spacing: -.09em;
}

.hero-title span,
.hero-title em {
    display: block;
}

.hero-title em {
    padding: .07em 0 0 clamp(1rem, 3vw, 3.7rem);
    color: #a37b55;
    font-size: .63em;
}

.hero-typing {
    margin-bottom: .9rem;
    color: #674c37;
    font-size: clamp(1rem, 1.5vw, 1.22rem);
}

.hero-description {
    max-width: 490px;
    color: var(--muted-brown);
    font-size: 1rem;
    line-height: 1.85;
}

.hero-cta .btn {
    border-radius: 999px;
    min-height: 54px;
    padding: .85rem 1.35rem;
}

.hero-cta .btn-primary {
    background: var(--soft-brown);
    border-color: var(--soft-brown);
}

.hero-cta .btn-secondary {
    background: rgba(255, 253, 249, .7);
}

.hero-footer {
    max-width: 560px;
    margin-top: 2.5rem;
    padding-top: 1.2rem;
}

.social-dock a {
    transition: transform .35s ease, background .35s ease, color .35s ease;
}

.social-dock a:hover {
    transform: translateY(-4px);
    background: var(--soft-brown);
    color: #fffdf9;
}

.hero-image-container {
    min-height: 570px;
}

.profile-glow {
    width: min(34vw, 470px);
    height: min(34vw, 470px);
    opacity: .36;
}

.profile-frame {
    width: min(30vw, 425px);
    height: min(36vw, 515px);
    border: 10px solid #fffdf9;
    outline-offset: 13px;
}

.hero-portrait-mark {
    right: -3%;
    top: 4%;
    color: rgba(121, 89, 61, .21);
    font-size: clamp(7rem, 14vw, 12rem);
}

.portrait-caption-top {
    top: 10%;
    left: -1%;
}

.portrait-caption-bottom {
    right: -1%;
    bottom: 11%;
}

.hero-proof-card {
    left: -8%;
    bottom: 8%;
    border-radius: 15px;
}

.hero-insight-card {
    position: absolute;
    right: -2%;
    top: 20%;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .75rem .9rem;
    color: #684b34;
    border: 1px solid rgba(213, 186, 154, .8);
    border-radius: 14px;
    background: rgba(255, 253, 249, .82);
    box-shadow: 0 13px 30px rgba(92, 67, 43, .10);
    font: 800 .58rem/1.45 var(--font-heading);
    letter-spacing: .09em;
    text-transform: uppercase;
    animation: proof-float 6.5s ease-in-out -2s infinite;
}

.hero-insight-card i {
    display: grid;
    width: 27px;
    height: 27px;
    place-items: center;
    border-radius: 50%;
    color: #fffdf9;
    background: #a47d57;
    font-size: .65rem;
}

.hero-linework {
    bottom: 4.5%;
    opacity: .8;
}

/* About: built as a feature story with an image-led personal signature. */
.about {
    position: relative;
    padding: 8rem 0;
    background: var(--cream);
}

.about::before {
    content: '';
    position: absolute;
    inset: 9% 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--line-brown), transparent);
}

.about-intro {
    display: grid;
    grid-template-columns: 1.22fr .78fr;
    align-items: end;
    gap: 4rem;
    margin-bottom: 4.75rem;
}

.about-intro h2 {
    max-width: 680px;
    margin-top: .85rem;
    color: var(--ink-brown);
    font-size: clamp(2.7rem, 5.1vw, 5rem);
    line-height: .96;
    letter-spacing: -.065em;
}

.about-intro h2 em,
.skills-heading h2 em {
    color: #a37b55;
    font-family: Georgia, serif;
    font-weight: 400;
}

.about-intro>p {
    max-width: 370px;
    padding-bottom: .3rem;
    color: var(--muted-brown);
    font-size: 1.04rem;
    line-height: 1.85;
}

.about-grid {
    grid-template-columns: 1.06fr .8fr .9fr;
    align-items: stretch;
    gap: 1.45rem;
}

.about-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 450px;
    padding: clamp(2rem, 4vw, 4rem);
    border: 1px solid var(--line-brown);
    border-radius: 22px;
    background: #fffefa;
}

.about-text::before {
    display: none;
}

.about-text .hero-subtitle {
    align-self: flex-start;
    margin-bottom: 1.4rem;
}

.about-text h3 {
    margin-bottom: 1.15rem;
    color: var(--ink-brown);
    font-size: clamp(1.9rem, 3vw, 2.75rem);
    line-height: 1.05;
    letter-spacing: -.045em;
}

.about-text p {
    color: var(--muted-brown);
    line-height: 1.8;
}

.about-text .btn {
    align-self: flex-start;
    border-radius: 999px;
}

.about-profile-card {
    position: relative;
    min-height: 450px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    border-radius: 22px;
    color: #fffdf9;
    background: #674934;
    box-shadow: 0 20px 50px rgba(92, 67, 43, .16);
}

.about-profile-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(47, 28, 16, .02) 20%, rgba(47, 28, 16, .8) 100%);
}

.about-profile-image {
    position: absolute;
    inset: 0;
}

.about-profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: grayscale(.18) sepia(.1);
    transition: transform .7s cubic-bezier(.16, 1, .3, 1);
}

.about-profile-card:hover img {
    transform: scale(1.06);
}

.about-profile-card>*:not(.about-profile-image) {
    position: relative;
    z-index: 1;
}

.about-profile-label {
    margin-bottom: .35rem;
    color: #ead7bf;
    font: 800 .62rem var(--font-heading);
    letter-spacing: .14em;
    text-transform: uppercase;
}

.about-profile-card strong {
    font: 400 clamp(1.45rem, 2vw, 2rem)/1.15 Georgia, serif;
}

.about-profile-rule {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-top: 1.5rem;
    color: #ead7bf;
    font: 800 .57rem var(--font-heading);
    letter-spacing: .12em;
    text-transform: uppercase;
}

.about-profile-rule span {
    width: 28px;
    height: 1px;
    background: currentColor;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 0;
}

.stat-box {
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem;
    border: 1px solid var(--line-brown);
    border-radius: 18px;
    background: #f8eee2;
    box-shadow: none;
}

.stat-box:nth-child(2),
.stat-box:nth-child(4) {
    transform: translateY(1.65rem);
    background: #f1e2d0;
}

.stat-box:hover {
    border-color: rgba(121, 89, 61, .48);
    background: #efe0cd;
    box-shadow: 0 13px 25px rgba(92, 67, 43, .1);
}

.stat-box h4 {
    color: var(--soft-brown);
    font-size: clamp(2.25rem, 3.5vw, 3.4rem);
    letter-spacing: -.08em;
}

.stat-box p {
    color: #806a56;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* Skills: a gallery of disciplines with clear capability signals. */
.skills {
    position: relative;
    padding: 9.5rem 0 8rem;
    overflow: hidden;
    background: #f7eee4;
}

.skills::before {
    content: 'Zeesu Royalist';
    position: absolute;
    left: 50%;
    top: 0;
    color: rgba(121, 89, 61, .045);
    font: 800 clamp(5rem, 14vw, 13rem)/.8 var(--font-heading);
    letter-spacing: -.08em;
    transform: translateX(-50%);
    white-space: nowrap;
    pointer-events: none;
}

.skills-heading {
    position: relative;
    display: grid;
    grid-template-columns: 1fr .75fr auto;
    align-items: end;
    gap: 2.5rem;
    margin-bottom: 3.2rem;
}

.skills-heading h2 {
    margin-top: .8rem;
    color: var(--ink-brown);
    font-size: clamp(2.65rem, 4.4vw, 4.5rem);
    line-height: .98;
    letter-spacing: -.07em;
}

.skills-heading p {
    max-width: 355px;
    color: var(--muted-brown);
    line-height: 1.8;
}

.skills-summary {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .75rem 0 .75rem 1.25rem;
    border-left: 1px solid var(--line-brown);
}

.skills-summary strong {
    color: var(--soft-brown);
    font: 700 2.7rem/.8 Georgia, serif;
}

.skills-summary span {
    color: #806a56;
    font: 800 .57rem/1.4 var(--font-heading);
    letter-spacing: .12em;
    text-transform: uppercase;
}

.skills-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem;
}

.skill-category {
    position: relative;
    min-height: 510px;
    display: flex;
    flex-direction: column;
    padding: 1.75rem;
    overflow: hidden;
    border: 1px solid rgba(130, 94, 62, .2);
    border-radius: 20px;
    background: rgba(255, 253, 249, .66);
    box-shadow: none;
}

.skill-category::after {
    content: '';
    position: absolute;
    z-index: 0;
    right: -45px;
    bottom: -55px;
    width: 160px;
    height: 160px;
    border: 1px solid rgba(121, 89, 61, .13);
    border-radius: 50%;
    transition: transform .7s cubic-bezier(.16, 1, .3, 1);
}

.skill-category:hover {
    transform: translateY(-9px);
    border-color: rgba(121, 89, 61, .44);
    background: #fffdf9;
    box-shadow: 0 20px 40px rgba(92, 67, 43, .1);
}

.skill-category:hover::after {
    transform: scale(1.45);
}

.skill-card-top {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skill-number {
    color: #a7896d;
    font: 800 .65rem var(--font-heading);
    letter-spacing: .14em;
}

.skill-card-top>i {
    display: grid;
    width: 43px;
    height: 43px;
    place-items: center;
    color: #fffdf9;
    border-radius: 14px;
    background: var(--soft-brown);
    font-size: 1rem;
}

.skill-category h3 {
    position: relative;
    z-index: 1;
    margin: 2.2rem 0 .65rem;
    color: var(--ink-brown);
    font-size: 2rem;
    line-height: .98;
    letter-spacing: -.05em;
}

.skill-card-copy {
    position: relative;
    z-index: 1;
    min-height: 50px;
    color: var(--muted-brown);
    font-size: .88rem;
    line-height: 1.65;
}

.skill-meter {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: .45rem .75rem;
    margin: 1.55rem 0 1.35rem;
    color: #806a56;
    font: 800 .61rem var(--font-heading);
    letter-spacing: .08em;
    text-transform: uppercase;
}

.skill-meter b {
    color: var(--soft-brown);
    font-weight: 800;
}

.skill-meter i {
    grid-column: 1 / -1;
    display: block;
    height: 4px;
    overflow: hidden;
    border-radius: 10px;
    background: #eadaca;
}

.skill-meter em {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #b58a61, var(--soft-brown));
    transform-origin: left;
    animation: meter-grow 1.15s cubic-bezier(.16, 1, .3, 1) both;
}

.skills-list {
    position: relative;
    z-index: 1;
    display: flex;
    gap: .45rem;
    margin-top: auto;
}

.skill-tag {
    border-color: rgba(130, 94, 62, .16);
    background: rgba(248, 238, 226, .72);
    color: #6e5744;
    font-size: .72rem;
}

.skill-tag:hover {
    color: #fffdf9;
    background: var(--soft-brown);
    border-color: var(--soft-brown);
}

@keyframes meter-grow {
    from {
        transform: scaleX(0);
    }
}

@media (max-width: 1024px) {
    .hero {
        min-height: auto;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(330px, .8fr);
        gap: 3.5rem;
    }

    .hero-image-container {
        min-height: 500px;
    }

    .profile-frame {
        width: min(35vw, 370px);
        height: min(44vw, 470px);
    }

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

    .about-stats {
        grid-column: 1 / -1;
        grid-template-columns: repeat(4, 1fr);
        margin-top: .4rem;
    }

    .stat-box:nth-child(2),
    .stat-box:nth-child(4) {
        transform: none;
    }

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

    .skills-summary {
        justify-self: start;
    }

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

    .skill-category:last-child {
        grid-column: 1 / -1;
        min-height: 430px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 7.35rem 0 5rem;
        background: linear-gradient(145deg, #fffdf9 0 60%, #f3e5d4 60% 100%);
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2.7rem;
    }

    .hero-title {
        font-size: clamp(3.6rem, 14vw, 6.2rem);
    }

    .hero-image-container {
        min-height: 440px;
    }

    .profile-frame {
        width: min(65vw, 355px);
        height: min(78vw, 430px);
    }

    .hero-insight-card {
        right: 2%;
        top: 18%;
    }

    .hero-proof-card {
        left: 4%;
    }

    .about,
    .skills {
        padding: 5.8rem 0;
    }

    .about-intro {
        grid-template-columns: 1fr;
        gap: 1.3rem;
        margin-bottom: 2.6rem;
    }

    .about-intro h2 {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

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

    .about-text,
    .about-profile-card {
        min-height: 390px;
    }

    .about-stats {
        grid-column: auto;
        grid-template-columns: 1fr 1fr;
    }

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

    .skills-summary {
        margin-top: .5rem;
    }

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

    .skill-category,
    .skill-category:last-child {
        grid-column: auto;
        min-height: 460px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 6.7rem;
    }

    .hero-kicker b {
        display: none;
    }

    .hero-index {
        margin-top: 2.1rem;
    }

    .hero-title {
        font-size: clamp(3.25rem, 15.5vw, 4.7rem);
    }

    .hero-image-container {
        min-height: 390px;
    }

    .profile-frame {
        width: min(68vw, 290px);
        height: min(83vw, 355px);
    }

    .hero-insight-card {
        display: none;
    }

    .about-text {
        padding: 1.7rem;
    }

    .about-stats {
        gap: .7rem;
    }

    .stat-box {
        padding: 1rem;
    }

    .skill-category {
        padding: 1.4rem;
    }
}

/* ========================================================================
   Cream & Soft Brown — premium visual refresh
   This layer intentionally preserves the existing HTML and JS hooks.
   ======================================================================== */
:root {
    --bg-dark: #fffdf9;
    --bg-darker: #f7efe6;
    --bg-card: #ffffff;
    --bg-card-hover: #ffffff;
    --border-glass: #e7ddd1;
    --border-glass-focus: rgba(139, 107, 74, .42);
    --accent-indigo: #c8a97e;
    --accent-purple: #8b6b4a;
    --accent-pink: #a97f5a;
    --accent-teal: #9a7a58;
    --gradient-primary: linear-gradient(135deg, #c8a97e 0%, #a9845d 100%);
    --gradient-glow: linear-gradient(135deg, rgba(200, 169, 126, .16), rgba(139, 107, 74, .10));
    --gradient-teal-blue: linear-gradient(135deg, #d9c1a0, #a9845d);
    --text-white: #2d2d2d;
    --text-silver: #3c352f;
    --text-gray: #666666;
    --text-dark: #8b6b4a;
    --font-heading: 'Poppins', 'Inter', sans-serif;
    --font-body: 'Inter', 'Poppins', sans-serif;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-glass: 0 10px 30px rgba(92, 67, 43, .08);
    --shadow-glow: 0 12px 28px rgba(139, 107, 74, .18);
    --transition-smooth: all .32s cubic-bezier(.2, .75, .25, 1);
}

body {
    background: #fffdf9;
    color: var(--text-silver);
}

body::before,
body::after {
    opacity: .38;
    filter: blur(130px);
}

body::before {
    background: #eadbc8;
}

body::after {
    background: #e4cdb0;
}

p {
    color: var(--text-gray);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-white);
    letter-spacing: -.025em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
}

h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
}

section {
    position: relative;
}

.container {
    max-width: 1240px;
}

.section-header {
    margin-bottom: 3.25rem;
}

.section-header h2 {
    background: none;
    -webkit-text-fill-color: initial;
    color: var(--text-white);
}

.section-header h2::after,
.footer-col h3::after {
    background: var(--accent-indigo);
}

.section-header p {
    max-width: 650px;
}

.glass-card {
    background: rgba(255, 255, 255, .93);
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-glass);
    backdrop-filter: none;
}

.glass-card:hover {
    background: #fff;
    border-color: #d9c3a8;
    box-shadow: 0 18px 40px rgba(92, 67, 43, .13);
    transform: translateY(-6px);
}

.scroll-progress-container {
    background: rgba(231, 221, 209, .8);
}

.scroll-progress-bar {
    background: var(--gradient-primary);
    box-shadow: none;
}

.navbar {
    padding: 1rem 0;
    background: rgba(255, 253, 249, .83);
    border-bottom: 1px solid rgba(231, 221, 209, .7);
    backdrop-filter: blur(16px);
}

.navbar.scrolled {
    padding: .7rem 0;
    background: rgba(255, 253, 249, .94);
    border-bottom-color: var(--border-glass);
    box-shadow: 0 5px 18px rgba(92, 67, 43, .06);
}

.navbar-brand {
    color: var(--accent-purple);
    background: none;
    -webkit-text-fill-color: initial;
    font-size: 1.35rem;
}

.navbar-brand img {
    filter: none;
    border-radius: 8px;
}

.nav-links {
    gap: 1.7rem;
}

.nav-links a {
    color: #6d6259;
    font-weight: 600;
    font-size: .88rem;
}

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

.nav-links a::after {
    height: 2px;
    background: var(--accent-indigo);
    border-radius: 2px;
}

.burger-menu div {
    background: var(--accent-purple);
}

.hero {
    min-height: 780px;
    padding-top: 9.5rem;
    background: radial-gradient(circle at 85% 20%, rgba(233, 220, 201, .65), transparent 31%);
}

.hero-subtitle {
    color: var(--accent-purple);
    background: #f4eadc;
    border: 1px solid #e9dcc9;
    border-radius: 999px;
    padding: .45rem .95rem;
    display: inline-flex;
    font-weight: 700;
    letter-spacing: .06em;
    font-size: .72rem;
    text-transform: uppercase;
}

.hero-title {
    color: var(--text-white);
    text-shadow: none;
}

.hero-typing {
    color: #76655a;
}

.typed-text,
.typed-cursor {
    color: var(--accent-purple);
}

.hero-description {
    font-size: 1.05rem;
    max-width: 570px;
}

.profile-glow {
    background: #ead8bf;
    filter: blur(34px);
    opacity: .8;
}

.profile-frame {
    border: 10px solid #fff;
    box-shadow: 0 22px 50px rgba(92, 67, 43, .18);
}

.profile-frame img {
    filter: none;
}

.scroll-indicator {
    color: var(--accent-purple);
}

.scroll-indicator .mouse {
    border-color: var(--accent-purple);
}

.scroll-indicator .wheel {
    background: var(--accent-indigo);
}

.btn {
    border-radius: 10px;
    font-weight: 700;
    padding: .85rem 1.35rem;
    letter-spacing: .01em;
    box-shadow: 0 5px 14px rgba(92, 67, 43, .08);
}

.btn-primary {
    color: #fff;
    background: var(--gradient-primary);
    border: 1px solid #b99467;
}

.btn-primary:hover {
    background: #8b6b4a;
    box-shadow: 0 10px 22px rgba(92, 67, 43, .23);
    transform: translateY(-2px);
}

.btn-secondary {
    color: var(--accent-purple);
    background: #f7efe6;
    border: 1px solid #e0cdb6;
}

.btn-secondary:hover,
.btn-outline:hover {
    color: #fff;
    background: var(--accent-purple);
    border-color: var(--accent-purple);
    box-shadow: 0 10px 22px rgba(92, 67, 43, .18);
}

.btn-outline {
    color: var(--accent-purple);
    background: #fff;
    border-color: #d9c3a8;
}

.social-dock a {
    color: var(--accent-purple);
    background: #fff;
    border: 1px solid var(--border-glass);
    box-shadow: 0 4px 10px rgba(92, 67, 43, .06);
}

.social-dock a:hover {
    color: #fff;
    background: var(--accent-purple);
    border-color: var(--accent-purple);
    box-shadow: 0 8px 18px rgba(92, 67, 43, .18);
}

.about,
.skills,
.timeline-section,
.projects-preview,
.journey,
.certificates-preview,
.contact-section {
    padding: 6.5rem 0;
}

.about {
    background: #fff;
}

.skills,
.journey,
.certificates-preview {
    background: #fbf6ef;
}

.about-text h3,
.about-text h2 {
    color: var(--text-white);
}

.stat-box {
    padding: 1.7rem;
}

.stat-box h4 {
    color: var(--accent-purple);
}

.skill-category {
    padding: 2rem;
}

.skill-category h3 i,
.timeline-column h3 i {
    color: var(--accent-indigo);
}

.skill-tag {
    color: #65574b;
    background: #fbf6ef;
    border: 1px solid #ebded0;
}

.skill-tag:hover {
    color: var(--accent-purple);
    background: #f2e4d2;
    border-color: #d9c3a8;
}

.timeline {
    border-color: #dfcbb4 !important;
}

.timeline-item::before {
    background: var(--accent-indigo);
    border-color: #fff;
    box-shadow: 0 0 0 3px #eadbc8;
}

.timeline-date {
    color: var(--accent-purple);
    background: #f6ecdf;
    border: 1px solid #ead9c3;
}

.timeline-org {
    color: var(--accent-purple);
    font-weight: 700;
}

.journey-card,
.project-card,
.cert-card {
    overflow: hidden;
}

.journey-body,
.project-body,
.cert-body {
    padding: 1.65rem;
}

.project-overlay {
    background: rgba(76, 55, 37, .63);
}

.project-body h3 {
    color: var(--text-white);
}

.project-card:hover .project-body h3 {
    color: var(--accent-purple);
}

.tech-badge {
    color: var(--accent-purple);
    background: #f5e9da;
    border: 1px solid #ead7bf;
}

.project-links {
    border-top-color: var(--border-glass);
}

.project-links a.btn-link,
.project-links a.btn-main {
    color: var(--accent-purple);
}

.project-links a.btn-main:hover,
.project-links a.btn-link:hover {
    color: #6d5037;
}

.cert-img-wrapper,
.project-img-wrapper {
    background: #f4eadc;
}

.page-header {
    background: linear-gradient(135deg, #fbf4eb, #f0e1cf);
    border-bottom: 1px solid var(--border-glass);
}

.page-header h1 {
    color: var(--text-white);
}

.filter-btn {
    color: #6f6154;
    background: #fff;
    border: 1px solid var(--border-glass);
    border-radius: 999px;
    box-shadow: none;
}

.filter-btn:hover,
.filter-btn.active {
    color: #fff;
    background: var(--accent-purple);
    border-color: var(--accent-purple);
    box-shadow: 0 6px 14px rgba(92, 67, 43, .16);
}

.search-container {
    background: #fff;
    border: 1px solid var(--border-glass);
    box-shadow: 0 7px 18px rgba(92, 67, 43, .06);
}

.search-container i {
    color: var(--accent-purple);
}

.search-container input,
.form-control {
    color: var(--text-white);
    background: #fff;
}

.search-container input:focus {
    border-color: transparent;
    box-shadow: 0 0 0 3px rgba(200, 169, 126, .2);
}

.project-large-banner {
    border: 8px solid #fff;
    box-shadow: var(--shadow-glass);
}

.project-meta-info {
    padding: 2rem;
}

.meta-item {
    border-color: var(--border-glass) !important;
}

.screenshot-grid img {
    border: 4px solid #fff;
    box-shadow: var(--shadow-glass);
}

.contact-card {
    padding: 1.25rem;
}

.contact-icon {
    color: #fff;
    background: var(--gradient-primary);
    box-shadow: 0 6px 14px rgba(92, 67, 43, .14);
}

.contact-details h4 {
    color: var(--text-white);
}

.contact-details a {
    color: var(--accent-purple);
}

.contact-form {
    padding: 2.5rem;
}

.form-group label {
    color: #51483f;
}

.form-control {
    border-color: var(--border-glass);
    border-radius: 10px;
}

.form-control:focus {
    border-color: var(--accent-indigo);
    box-shadow: 0 0 0 4px rgba(200, 169, 126, .18);
}

.form-error {
    color: #e53935;
}

footer {
    background: #f1e5d6;
    border-top: 1px solid #e2d1bc;
}

.footer-col h3 {
    color: var(--text-white);
}

.footer-about p,
.footer-links a,
.footer-contact-list li {
    color: #66594e;
}

.footer-links a:hover {
    color: var(--accent-purple);
    padding-left: .35rem;
}

.footer-contact-list i {
    color: var(--accent-purple);
}

.footer-bottom {
    border-top-color: #dcc8b0;
}

.footer-bottom p {
    color: #7b6a5b;
}

.toast-notification {
    background: #fff;
    color: var(--text-white);
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-glass);
}

.toast-content i,
.back-to-top {
    background: var(--gradient-primary);
}

.back-to-top {
    color: #fff;
    box-shadow: 0 8px 18px rgba(92, 67, 43, .22);
}

.lightbox-modal {
    background: rgba(45, 36, 28, .75);
}

.lightbox-content {
    border: 5px solid #fff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
}

.lightbox-close {
    color: #fff;
}

@media (max-width: 768px) {
    .nav-links {
        background: #fffdf9;
        border-left-color: var(--border-glass);
        box-shadow: -12px 0 30px rgba(92, 67, 43, .12);
    }

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

    .hero {
        min-height: auto;
        padding: 8rem 0 5rem;
    }

    .about,
    .skills,
    .timeline-section,
    .projects-preview,
    .journey,
    .certificates-preview,
    .contact-section {
        padding: 4.5rem 0;
    }
}

/* ========================================================================
   2026 Experience Layer — layout, motion, and micro-interactions only
   ======================================================================== */
html {
    scroll-padding-top: 104px;
}

body {
    animation: page-reveal .65s cubic-bezier(.2, .75, .25, 1) both;
}

body::before,
body::after {
    position: fixed;
    pointer-events: none;
}

::selection {
    color: #fff;
    background: var(--accent-purple);
}

@keyframes page-reveal {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

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

@keyframes orbit-drift {

    0%,
    100% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }

    50% {
        transform: translate3d(18px, -20px, 0) rotate(8deg);
    }
}

@keyframes soft-pulse {

    0%,
    100% {
        box-shadow: 0 12px 28px rgba(139, 107, 74, .18);
    }

    50% {
        box-shadow: 0 16px 36px rgba(139, 107, 74, .28);
    }
}

@keyframes sheen {
    0% {
        transform: translateX(-145%) skewX(-18deg);
    }

    100% {
        transform: translateX(235%) skewX(-18deg);
    }
}

/* Glass navigation rail */
.navbar {
    padding: .85rem 0;
    background: transparent;
    border: 0;
    backdrop-filter: none;
}

.navbar.scrolled {
    padding: .65rem 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.navbar .container {
    min-height: 62px;
    padding-top: .45rem;
    padding-bottom: .45rem;
    background: rgba(255, 253, 249, .86);
    border: 1px solid rgba(231, 221, 209, .9);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(92, 67, 43, .08);
    backdrop-filter: blur(18px);
}

.navbar-brand {
    position: relative;
    padding: .25rem .45rem;
}

.nav-links a {
    padding: .65rem .1rem;
}

.nav-links a::after {
    bottom: .28rem;
}

.nav-links a.active::before {
    content: '';
    position: absolute;
    inset: .1rem -.55rem;
    z-index: -1;
    border-radius: 8px;
    background: rgba(233, 220, 201, 0.158);
}

/* Hero: visual focal point with floating geometric accents */
.hero {
    min-height: 860px;
    isolation: isolate;
    padding-top: 8.75rem;
    background: radial-gradient(circle at 78% 44%, rgba(233, 220, 201, .78), transparent 31%),
        radial-gradient(circle at 20% 90%, rgba(200, 169, 126, .12), transparent 24%);
}

.hero::before,
.hero::after {
    content: '';
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(200, 169, 126, .48);
    pointer-events: none;
}

.hero::before {
    width: 15rem;
    height: 15rem;
    right: 7%;
    top: 18%;
    border-radius: 38px;
    transform: rotate(24deg);
    animation: orbit-drift 9s ease-in-out infinite;
}

.hero::after {
    width: 6.5rem;
    height: 6.5rem;
    left: 7%;
    bottom: 16%;
    border-radius: 50%;
    box-shadow: inset 0 0 0 19px rgba(233, 220, 201, .72);
    animation: orbit-drift 7s ease-in-out -2.2s infinite reverse;
}

.hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
    gap: clamp(3rem, 7vw, 8rem);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content::before {
    content: '';
    position: absolute;
    width: 3rem;
    height: 1px;
    left: -4.25rem;
    top: .95rem;
    background: var(--accent-indigo);
}

.hero-title {
    max-width: 760px;
    font-size: clamp(3.75rem, 7vw, 6.7rem);
    line-height: .96;
    letter-spacing: -.065em;
    margin: 1.2rem 0 1.6rem;
}

.hero-typing {
    font-size: clamp(1.1rem, 1.55vw, 1.45rem);
    margin-bottom: 1.55rem;
}

.hero-description {
    max-width: 540px;
    margin-bottom: 2rem;
}

.hero-cta {
    gap: .85rem;
    margin-bottom: 2.35rem;
}

.hero-cta .btn {
    min-height: 52px;
}

.hero-image-container {
    min-height: 460px;
}

.profile-glow {
    width: min(31vw, 430px);
    height: min(31vw, 430px);
    opacity: .48;
    filter: blur(50px);
    animation: soft-pulse 5s ease-in-out infinite;
}

.profile-frame {
    width: min(31vw, 410px);
    height: min(31vw, 410px);
    border-radius: 28px;
    border-width: 12px;
    outline: 1px solid rgba(200, 169, 126, .7);
    outline-offset: 12px;
    animation: none;
}

.profile-frame::after {
    content: '';
    position: absolute;
    width: 70px;
    height: 70px;
    right: -33px;
    bottom: -33px;
    border-radius: 50%;
    border: 1px solid rgba(139, 107, 74, .42);
    background: rgba(255, 253, 249, .9);
    box-shadow: 0 10px 28px rgba(92, 67, 43, .12);
}

.profile-frame:hover {
    transform: translateY(-8px) rotate(-1deg);
}

.profile-frame:hover img {
    scale: 1.14;
}

.scroll-indicator {
    bottom: 1.25rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-weight: 700;
}

/* Buttons receive a restrained light sweep and tactile feedback. */
.btn {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
}

.btn::after {
    content: '';
    position: absolute;
    z-index: -1;
    top: -35%;
    width: 38%;
    height: 170%;
    background: rgba(255, 255, 255, .34);
    opacity: 0;
}

.btn:hover {
    transform: translateY(-3px) scale(1.015);
}

.btn:hover::after {
    opacity: 1;
    animation: sheen .7s ease both;
}

.btn:active {
    transform: translateY(0) scale(.985);
}

.btn i {
    transition: transform .25s ease;
}

.btn:hover i.fa-arrow-right,
.btn:hover i.fa-paper-plane,
.btn:hover i.fa-external-link-alt {
    transform: translateX(3px);
}

/* Shared components get a layered, tactile glass surface. */
.glass-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(255, 255, 255, .84));
    box-shadow: 0 10px 28px rgba(92, 67, 43, .08), inset 0 1px 0 rgba(255, 255, 255, .95);
    transition: transform .34s cubic-bezier(.2, .75, .25, 1), border-color .34s ease, box-shadow .34s ease;
}

.glass-card::before {
    content: '';
    position: absolute;
    height: 1px;
    top: 0;
    left: 11%;
    right: 11%;
    background: linear-gradient(90deg, transparent, var(--accent-indigo), transparent);
    opacity: .34;
    transition: opacity .3s ease, left .3s ease, right .3s ease;
}

.glass-card:hover::before {
    left: 4%;
    right: 4%;
    opacity: .85;
}

.glass-card:hover {
    border-color: rgba(200, 169, 126, .8);
    box-shadow: 0 21px 45px rgba(92, 67, 43, .14), 0 0 0 4px rgba(233, 220, 201, .4);
}

/* Landing-page sections: deliberately varied editorial layouts. */
.about {
    overflow: hidden;
}

.about-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
    gap: clamp(3rem, 8vw, 8rem);
}

.about-text {
    position: relative;
    padding: 2rem 0 2rem 2.25rem;
}

.about-text::before {
    content: '';
    position: absolute;
    top: 1.8rem;
    bottom: 1.8rem;
    left: 0;
    width: 2px;
    background: linear-gradient(var(--accent-indigo), transparent);
}

.about-stats {
    gap: 1rem;
}

.stat-box {
    min-height: 154px;
    display: grid;
    place-content: center;
}

.stat-box:nth-child(1) {
    border-radius: 24px 24px 8px 24px;
}

.stat-box:nth-child(2) {
    transform: translateY(1.5rem);
}

.stat-box:nth-child(3) {
    transform: translateY(-.25rem);
}

.stat-box:nth-child(4) {
    border-radius: 8px 24px 24px;
    transform: translateY(1.25rem);
}

.stat-box h4 {
    font-size: clamp(2.2rem, 3.6vw, 3.25rem);
    line-height: 1;
}

.skills {
    overflow: hidden;
}

.skills-grid {
    grid-template-columns: 1.1fr .9fr 1fr;
    align-items: start;
    gap: 1.3rem;
}

.skill-category {
    min-height: 330px;
}

.skill-category:nth-child(2) {
    transform: translateY(2.4rem);
}

.skill-category:nth-child(3) {
    transform: translateY(.65rem);
}

.skill-category h3 {
    font-size: 1.25rem;
}

.skill-tag {
    transition: transform .23s ease, background .23s ease, border-color .23s ease;
}

.skill-tag:hover {
    transform: translateY(-3px) rotate(-.5deg);
}

.timeline-section {
    background: linear-gradient(180deg, transparent, rgba(233, 220, 201, .4), transparent);
    overflow: hidden;
}

.timeline-section::before {
    content: '01';
    position: absolute;
    top: 1.8rem;
    right: 5vw;
    color: rgba(200, 169, 126, .18);
    font: 800 clamp(6rem, 15vw, 13rem)/1 var(--font-heading);
    pointer-events: none;
}

.timeline-grid {
    gap: clamp(3rem, 7vw, 7rem);
}

.timeline-column h3 {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-glass);
}

.timeline-card {
    border-radius: 18px;
}

.timeline-card:hover {
    transform: translateX(7px) translateY(-3px);
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.projects-preview {
    overflow: hidden;
    background: #fff;
}

.projects-preview .projects-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.35rem;
}

.projects-preview .project-card:first-child {
    grid-column: span 2;
}

.projects-preview .project-card:first-child .project-img-wrapper {
    height: 290px;
}

.projects-preview .project-card:first-child .project-body {
    padding: 1.9rem 2rem;
}

.project-img-wrapper::after,
.cert-img-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(45, 45, 45, .18));
    opacity: 0;
    transition: opacity .35s ease;
    pointer-events: none;
}

.project-card:hover .project-img-wrapper::after,
.cert-card:hover .cert-img-wrapper::after {
    opacity: 1;
}

.project-card:hover .project-links .btn-main i {
    transform: translateX(4px);
}

.journey {
    overflow: hidden;
}

.journey-grid {
    gap: 1.35rem;
    align-items: start;
}

.journey-card:nth-child(2) {
    transform: translateY(2.25rem);
}

.journey-card:nth-child(3) {
    transform: translateY(.75rem);
}

.journey-card img {
    height: 250px;
}

.journey-body {
    min-height: 210px;
}

.certificates-preview {
    position: relative;
}

.certificates-preview .certs-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.35rem;
}

.certificates-preview .cert-card:first-child {
    grid-column: span 2;
}

.certificates-preview .cert-card:first-child .cert-img-wrapper {
    height: 280px;
}

.certificates-preview .cert-card:first-child .cert-body {
    padding: 1.7rem 2rem;
}

.cert-card:hover .cert-img-wrapper img {
    scale: 1.08;
}

.contact-section {
    overflow: hidden;
}

.contact-grid {
    grid-template-columns: minmax(290px, .78fr) minmax(0, 1.22fr);
    gap: clamp(2.5rem, 7vw, 7rem);
    align-items: start;
}

.contact-info {
    gap: .85rem;
}

.contact-card {
    align-items: center;
    transition: transform .26s ease, box-shadow .26s ease;
}

.contact-card:hover {
    transform: translateX(8px);
}

.contact-form {
    border-radius: 24px;
    box-shadow: 0 20px 44px rgba(92, 67, 43, .1);
}

.form-control {
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.form-control:focus {
    transform: translateY(-1px);
}

/* Page identities: overview, archive, story, and conversation. */
.page-header {
    position: relative;
    overflow: hidden;
    min-height: 350px;
    display: grid;
    place-items: end center;
    padding: 9.5rem 0 4.5rem;
}

.page-header::before,
.page-header::after {
    content: '';
    position: absolute;
    border: 1px solid rgba(200, 169, 126, .48);
    pointer-events: none;
}

.page-header::before {
    width: 18rem;
    height: 18rem;
    border-radius: 42px;
    left: -7rem;
    bottom: -12rem;
    transform: rotate(28deg);
}

.page-header::after {
    width: 10rem;
    height: 10rem;
    border-radius: 50%;
    right: 8%;
    top: 7rem;
    box-shadow: inset 0 0 0 25px rgba(255, 253, 249, .34);
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: clamp(2.65rem, 5.5vw, 5rem);
    line-height: 1.04;
    letter-spacing: -.055em;
    max-width: 880px;
    margin: 0 auto .9rem;
}

.page-header p {
    max-width: 660px;
    margin: 0 auto;
    font-size: 1.05rem;
}

body:has(#projects-grid) .page-header {
    background: linear-gradient(125deg, rgba(233, 220, 201, .92), rgba(255, 253, 249, .9));
}

body:has(#projects-grid) .search-container {
    max-width: 620px;
    transform: translateY(-1.55rem);
}

body:has(#projects-grid) #projects-grid {
    gap: 1.35rem;
}

body:has(#projects-grid) .project-card {
    border-radius: 20px;
}

body:has(#projects-grid) .project-img-wrapper {
    height: 230px;
}

body:has(.timeline > .timeline-item[data-category]) .page-header {
    background: linear-gradient(140deg, rgba(255, 253, 249, .85), rgba(233, 220, 201, .9));
}

body:has(.timeline > .timeline-item[data-category]) .timeline {
    padding-left: 3.4rem;
}

body:has(.timeline > .timeline-item[data-category]) .timeline-card {
    padding: 1.65rem;
}

body:has(.timeline > .timeline-item[data-category]) .timeline-card img {
    box-shadow: 0 10px 26px rgba(92, 67, 43, .12);
    transition: transform .35s ease;
}

body:has(.timeline > .timeline-item[data-category]) .timeline-card:hover img {
    transform: scale(1.025);
}

body:has(.certs-grid) .page-header {
    background: linear-gradient(135deg, rgba(240, 225, 207, .92), rgba(255, 253, 249, .9));
}

body:has(.certs-grid) .certs-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.35rem;
}

body:has(.certs-grid) .cert-card {
    border-radius: 18px;
}

body:has(.certs-grid) .cert-img-wrapper {
    height: 210px;
}

body:has(.certs-grid) .cert-card:nth-child(3n + 2) {
    transform: translateY(1.4rem);
}

body:has(.contact-grid) .page-header {
    background: linear-gradient(135deg, rgba(255, 253, 249, .95), rgba(233, 220, 201, .9));
}

body:has(.contact-grid) .contact-grid {
    margin-top: 1.25rem;
}

.filter-btn {
    position: relative;
    overflow: hidden;
}

.filter-btn:hover {
    transform: translateY(-2px);
}

.search-container {
    border-radius: 15px;
}

.search-container input {
    border-radius: 15px;
}

.project-large-banner {
    border-radius: 28px;
    min-height: 440px;
}

.project-details-main h2 {
    position: relative;
    padding-left: 1.1rem;
}

.project-details-main h2::before {
    content: '';
    position: absolute;
    width: 3px;
    height: 1.2em;
    top: .07em;
    left: 0;
    background: var(--accent-indigo);
    border-radius: 99px;
}

.project-meta-info {
    border-radius: 20px;
}

.screenshot-grid img:hover {
    transform: translateY(-5px) scale(1.015);
}

footer {
    position: relative;
    overflow: hidden;
    padding-top: 5.5rem;
}

footer::before {
    content: '';
    position: absolute;
    width: 28rem;
    height: 28rem;
    right: -12rem;
    top: -21rem;
    border: 1px solid rgba(200, 169, 126, .5);
    border-radius: 50%;
    box-shadow: 0 0 0 3.2rem rgba(255, 253, 249, .12), 0 0 0 6.4rem rgba(255, 253, 249, .08);
}

.footer-grid {
    position: relative;
    z-index: 1;
}

.footer-col h3 {
    letter-spacing: -.02em;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
}

.footer-links a::before {
    content: '→';
    color: var(--accent-indigo);
    opacity: 0;
    transform: translateX(-.45rem);
    transition: opacity .2s ease, transform .2s ease;
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-links a:hover {
    padding-left: .12rem;
}

@media (max-width: 1024px) {
    .hero {
        min-height: auto;
        padding-bottom: 8rem;
    }

    .hero-content::before {
        display: none;
    }

    .profile-frame,
    .profile-glow {
        width: min(53vw, 400px);
        height: min(53vw, 400px);
    }

    .about-grid,
    .contact-grid {
        gap: 3rem;
    }

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

    .skill-category:nth-child(3) {
        grid-column: span 2;
        transform: translateY(0);
    }

    .projects-preview .projects-grid,
    .certificates-preview .certs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-preview .project-card:first-child,
    .certificates-preview .cert-card:first-child {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: .55rem 0;
    }

    .navbar .container {
        min-height: 56px;
        border-radius: 14px;
        padding-top: .3rem;
        padding-bottom: .3rem;
    }

    .nav-links {
        top: 0;
        background: rgba(255, 253, 249, .98);
    }

    .hero {
        padding-top: 7.25rem;
        padding-bottom: 6rem;
    }

    .hero::before {
        width: 9rem;
        height: 9rem;
        right: -2rem;
        top: 13%;
    }

    .hero::after {
        left: -2rem;
        bottom: 11%;
    }

    .hero-grid {
        gap: 3rem;
    }

    .hero-image-container {
        min-height: 330px;
    }

    .profile-frame,
    .profile-glow {
        width: min(73vw, 350px);
        height: min(73vw, 350px);
    }

    .hero-title {
        font-size: clamp(3.3rem, 15vw, 5rem);
    }

    .about-text {
        padding-left: 1.5rem;
    }

    .stat-box:nth-child(2),
    .stat-box:nth-child(4),
    .journey-card:nth-child(2),
    .journey-card:nth-child(3),
    .skill-category:nth-child(2) {
        transform: none;
    }

    .skills-grid,
    .projects-preview .projects-grid,
    .certificates-preview .certs-grid,
    body:has(.certs-grid) .certs-grid {
        grid-template-columns: 1fr;
    }

    .skill-category:nth-child(3),
    .projects-preview .project-card:first-child,
    .certificates-preview .cert-card:first-child {
        grid-column: auto;
    }

    .projects-preview .project-card:first-child .project-img-wrapper,
    .certificates-preview .cert-card:first-child .cert-img-wrapper {
        height: 230px;
    }

    .page-header {
        min-height: 300px;
        padding: 7.9rem 0 3.2rem;
    }

    .page-header::after {
        width: 6rem;
        height: 6rem;
        right: -1.6rem;
        top: 5.4rem;
    }

    body:has(.timeline > .timeline-item[data-category]) .timeline {
        padding-left: 2rem;
    }

    .project-large-banner {
        min-height: 260px;
        height: 300px;
        border-width: 5px;
        border-radius: 20px;
    }

    .contact-card:hover,
    .timeline-card:hover {
        transform: translateY(-4px);
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

/* ========================================================================
   Hero — editorial signature composition
   ======================================================================== */
.hero {
    min-height: min(900px, 100svh);
    display: grid;
    align-items: center;
    padding: 8.2rem 0 5.8rem;
    background:
        linear-gradient(112deg, #fffdf9 0%, #fffaf4 47%, #f2e4d2 100%);
}

.hero::before {
    width: min(47vw, 690px);
    height: min(47vw, 690px);
    right: -14vw;
    top: 5%;
    border: 1px solid rgba(185, 148, 103, .3);
    border-radius: 50%;
    transform: none;
    animation: hero-ring 16s linear infinite;
}

.hero::after {
    width: min(28vw, 370px);
    height: min(28vw, 370px);
    left: 40%;
    bottom: -15%;
    border: 0;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(185, 148, 103, .2), 0 0 0 32px rgba(255, 253, 249, .35);
    animation: none;
}

.hero-container {
    position: relative;
    width: 100%;
}

.hero-grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(390px, .88fr);
    align-items: center;
    gap: clamp(2.5rem, 7vw, 8.5rem);
}

.hero-content {
    max-width: 700px;
    padding: clamp(1.7rem, 3.5vw, 3rem);
    border: 1px solid rgba(207, 181, 151, .56);
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(255, 253, 249, .88), rgba(255, 253, 249, .58));
    box-shadow: 0 24px 70px rgba(92, 67, 43, .09), inset 0 1px 0 rgba(255, 255, 255, .9);
    backdrop-filter: blur(13px);
    -webkit-backdrop-filter: blur(13px);
}

.hero-content::before {
    display: none;
}

.hero-kicker,
.hero-index,
.hero-availability {
    color: #7e6045;
    font-family: var(--font-heading);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.hero-kicker {
    display: flex;
    align-items: center;
    gap: .7rem;
}

.hero-kicker span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #b99467;
    box-shadow: 0 0 0 5px rgba(185, 148, 103, .13);
}

.hero-index {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin: 2.25rem 0 .8rem;
    color: #aa8a68;
}

.hero-index i {
    display: block;
    width: 2.5rem;
    height: 1px;
    background: #c9a77e;
}

.hero-title {
    margin: 0 0 1.35rem;
    color: #493526;
    font-size: clamp(4.3rem, 8.2vw, 8.4rem);
    font-weight: 700;
    line-height: .78;
    letter-spacing: -.085em;
}

.hero-title span,
.hero-title em {
    display: block;
}

.hero-title em {
    padding-left: clamp(1.25rem, 5vw, 4.6rem);
    color: #9a744f;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: .66em;
    font-weight: 400;
    letter-spacing: -.07em;
}

.hero-typing {
    min-height: 1.8rem;
    margin-bottom: 1rem;
    color: #715b49;
    font-size: clamp(1rem, 1.45vw, 1.2rem);
    font-weight: 600;
}

.hero-typing .typed-text,
.hero-typing .typed-cursor {
    color: #8b6b4a;
}

.hero-description {
    max-width: 510px;
    margin-bottom: 1.9rem;
    color: #766355;
    font-size: 1.01rem;
    line-height: 1.8;
}

.hero-cta {
    gap: .75rem;
    margin-bottom: 2.15rem;
}

.hero-cta .btn {
    min-height: 56px;
    padding: .9rem 1.25rem;
    border-radius: 12px;
    font-size: .88rem;
}

.hero-cta .btn-primary {
    background: #79593d;
    border-color: #79593d;
    box-shadow: 0 11px 24px rgba(92, 67, 43, .22);
}

.hero-cta .btn-primary:hover {
    background: #60432c;
    box-shadow: 0 15px 28px rgba(92, 67, 43, .28);
}

.hero-cta .btn-secondary {
    background: rgba(255, 255, 255, .52);
    border-color: #ddc6ac;
    color: #684b34;
}

.hero-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(207, 181, 151, .48);
}

.hero-footer .social-dock {
    gap: .42rem;
    margin: 0;
}

.hero-footer .social-dock a {
    width: 31px;
    height: 31px;
    font-size: .82rem;
    background: transparent;
    box-shadow: none;
}

.hero-availability {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-size: .61rem;
    letter-spacing: .09em;
    white-space: nowrap;
}

.hero-availability b {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #8b6b4a;
    animation: availability-pulse 2.5s ease-in-out infinite;
}

.hero-image-container {
    min-height: 560px;
    isolation: isolate;
}

.profile-glow {
    width: min(32vw, 455px);
    height: min(32vw, 455px);
    border-radius: 50%;
    background: #d9b98d;
    filter: blur(58px);
    opacity: .34;
}

.profile-frame {
    width: min(29vw, 410px);
    height: min(35vw, 492px);
    overflow: hidden;
    border: 9px solid rgba(255, 253, 249, .96);
    /* border-radius: 210px 210px 24px 24px; */
    outline: 1px solid rgba(160, 119, 78, .55);
    outline-offset: 11px;
    box-shadow: 0 30px 55px rgba(92, 67, 43, .2);
    animation: portrait-sway 7s ease-in-out infinite;
}

.profile-frame::after {
    display: none;
}

.profile-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    scale: 1.03;
    filter: saturate(.84) sepia(.07);
}

.profile-frame:hover {
    transform: translateY(-6px) rotate(.7deg);
}

.hero-portrait-mark {
    position: absolute;
    z-index: -1;
    right: -4%;
    top: 10%;
    color: rgba(156, 111, 69, .17);
    font: 700 clamp(7rem, 15vw, 13rem)/.7 Georgia, serif;
    letter-spacing: -.16em;
}

.portrait-caption {
    position: absolute;
    z-index: 2;
    color: #705136;
    font-family: var(--font-heading);
    font-weight: 800;
    text-transform: uppercase;
}

.portrait-caption-top {
    top: 13%;
    left: 1%;
    display: grid;
    gap: .15rem;
    font-size: .64rem;
    letter-spacing: .2em;
    writing-mode: vertical-rl;
}

.portrait-caption-top span:last-child {
    color: #a8825d;
}

.portrait-caption-bottom {
    right: 0;
    bottom: 10%;
    display: flex;
    align-items: center;
    gap: .65rem;
    font-size: .58rem;
    line-height: 1.5;
    letter-spacing: .16em;
}

.portrait-caption-bottom i {
    width: 28px;
    height: 1px;
    background: #af8963;
}

.hero-proof-card {
    position: absolute;
    z-index: 3;
    left: -3%;
    bottom: 3%;
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .8rem .9rem;
    border: 1px solid rgba(213, 186, 154, .78);
    border-radius: 12px;
    background: rgba(255, 253, 249, .82);
    box-shadow: 0 12px 28px rgba(92, 67, 43, .12);
    backdrop-filter: blur(12px);
    animation: proof-float 6s ease-in-out infinite;
}

.hero-proof-card strong {
    color: #6c4c32;
    font: 700 2.35rem/.8 var(--font-heading);
    letter-spacing: -.08em;
}

.hero-proof-card sup {
    font-size: .45em;
    vertical-align: top;
}

.hero-proof-card span {
    color: #876c54;
    font: 800 .56rem/1.45 var(--font-heading);
    letter-spacing: .1em;
    text-transform: uppercase;
}

.hero-orb {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
}

.hero-orb-one {
    width: 15px;
    height: 15px;
    top: 27%;
    left: 7%;
    background: #c9a77e;
    box-shadow: 0 0 0 10px rgba(201, 167, 126, .1);
    animation: orb-drift 7s ease-in-out infinite;
}

.hero-orb-two {
    width: 7px;
    height: 7px;
    bottom: 19%;
    right: 10%;
    background: #9c7148;
    box-shadow: 0 0 0 8px rgba(156, 113, 72, .1);
    animation: orb-drift 5.5s ease-in-out -2s infinite reverse;
}

.hero-linework {
    position: absolute;
    z-index: -1;
    left: 0;
    right: 0;
    bottom: 8%;
    height: 1px;
    background: linear-gradient(90deg, transparent 5%, rgba(186, 149, 105, .25) 35%, transparent 70%);
}

.scroll-indicator {
    left: max(2rem, calc((100% - 1200px) / 2 + 2rem));
    bottom: 1.35rem;
    gap: .55rem;
    color: #886844;
    font-size: .61rem;
    letter-spacing: .15em;
}

.scroll-indicator .mouse {
    width: 18px;
    height: 29px;
    border-color: #a8825d;
}

.scroll-indicator .wheel {
    background: #8b6b4a;
}

@keyframes portrait-sway {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(-.55deg);
    }
}

@keyframes proof-float {

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

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

@keyframes orb-drift {

    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(12px, -15px, 0);
    }
}

@keyframes hero-ring {
    to {
        transform: rotate(360deg);
    }
}

@keyframes availability-pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(139, 107, 74, .3);
    }

    50% {
        box-shadow: 0 0 0 5px rgba(139, 107, 74, 0);
    }
}

@media (max-width: 1024px) {
    .hero {
        min-height: auto;
        padding-bottom: 7rem;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(340px, .72fr);
        gap: 2.5rem;
    }

    .hero-image-container {
        min-height: 490px;
    }

    .profile-frame {
        width: min(34vw, 360px);
        height: min(42vw, 450px);
    }

    .hero-proof-card {
        left: -8%;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 7.1rem 0 5.5rem;
    }

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

    .hero-content {
        padding: 1.55rem;
        border-radius: 23px;
    }

    .hero-index {
        margin-top: 1.8rem;
    }

    .hero-title {
        font-size: clamp(4.1rem, 19vw, 6.6rem);
    }

    .hero-image-container {
        order: initial;
        min-height: 455px;
    }

    .profile-frame {
        width: min(64vw, 350px);
        height: min(77vw, 430px);
    }

    .hero-portrait-mark {
        right: 7%;
        top: 9%;
    }

    .portrait-caption-top {
        left: 6%;
    }

    .portrait-caption-bottom {
        right: 5%;
    }

    .hero-proof-card {
        left: 8%;
        bottom: 4%;
    }

    .scroll-indicator {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 6.7rem;
    }

    .hero-content {
        padding: 1.35rem;
    }

    .hero-kicker {
        font-size: .59rem;
    }

    .hero-title {
        font-size: clamp(3.7rem, 18.5vw, 5.25rem);
    }

    .hero-description {
        font-size: .94rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn {
        width: 100%;
    }

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

    .hero-image-container {
        min-height: 400px;
    }

    .profile-frame {
        width: min(68vw, 295px);
        height: min(83vw, 365px);
    }

    .portrait-caption-top {
        left: 3%;
    }

    .portrait-caption-bottom {
        right: 2%;
        bottom: 12%;
    }

    .hero-proof-card {
        left: 4%;
        bottom: 2%;
    }
}

/* ========================================================================
   Motion polish — CSS-only, composited where possible
   ======================================================================== */
@keyframes portrait-float {

    0%,
    100% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }

    50% {
        transform: translate3d(0, -12px, 0) rotate(-.65deg);
    }
}

@keyframes satellite-float {

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

    50% {
        transform: translate3d(8px, -13px, 0) scale(1.06);
    }
}

@keyframes halo-breathe {

    0%,
    100% {
        opacity: .42;
        scale: 1;
    }

    50% {
        opacity: .62;
        scale: 1.07;
    }
}

@keyframes divider-travel {
    from {
        background-position: 170% 0;
    }

    to {
        background-position: -70% 0;
    }
}

@keyframes border-shimmer {

    0%,
    100% {
        opacity: .28;
        transform: translateX(-12%);
    }

    50% {
        opacity: .75;
        transform: translateX(12%);
    }
}

@keyframes timeline-travel {
    from {
        background-position: 0 170%;
    }

    to {
        background-position: 0 -70%;
    }
}

@keyframes header-orbit {

    0%,
    100% {
        transform: rotate(28deg) translate3d(0, 0, 0);
    }

    50% {
        transform: rotate(35deg) translate3d(14px, -7px, 0);
    }
}

@keyframes soft-enter {
    from {
        opacity: 0;
        transform: translate3d(0, 22px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* A refined entrance sequence relies on the existing reveal hook. */
.hero-content.revealed .hero-subtitle {
    animation: soft-enter .55s .05s both;
}

.hero-content.revealed .hero-title {
    animation: soft-enter .7s .14s both;
}

.hero-content.revealed .hero-typing {
    animation: soft-enter .65s .24s both;
}

.hero-content.revealed .hero-description {
    animation: soft-enter .65s .33s both;
}

.hero-content.revealed .hero-cta {
    animation: soft-enter .65s .42s both;
}

.hero-content.revealed .social-dock {
    animation: soft-enter .65s .51s both;
}

.hero-image-container.revealed {
    animation: soft-enter .8s .2s both;
}

.profile-glow {
    animation: halo-breathe 5.5s ease-in-out infinite;
}

.profile-frame {
    will-change: transform;
    animation: portrait-float 6.5s ease-in-out infinite;
}

.profile-frame::after {
    will-change: transform;
    animation: satellite-float 4.6s ease-in-out -1.8s infinite;
}

.profile-frame:hover {
    animation-play-state: paused;
}

.page-header::before {
    animation: header-orbit 12s ease-in-out infinite;
}

.page-header::after {
    animation: satellite-float 7s ease-in-out -2.2s infinite;
}

/* Section dividers create a quiet sense of forward motion. */
.about::after,
.skills::after,
.projects-preview::before,
.journey::before,
.certificates-preview::before,
.contact-section::before {
    content: '';
    position: absolute;
    pointer-events: none;
    height: 1px;
    left: max(1.5rem, calc((100% - 1240px) / 2));
    right: max(1.5rem, calc((100% - 1240px) / 2));
    background: linear-gradient(90deg, transparent 0%, rgba(200, 169, 126, .12) 22%, var(--accent-indigo) 50%, rgba(200, 169, 126, .12) 78%, transparent 100%);
    background-size: 180% 100%;
    opacity: .62;
    animation: divider-travel 12s linear infinite;
}

.about::after,
.projects-preview::before,
.certificates-preview::before {
    top: 0;
}

.skills::after,
.journey::before,
.contact-section::before {
    bottom: 0;
}

/* Faint animated highlight is confined to the card surface. */
.glass-card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: .32;
    background: radial-gradient(circle at 15% 0%, rgba(233, 220, 201, .9), transparent 34%);
    animation: border-shimmer 7s ease-in-out infinite;
}

.glass-card>* {
    position: relative;
    z-index: 1;
}

.glass-card .project-img-wrapper,
.glass-card .cert-img-wrapper {
    z-index: 1;
}

/* Staggered grids are purely decorative and remain responsive. */
.skills-grid .skill-category:nth-child(1) {
    animation-delay: .05s;
}

.skills-grid .skill-category:nth-child(2) {
    animation-delay: .18s;
}

.skills-grid .skill-category:nth-child(3) {
    animation-delay: .31s;
}

.projects-grid .project-card:nth-child(3n + 1),
.certs-grid .cert-card:nth-child(3n + 1) {
    transition-delay: 0ms;
}

.projects-grid .project-card:nth-child(3n + 2),
.certs-grid .cert-card:nth-child(3n + 2) {
    transition-delay: 45ms;
}

.projects-grid .project-card:nth-child(3n),
.certs-grid .cert-card:nth-child(3n) {
    transition-delay: 90ms;
}

/* Page-specific movement keeps every view distinct without adding scripts. */
body:has(#projects-grid) .project-card:hover .project-img-wrapper img {
    transform: scale(1.075) translateY(-2px);
}

body:has(#projects-grid) .project-card:hover .tech-badge {
    transform: translateY(-2px);
}

body:has(#projects-grid) .tech-badge {
    transition: transform .24s ease, background .24s ease, border-color .24s ease;
}

body:has(.timeline > .timeline-item[data-category]) .timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    top: 0;
    bottom: 0;
    left: -2px;
    background: linear-gradient(180deg, transparent, var(--accent-indigo), transparent);
    background-size: 100% 170%;
    animation: timeline-travel 8s linear infinite;
}

body:has(.timeline > .timeline-item[data-category]) .timeline-item::before {
    transition: transform .28s ease, box-shadow .28s ease, background .28s ease;
}

body:has(.timeline > .timeline-item[data-category]) .timeline-item:hover::before {
    transform: scale(1.38);
}

body:has(.certs-grid) .cert-card:hover .cert-img-wrapper {
    box-shadow: inset 0 0 0 1px rgba(200, 169, 126, .7);
}

body:has(.certs-grid) .cert-card .btn {
    transition-delay: 50ms;
}

body:has(.contact-grid) .contact-icon {
    transition: transform .32s cubic-bezier(.2, .75, .25, 1), box-shadow .32s ease;
}

body:has(.contact-grid) .contact-card:hover .contact-icon {
    transform: rotate(-8deg) scale(1.09);
}

body:has(.contact-grid) .form-group:focus-within label {
    color: var(--accent-purple);
    transform: translateX(2px);
}

body:has(.contact-grid) .form-group label {
    transition: color .2s ease, transform .2s ease;
}

.social-dock a {
    transition: transform .28s cubic-bezier(.2, .75, .25, 1), color .28s ease, background .28s ease, border-color .28s ease, box-shadow .28s ease;
}

.social-dock a:hover i {
    animation: satellite-float .55s ease both;
}

.navbar-brand:hover {
    transform: translateY(-1px);
}

.navbar-brand,
.navbar-brand img {
    transition: transform .25s ease, filter .25s ease;
}

.nav-links a {
    transition: color .22s ease, transform .22s ease;
}

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

.back-to-top.visible {
    display: none;
}

.back-to-top:hover i {
    transform: translateY(-3px);
}

.back-to-top i {
    transition: transform .22s ease;
}

@media (hover: hover) and (pointer: fine) {

    .project-card,
    .cert-card,
    .journey-card,
    .skill-category,
    .stat-box,
    .timeline-card {
        will-change: transform;
    }

    .project-card:hover .project-overlay .btn {
        animation: soft-enter .34s ease both;
    }

    .cert-card:hover .btn-secondary i {
        animation: satellite-float .5s ease both;
    }

    .journey-card:hover .journey-body h3 {
        transform: translateX(4px);
    }

    .journey-body h3 {
        transition: transform .28s ease, color .28s ease;
    }

    .skill-category:hover h3 i {
        transform: rotate(-8deg) scale(1.08);
    }

    .skill-category h3 i {
        transition: transform .28s ease;
    }
}

@supports (animation-timeline: view()) {
    .section-header {
        animation: soft-enter both;
        animation-timeline: view();
        animation-range: entry 4% cover 28%;
    }

    .page-header::before {
        animation-timeline: auto;
    }

    .projects-preview::before,
    .certificates-preview::before {
        animation-timeline: view();
        animation-range: entry 0% exit 100%;
    }
}

@media (max-width: 768px) {
    .glass-card::after {
        animation-duration: 12s;
    }

    .hero-content.revealed .hero-subtitle,
    .hero-content.revealed .hero-title,
    .hero-content.revealed .hero-typing,
    .hero-content.revealed .hero-description,
    .hero-content.revealed .hero-cta,
    .hero-content.revealed .social-dock {
        animation-delay: 0s;
    }

    .about::after,
    .skills::after,
    .projects-preview::before,
    .journey::before,
    .certificates-preview::before,
    .contact-section::before {
        left: 1.25rem;
        right: 1.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

/* Final cascade for the portfolio refresh. Kept last to supersede legacy layers. */
.hero {
    min-height: 870px;
    overflow: hidden;
    padding: 8.8rem 0 5.4rem;
    background: linear-gradient(118deg, #fffdf9 0 56%, #f3e5d4 56% 100%);
}

.hero::before {
    width: min(42vw, 610px);
    height: min(42vw, 610px);
    right: -12vw;
    top: 10%;
    border: 1px solid rgba(121, 89, 61, .25);
    box-shadow: 0 0 0 30px rgba(255, 253, 249, .18), 0 0 0 75px rgba(255, 253, 249, .1);
    animation: hero-ring 22s linear infinite;
}

.hero::after {
    width: 250px;
    height: 250px;
    left: 43%;
    bottom: -130px;
    background: transparent;
    border: 1px solid rgba(121, 89, 61, .18);
    box-shadow: none;
}

.hero-monogram {
    position: absolute;
    z-index: 0;
    right: 5%;
    top: 9%;
    color: rgba(121, 89, 61, .09);
    font: 700 clamp(12rem, 26vw, 25rem)/.72 Georgia, serif;
    letter-spacing: -.17em;
    pointer-events: none;
}

.hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(370px, .92fr);
    gap: clamp(3rem, 8vw, 9.5rem);
}

.hero-content {
    max-width: 690px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.hero-kicker {
    color: #79593d;
}

.hero-kicker b {
    margin-left: .7rem;
    padding-left: .8rem;
    border-left: 1px solid rgba(130, 94, 62, .22);
    color: #a7896d;
    font: inherit;
}

.hero-index {
    margin: 3.1rem 0 1.05rem;
}

.hero-title {
    margin-bottom: 1.8rem;
    color: #493526;
    font-size: clamp(4rem, 7.1vw, 7.75rem);
    line-height: .83;
    letter-spacing: -.09em;
}

.hero-title em {
    padding: .07em 0 0 clamp(1rem, 3vw, 3.7rem);
    color: #a37b55;
    font-size: .63em;
}

.hero-typing {
    color: #674c37;
}

.hero-description {
    max-width: 490px;
    color: #806d5b;
}

.hero-cta .btn {
    border-radius: 999px;
}

.hero-cta .btn-primary {
    background: #79593d;
    border-color: #79593d;
}

.hero-footer {
    max-width: 560px;
    margin-top: 2.5rem;
}

.hero-image-container {
    min-height: 570px;
}

.profile-frame {
    width: min(30vw, 425px);
    height: min(36vw, 515px);
    outline-offset: 13px;
}

.hero-portrait-mark {
    right: -3%;
    top: 4%;
    color: rgba(121, 89, 61, .21);
}

.portrait-caption-top {
    top: 10%;
    left: -1%;
}

.hero-proof-card {
    left: -8%;
    bottom: 8%;
}

.hero-insight-card {
    position: absolute;
    right: -2%;
    top: 20%;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .75rem .9rem;
    color: #684b34;
    border: 1px solid rgba(213, 186, 154, .8);
    border-radius: 14px;
    background: rgba(255, 253, 249, .82);
    box-shadow: 0 13px 30px rgba(92, 67, 43, .1);
    font: 800 .58rem/1.45 var(--font-heading);
    letter-spacing: .09em;
    text-transform: uppercase;
    animation: proof-float 6.5s ease-in-out -2s infinite;
}

.hero-insight-card i {
    display: grid;
    width: 27px;
    height: 27px;
    place-items: center;
    border-radius: 50%;
    color: #fffdf9;
    background: #a47d57;
    font-size: .65rem;
}

.about {
    padding: 8rem 0;
    background: #fffdf9;
}

.about::before {
    content: '';
    position: absolute;
    inset: 9% 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(130, 94, 62, .22), transparent);
}

.about-intro {
    display: grid;
    grid-template-columns: 1.22fr .78fr;
    align-items: end;
    gap: 4rem;
    margin-bottom: 4.75rem;
}

.about-intro h2 {
    margin-top: .85rem;
    color: #493526;
    font-size: clamp(2.7rem, 5.1vw, 5rem);
    line-height: .96;
    letter-spacing: -.065em;
}

.about-intro h2 em,
.skills-heading h2 em {
    color: #a37b55;
    font-family: Georgia, serif;
    font-weight: 400;
}

.about-intro>p {
    max-width: 370px;
    color: #806d5b;
    font-size: 1.04rem;
    line-height: 1.85;
}

.about-grid {
    grid-template-columns: 1.06fr .8fr .9fr;
    align-items: stretch;
    gap: 1.45rem;
}

.about-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 450px;
    padding: clamp(2rem, 4vw, 4rem);
    border: 1px solid rgba(130, 94, 62, .22);
    border-radius: 22px;
    background: #fffefa;
}

.about-text::before {
    display: none;
}

.about-text h3 {
    color: #493526;
    font-size: clamp(1.9rem, 3vw, 2.75rem);
    line-height: 1.05;
}

.about-text p {
    color: #806d5b;
}

.about-text .btn {
    align-self: flex-start;
    border-radius: 999px;
}

.about-profile-card {
    position: relative;
    min-height: 450px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    border-radius: 22px;
    color: #fffdf9;
    background: #674934;
    box-shadow: 0 20px 50px rgba(92, 67, 43, .16);
}

.about-profile-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(47, 28, 16, .02) 20%, rgba(47, 28, 16, .8) 100%);
}

.about-profile-image {
    position: absolute;
    inset: 0;
}

.about-profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(.18) sepia(.1);
}

.about-profile-card>*:not(.about-profile-image) {
    position: relative;
    z-index: 1;
}

.about-profile-label {
    color: #ead7bf;
    font: 800 .62rem var(--font-heading);
    letter-spacing: .14em;
    text-transform: uppercase;
}

.about-profile-card strong {
    font: 400 clamp(1.45rem, 2vw, 2rem)/1.15 Georgia, serif;
}

.about-profile-rule {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-top: 1.5rem;
    color: #ead7bf;
    font: 800 .57rem var(--font-heading);
    letter-spacing: .12em;
    text-transform: uppercase;
}

.about-profile-rule span {
    width: 28px;
    height: 1px;
    background: currentColor;
}

.about-stats {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 0;
}

.stat-box {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem;
    border: 1px solid rgba(130, 94, 62, .22);
    border-radius: 18px;
    background: #f8eee2;
    box-shadow: none;
}

.stat-box:nth-child(2),
.stat-box:nth-child(4) {
    transform: translateY(1.65rem);
    background: #f1e2d0;
}

.stat-box h4 {
    color: #79593d;
}

.stat-box p {
    color: #806a56;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.skills {
    padding: 9.5rem 0 8rem;
    background: #f7eee4;
}

.skills::before {
    content: 'Zeesu Royalist';
    position: absolute;
    left: 50%;
    top: 0;
    color: rgba(121, 89, 61, .045);
    font: 800 clamp(5rem, 14vw, 13rem)/.8 var(--font-heading);
    letter-spacing: -.08em;
    transform: translateX(-50%);
    white-space: nowrap;
    pointer-events: none;
}

.skills-heading {
    position: relative;
    display: grid;
    grid-template-columns: 1fr .75fr auto;
    align-items: end;
    gap: 2.5rem;
    margin-bottom: 3.2rem;
}

.skills-heading h2 {
    margin-top: .8rem;
    color: #493526;
    font-size: clamp(2.65rem, 4.4vw, 4.5rem);
    line-height: .98;
    letter-spacing: -.07em;
}

.skills-heading p {
    max-width: 355px;
    color: #806d5b;
    line-height: 1.8;
}

.skills-summary {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .75rem 0 .75rem 1.25rem;
    border-left: 1px solid rgba(130, 94, 62, .22);
}

.skills-summary strong {
    color: #79593d;
    font: 700 2.7rem/.8 Georgia, serif;
}

.skills-summary span {
    color: #806a56;
    font: 800 .57rem/1.4 var(--font-heading);
    letter-spacing: .12em;
    text-transform: uppercase;
}

.skills-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem;
}

.skill-category {
    position: relative;
    min-height: 510px;
    display: flex;
    flex-direction: column;
    padding: 1.75rem;
    overflow: hidden;
    border: 1px solid rgba(130, 94, 62, .2);
    border-radius: 20px;
    background: rgba(255, 253, 249, .66);
    box-shadow: none;
}

.skill-category::after {
    content: '';
    position: absolute;
    right: -45px;
    bottom: -55px;
    width: 160px;
    height: 160px;
    border: 1px solid rgba(121, 89, 61, .13);
    border-radius: 50%;
}

.skill-card-top {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skill-number {
    color: #a7896d;
    font: 800 .65rem var(--font-heading);
    letter-spacing: .14em;
}

.skill-card-top>i {
    display: grid;
    width: 43px;
    height: 43px;
    place-items: center;
    color: #fffdf9;
    border-radius: 14px;
    background: #79593d;
}

.skill-category h3 {
    margin: 2.2rem 0 .65rem;
    color: #493526;
    font-size: 2rem;
    line-height: .98;
    letter-spacing: -.05em;
}

.skill-card-copy {
    min-height: 50px;
    color: #806d5b;
    font-size: .88rem;
}

.skill-meter {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: .45rem .75rem;
    margin: 1.55rem 0 1.35rem;
    color: #806a56;
    font: 800 .61rem var(--font-heading);
    letter-spacing: .08em;
    text-transform: uppercase;
}

.skill-meter b {
    color: #79593d;
}

.skill-meter i {
    grid-column: 1/-1;
    display: block;
    height: 4px;
    overflow: hidden;
    border-radius: 10px;
    background: #eadaca;
}

.skill-meter em {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #b58a61, #79593d);
    transform-origin: left;
    animation: meter-grow 1.15s cubic-bezier(.16, 1, .3, 1) both;
}

.skills-list {
    margin-top: auto;
}

.skill-tag {
    border-color: rgba(130, 94, 62, .16);
    background: rgba(248, 238, 226, .72);
    color: #6e5744;
}

.skill-tag:hover {
    color: #fffdf9;
    background: #79593d;
    border-color: #79593d;
}

@media(max-width:1024px) {
    .hero {
        min-height: auto
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(330px, .8fr);
        gap: 3.5rem
    }

    .hero-image-container {
        min-height: 500px
    }

    .profile-frame {
        width: min(35vw, 370px);
        height: min(44vw, 470px)
    }

    .about-grid {
        grid-template-columns: 1fr 1fr
    }

    .about-stats {
        grid-column: 1/-1;
        grid-template-columns: repeat(4, 1fr);
        margin-top: .4rem
    }

    .stat-box:nth-child(2),
    .stat-box:nth-child(4) {
        transform: none
    }

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

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

    .skill-category:last-child {
        grid-column: 1/-1;
        min-height: 430px
    }
}

@media(max-width:768px) {
    .hero {
        padding: 7.35rem 0 5rem;
        background: linear-gradient(145deg, #fffdf9 0 60%, #f3e5d4 60% 100%)
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2.7rem
    }

    .hero-title {
        font-size: clamp(3.6rem, 14vw, 6.2rem)
    }

    .hero-image-container {
        min-height: 440px
    }

    .profile-frame {
        width: min(65vw, 355px);
        height: min(78vw, 430px)
    }

    .hero-insight-card {
        right: 2%;
        top: 18%
    }

    .hero-proof-card {
        left: 4%
    }

    .about,
    .skills {
        padding: 5.8rem 0
    }

    .about-intro {
        grid-template-columns: 1fr;
        gap: 1.3rem;
        margin-bottom: 2.6rem
    }

    .about-grid {
        grid-template-columns: 1fr
    }

    .about-text,
    .about-profile-card {
        min-height: 390px
    }

    .about-stats {
        grid-column: auto;
        grid-template-columns: 1fr 1fr
    }

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

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

    .skill-category,
    .skill-category:last-child {
        grid-column: auto;
        min-height: 460px
    }
}

@media(max-width:480px) {
    .hero {
        padding-top: 6.7rem
    }

    .hero-kicker b,
    .hero-insight-card {
        display: none
    }

    .hero-index {
        margin-top: 2.1rem
    }

    .hero-title {
        font-size: clamp(3.25rem, 15.5vw, 4.7rem)
    }

    .hero-image-container {
        min-height: 390px
    }

    .profile-frame {
        width: min(68vw, 290px);
        height: min(83vw, 355px)
    }

    .about-text {
        padding: 1.7rem
    }

    .about-stats {
        gap: .7rem
    }

    .stat-box {
        padding: 1rem
    }

    .skill-category {
        padding: 1.4rem
    }
}

@media (max-width: 480px) {

    .skills-heading h2 {
        font-size: 2rem;
    }

    .skills::before {
        margin-top: 2%;
        font-size: 3.5rem;
    }

    .skill-category {
        padding: 1.25rem;
        border-radius: 16px;
    }

    .skill-category h3 {
        font-size: 1.4rem;
    }

    .skill-number {
        font-size: .55rem;
    }

    .skill-card-top>i {
        width: 36px;
        height: 36px;
        font-size: .9rem;
    }

    .skills-summary strong {
        font-size: 2rem;
    }

    .skill-tag {
        font-size: .72rem;
        padding: .4rem .7rem;
    }

}

/* ========================================================================
   Extended Portfolio Styles (Skills, Graphics, Editing Pages)
   ======================================================================== */

/* --- Navigation Desktop Alignment Adjustment --- */
@media (min-width: 769px) and (max-width: 1200px) {
    .nav-links {
        gap: 1.0rem !important;
    }

    .nav-links a {
        font-size: 0.88rem !important;
    }
}

/* --- Section Heading Accent Helpers --- */
.section-title-wrap {
    margin-bottom: 3.5rem;
    text-align: left;
    position: relative;
}

.section-title-wrap h2 {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--text-white);
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.section-title-wrap p {
    color: var(--text-gray);
    font-size: 1.1rem;
    max-width: 620px;
    line-height: 1.7;
}

/* --- Skills Page Canvas Grid Background --- */
.skills-canvas-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.skills-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.07;
    z-index: -2;
    background-size: 30px 30px;
    background-image:
        linear-gradient(to right, rgba(139, 107, 74, 0.12) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(139, 107, 74, 0.12) 1px, transparent 1px);
}

/* --- Skills Hero Grid & Stats Summary Dock --- */
.skills-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
}

@media (max-width: 900px) {
    .skills-hero-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        margin-bottom: 4rem;
    }
}

.skills-stats-dock {
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-glass);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skills-stats-dock::before {
    content: '';
    position: absolute;
    top: -60px;
    left: -60px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-indigo) 0%, transparent 80%);
    opacity: 0.12;
    filter: blur(25px);
    pointer-events: none;
}

.skills-stats-dock h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px dashed var(--border-glass);
    padding-bottom: 1rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.skills-stats-dock h3 i {
    color: var(--accent-indigo);
}

.stats-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.stats-item span {
    font-size: 0.95rem;
    color: var(--text-gray);
    font-weight: 500;
}

.stats-item strong {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-white);
    background: rgba(139, 107, 74, 0.05);
    padding: 0.25rem 0.8rem;
    border-radius: 50px;
    border: 1px solid rgba(231, 221, 209, 0.4);
    box-shadow: 0 2px 6px rgba(92, 67, 43, 0.02);
}

/* --- Featured Stack Radial Dials Row --- */
.featured-stack-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 0.6rem;
}

.featured-stack-title i {
    color: var(--accent-indigo);
}

.featured-stack-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 2rem;
    margin-bottom: 5.5rem;
}

.radial-dial-card {
    padding: 2.5rem 1.8rem;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.4rem;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-glass);
    position: relative;
    overflow: hidden;
}

.radial-dial-card:hover {
    transform: translateY(-8px);
    border-color: var(--brand-color);
    box-shadow: 0 15px 40px -15px var(--brand-glow), var(--shadow-glass);
}

.radial-dial-box {
    position: relative;
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.radial-dial-box svg {
    width: 110px;
    height: 110px;
    transform: rotate(-90deg);
}

.radial-dial-box svg circle {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
}

.dial-track {
    stroke: rgba(139, 107, 74, 0.06);
}

.dial-progress {
    stroke: var(--brand-color);
    stroke-dasharray: 283;
    /* 2 * PI * r (r=45) */
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 2s cubic-bezier(0.16, 1, 0.3, 1);
    filter: drop-shadow(0 0 3px var(--brand-color));
}

.dial-percentage {
    position: absolute;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--text-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
}

.dial-percentage span {
    font-size: 0.65rem;
    color: var(--text-gray);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 1px;
}

.radial-dial-info {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.radial-dial-info h4 {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--text-white);
    margin: 0;
    letter-spacing: -0.2px;
}

.radial-dial-info p {
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.5;
    margin: 0;
}

.radial-dial-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.15rem;
}

.dial-tag {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--brand-color);
    background: var(--brand-glow);
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    border: 1px solid transparent;
    transition: var(--transition-fast);
}

.radial-dial-card:hover .dial-tag {
    border-color: var(--brand-color);
}


/* --- 3-Column Systems Dashboard Layout --- */
.dashboard-layout-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

@media (max-width: 1100px) {
    .dashboard-layout-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .dashboard-layout-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.dashboard-column {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    background: rgba(247, 239, 230, 0.25);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 2.2rem 1.6rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-glass);
    height: fit-content;
}

.dashboard-col-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px dashed var(--border-glass);
    padding-bottom: 1.2rem;
    margin-bottom: 0.5rem;
}

.dashboard-col-header h3 {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0;
    letter-spacing: -0.2px;
}

.dashboard-col-header h3 i {
    color: var(--accent-indigo);
    font-size: 1.05rem;
}

.dashboard-col-count {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.8rem;
    color: var(--accent-purple);
    padding: 0.2rem 0.55rem;
    background: rgba(139, 107, 74, 0.05);
    border-radius: 6px;
    border: 1px solid rgba(231, 221, 209, 0.5);
}

.dashboard-cards-stack {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.skill-horizontal-card {
    padding: 1.4rem;
    border-radius: var(--radius-md);
    background: #ffffff;
    border: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(92, 67, 43, 0.02);
    position: relative;
    overflow: hidden;
}

.skill-horizontal-card:hover {
    transform: translateY(-5px);
    border-color: var(--brand-color);
    box-shadow: 0 10px 25px -10px var(--brand-glow), var(--shadow-glass);
}

.skill-horizontal-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.skill-horizontal-title-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.skill-horizontal-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    background: rgba(139, 107, 74, 0.04);
    border: 1px solid rgba(231, 221, 209, 0.4);
    transition: var(--transition-smooth);
}

.skill-horizontal-card:hover .skill-horizontal-icon {
    background: var(--brand-glow);
    border-color: var(--brand-color);
    color: var(--brand-color) !important;
    transform: scale(1.08) rotate(4deg);
}

.skill-horizontal-title-box h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-white);
    margin: 0;
}

.skill-horizontal-percentage {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--text-dark);
}

.skill-horizontal-desc {
    font-size: 0.82rem;
    color: var(--text-gray);
    line-height: 1.5;
    margin: 0;
}

.skill-horizontal-meter {
    height: 4px;
    width: 100%;
    background: rgba(139, 107, 74, 0.06);
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
}

.skill-horizontal-meter i em {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: var(--radius-full);
    transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 5px var(--brand-color);
}

/* --- Section 2: Creative Skills Magazine Spread --- */
/* ── Creative & Mindset Matrix — Compact Responsive Grid ─────────── */
.creative-skills-grid {
    display: grid;
    /* Desktop: up to 5 cols, min 180px each */
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.2rem;
    margin-top: 2.5rem;
}

/* Tablet: enforce 3 per row */
@media (max-width: 1024px) {
    .creative-skills-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

/* Mobile: always 2 per row */
@media (max-width: 640px) {
    .creative-skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

.creative-skill-card {
    padding: 1.4rem 1.1rem 1.5rem;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    box-shadow: var(--shadow-glass);
    position: relative;
    overflow: hidden;
    /* equal height across row */
    align-self: stretch;
}

.creative-skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-pink);
    box-shadow: 0 10px 28px rgba(139, 107, 74, 0.13), var(--shadow-glass);
}

/* Index + tag row */
.creative-skill-index {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.72rem;
    color: var(--accent-indigo);
    opacity: 0.7;
    letter-spacing: 0.8px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.creative-skill-header-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.creative-skill-orb {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    border: 1px solid rgba(231, 221, 209, 0.45);
    background: rgba(139, 107, 74, 0.04);
    transition: var(--transition-smooth);
}

.creative-skill-card:hover .creative-skill-orb {
    transform: scale(1.12) rotate(8deg);
    border-color: var(--accent-pink);
    background: rgba(169, 127, 90, 0.12);
}

.creative-skill-card h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-white);
    margin: 0;
    letter-spacing: -0.2px;
    line-height: 1.3;
    /* prevent long titles from breaking layout */
    word-break: break-word;
}

.creative-skill-card p {
    font-size: 0.78rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin: 0;
    /* clamp to 3 lines on mobile so cards stay equal height */
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 640px) {
    .creative-skill-card {
        padding: 1.1rem 0.9rem 1.2rem;
        gap: 0.6rem;
    }

    .creative-skill-card h4 {
        font-size: 0.9rem;
    }

    .creative-skill-card p {
        font-size: 0.74rem;
        -webkit-line-clamp: 3;
    }

    .creative-skill-orb {
        display: none;
    }

    .creative-skill-index {
        font-size: 0.65rem;
    }
}

/* --- Floating Design Theme Accents --- */
.design-accent,
.editing-accent {
    position: absolute;
    z-index: -1;
    opacity: 0.12;
    pointer-events: none;
}

.accent-circle-1 {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 16px solid var(--accent-indigo);
    top: 15%;
    left: 4%;
    animation: floatSlow 12s infinite alternate;
}

.accent-square-1 {
    width: 110px;
    height: 110px;
    border: 12px solid var(--accent-pink);
    top: 38%;
    right: 5%;
    transform: rotate(45deg);
    animation: floatSlow 15s infinite alternate-reverse;
}

.accent-triangle-1 {
    width: 0;
    height: 0;
    border-left: 55px solid transparent;
    border-right: 55px solid transparent;
    border-bottom: 95px solid var(--accent-teal);
    top: 72%;
    left: 6%;
    transform: rotate(18deg);
    animation: floatSlow 13s infinite alternate;
}

.lens-ring-1 {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 10px dashed var(--accent-pink);
    top: 16%;
    right: 6%;
    animation: spinSlow 40s linear infinite;
}

.aperture-blade-1 {
    width: 130px;
    height: 130px;
    border: 10px solid var(--accent-indigo);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    top: 65%;
    left: 5%;
    transform: rotate(-15deg);
    animation: floatSlow 16s infinite alternate;
}

@keyframes floatSlow {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    100% {
        transform: translateY(-24px) rotate(12deg);
    }
}

@keyframes spinSlow {
    100% {
        transform: rotate(360deg);
    }
}

/* --- Graphics Gallery & Masonry layout --- */
.graphics-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 2.2rem;
    margin-top: 3rem;
}

.graphics-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    transition: var(--transition-smooth);
    cursor: pointer;
    box-shadow: var(--shadow-glass);
}

.graphics-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-glass-focus);
    box-shadow: var(--shadow-glow);
}

.graphics-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--bg-darker);
}

.graphics-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.graphics-card:hover .graphics-img-wrapper img {
    transform: scale(1.08);
}

.graphics-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(30, 20, 10, 0.94) 0%, rgba(30, 20, 10, 0.4) 60%, rgba(30, 20, 10, 0.05) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.8rem;
    opacity: 0;
    transition: var(--transition-smooth);
}

.graphics-card:hover .graphics-overlay {
    opacity: 1;
}

.graphics-card-category {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--accent-indigo);
    margin-bottom: 0.5rem;
    letter-spacing: 1.5px;
}

.graphics-overlay h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    color: #ffffff !important;
    margin-bottom: 0.75rem;
}

.graphics-overlay .view-btn {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

/* --- Split Lightbox Grid Layout --- */
.graphics-lightbox-content,
.editing-lightbox-content {
    max-width: 950px !important;
    width: 92% !important;
    padding: 0 !important;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--bg-darker);
    border: 1px solid var(--border-glass);
}

.lightbox-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    min-height: 480px;
}

.lightbox-img-pane {
    background: #0d0a08;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 1rem;
}

.lightbox-img-pane img {
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-info-pane {
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.2rem;
    background: var(--bg-card);
    border-left: 1px solid var(--border-glass);
}

.lightbox-tag {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--accent-indigo);
    letter-spacing: 2px;
}

.lightbox-info-pane h3 {
    font-family: var(--font-heading);
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--text-white);
    margin: 0;
}

.lightbox-info-pane p {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.8;
    margin: 0;
}

@media (max-width: 820px) {
    .lightbox-grid {
        grid-template-columns: 1fr;
    }

    .lightbox-info-pane {
        padding: 2.2rem 1.8rem;
        border-left: 0;
        border-top: 1px solid var(--border-glass);
    }

    .lightbox-info-pane h3 {
        font-size: 1.6rem;
    }
}

/* --- Photo Editing Elements --- */
.editing-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 2.2rem;
    margin-top: 3rem;
}

.editing-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    transition: var(--transition-smooth);
    cursor: pointer;
    box-shadow: var(--shadow-glass);
}

.editing-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-glass-focus);
    box-shadow: var(--shadow-glow);
}

.editing-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--bg-darker);
}

.editing-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.editing-card:hover .editing-img-wrapper img {
    transform: scale(1.08);
}

.editing-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(30, 20, 10, 0.94) 0%, rgba(30, 20, 10, 0.4) 60%, rgba(30, 20, 10, 0.05) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.8rem;
    opacity: 0;
    transition: var(--transition-smooth);
}

.editing-card:hover .editing-overlay {
    opacity: 1;
}

.editing-card-category {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--accent-pink);
    margin-bottom: 0.5rem;
    letter-spacing: 1.5px;
}

.editing-overlay h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    color: #ffffff !important;
    margin-bottom: 0.75rem;
}

.editing-overlay .view-btn {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

/* --- Interactive Before/After Sliders --- */
.sliders-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3.5rem;
}

@media (max-width: 860px) {
    .sliders-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

.slider-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    padding: 1.25rem;
    border: 1px solid var(--border-glass);
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    box-shadow: var(--shadow-glass);
}

.before-after-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    border-radius: var(--radius-md);
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    background: var(--bg-darker);
}

.before-after-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
}

.before-image {
    z-index: 1;
}

.after-image {
    z-index: 2;
    clip-path: inset(0 0 0 50%);
}

.slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: #ffffff;
    z-index: 10;
    pointer-events: none;
    transform: translateX(-50%);
    filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.4));
}

.slider-line {
    height: 100%;
    width: 2px;
    background: #ffffff;
}

.slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    color: var(--text-silver);
    box-shadow: 0 4px 12px rgba(92, 67, 43, 0.2);
    border: 2px solid #ffffff;
    transition: transform 0.2s ease;
}

.before-after-slider:hover .slider-button {
    transform: translate(-50%, -50%) scale(1.12);
}

.slider-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: ew-resize;
    z-index: 20;
}

.slider-badge {
    position: absolute;
    bottom: 14px;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    letter-spacing: 0.5px;
}

.slider-badge-before {
    left: 14px;
    background: rgba(30, 20, 10, 0.72);
    color: #ffffff;
    z-index: 5;
}

.slider-badge-after {
    right: 14px;
    background: rgba(139, 107, 74, 0.85);
    color: #ffffff;
    z-index: 5;
}

.slider-info {
    padding: 0.25rem 0.5rem 0.5rem 0.5rem;
}

.slider-info h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.slider-info p {
    font-size: 0.88rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin: 0;
}

/* ========================================================================
   Skills Page – Filter Tabs & Sliding Pill Indicator
   ======================================================================== */

.skills-filter-container {
    margin-bottom: 3rem;
}

.skills-tabs {
    display: inline-flex;
    align-items: center;
    position: relative;
    background: rgba(247, 239, 230, 0.35);
    border: 1px solid var(--border-glass);
    border-radius: 50px;
    padding: 5px;
    gap: 0;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 4px 20px rgba(92, 67, 43, 0.08);
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: 100%;
}

/* Hide scrollbar on mobile for the tabs row */
.skills-tabs::-webkit-scrollbar {
    display: none;
}

.skills-tabs {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Sliding pill background indicator */
.skills-tab-indicator {
    position: absolute;
    top: 5px;
    left: 5px;
    height: calc(100% - 10px);
    background: var(--gradient-primary);
    border-radius: 50px;
    transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 0;
    box-shadow: 0 4px 14px rgba(92, 67, 43, 0.25);
}

/* Individual tab buttons */
.skills-tab-btn {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 1.35rem;
    border: none;
    background: transparent;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-gray);
    cursor: pointer;
    transition: color 0.25s ease;
    white-space: nowrap;
    letter-spacing: 0.1px;
}

.skills-tab-btn i {
    font-size: 0.85rem;
    transition: transform 0.25s ease;
}

.skills-tab-btn:hover {
    color: var(--text-white);
}

.skills-tab-btn:hover i {
    transform: scale(1.15);
}

.skills-tab-btn.active {
    color: #ffffff;
    font-weight: 700;
}

/* Responsive tab adjustments */
@media (max-width: 600px) {
    .skills-tabs {
        gap: 0;
        padding: 4px;
    }

    .skills-tab-btn {
        padding: 0.5rem 0.9rem;
        font-size: 0.8rem;
        gap: 0.3rem;
    }

    .skills-tab-btn i {
        font-size: 0.78rem;
    }
}

/* ========================================================================
   Creative Skills Cards — Entrance Animation & Sub-elements
   ======================================================================== */

/* Staggered fade-up entrance for dynamically injected cards */
@keyframes creativeCardIn {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

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

/* Entrance animation — applied via JS custom property --card-delay */
.creative-skill-card {
    animation: creativeCardIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: var(--card-delay, 0s);
}

/* Focus tag badge */
.creative-skill-tag {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--accent-indigo);
    background: rgba(99, 102, 241, 0.08);
    padding: 0.12rem 0.38rem;
    border-radius: 4px;
    border: 1px solid rgba(99, 102, 241, 0.16);
    line-height: 1.5;
    white-space: nowrap;
}

/* Colored accent bottom line — color set by JS inline style */
.creative-skill-accent {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    transition: width 0.38s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0.8;
}

.creative-skill-card:hover .creative-skill-accent {
    width: 100%;
}

/* Disable the old ::after gradient (accent div replaces it) */
.creative-skill-card::after {
    display: none !important;
}

/* ==========================================================================
   Compact, Modern & Clean 2-Column Project Cards on Mobile Screens
   ========================================================================== */
@media (max-width: 768px) {

    #projects-grid,
    .projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.75rem !important;
        margin-bottom: 2.5rem !important;
    }

    #projects-grid .project-card,
    .projects-grid .project-card {
        border-radius: 12px !important;
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        overflow: hidden !important;
        background: rgba(255, 255, 255, 0.03) !important;
        border: 1px solid var(--border-glass) !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    }

    #projects-grid .project-img-wrapper,
    .projects-grid .project-img-wrapper {
        height: 100px !important;
        min-height: 100px !important;
        max-height: 100px !important;
        border-radius: 12px 12px 0 0 !important;
        position: relative !important;
        overflow: hidden !important;
    }

    #projects-grid .project-img-wrapper img,
    .projects-grid .project-img-wrapper img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    #projects-grid .project-overlay,
    .projects-grid .project-overlay {
        display: none !important;
    }

    #projects-grid .project-body,
    .projects-grid .project-body {
        padding: 0.55rem 0.55rem 0.65rem !important;
        display: flex !important;
        flex-direction: column !important;
        flex-grow: 1 !important;
        justify-content: space-between !important;
    }

    #projects-grid .project-body h3,
    .projects-grid .project-body h3 {
        font-size: 0.84rem !important;
        font-weight: 700 !important;
        line-height: 1.25 !important;
        margin-bottom: 0.2rem !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 1 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: normal !important;
    }

    #projects-grid .project-body p,
    .projects-grid .project-body p {
        font-size: 0.7rem !important;
        line-height: 1.3 !important;
        color: var(--text-gray) !important;
        margin-bottom: 0.35rem !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 1 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    #projects-grid .project-tech,
    .projects-grid .project-tech {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 0.2rem !important;
        margin-bottom: 0.4rem !important;
        overflow: hidden !important;
        height: 1.4rem !important;
    }

    #projects-grid .project-tech .tech-badge:nth-child(n+3),
    .projects-grid .project-tech .tech-badge:nth-child(n+3) {
        display: none !important;
    }

    #projects-grid .tech-badge,
    .projects-grid .tech-badge {
        font-size: 0.6rem !important;
        padding: 0.1rem 0.35rem !important;
        border-radius: 4px !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
        text-overflow: ellipsis !important;
        overflow: hidden !important;
        max-width: 75px !important;
    }

    #projects-grid .project-links,
    .projects-grid .project-links {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 0.2rem !important;
        margin-top: auto !important;
        padding-top: 0.35rem !important;
        border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    }

    #projects-grid .project-links a.btn-link,
    #projects-grid .project-links a.btn-main,
    .projects-grid .project-links a.btn-link,
    .projects-grid .project-links a.btn-main {
        font-size: 0.68rem !important;
        padding: 0.22rem 0.38rem !important;
        border-radius: 5px !important;
        white-space: nowrap !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 0.2rem !important;
    }

    .filter-bar {
        gap: 0.4rem !important;
        margin-bottom: 1.8rem !important;
    }

    .filter-btn {
        padding: 0.35rem 0.75rem !important;
        font-size: 0.75rem !important;
    }
}

@media (max-width: 480px) {

    #projects-grid,
    .projects-grid {
        gap: 0.5rem !important;
    }

    #projects-grid .project-card,
    .projects-grid .project-card {
        border-radius: 10px !important;
    }

    #projects-grid .project-img-wrapper,
    .projects-grid .project-img-wrapper {
        height: 85px !important;
        min-height: 85px !important;
        max-height: 85px !important;
        border-radius: 10px 10px 0 0 !important;
    }

    #projects-grid .project-body,
    .projects-grid .project-body {
        padding: 0.45rem 0.45rem 0.55rem !important;
    }

    #projects-grid .project-body h3,
    .projects-grid .project-body h3 {
        font-size: 0.76rem !important;
        margin-bottom: 0.15rem !important;
    }

    #projects-grid .project-body p,
    .projects-grid .project-body p {
        font-size: 0.64rem !important;
        margin-bottom: 0.25rem !important;
    }

    #projects-grid .project-tech,
    .projects-grid .project-tech {
        margin-bottom: 0.3rem !important;
        height: 1.25rem !important;
    }

    #projects-grid .tech-badge,
    .projects-grid .tech-badge {
        font-size: 0.54rem !important;
        padding: 0.08rem 0.26rem !important;
        max-width: 65px !important;
    }

    #projects-grid .project-links,
    .projects-grid .project-links {
        padding-top: 0.25rem !important;
    }

    #projects-grid .project-links a.btn-link,
    #projects-grid .project-links a.btn-main,
    .projects-grid .project-links a.btn-link,
    .projects-grid .project-links a.btn-main {
        font-size: 0.62rem !important;
        padding: 0.18rem 0.3rem !important;
    }

    .filter-btn {
        padding: 0.3rem 0.55rem !important;
        font-size: 0.68rem !important;
    }
}