/*
Theme Name: Ericson Technology
Theme URI: https://www.ericsontechnology.com
Description: Personal portfolio and technology site for Ericson Technology. Features pages for About, Projects, Products, Photography, and Contact.
Author: Ericson
Version: 1.2
Text Domain: ericson-main
*/

/* ========== CSS Reset & Base ========== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #1a1a2e;
    --color-secondary: #16213e;
    --color-accent: #0f3460;
    --color-highlight: #e94560;
    --color-text: #333;
    --color-text-light: #666;
    --color-bg: #f8f9fa;
    --color-white: #ffffff;
    --color-border: #e2e8f0;
    --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-heading: 'Segoe UI', Roboto, sans-serif;
    --max-width: 1200px;
    --header-height: 70px;
    --transition: 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    overflow-x: hidden;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-highlight);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ========== Header & Navigation ========== */
.site-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: var(--color-white);
    padding: 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    backdrop-filter: blur(10px);
    transition: all var(--transition);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.site-header.scrolled {
    background: rgba(26, 26, 46, 0.95);
    height: 60px;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    width: 100%;
}

.site-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-white);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.site-logo span {
    color: var(--color-highlight);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all var(--transition);
    display: block;
}

.nav-menu a:hover,
.nav-menu .current-menu-item a,
.nav-menu .current_page_item a {
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.1);
}

/* Dropdown */
.nav-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-secondary);
    border-radius: 8px;
    padding: 0.5rem 0;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    list-style: none;
    z-index: 100;
}

.nav-menu li:hover > .sub-menu {
    display: block;
}

.nav-menu .sub-menu a {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    border-radius: 0;
}

.nav-menu .sub-menu a:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* Mobile menu */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: var(--color-white);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all var(--transition);
}

.mobile-menu-toggle:hover {
    border-color: var(--color-white);
}

/* ========== Hero Section (Front Page) ========== */
.hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 50%, var(--color-secondary) 100%);
    color: var(--color-white);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--header-height);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(233, 69, 96, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(15, 52, 96, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.02) 0%, transparent 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-text h1 .highlight {
    color: var(--color-highlight);
}

.hero-text p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--color-highlight);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.4);
}

.btn-primary:hover {
    background: #d63851;
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 69, 96, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--color-white);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-white);
    color: var(--color-white);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-graphic {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(233, 69, 96, 0.2), rgba(15, 52, 96, 0.3));
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    animation: float 6s ease-in-out infinite;
    position: relative;
}

.hero-graphic::after {
    content: '';
    position: absolute;
    inset: -15px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* ========== Page Header ========== */
.page-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    color: var(--color-white);
    padding: 8rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 70%, rgba(233, 69, 96, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ========== Sections ========== */
.section {
    padding: 5rem 0;
}

.section-alt {
    background: var(--color-white);
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-light);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ========== Card Grid ========== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* ══════════════════════════════════════════════════════════
   What I Do — Abstract glassmorphism cards on dark bg
   ══════════════════════════════════════════════════════════ */
.whatido {
    background: linear-gradient(160deg, #0d0d1a 0%, #1a1a3e 40%, #0f3460 100%);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

/* Decorative floating orbs behind cards */
.whatido::before,
.whatido::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.35;
    pointer-events: none;
}

.whatido::before {
    width: 500px;
    height: 500px;
    background: #e94560;
    top: -150px;
    right: -100px;
}

.whatido::after {
    width: 400px;
    height: 400px;
    background: #667eea;
    bottom: -120px;
    left: -80px;
}

.whatido-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

/* ── Glass card base ── */
.whatido-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    text-decoration: none;
    color: #fff;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(.25,.8,.25,1),
                box-shadow 0.4s cubic-bezier(.25,.8,.25,1),
                border-color 0.4s;
}

.whatido-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.25);
}

/* Per-card glow accent */
.whatido-card__glow {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    top: -40px;
    right: -40px;
}

.whatido-card:hover .whatido-card__glow {
    opacity: 0.5;
}

.whatido-card--about .whatido-card__glow   { background: #e94560; }
.whatido-card--projects .whatido-card__glow { background: #667eea; }
.whatido-card--photo .whatido-card__glow    { background: #f093fb; }
.whatido-card--products .whatido-card__glow { background: #4facfe; }

/* Icon */
.whatido-card__icon {
    font-size: 2.8rem;
    font-weight: 300;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.whatido-card--about .whatido-card__icon {
    background: linear-gradient(135deg, #e94560, #ff6b6b);
}

.whatido-card--projects .whatido-card__icon {
    background: linear-gradient(135deg, #667eea, #764ba2);
    font-size: 1.6rem;
    font-family: monospace;
    font-weight: 700;
}

.whatido-card--photo .whatido-card__icon {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.whatido-card--products .whatido-card__icon {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

/* Text */
.whatido-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    position: relative;
    z-index: 1;
}

.whatido-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.65);
    flex: 1;
    position: relative;
    z-index: 1;
}

/* CTA link */
.whatido-card__cta {
    display: inline-block;
    margin-top: 1.25rem;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    position: relative;
    z-index: 1;
    transition: transform 0.3s;
}

.whatido-card--about .whatido-card__cta   { color: #ff6b6b; }
.whatido-card--projects .whatido-card__cta { color: #a78bfa; }
.whatido-card--photo .whatido-card__cta    { color: #f093fb; }
.whatido-card--products .whatido-card__cta { color: #4facfe; }

.whatido-card:hover .whatido-card__cta {
    transform: translateX(4px);
}

/* ── About card spans full width on first row ── */
.whatido-card--about {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    padding: 3rem;
}

.whatido-card--about .whatido-card__icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    font-size: 3.2rem;
    border-radius: 20px;
}

.whatido-card--about h3 {
    font-size: 1.6rem;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .whatido-grid {
        grid-template-columns: 1fr;
    }

    .whatido-card--about {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 2rem;
    }

    .whatido-card--about .whatido-card__icon {
        margin: 0 auto 0.5rem;
    }

    .whatido {
        padding: 4rem 0;
    }
}

.card {
    background: var(--color-white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all var(--transition);
    border: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--color-primary);
}

.card p {
    color: var(--color-text-light);
    line-height: 1.7;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    font-weight: 600;
    color: var(--color-highlight);
}

.card-link:hover {
    gap: 0.75rem;
}

/* ========== Projects Page ========== */
.project-card {
    background: var(--color-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all var(--transition);
    border: 1px solid var(--color-border);
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.project-card-image {
    height: 200px;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.6);
}

.project-card-body {
    padding: 1.5rem;
}

.project-card-body h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.project-card-body p {
    color: var(--color-text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.tag {
    background: rgba(15, 52, 96, 0.08);
    color: var(--color-accent);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ========== Products Page ========== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--color-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--color-border);
    transition: all var(--transition);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.product-image {
    height: 220px;
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    font-size: 1.2rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.product-info p {
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* ========== Photography Page ========== */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.photo-item {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e0);
    cursor: pointer;
    transition: transform var(--transition);
}

.photo-item:hover {
    transform: scale(1.02);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 3rem;
    color: #a0aec0;
    background: linear-gradient(135deg, #edf2f7, #e2e8f0);
}

/* ========== About Page ========== */
.about-intro {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
}

.about-photo {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.5);
    overflow: hidden;
}

.about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-text h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.about-text p {
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.skill-item {
    background: var(--color-white);
    padding: 1.25rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--color-border);
    transition: all var(--transition);
}

.skill-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.skill-item .icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.skill-item h4 {
    font-size: 0.95rem;
    color: var(--color-primary);
}

/* ========== Contact Page ========== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.contact-info p {
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--color-white);
    border-radius: 10px;
    border: 1px solid var(--color-border);
}

.contact-method .icon {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 52, 96, 0.08);
    border-radius: 10px;
    flex-shrink: 0;
}

.contact-method h4 {
    font-size: 1rem;
    color: var(--color-primary);
    margin-bottom: 0.15rem;
}

.contact-method p {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin: 0;
}

.contact-form {
    background: var(--color-white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--color-border);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color var(--transition);
    background: var(--color-bg);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* ========== Footer ========== */
.site-footer {
    background: var(--color-primary);
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-about h3,
.footer-links h4 {
    color: var(--color-white);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-about p {
    line-height: 1.7;
    font-size: 0.95rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--color-white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ========== Block Editor Content ========== */
.page-content {
    max-width: 1100px;
    margin: 0 auto;
}

.page-content h2,
.page-content h3 {
    color: var(--color-primary);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.page-content p {
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

/* Block columns inherit card styles */
.page-content .wp-block-columns.card-grid {
    gap: 2rem;
}

.page-content .wp-block-column.card,
.page-content .wp-block-column.project-card,
.page-content .wp-block-column.product-card {
    background: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.page-content .wp-block-column.card:hover,
.page-content .wp-block-column.project-card:hover,
.page-content .wp-block-column.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

/* Block gallery styling */
.page-content .wp-block-gallery.photo-grid {
    gap: 1rem !important;
}

.page-content .wp-block-gallery .wp-block-image img {
    border-radius: 8px;
    transition: transform 0.3s;
}

.page-content .wp-block-gallery .wp-block-image img:hover {
    transform: scale(1.03);
}

/* Block buttons styling */
.page-content .wp-block-button.btn .wp-block-button__link {
    background: var(--color-highlight);
    border-radius: 6px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: background 0.3s, transform 0.3s;
}

.page-content .wp-block-button.btn .wp-block-button__link:hover {
    background: #d63451;
    transform: translateY(-2px);
}

/* Contact method block layout */
.page-content .contact-method {
    margin-bottom: 1.5rem;
    align-items: center;
    gap: 1rem;
}

.page-content .contact-method .icon {
    flex-shrink: 0;
}

/* Block separator styling */
.page-content .wp-block-separator {
    border-color: var(--color-border);
    margin: 3rem auto;
}

/* Block cover inside project cards */
.page-content .project-card-image .wp-block-cover__inner-container {
    text-align: center;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--color-primary);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu a {
        padding: 0.75rem 1rem;
    }

    .nav-menu .sub-menu {
        position: static;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 0;
        padding-left: 1rem;
    }

    .nav-menu li:hover > .sub-menu {
        display: block;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-visual {
        order: -1;
    }

    .hero-graphic {
        width: 200px;
        height: 200px;
        font-size: 4rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .about-intro {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 3rem 0;
    }
}

/* ── Scroll Reveal Animations ── */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1),
                transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: opacity, transform;
}
.reveal--left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1),
                transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: opacity, transform;
}
.reveal--right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1),
                transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: opacity, transform;
}
.reveal--scale {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1),
                transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: opacity, transform;
}
.reveal.is-visible,
.reveal--left.is-visible,
.reveal--right.is-visible,
.reveal--scale.is-visible {
    opacity: 1;
    transform: none;
}

/* Staggered children: use .reveal-stagger on the parent */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s cubic-bezier(0.23, 1, 0.32, 1),
                transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: opacity, transform;
}
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.24s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.36s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.48s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.60s; }
.reveal-stagger.is-visible > * {
    opacity: 1;
    transform: none;
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal--left, .reveal--right, .reveal--scale,
    .reveal-stagger > * {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}
