/* ============================================================
   PORTFÓLIO — Gustavo S. Daniel
   Premium Awwwards Edition · Bento Grid · Glassmorphism
   Dark/Light Mode · Micro-interactions · Scroll Reveal
   ============================================================ */

/* ---------- GOOGLE FONTS ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

/* ---------- CSS CUSTOM PROPERTIES ---------- */
:root {
    /* Tipografia */
    --font-sans: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Escala tipográfica */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1.05rem;
    --text-lg: 1.2rem;
    --text-xl: 1.5rem;
    --text-2xl: 2rem;
    --text-3xl: 2.6rem;
    --text-4xl: 3.4rem;

    /* Espaçamento */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;

    /* Bordas */
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    /* Transições */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-spring: cubic-bezier(0.22, 1.2, 0.36, 1);
    --duration-fast: 200ms;
    --duration-normal: 350ms;
    --duration-slow: 600ms;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 24px;
}

/* ---------- THEME: DARK (default) ---------- */
body {
    --bg-root: #06090F;
    --bg-surface: #0C1119;
    --bg-card: rgba(16, 22, 34, 0.65);
    --bg-card-solid: #101622;
    --bg-elevated: rgba(22, 30, 44, 0.7);
    --bg-input: rgba(12, 17, 25, 0.8);

    --text-primary: #EBEEF3;
    --text-secondary: #8899B4;
    --text-tertiary: #5C6E89;

    --accent: #00D4AA;
    --accent-dim: #00B894;
    --accent-glow: rgba(0, 212, 170, 0.18);
    --accent-glow-strong: rgba(0, 212, 170, 0.3);

    --border-subtle: rgba(255, 255, 255, 0.05);
    --border-card: rgba(255, 255, 255, 0.07);
    --border-hover: rgba(0, 212, 170, 0.4);

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.25);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.35);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.45);
    --shadow-glow: 0 0 40px var(--accent-glow);
    --shadow-glow-hover: 0 0 60px var(--accent-glow-strong);

    --orb-1: rgba(0, 212, 170, 0.06);
    --orb-2: rgba(99, 102, 241, 0.04);
    --orb-3: rgba(14, 165, 233, 0.04);

    font-family: var(--font-sans);
    background-color: var(--bg-root);
    color: var(--text-primary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

/* ---------- THEME: LIGHT ---------- */
body.light {
    --bg-root: #F0F4F8;
    --bg-surface: #F8FAFC;
    --bg-card: rgba(255, 255, 255, 0.7);
    --bg-card-solid: #FFFFFF;
    --bg-elevated: rgba(255, 255, 255, 0.85);
    --bg-input: rgba(248, 250, 252, 0.9);

    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-tertiary: #94A3B8;

    --accent: #0D9488;
    --accent-dim: #0F766E;
    --accent-glow: rgba(13, 148, 136, 0.12);
    --accent-glow-strong: rgba(13, 148, 136, 0.22);

    --border-subtle: rgba(0, 0, 0, 0.05);
    --border-card: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(13, 148, 136, 0.4);

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.05);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.07);
    --shadow-xl: 0 16px 40px rgba(0,0,0,0.1);
    --shadow-glow: 0 0 30px var(--accent-glow);
    --shadow-glow-hover: 0 0 50px var(--accent-glow-strong);

    --orb-1: rgba(13, 148, 136, 0.05);
    --orb-2: rgba(99, 102, 241, 0.03);
    --orb-3: rgba(14, 165, 233, 0.04);
}

/* ---------- BACKGROUND ORBS ---------- */
body::before,
body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.7;
    animation: orbFloat 20s ease-in-out infinite alternate;
}

body::before {
    width: 600px;
    height: 600px;
    background: var(--orb-1);
    top: -200px;
    right: -150px;
}

body::after {
    width: 500px;
    height: 500px;
    background: var(--orb-2);
    bottom: -150px;
    left: -100px;
    animation-delay: -10s;
}

@keyframes orbFloat {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -30px) scale(1.08); }
    66% { transform: translate(-25px, 20px) scale(0.95); }
    100% { transform: translate(15px, -10px) scale(1.03); }
}

/* ---------- GRID CONTAINER ---------- */
.container {
    display: grid;
    gap: 20px;
    max-width: 1700px;
    width: 96%;
    margin: 0 auto;
    padding: 24px;
    position: relative;
    z-index: 1;
}

/* ---------- UNIVERSAL CARD ---------- */
.box {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-card);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: border-color var(--duration-normal) var(--ease-out-expo),
                box-shadow var(--duration-normal) var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.box::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--duration-slow) var(--ease-out-expo);
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
                var(--accent-glow),
                transparent 40%);
}

.box:hover::after {
    opacity: 1;
}

/* ---------- NAVBAR ---------- */
.navbar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: sticky;
    top: 24px;
    z-index: 10;
    align-self: start;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    overflow: visible !important;
}

.navbar::after { display: none; }

.navbar > div {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    transition: border-color var(--duration-normal) var(--ease-out-expo),
                box-shadow var(--duration-normal) var(--ease-out-expo);
}

.navbar > div:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}

.navbar .box {
    background: var(--bg-card);
}

.navbar .theme,
.navbar .nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 8px;
    cursor: pointer;
    text-transform: uppercase;
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.6px;
    color: var(--text-tertiary);
}

.navbar ion-icon {
    font-size: 26px;
    display: block;
    margin-bottom: 4px;
    transition: color var(--duration-fast) var(--ease-out-expo),
                transform var(--duration-fast) var(--ease-out-expo);
}

.navbar .nav .item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: inherit;
}

.navbar .nav .item.active,
.navbar .nav .item:hover {
    color: var(--accent);
}

.navbar .nav .item:hover ion-icon {
    transform: translateY(-2px);
}

.navbar .divider {
    display: none;
}

.navbar .theme .item {
    cursor: pointer;
}

/* ---------- PROFILE CARD ---------- */
.profile {
    overflow: visible;
    position: sticky;
    top: 24px;
    align-self: start;
    height: fit-content;
    max-height: calc(100vh - 48px);
}

.profile .header {
    height: 190px;
    width: 100%;
    object-fit: cover;
    display: block;
    mask-image: linear-gradient(to bottom, #000 0%, #000 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 60%, transparent 100%);
}

.profile .img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    margin: -60px auto 0;
    border: 5px solid var(--bg-card-solid);
    box-shadow: 0 0 0 3px var(--accent), var(--shadow-lg);
    transition: transform var(--duration-slow) var(--ease-spring),
                box-shadow var(--duration-slow) var(--ease-out-expo);
    z-index: 1;
}

.profile .img:hover {
    transform: scale(1.06);
    box-shadow: 0 0 0 4px var(--accent), 0 0 30px var(--accent-glow), var(--shadow-xl);
}

.profile h2 {
    font-size: var(--text-2xl);
    font-weight: 800;
    margin-top: 16px;
    letter-spacing: -0.6px;
    color: var(--text-primary);
}

.profile .colored {
    color: var(--accent);
    font-weight: 500;
    font-size: var(--text-sm);
    margin-top: 4px;
    display: inline-block;
    min-height: 22px;
}

.profile ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 28px 0 60px 0;
}

.profile ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    transition: all var(--duration-normal) var(--ease-out-expo);
}

.profile ul li a:hover {
    border-color: var(--accent);
    background: var(--accent-glow);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.profile ul ion-icon {
    font-size: 20px;
    color: var(--text-secondary);
    transition: color var(--duration-fast) var(--ease-out-expo);
}

.profile ul li a:hover ion-icon {
    color: var(--accent);
}

.profile .footer {
    padding: 0 20px 20px;
}

.profile .footer table {
    width: 100%;
}

.profile .footer td a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dim));
    color: #FFF;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: var(--text-sm);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all var(--duration-normal) var(--ease-out-expo);
    box-shadow: 0 4px 16px var(--accent-glow);
}

.profile .footer td a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px var(--accent-glow-strong);
    filter: brightness(1.1);
}

.profile .footer td a ion-icon {
    color: #FFF;
    font-size: 18px;
}

/* ---------- CONTENT AREA ---------- */
.content {
    padding: 36px 40px;
    text-align: left;
    overflow: visible;
}

.content .wrapper {
    scroll-behavior: smooth;
}

/* ---------- SECTION HEADERS ---------- */
.content h2 {
    font-size: var(--text-3xl);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 8px;
    color: var(--text-primary);
    line-height: 1.2;
}

.content h2 .colored {
    color: var(--accent);
    position: relative;
}

.section-header {
    margin-bottom: var(--space-lg);
}

.section-divider {
    height: 1px;
    width: 60px;
    background: var(--accent);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-lg);
    opacity: 0.6;
}

/* ---------- PARAGRAPHS ---------- */
.content > .wrapper > p {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: var(--space-lg);
    max-width: 72ch;
}

.content > .wrapper > p strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* ---------- DIVIDERS ---------- */
.divider {
    height: 1px;
    width: 100%;
    margin: 20px 0;
}

.ltr {
    background: linear-gradient(to right, var(--accent), transparent);
    opacity: 0.25;
}

.rtl {
    background: linear-gradient(to left, var(--accent), transparent);
    opacity: 0.25;
}

/* ---------- ACHIEVEMENTS (BENTO ROW) ---------- */
.achievements {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 40px 0;
}

.achievements > div {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    text-align: center;
    transition: all var(--duration-normal) var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.achievements > div::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-out-expo);
}

.achievements > div:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.achievements > div:hover::before {
    opacity: 1;
}

.achievements h3 {
    font-size: var(--text-4xl);
    font-weight: 900;
    color: var(--accent);
    letter-spacing: -1.5px;
    line-height: 1;
    margin-bottom: 8px;
}

.achievements ion-icon {
    font-size: 20px;
    color: var(--accent);
    margin-bottom: 6px;
}

.achievements p {
    color: var(--text-tertiary);
    font-size: var(--text-sm);
    font-weight: 500;
}

/* ---------- SKILLS (BENTO GRID 4×2) ---------- */
.skills {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin: 32px 0;
}

.skills > div {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 28px 16px 22px;
    text-align: center;
    transition: all var(--duration-normal) var(--ease-out-expo);
    cursor: default;
    position: relative;
}

.skills > div::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-out-expo);
    background: linear-gradient(135deg, var(--accent), transparent 60%);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    padding: 1px;
}

.skills > div:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.skills > div:hover::after {
    opacity: 1;
}

.skills i {
    font-size: 44px;
    display: block;
    margin-bottom: 12px;
    color: var(--accent);
    transition: transform var(--duration-normal) var(--ease-spring);
}

.skills > div:hover i {
    transform: scale(1.15);
}

.skills p {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-secondary);
    transition: color var(--duration-fast) var(--ease-out-expo);
}

.skills > div:hover p {
    color: var(--text-primary);
}

/* ---------- SUBSECTION TITLES ---------- */
.subsection-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin: 36px 0 16px 0;
    padding: 10px 18px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-full);
    transition: all var(--duration-normal) var(--ease-out-expo);
}

.subsection-title ion-icon {
    font-size: 18px;
    color: var(--accent);
}

.subsection-title:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

/* ---------- EXPERIENCES (TIMELINE) ---------- */
.experiences {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 28px 0;
    padding-left: 32px;
    border-left: 2px solid var(--border-subtle);
    position: relative;
}

.experience {
    position: relative;
    padding: 24px 28px;
    margin-bottom: 12px;
    margin-left: 20px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    transition: all var(--duration-normal) var(--ease-out-expo);
}

.experience::before {
    content: '';
    position: absolute;
    left: -38px;
    top: 32px;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--accent-glow);
    transition: box-shadow var(--duration-normal) var(--ease-out-expo);
}

.experience:hover {
    border-color: var(--border-hover);
    transform: translateX(6px);
    box-shadow: var(--shadow-md);
}

.experience:hover::before {
    box-shadow: 0 0 20px var(--accent-glow-strong);
}

.experience h2 {
    font-size: var(--text-xl) !important;
    font-weight: 700 !important;
    margin-bottom: 4px !important;
    color: var(--text-primary);
}

.experience h4 {
    font-size: var(--text-sm);
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 10px;
}

.experience .date {
    display: inline-block;
    padding: 3px 10px;
    background: var(--bg-input);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--text-tertiary);
    font-family: var(--font-mono);
    border: 1px solid var(--border-subtle);
}

.experience p {
    color: var(--text-secondary);
    font-size: var(--text-base);
    line-height: 1.65;
    margin-top: 8px;
}

/* ---------- GITHUB CONTRIBUTIONS ---------- */
.contributions {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px;
    margin: 28px 0;
    text-align: center;
    transition: all var(--duration-normal) var(--ease-out-expo);
}

.contributions:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.contributions img {
    border-radius: var(--radius-sm);
    max-width: 100%;
    height: auto;
}

/* ---------- PROJECTS ---------- */
.projects {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 28px 0;
}

.projects > div {
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    aspect-ratio: 16 / 10;
    border: 2px solid transparent;
    transition: all var(--duration-normal) var(--ease-out-expo);
    box-shadow: var(--shadow-md);
    background: var(--bg-card-solid);
}

.projects > div:hover {
    border-color: var(--accent);
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.projects div img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    transition: transform var(--duration-slow) var(--ease-out-expo),
                filter var(--duration-slow) var(--ease-out-expo);
}

.projects div:hover img {
    filter: brightness(0.3) saturate(1.2);
    transform: scale(1.08);
}

.projects .project-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    pointer-events: none;
}

.projects h3 {
    font-size: var(--text-xl);
    font-weight: 800;
    color: #FFF;
    text-align: center;
    opacity: 0;
    transform: translateY(16px);
    transition: all var(--duration-normal) var(--ease-out-expo);
}

.projects div:hover h3 {
    opacity: 1;
    transform: translateY(0);
}

.projects .project-tags {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    opacity: 0;
    transform: translateY(12px);
    transition: all var(--duration-normal) var(--ease-out-expo);
    transition-delay: 50ms;
}

.projects div:hover .project-tags {
    opacity: 1;
    transform: translateY(0);
}

.projects .project-tags span {
    font-size: var(--text-xs);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.9);
    font-weight: 500;
}

/* ---------- CONTACT FORM ---------- */
.contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 28px 0;
}

.contact > div:nth-child(6),
.contact > div:nth-child(7),
.contact > div:nth-child(8) {
    grid-column: 1 / -1;
}

.contact .input {
    width: 100%;
    background: var(--bg-input);
    border: 2px solid var(--border-subtle);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    padding: 15px 18px;
    font-size: var(--text-base);
    font-family: var(--font-sans);
    outline: none;
    transition: all var(--duration-fast) var(--ease-out-expo);
}

.contact .input::placeholder {
    color: var(--text-tertiary);
    font-weight: 400;
}

.contact .input:hover {
    border-color: var(--text-tertiary);
}

.contact .input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow);
    background: var(--bg-card-solid);
}

.contact textarea.input {
    resize: vertical;
    min-height: 140px;
}

.contact .submit {
    background: linear-gradient(135deg, var(--accent), var(--accent-dim));
    color: #FFF;
    border: none;
    padding: 16px 48px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: var(--text-sm);
    letter-spacing: 1.2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all var(--duration-normal) var(--ease-out-expo);
    box-shadow: 0 4px 20px var(--accent-glow);
    text-transform: uppercase;
}

.contact .submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255,255,255,0.15), transparent);
    transform: translateX(-100%);
    transition: transform var(--duration-slow) var(--ease-out-expo);
}

.contact .submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px var(--accent-glow-strong);
    filter: brightness(1.1);
}

.contact .submit:hover::before {
    transform: translateX(100%);
}

.contact .submit:active {
    transform: translateY(-1px);
}

.contact .submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    filter: grayscale(30%);
}

/* Form feedback messages */
.form-feedback {
    text-align: center;
    font-size: var(--text-sm);
    font-weight: 500;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    display: none;
    animation: fadeSlideIn var(--duration-normal) var(--ease-out-expo);
}

.form-feedback.success {
    display: block;
    background: rgba(0, 212, 170, 0.08);
    border: 1px solid rgba(0, 212, 170, 0.25);
    color: var(--accent);
}

.form-feedback.error {
    display: block;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #EF4444;
}

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

/* ---------- SCROLL REVEAL ---------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--duration-slow) var(--ease-out-expo),
                transform var(--duration-slow) var(--ease-out-expo);
}

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

/* Stagger delays for grid children */
.skills > div:nth-child(1) { transition-delay: 0ms; }
.skills > div:nth-child(2) { transition-delay: 50ms; }
.skills > div:nth-child(3) { transition-delay: 100ms; }
.skills > div:nth-child(4) { transition-delay: 150ms; }
.skills > div:nth-child(5) { transition-delay: 200ms; }
.skills > div:nth-child(6) { transition-delay: 250ms; }
.skills > div:nth-child(7) { transition-delay: 300ms; }
.skills > div:nth-child(8) { transition-delay: 350ms; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-root); }
::-webkit-scrollbar-thumb {
    background: var(--text-tertiary);
    border-radius: var(--radius-full);
    border: 2px solid var(--bg-root);
}
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* Selection */
::selection {
    background: var(--accent);
    color: #000;
}

/* ---------- RESPONSIVE ---------- */

/* 1440px+ (Large Desktop) */
@media screen and (width >= 1440px) {
    .container {
        grid-template-columns: 95px 460px 1fr;
    }
}

/* 1200px – 1439px (Desktop) */
@media screen and (width >= 1200px) and (width < 1440px) {
    .container {
        grid-template-columns: 88px 420px 1fr;
    }
}

/* 1024px – 1199px (Small Desktop) */
@media screen and (width >= 1024px) and (width < 1200px) {
    .container {
        grid-template-columns: 82px 370px 1fr;
        gap: 14px;
        padding: 18px;
    }
    .content { padding: 28px 24px; }
    .content h2 { font-size: var(--text-2xl); }
    .achievements { gap: 10px; }
    .achievements h3 { font-size: 2.6rem; }
    .skills { grid-template-columns: repeat(4, 1fr); gap: 10px; }
    .skills i { font-size: 36px; }
}

/* 769px – 1023px (Tablet) */
@media screen and (width >= 769px) and (width < 1024px) {
    .container {
        grid-template-columns: 80px 330px 1fr;
        gap: 12px;
        padding: 14px;
    }
    .content { padding: 24px 20px; }
    .content h2 { font-size: 1.8rem; }
    .content > .wrapper > p { font-size: var(--text-base); }

    .achievements {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .achievements > div { padding: 20px 12px; }
    .achievements h3 { font-size: 2rem; }

    .skills { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .skills i { font-size: 34px; }

    .experiences { padding-left: 24px; }
    .experience { padding: 18px 16px; margin-left: 14px; }
    .experience::before { left: -30px; }

    .projects { gap: 14px; }
    .projects h3 { font-size: var(--text-lg); }
}

/* ≤ 768px (Mobile) */
@media screen and (width <= 768px) {
    .container {
        grid-template-columns: 1fr;
        max-width: 100%;
        width: 100%;
        padding: 10px;
        gap: 10px;
    }

    .profile {
        position: static;
        max-height: none;
    }

    .navbar {
        display: grid;
        grid-template-columns: auto 1fr;
        position: static;
        flex-direction: row;
    }
    .navbar .nav {
        flex-direction: row;
        padding: 10px 4px;
    }
    .navbar .nav .item a { gap: 0; }
    .navbar ion-icon { font-size: 22px; }
    .navbar .nav p { display: none; }
    .navbar .divider { display: none; }

    .profile .header { height: 140px; }
    .profile .img { width: 110px; height: 110px; margin-top: -45px; }
    .profile h2 { font-size: 1.5rem; }
    .profile ul { gap: 4px; margin: 22px 0 40px 0; }
    .profile ul li a { width: 38px; height: 38px; }
    .profile ul ion-icon { font-size: 18px; }

    .content { padding: 24px 16px; }
    .content h2 { font-size: 1.6rem; }
    .content > .wrapper > p { font-size: var(--text-base); }
    section { margin: 32px auto; }

    .achievements { grid-template-columns: 1fr; gap: 10px; }
    .achievements > div { padding: 20px; }
    .achievements h3 { font-size: 2.2rem; }

    .skills { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .skills > div { padding: 22px 12px 16px; }
    .skills i { font-size: 36px; }

    .experiences { padding-left: 20px; }
    .experience { padding: 16px 14px; margin-left: 10px; }
    .experience::before { left: -26px; top: 24px; width: 10px; height: 10px; }
    .experience h4 { font-size: 0.8rem; }

    .projects { grid-template-columns: 1fr; gap: 14px; }
    .projects > div { aspect-ratio: 16/9; }

    .contact { grid-template-columns: 1fr; }
    .contact .submit { width: 100%; padding: 14px 24px; }
}
