:root {
    /* Futuristic Light Color Palette */
    --bg-deep: #ffffff;
    --bg-surface: #f3f4f7;
    --ink: #1b1e27;
    --muted: #5a6375;
    --line: rgba(27, 30, 39, 0.12);
    --line-light: rgba(27, 30, 39, 0.08);

    --primary: #4F46E5;
    --primary-hover: #4338ca;
    --primary-glow: rgba(79, 70, 229, 0.25);

    --accent: #06b6d4;
    --accent-glow: rgba(6, 182, 212, 0.2);

    --purple: #8b5cf6;
    --emerald: #059669;
    --orange: #d97706;

    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-card: rgba(255, 255, 255, 0.65);
    --glass-card-hover: rgba(255, 255, 255, 0.95);

    --shadow-subtle: 0 10px 40px rgba(27, 30, 39, 0.06);
    --shadow-glow: 0 0 20px var(--primary-glow);

    --radius: 16px;
    --radius-lg: 24px;
    --max: 1040px;

    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Inter', system-ui, -apple-system, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    color: var(--ink);
    font-family: var(--font-sans);
    background-color: var(--bg-deep);
    background-image:
        radial-gradient(circle at 15% 50%, rgba(79, 70, 229, 0.04), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(6, 182, 212, 0.04), transparent 25%);
    background-attachment: fixed;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Base grid pattern overlay - Framer style */
body::before {
    content: "";
    position: absolute;
    /* Using absolute inside body instead of fixed if page grows securely, but fixed keeps it persistent */
    inset: 0;
    background-image: url('https://framerusercontent.com/images/f60UwS7E5GdUxhY9XSDVFprkPI.svg?width=300&height=300');
    background-size: auto;
    background-position: left top;
    background-repeat: repeat;
    z-index: -1;
    opacity: 0.15;
    /* Subtly blending the pattern */
    pointer-events: none;
    /* Masking it to fade out towards edges */
    mask-image: radial-gradient(circle at center 30vh, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center 30vh, black 30%, transparent 80%);
}

.ambient-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
}

.glow-1 {
    background: var(--primary);
    top: -200px;
    left: -200px;
    animation: float 20s ease-in-out infinite alternate;
}

.glow-2 {
    background: var(--accent);
    bottom: -200px;
    right: -200px;
    animation: float 25s ease-in-out infinite alternate-reverse;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 50px) scale(1.1);
    }
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}

/* Typography elements */
.h2 {
    margin: 0 0 16px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -1px;
    line-height: 1.1;
}

.lead {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.6;
    max-width: 65ch;
    margin-bottom: 24px;
}

.eyebrow {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 12px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.eyebrow::before {
    content: "";
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--ink) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-highlight {
    color: var(--primary);
    font-weight: 600;
}

.bold-display {
    font-weight: 800;
    color: var(--ink);
}

/* layout */
.wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 24px 80px;
}

#impact {
    padding-top: 40px;
}

.section {
    padding: 20px 0;
    position: relative;
}

#work, #approach, #contact, #faq {
    margin-top: 40px;
}

.section-header {
    margin-bottom: 48px;
}

/* Topbar */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
}

.topbar .inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-family: var(--font-display);
}

.logo-text {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.brand .sub {
    font-size: 13px;
    color: var(--muted);
    font-family: var(--font-sans);
    background: rgba(27, 30, 39, 0.05);
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid var(--line);
}

.nav {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

.nav a:not(.btn) {
    padding: 8px 16px;
    border-radius: 999px;
    color: var(--muted);
}

.nav a:not(.btn):hover {
    color: var(--ink);
    background: rgba(27, 30, 39, 0.05);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    cursor: pointer;
    border: 1px solid transparent;
}

.btn.primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px var(--primary-glow);
}

.btn.primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.btn.outline {
    background: var(--glass-bg);
    border-color: var(--line);
    color: var(--ink);
    box-shadow: var(--shadow-subtle);
}

.btn.outline:hover {
    background: var(--bg-deep);
    border-color: var(--muted);
    transform: translateY(-2px);
}

.glowing-btn {
    position: relative;
}

.glowing-btn::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--purple));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    filter: blur(8px);
}

.glowing-btn:hover::after {
    opacity: 0.3;
}

.iconbtn {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--line);
    color: var(--muted);
    transition: all 0.2s ease;
    box-shadow: var(--shadow-subtle);
}

.iconbtn:hover {
    background: var(--bg-deep);
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Modules / Glass */
.glass-panel {
    background: var(--glass-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-subtle);
}

/* Hero */
.hero {
    min-height: 40vh;
    display: flex;
    flex-direction: column;
    padding: 40px 0 0;
}

/* About */
.grid-2 {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.wave {
    display: inline-block;
    animation: wave 2.5s infinite;
    transform-origin: 70% 70%;
}

@keyframes wave {
    0% {
        transform: rotate(0.0deg)
    }

    10% {
        transform: rotate(14.0deg)
    }

    20% {
        transform: rotate(-8.0deg)
    }

    30% {
        transform: rotate(14.0deg)
    }

    40% {
        transform: rotate(-4.0deg)
    }

    50% {
        transform: rotate(10.0deg)
    }

    60% {
        transform: rotate(0.0deg)
    }

    100% {
        transform: rotate(0.0deg)
    }
}

.pulse-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    vertical-align: middle;
    margin-right: 6px;
}

.pulse-dot.green {
    background: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.about-points {
    display: grid;
    gap: 16px;
    margin-top: 32px;
}

.glass-point {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--glass-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    align-items: center;
    box-shadow: var(--shadow-subtle);
}

.glass-point p {
    margin: 0;
    font-size: 15px;
    color: var(--muted);
}

.glass-point strong {
    color: var(--ink);
}

.point-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 20px;
    flex-shrink: 0;
}

.about-card {
    overflow: hidden;
    position: relative;
}

.portrait-container {
    height: 100%;
    min-height: 500px;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.portrait {
    position: absolute;
    inset: 0;
    background-image: url('./assets/evandro_profile.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center top;
}

.portrait-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(6, 182, 212, 0.1));
    mix-blend-mode: multiply;
    z-index: 1;
}

.about-card .meta {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.8);
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--emerald);
}

.icons {
    display: flex;
    gap: 8px;
}

/* Impact / Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 0;
}

@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

.stat-card {
    padding: 20px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
}

.stat-number {
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 800;
    font-family: var(--font-display);
    color: var(--primary);
    margin-bottom: 8px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s ease;
}

.stat-card:hover .stat-number {
    transform: scale(1.15) translateY(-5px);
    color: var(--accent);
    text-shadow: 0 0 20px var(--accent-glow);
}

.stat-label {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.4;
    font-weight: 500;
    margin: 0;
}

/* Marquee / Scrolling Skills */
.marquee-section {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 20px 0;
    /* Increased padding slightly */
    margin-top: 60px;
    /* Added spacing above */
    margin-bottom: 60px;
    /* Reduced spacing below to balance with the above */
    background: #f4f5f8;
    border-top: 1px solid var(--muted);
    border-bottom: 1px solid var(--muted);
    overflow: hidden;
    position: relative;
    cursor: grab;
}

.marquee-section:active {
    cursor: grabbing;
}

.marquee-container {
    overflow: hidden;
    user-select: none;
    width: 100%;
}

.marquee-content {
    display: flex;
    gap: 48px;
    align-items: center;
    padding-right: 48px;
    width: max-content;
    will-change: transform;
}

.marquee-section:active .marquee-content {
    animation-play-state: paused;
}

.skill-item {
    font-size: 16px;
    font-weight: 500;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

.skill-shape {
    display: inline-block;
    background-color: var(--muted);
    flex-shrink: 0;
}

.skill-shape.square {
    width: 12px;
    height: 12px;
}

.skill-shape.circle {
    width: 14px;
    height: 14px;
    border-radius: 50%;
}

.skill-shape.triangle {
    width: 0;
    height: 0;
    background-color: transparent;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 12px solid var(--muted);
}

@keyframes scroll-left {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Capabilities */
.cap-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.cap {
    padding: 32px;
    transition: transform 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cap::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--line-light), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cap:hover {
    transform: translateY(-4px);
    border-color: var(--line-light);
    background: var(--glass-card-hover);
}

.cap:hover::before {
    opacity: 1;
}

.cap-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--glass-card);
    display: grid;
    place-items: center;
    margin-bottom: 24px;
    border: 1px solid var(--line);
}

.cap-icon.blue-glow {
    color: var(--primary);
    box-shadow: 0 8px 32px var(--primary-glow);
    border-color: rgba(79, 70, 229, 0.3);
}

.cap-icon.purple-glow {
    color: var(--purple);
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.3);
    border-color: rgba(139, 92, 246, 0.3);
}

.cap-icon.green-glow {
    color: var(--emerald);
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.3);
    border-color: rgba(16, 185, 129, 0.3);
}

.cap-icon.orange-glow {
    color: var(--orange);
    box-shadow: 0 8px 32px rgba(245, 158, 11, 0.3);
    border-color: rgba(245, 158, 11, 0.3);
}

.cap h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    font-family: var(--font-display);
}

.cap p {
    color: var(--muted);
    font-size: 15px;
}

.highlight {
    color: var(--ink);
    font-weight: 500;
}

/* Accordion Cases */
.acc {
    overflow: hidden;
}

.acc-item {
    border-bottom: 1px solid var(--line);
}

.acc-item:last-child {
    border-bottom: none;
}

.acc-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 32px;
    background: transparent;
    border: none;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease;
}

.acc-btn:hover {
    background: rgba(27, 30, 39, 0.02);
}

.acc-thumb {
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: var(--shadow-subtle);
    background: #fff;
}

.acc-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.acc-title-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.acc-title {
    font-family: var(--font-display);
    font-size: clamp(20px, 2vw, 24px);
    font-weight: 600;
    line-height: 1.2;
}

.acc-subtitle {
    font-size: 14px;
    color: var(--muted);
    font-weight: 500;
}

.indicator {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    background: transparent;
}

.cross {
    position: relative;
    width: 16px;
    height: 16px;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cross::before,
.cross::after {
    content: "";
    position: absolute;
    background: var(--primary);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.cross::before {
    top: 6px;
    left: 0;
    width: 16px;
    height: 4px;
}

.cross::after {
    top: 0;
    left: 6px;
    width: 4px;
    height: 16px;
}

.acc-item.open .cross {
    transform: rotate(45deg);
}

.acc-panel {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s ease;
}

.acc-item.open .acc-panel {
    max-height: 2500px;
    /* Increased to allow for images and text */
    opacity: 1;
}

.acc-content {
    padding: 0 32px 32px;
    color: var(--muted);
    font-size: 16px;
    max-width: 900px;
}

.acc-expanded-layout {
    display: block;
    /* Base block for flow container */
    margin-bottom: 32px;
    margin-top: 12px;
}

/* Float approach was causing issues with bullet text wrapping under the image when image was short.
   Instead, we use a grid to strictly partition the space below 'Contexto' into 2 columns.
   Contexto: 100% Top
   Image: Left Column
   Role/Solution: Right Column
   Impacto: 100% Bottom
*/
.acc-body-grid {
    display: grid;
    grid-template-columns: 28% 1fr;
    gap: 40px;
    align-items: stretch;
}

.acc-expanded-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.acc-expanded-image img,
.placeholder-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-subtle);
    border: 1px solid var(--line-light);
    display: block;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.acc-expanded-image img:hover {
    transform: scale(1.02);
}

.acc-text-section h4 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    margin: 24px 0 12px 0;
}

.acc-text-section h4:first-child {
    margin-top: 0;
}

.acc-text-section p,
.acc-text-section ul {
    margin-bottom: 16px;
    line-height: 1.6;
}

.acc-text-section ul {
    padding-left: 20px;
}

.acc-text-section li {
    margin-bottom: 8px;
}

.acc-impact-section {
    padding-top: 0px;
}

/* Craft Cards */
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.glass-card {
    background: var(--glass-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.card-glow {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    background: var(--primary);
    filter: blur(50px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.glass-card:hover .card-glow {
    opacity: 0.3;
}

.glass-card h4 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--ink);
}

.glass-card p {
    font-size: 14px;
    color: var(--muted);
    margin: 0;
}

/* Process */
.process {
    display: flex;
    flex-direction: column;
    gap: 40px;
    position: relative;
}

.process-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 30px;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--accent), transparent);
    opacity: 0.5;
}

.step {
    display: flex;
    gap: 40px;
    align-items: center;
    position: relative;
}

.step-marker {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--glass-card);
    border: 1px solid var(--line-light);
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.step-content {
    padding: 32px;
    flex: 1;
    transition: all 0.3s ease;
}

.step-content:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(27, 30, 39, 0.1);
}

.step-content h3 {
    font-size: 22px;
    margin-bottom: 12px;
    font-family: var(--font-display);
}

.step-content p {
    color: var(--muted);
    margin: 0;
}

.step-tools {
    margin-top: 8px;
    font-size: 14px;
    color: var(--muted);
}

.step-tools strong {
    color: var(--ink);
    font-weight: 600;
}

/* Contact */
.contact-box {
    padding: 40px;
}

.contact-box h3 {
    font-family: var(--font-display);
    font-size: 24px;
    margin-bottom: 24px;
}

/* Contact Grid Layout */
.contact-section-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
    max-width: 900px;
}

.contact-square {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    height: 220px;
    padding: 40px;
    background: var(--glass-card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    text-decoration: none;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: var(--shadow-subtle);
    color: var(--ink);
    overflow: visible; /* Changed from hidden to ensure labels/effects aren't clipped */
}

.hover-label {
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-square.copied {
    background: #2ecc71 !important;
    border-color: #2ecc71 !important;
}

.contact-square.copied .hover-label,
.contact-square.copied .square-icon {
    color: white !important;
}

.contact-square.copied .square-icon svg {
    stroke: white !important;
}

.contact-square:hover {
    transform: translateY(-8px);
    background: white;
    border-color: rgba(27, 30, 39, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.square-icon {
    transition: all 0.4s ease;
    color: var(--muted);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0;
}

/* Hover label hidden by default, slides up on hover */
.hover-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    font-weight: 600;
    font-family: var(--font-display);
    font-size: 16px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Specific brand colors and hover transformations */
.contact-square:hover .linkedin-brand {
    color: #0077b5;
}

.contact-square:hover .email-brand {
    color: var(--primary);
}

.contact-square:hover .whatsapp-brand {
    color: #25D366;
}

.contact-square:hover .resume-brand {
    color: var(--accent);
}

.contact-square:hover .square-icon {
    transform: translateY(-20px) scale(1.1);
}

.contact-square:hover .hover-label {
    opacity: 1;
    transform: translateY(0);
}

/* Resume Special Button */
.resume-action-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.resume-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 900px;
    padding: 16px;
    background: var(--glass-card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    color: var(--ink);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-subtle);
}

.resume-btn:hover {
    background: white;
    border-color: rgba(27, 30, 39, 0.2);
    transform: translateY(-2px);
    color: var(--accent);
}

.resume-btn svg {
    color: var(--accent);
    transition: transform 0.3s ease;
}

.resume-btn:hover svg {
    transform: translateY(-2px);
}

.footerline {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footerline .small {
    color: var(--muted);
    font-size: 14px;
}

.email-link {
    font-weight: 600;
    color: var(--ink);
    font-size: 16px;
    border-bottom: 1px solid var(--primary);
    padding-bottom: 2px;
}

.email-link:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

/* Animations / Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
        transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    transition-delay: var(--delay, 0s);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 980px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .cap-grid {
        grid-template-columns: 1fr;
    }

    .process-line {
        left: 24px;
    }

    .step-marker {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .wrap {
        padding: 0 16px 80px;
    }

    .nav {
        display: none;
        /* In a real app add a hamburger menu */
    }

    .hero {
        padding: 80px 0 40px;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .acc-btn {
        padding: 20px 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .indicator {
        display: none;
    }

    .acc-item {
        cursor: pointer;
    }

    .acc-btn {
        padding: 24px 20px;
        flex-direction: row;
        align-items: center;
        gap: 16px;
    }

    .acc-content {
        padding: 0 16px 20px;
    }

    .acc-body-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .acc-expanded-image {
        max-width: 300px;
        margin: 0 auto;
    }

    .acc-impact-section {
        padding-top: 0;
    }
}

/* Lightbox */
#lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: zoom-out;
    backdrop-filter: blur(8px);
}

#lightbox.active {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    cursor: zoom-out;
}

#lightbox-img {
    width: 95vw;
    height: 95vh;
    max-width: 1200px;
    object-fit: contain;
    border-radius: var(--radius);
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.5));
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: zoom-out; /* Clicking the image now closes the lightbox */
}

#lightbox.active #lightbox-img {
    transform: scale(1);
}

#lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    transition: all 0.3s ease;
}

#lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}