/**
 * Portfolio - Main Stylesheet
 * Light theme, white + blue + green, clean and professional
 * Optimized for production
 */

/* ========== CSS Variables ========== */
:root {
    --bg-dark: #ffffff;
    --bg-offwhite: #f8fafc;
    --bg-card: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.95);
    --border-glass: #e2e8f0;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-glow: rgba(37, 99, 235, 0.15);
    --accent-green: #22c55e;
    --accent-green-hover: #16a34a;
    --btn-accent: #2563eb;
    --btn-accent-hover: #1d4ed8;
    --btn-glow: rgba(37, 99, 235, 0.2);
    --font-sans: 'Outfit', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ========== Reset & Base ========== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-offwhite);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition), opacity var(--transition), transform var(--transition);
}

/* Accessibility: focus visible (keyboard nav) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

ul {
    list-style: none;
}

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

/* ========== Loader ========== */
.loader {
    position: fixed;
    inset: 0;
    background: var(--bg-offwhite);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-inner {
    display: flex;
    gap: 8px;
}

.loader-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-green));
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
    animation: loaderBounce 0.6s ease-in-out infinite alternate;
}

.loader-dot:nth-child(2) { animation-delay: 0.12s; }
.loader-dot:nth-child(3) { animation-delay: 0.24s; }

@keyframes loaderBounce {
    to { transform: translateY(-14px) scale(1.1); opacity: 0.8; }
}

/* ========== Sticky Navigation ========== */
.nav-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease, padding 0.3s ease;
}

.nav-header.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glass);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    transition: color var(--transition), transform var(--transition);
}

.nav-logo:hover {
    color: var(--accent);
    transform: scale(1.02);
}

.nav-logo-icon {
    width: 28px;
    height: 28px;
    background: var(--accent);
    border-radius: 6px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    transition: transform var(--transition), background var(--transition);
}

.nav-logo:hover .nav-logo-icon {
    transform: rotate(-12deg) scale(1.05);
}

.btn-nav-cta {
    display: none;
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
    background: var(--btn-accent);
    color: #ffffff;
    font-weight: 600;
    border-radius: 8px;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-nav-cta:hover {
    background: var(--btn-accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px var(--btn-glow);
}

.btn-nav-cta:active {
    transform: translateY(-1px);
}

@media (min-width: 769px) {
    .btn-nav-cta {
        display: inline-block;
    }
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition);
}

.nav-menu a:hover,
.nav-menu a:focus,
.nav-menu a.active {
    color: var(--text-primary);
}

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

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

/* Mobile menu toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text-primary);
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: currentColor;
    transition: var(--transition);
}

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

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

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

/* ========== Hero ========== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 6rem 1.5rem 4rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(37, 99, 235, 0.08), transparent),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(37, 99, 235, 0.04), transparent),
        radial-gradient(ellipse 40% 30% at 20% 80%, rgba(34, 197, 94, 0.04), transparent);
    pointer-events: none;
}

.hero-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content {
    position: relative;
    text-align: left;
    max-width: 540px;
}

.hero-greeting {
    font-size: 0.95rem;
    color: var(--accent);
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    animation: fadeUp 0.8s ease forwards;
}

.hero-name {
    font-size: clamp(2.25rem, 5.5vw, 3.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 1rem;
    animation: fadeUp 0.8s ease 0.1s forwards;
    opacity: 0;
    animation-fill-mode: forwards;
}

.hero-name-highlight {
    display: block;
    color: var(--text-primary);
}

.hero-tagline-wrap {
    margin-bottom: 1.75rem;
    min-height: 3.6em;
    position: relative;
    overflow: hidden;
}
.hero-tagline-slider {
    position: relative;
    width: 100%;
}
.hero-tagline-slide {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
}
.hero-tagline-slide-out {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    transform: translateX(0);
}
.hero-tagline-slide-out-active {
    transform: translateX(-120%);
    opacity: 0;
}
.hero-tagline-slide-in {
    transform: translateX(120%);
    opacity: 0;
}
.hero-tagline-slide.active {
    transform: translateX(0);
    opacity: 1;
}
.hero-tagline-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: var(--accent);
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: taglineCursorBlink 0.9s step-end infinite;
}
@keyframes taglineCursorBlink {
    50% { opacity: 0; }
}

.hero .btn-primary {
    animation: fadeUp 0.8s ease 0.3s forwards;
    opacity: 0;
    animation-fill-mode: forwards;
}

/* Hero visual – circular profile + green arc with skill badges (reference style) */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-wrap {
    position: relative;
    width: 100%;
    max-width: 380px;
    aspect-ratio: 1;
}

/* Circular profile picture – behind arc and badges */
.hero-image-placeholder {
    position: absolute;
    inset: 0;
    background: var(--bg-card);
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    z-index: 1;
    transition: transform var(--transition), box-shadow var(--transition);
}

.hero-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease-out-expo);
}

.hero-image-wrap:hover .hero-image-placeholder {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

.hero-image-wrap:hover .hero-image-placeholder img {
    transform: scale(1.04);
}

/* Green circular arc and badges – on top of image */
.hero-skills-arc {
    position: absolute;
    inset: -8%;
    border: 4px solid var(--accent-green);
    border-radius: 50%;
    border-top-color: transparent;
    pointer-events: none;
    z-index: 2;
}

/* Skill badges – on arc, above image */
.skill-badge {
    position: absolute;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #2d3748;
    border: 2px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    z-index: 3;
    pointer-events: auto;
    transition: transform var(--transition), background var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.hero-image-wrap:hover .skill-badge {
    background: var(--accent-green);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
    transform: translate(-50%,-50%) scale(1.12);
    box-shadow: 0 6px 24px rgba(34, 197, 94, 0.45);
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    border-radius: 2px;
    animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

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


/* ========== Buttons ========== */
/* ========== Scroll reveal animations (Phlox-style) ========== */
.anim-fade-up {
    opacity: 0;
    transform: translateY(40px) scale(0.97);
    transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

.anim-fade-up.anim-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.anim-delay-1 { transition-delay: 0.15s; }
.anim-delay-2 { transition-delay: 0.35s; }
.anim-delay-3 { transition-delay: 0.55s; }
.anim-delay-4 { transition-delay: 0.75s; }
.anim-delay-5 { transition-delay: 0.95s; }

/* Text reveal – underline/glow effect for hero name */
.text-reveal {
    display: inline-block;
    position: relative;
    animation: textRevealUnderline 1s var(--ease-out-expo) 0.6s backwards;
}
.text-reveal::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-green));
    border-radius: 2px;
    transform-origin: left;
    animation: underlineReveal 0.8s var(--ease-out-expo) 1.2s backwards;
}
@keyframes textRevealUnderline {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes underlineReveal {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

/* Paragraph text fade-in (used in about, etc.) */
.anim-text {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}
.anim-fade-up.anim-visible .anim-text,
.anim-text.anim-visible {
    opacity: 1;
    transform: translateY(0);
}
.anim-text:nth-child(1) { transition-delay: 0.15s; }
.anim-text:nth-child(2) { transition-delay: 0.3s; }
.anim-text:nth-child(3) { transition-delay: 0.45s; }

/* ========== Buttons ========== */
.btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--btn-accent);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--btn-accent-hover);
    box-shadow: 0 8px 28px var(--btn-glow);
    transform: translateY(-3px) scale(1.02);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-outline {
    border-color: var(--accent);
    color: var(--accent);
    background: transparent;
}

.btn-outline:hover {
    background: var(--accent-glow);
    color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.15);
}

.btn-full {
    width: 100%;
}

/* ========== Sections ========== */
.section {
    padding: 5rem 1.5rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}
.container-fullwidth {
    max-width: 100%;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}
.container-narrow {
    max-width: 720px;
    margin: 0 auto;
}

/* ========== Project Detail Page ========== */
.project-detail-hero {
    position: relative;
    min-height: 42vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 3rem 1.5rem;
}
.project-detail-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
}
.project-detail-hero-inner {
    position: relative;
    z-index: 1;
    color: #fff;
}
.project-detail-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}
.project-detail-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.project-detail-header {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}
.project-detail-body.prose {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-secondary);
}
.project-detail-body.prose p {
    margin-bottom: 1.25rem;
}
.project-detail-body.prose img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 1rem 0;
}
.project-detail-gallery {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-glass);
}
.project-detail-gallery-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}
.project-detail-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}
.project-detail-gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
}
.project-detail-gallery-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.project-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2.5rem;
}

@media (max-width: 768px) {
    .project-detail-hero { min-height: 35vh; padding: 2rem 1rem; }
    .project-detail-gallery-grid { grid-template-columns: 1fr; }
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--text-primary);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), transparent);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* ========== About ========== */
.about-fullwidth .container-fullwidth {
    max-width: 100%;
}
.about-content {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
}
.about-content-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}
.about-image-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.about-image-wrap img {
    width: 100%;
    height: auto;
    display: block;
}

.about-text {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
    line-height: 1.8;
    text-align: left;
}

.about-text p:last-of-type {
    margin-bottom: 1.5rem;
}

.about-text .btn {
    margin-top: 0;
}

/* ========== Skills ========== */
.skills {
    background: var(--bg-dark);
}

.skills-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: center;
}

.skills-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.skill-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.skill-card {
    cursor: default;
}

.skill-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(37, 99, 235, 0.4);
    box-shadow: 0 20px 40px -12px rgba(37, 99, 235, 0.2);
}

.skill-card-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;
    border: 2px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    transition: background var(--transition), color var(--transition), transform var(--ease-spring);
}

.skill-card-icon svg {
    width: 28px;
    height: 28px;
}

.skill-card:hover .skill-card-icon {
    background: var(--accent);
    color: #ffffff;
    transform: rotate(5deg) scale(1.05);
}

.skill-card-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.skill-card-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.skills-content {
    padding-left: 1rem;
}

.skills-subtitle {
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.skills-heading {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    line-height: 1.25;
}

.skills-text {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* ========== Stats ========== */
.stats {
    position: relative;
    background: var(--bg-dark);
    border-top: 1px solid var(--border-glass);
}

.stats .container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 2rem;
}

.btn-view-all {
    padding: 0.6rem 1.5rem;
    background: transparent;
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    font-weight: 500;
    border-radius: var(--radius);
    margin-bottom: 2.5rem;
    transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.btn-view-all:hover {
    background: var(--accent-glow);
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.2);
}

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

.stat-item {
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: var(--radius-lg);
    transition: transform var(--transition);
}

.stat-item {
    transition: transform var(--transition), color var(--transition);
}

.stat-item:hover {
    transform: translateY(-6px) scale(1.03);
}

.stat-item:hover .stat-number {
    color: var(--accent-hover);
}

.stat-number {
    display: block;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
    transition: color var(--transition);
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.stats-decor {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--accent-green);
    opacity: 0.12;
    pointer-events: none;
}

.stats-decor--tl {
    top: 1rem;
    left: 1rem;
}

.stats-decor--br {
    bottom: 1rem;
    right: 1rem;
}

/* ========== Projects ========== */
.projects-fullwidth .container-fullwidth {
    max-width: 100%;
}

/* 3-column grid - full width */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
}

.project-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), z-index 0.4s, box-shadow 0.4s ease;
}

.projects-grid:hover .project-card {
    transform: scale(0.97);
    opacity: 0.85;
}

.projects-grid .project-card:hover {
    transform: scale(1.05);
    opacity: 1;
    z-index: 10;
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.2);
}

.project-card-image {
    aspect-ratio: 4/3;
    overflow: hidden;
    position: relative;
    background: var(--bg-card);
}

.project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.project-card:hover .project-card-image img {
    transform: scale(1.08);
}

.project-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(30, 41, 59, 0.95) 0%, rgba(30, 41, 59, 0.5) 40%, transparent 70%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.35s ease;
}

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

.project-card-label {
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 0.25rem;
}

.project-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.project-card-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-card-link {
    font-weight: 600;
    color: var(--accent-green);
    font-size: 0.95rem;
    transition: transform 0.2s ease;
}

.project-card:hover .project-card-link {
    transform: translateX(4px);
}

/* ========== Portfolio filter & search ========== */
.portfolio-filter-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-glass);
}

.portfolio-search {
    flex: 1;
    min-width: 200px;
}

.portfolio-search-input {
    width: 100%;
    max-width: 320px;
    padding: 0.65rem 1rem 0.65rem 2.5rem;
    font-size: 0.95rem;
    font-family: inherit;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    background: var(--bg-card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'/%3E%3C/svg%3E") no-repeat 0.85rem center;
    color: var(--text-primary);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.portfolio-search-input::placeholder {
    color: var(--text-muted);
}

.portfolio-search-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.portfolio-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.portfolio-filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-family: inherit;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    cursor: pointer;
    transition: color var(--transition), background var(--transition), border-color var(--transition);
}

.portfolio-filter-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.portfolio-filter-btn.active {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.portfolio-no-results {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.05rem;
    padding: 3rem 1rem;
}

/* Legacy project-showcase (kept for portfolio page if needed) */
.project-showcase {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

.project-showcase--reverse .project-showcase-content {
    order: 2;
}

.project-showcase--reverse .project-showcase-preview {
    order: 1;
}

.project-showcase-content {
    padding: 0 0.5rem;
    max-width: 520px;
}

.project-label {
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.project-showcase-title {
    font-size: clamp(1.6rem, 3.5vw, 2.25rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    line-height: 1.25;
}

.project-showcase-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.project-read-more {
    font-weight: 600;
    color: var(--accent);
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    position: relative;
    transition: color var(--transition), gap var(--transition);
}

.project-read-more:hover {
    color: var(--accent-hover);
    gap: 0.5rem;
}

.project-read-more::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition);
}

.project-read-more:hover::after {
    width: 100%;
}

.project-read-more:hover {
    gap: 0.6rem;
}

.project-showcase-preview {
    position: relative;
    max-width: 420px;
    margin-left: auto;
}

.project-showcase--reverse .project-showcase-preview {
    margin-left: 0;
    margin-right: auto;
}

.project-preview-placeholder {
    aspect-ratio: 4/3;
    max-height: 320px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}

.project-preview-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out-expo);
}

.project-preview-placeholder {
    position: relative;
    overflow: hidden;
}

.project-preview-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(37, 99, 235, 0.15), transparent 50%);
    opacity: 0;
    transition: opacity var(--transition);
}

.project-showcase-preview:hover .project-preview-placeholder {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px -12px rgba(37, 99, 235, 0.25);
}

.project-showcase-preview:hover .project-preview-placeholder::after {
    opacity: 1;
}

.project-showcase-preview:hover .project-preview-placeholder img {
    transform: scale(1.08);
}

.projects-view-all-wrap {
    text-align: center;
    margin-top: 2rem;
}

/* ========== Testimonials ========== */
.testimonials {
    background: var(--bg-dark);
}

.testimonials-fullwidth .container-fullwidth {
    max-width: 100%;
}

/* Keep for backwards compatibility if grid used elsewhere */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.testimonial-card {
    cursor: default;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px -12px rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.3);
}

.testimonial-card:hover .testimonial-avatar {
    transform: scale(1.08);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.2);
}

.testimonial-avatar {
    transition: transform var(--ease-spring), box-shadow var(--transition);
}

.testimonial-text {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
}

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

.testimonial-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.testimonial-role {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Testimonials – full-width continuous auto-scrolling marquee */
.testimonials-marquee-wrap {
    overflow: hidden;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}
.testimonials-marquee {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    animation: testimonialMarquee 22s linear infinite;
}
.testimonials-marquee:hover {
    animation-play-state: paused;
}
@keyframes testimonialMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-25%); }
}
@media (prefers-reduced-motion: reduce) {
    .testimonials-marquee { animation: none; display: flex; flex-wrap: wrap; justify-content: center; }
}
.testimonials-marquee .testimonial-card {
    flex-shrink: 0;
    width: 380px;
    max-width: 90vw;
}
.testimonial-quote-icon {
    display: block;
    font-size: 2.5rem;
    line-height: 1;
    color: var(--accent);
    opacity: 0.5;
    font-family: Georgia, serif;
    margin-bottom: 0.5rem;
}

/* ========== Work Together CTA ========== */
.work-together {
    padding: 4rem 1.5rem;
}

.work-together-card {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    padding: 3.5rem 2.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    text-align: center;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.work-together-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px -12px rgba(37, 99, 235, 0.2);
    border-color: rgba(37, 99, 235, 0.2);
}

.work-together-card:hover .work-together-decor {
    transform: scale(1.1);
    opacity: 0.18;
}

.work-together-decor {
    transition: transform 0.6s var(--ease-out-expo), opacity var(--transition);
}

.work-together-decor {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-green));
    opacity: 0.12;
    pointer-events: none;
}

.work-together-decor--tl {
    top: -40px;
    left: -40px;
}

.work-together-decor--br {
    bottom: -40px;
    right: -40px;
}

.work-together-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.work-together-underline {
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 0 auto 1.5rem;
    border-radius: 2px;
}

.work-together-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.work-together-card .btn-primary {
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.work-together-card .btn-primary:hover {
    transform: translateY(-3px) scale(1.03);
}

/* ========== Contact ========== */
.contact-wrap {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .contact-wrap {
        grid-template-columns: 1fr 1.2fr;
        align-items: start;
    }
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.contact-meta {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.contact-meta li {
    margin-bottom: 0.25rem;
}

.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: box-shadow var(--transition), border-color var(--transition);
}

.contact-form:focus-within {
    box-shadow: 0 8px 32px -8px rgba(37, 99, 235, 0.2);
    border-color: rgba(37, 99, 235, 0.2);
}

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

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    background: var(--bg-offwhite);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    color: var(--text-primary);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group input.error,
.form-group textarea.error {
    border-color: #f87171;
}

.form-error {
    display: block;
    font-size: 0.8rem;
    color: #f87171;
    margin-top: 0.25rem;
}

.form-message {
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.form-message--success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #15803d;
}

.form-message--error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #b91c1c;
}

/* ========== Footer ========== */
.footer {
    padding: 1.5rem 1.5rem;
    background: #282c34;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.05em;
    transition: opacity var(--transition);
}

.footer-logo:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.footer-logo {
    transition: opacity var(--transition), transform var(--transition);
}

.footer-logo-icon {
    width: 28px;
    height: 28px;
    background: transparent;
    border: 2px solid #00bfa5;
    border-radius: 50%;
    border-top-color: transparent;
    border-right-color: transparent;
    transform: rotate(-45deg);
}

.footer-logo-text {
    color: #fff;
}

.footer-copyright {
    font-size: 0.9rem;
    color: #9ca3af;
    margin: 0;
}

.footer-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ========== Translate widget (Google Translate) ========== */
.translate-widget {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9998;
}
.translate-widget .goog-te-gadget {
    font-family: var(--font-sans) !important;
    font-size: 13px !important;
}
.translate-widget .goog-te-gadget-simple {
    background: var(--bg-glass) !important;
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass) !important;
    border-radius: var(--radius) !important;
    padding: 0.4rem 0.75rem !important;
}
.translate-widget .goog-te-menu-value span {
    color: var(--text-primary) !important;
}
iframe.goog-te-banner-frame { display: none !important; }
@media (max-width: 768px) {
    .translate-widget { top: 0.75rem; right: 0.75rem; }
}

/* ========== WhatsApp floating button ========== */
.whatsapp-fab {
    position: fixed;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 9998;
    transition: transform var(--transition), box-shadow var(--transition);
}
.whatsapp-fab:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
    color: #fff;
}
.whatsapp-fab svg {
    width: 30px;
    height: 30px;
}
@media (max-width: 768px) {
    .whatsapp-fab { width: 50px; height: 50px; left: 1rem; }
    .whatsapp-fab svg { width: 26px; height: 26px; }
}

/* ========== Social icons (hero + footer) ========== */
.hero-cta-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}
.hero .social-icon {
    background: rgba(30, 41, 59, 0.08);
    border-color: rgba(30, 41, 59, 0.18);
    color: var(--text-primary);
}
.hero .social-icon:hover {
    background: rgba(30, 41, 59, 0.14);
    color: var(--text-primary);
}
.hero .social-icon--whatsapp {
    background: rgba(37, 211, 102, 0.12);
    border-color: rgba(37, 211, 102, 0.35);
    color: #0d8050;
}
.hero .social-icon--whatsapp:hover {
    background: #25D366;
    border-color: #25D366;
    color: #fff;
}
.social-icons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}
.social-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}
.social-icon svg {
    width: 20px;
    height: 20px;
}
.social-icon:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.social-icon--no-link {
    opacity: 0.7;
    cursor: default;
}
.social-icon--no-link:hover {
    transform: translateY(-2px) scale(1.03);
}
.social-icon--whatsapp {
    background: rgba(37, 211, 102, 0.25);
    border-color: rgba(37, 211, 102, 0.5);
}
.social-icon--whatsapp:hover {
    background: #25D366;
    border-color: #25D366;
}
.social-icons--compact .social-icon {
    width: 40px;
    height: 40px;
}
.social-icons--compact .social-icon svg {
    width: 18px;
    height: 18px;
}
.footer .social-icons .social-icon {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.15);
    color: #fff;
}
.footer .social-icon--whatsapp {
    background: rgba(37, 211, 102, 0.2);
    border-color: rgba(37, 211, 102, 0.4);
}
.footer .social-icon--whatsapp:hover {
    background: #25D366;
}
.footer-actions .social-icons {
    margin-right: 0.25rem;
}

.footer-contact {
    margin: 0.5rem 0;
    font-size: 0.95rem;
}
.footer-contact-link {
    color: inherit;
    opacity: 0.85;
    text-decoration: none;
}
.footer-contact-link:hover {
    opacity: 1;
    text-decoration: underline;
}
.footer-social {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffc107;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition), color var(--transition), transform var(--transition);
}

.footer-social svg {
    width: 18px;
    height: 18px;
}

.footer-social:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffca28;
    transform: translateY(-3px) scale(1.1);
}

.footer-scroll-top {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition), color var(--transition), transform var(--transition);
}

.footer-scroll-top svg {
    width: 20px;
    height: 20px;
}

.footer-scroll-top:hover {
    background: #f3f4f6;
    color: #374151;
    transform: translateY(-4px);
}

.footer-scroll-top:active {
    transform: translateY(-2px);
}

.footer-chat {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #3f51b5;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition), transform var(--transition);
}

.footer-chat svg {
    width: 22px;
    height: 22px;
}

.footer-chat:hover {
    background: #4f5fd5;
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 8px 24px rgba(63, 81, 181, 0.4);
}

@media (max-width: 640px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-brand {
        flex-direction: column;
    }
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-glass);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 1.5rem;
        border-left: 1px solid var(--border-glass);
        transition: right var(--transition);
    }

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

    .nav-menu a::after {
        display: none;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        text-align: center;
        max-width: none;
    }

    .hero-visual {
        order: -1;
    }

    .hero-image-wrap {
        max-width: 280px;
        margin: 0 auto;
    }

    .skill-badge {
        width: 40px;
        height: 40px;
        font-size: 0.65rem;
    }

    .about-content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .about-image-wrap {
        max-width: 360px;
        margin: 0 auto;
    }
    .about-text {
        padding: 2rem 1.5rem;
    }

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

    .skills-content {
        padding-left: 0;
    }

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

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

    .project-showcase,
    .project-showcase--reverse {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 3rem;
    }

    .project-showcase--reverse .project-showcase-content,
    .project-showcase--reverse .project-showcase-preview {
        order: unset;
    }

    .testimonials-marquee .testimonial-card { width: 340px; }

    .portfolio-filter-wrap {
        flex-direction: column;
        align-items: stretch;
    }

    .portfolio-search-input {
        max-width: 100%;
    }

    .work-together-card {
        padding: 2.5rem 1.5rem;
    }

    .section {
        padding: 3.5rem 1rem;
    }
}

/* Touch targets on mobile – ensure tappable area */
@media (max-width: 640px) {
    .btn { min-height: 44px; padding: 0.75rem 1.25rem; }
    .nav-menu a { padding: 1rem 0; min-height: 48px; display: flex; align-items: center; }
}

@media (max-width: 480px) {
    .hero {
        padding: 5rem 1rem 3rem;
        padding-top: max(5rem, env(safe-area-inset-top));
    }

    .portfolio-categories {
        justify-content: center;
    }

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

    .contact-form {
        padding: 1.5rem;
    }

    .footer-container {
        flex-direction: column;
        gap: 1.5rem;
        padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
    }
    .footer-actions {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
    }
    .footer-copyright {
        font-size: 0.85rem;
        line-height: 1.5;
    }
}

/* Safe area for notched devices */
@supports (padding: env(safe-area-inset-top)) {
    .nav-header { padding-left: max(1rem, env(safe-area-inset-left)); padding-right: max(1rem, env(safe-area-inset-right)); }
    .whatsapp-fab { left: max(1.25rem, env(safe-area-inset-left)); }
    .translate-widget { right: max(1rem, env(safe-area-inset-right)); top: max(1rem, env(safe-area-inset-top)); }
    .footer { padding-bottom: max(1.5rem, env(safe-area-inset-bottom)); }
}

/* ========== Booking Form – Modern Design ========== */
.page-booking .section {
    padding: 6rem 1rem 4rem;
    background: linear-gradient(180deg, var(--bg-offwhite) 0%, var(--bg-card) 100%);
}
.booking-container {
    max-width: 560px;
    margin: 0 auto;
}
.booking-progress {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 2.5rem;
    padding: 0.5rem;
    background: var(--bg-card);
    border-radius: 999px;
    box-shadow: var(--shadow), 0 1px 3px rgba(0,0,0,0.04);
    border: 1px solid var(--border-glass);
}
.booking-step {
    flex: 1;
    text-align: center;
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: 999px;
    transition: all var(--transition);
}
.booking-step.active {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}
.booking-step.done {
    background: var(--accent-green);
    color: #fff;
}
.booking-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2.25rem 2rem;
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.04);
    transition: box-shadow var(--transition);
}
.booking-card:hover {
    box-shadow: 0 30px 60px -15px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.04);
}
.booking-card-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}
.booking-card-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
    line-height: 1.6;
}
.booking-form-group {
    margin-bottom: 1.25rem;
}
.booking-form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}
.booking-input,
.booking-select,
.booking-textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--bg-offwhite);
    border: 1.5px solid var(--border-glass);
    border-radius: var(--radius);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}
.booking-input:focus,
.booking-select:focus,
.booking-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
    background: var(--bg-card);
}
.booking-input::placeholder,
.booking-textarea::placeholder {
    color: var(--text-muted);
}
.booking-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.75rem;
}
.booking-textarea {
    min-height: 96px;
    resize: vertical;
}
.booking-summary {
    background: linear-gradient(135deg, var(--accent-glow) 0%, rgba(34, 197, 94, 0.08) 100%);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 1.75rem;
    font-size: 0.95rem;
    color: var(--text-primary);
    border: 1px solid rgba(37, 99, 235, 0.12);
}
.booking-summary strong {
    color: var(--accent);
}
.booking-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
}
.booking-slot {
    padding: 1rem;
    border: 2px solid var(--border-glass);
    border-radius: var(--radius);
    cursor: pointer;
    text-align: center;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all var(--transition);
    background: var(--bg-card);
}
.booking-slot:hover {
    border-color: var(--accent);
    background: var(--accent-glow);
    transform: translateY(-2px);
}
.booking-slot.selected {
    border-color: var(--accent);
    background: var(--accent-glow);
    color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.booking-slot input {
    display: none;
}
.booking-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-glass);
    gap: 1rem;
}
.btn-booking {
    padding: 0.85rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-booking:not(.secondary) {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}
.btn-booking:not(.secondary):hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}
.btn-booking.secondary {
    background: var(--bg-offwhite);
    color: var(--text-primary);
    border: 1.5px solid var(--border-glass);
}
.btn-booking.secondary:hover {
    background: var(--border-glass);
    border-color: var(--text-muted);
}
.booking-done-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-green-hover) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 2rem;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.35);
}
.booking-done h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}
@media (max-width: 640px) {
    .booking-progress { flex-wrap: wrap; gap: 0.35rem; }
    .booking-step { flex: 1 1 45%; font-size: 0.8rem; padding: 0.55rem 0.5rem; }
    .booking-card { padding: 1.75rem 1.25rem; }
    .booking-slots { grid-template-columns: repeat(2, 1fr); }
}
