/* ============================================================
   Dev Agency — Modern Business Theme
   Dark mode · Glassmorphism · Smooth animations
   ============================================================ */

/* ----------------------------- Variables ----------------------------- */

:root {
    --bg: #0a0a0f;
    --bg-elevated: #12121a;
    --bg-card: #1a1a26;
    --bg-input: #222230;
    --surface: #242433;
    --border: #2e2e40;
    --text: #ffffff;
    --text-muted: #9aa0ab;
    --text-dim: #6b7280;
    --primary: #7c5cff;
    --primary-dark: #5e3fd6;
    --primary-light: #9d8aff;
    --secondary: #00d4ff;
    --accent: #a855f7;
    --success: #16a34a;
    --danger: #dc2626;
    --warning: #ca8a04;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-purple: linear-gradient(135deg, #7c5cff 0%, #a855f7 100%);
    --gradient-cyan: linear-gradient(135deg, #00d4ff 0%, #22d3ee 100%);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(124, 92, 255, 0.25);
    --radius: 14px;
    --radius-sm: 8px;
    --radius-lg: 24px;
    --nav-height: 72px;
    --gutter: 24px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --container: 1240px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease;
}

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

ul {
    list-style: none;
}

/* ----------------------------- Container ----------------------------- */

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ----------------------------- Header / Nav ----------------------------- */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(10, 10, 15, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-height);
}

.nav-logo {
    font-size: 1.45rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.nav-logo-img {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    object-fit: contain;
    border-radius: 8px;
}

.nav-logo-text {
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text);
    position: relative;
    padding: 6px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.25s ease;
}

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

.nav-link:hover {
    color: var(--primary-light);
}

.nav-user a {
    color: var(--text);
    font-weight: 600;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: 0;
    color: var(--text);
    -webkit-tap-highlight-color: transparent;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ----------------------------- Buttons ----------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 6px 20px rgba(124, 92, 255, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(124, 92, 255, 0.45);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--border);
}

.btn-full {
    width: 100%;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

/* ----------------------------- Section base ----------------------------- */

.section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-size: clamp(1.65rem, 5.5vw, 2.3rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #b8b8d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: clamp(1rem, 3.2vw, 1.1rem);
    margin-bottom: clamp(32px, 6vw, 60px);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ----------------------------- Hero ----------------------------- */

.hero {
    padding: clamp(120px, 18vw, 160px) 0 clamp(70px, 10vw, 100px);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(124, 92, 255, 0.15) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.12) 0%, transparent 70%);
    animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-30px, 40px) rotate(180deg); }
}

.hero-container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: clamp(32px, 5vw, 60px);
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    min-width: 0;
}

.hero-greeting {
    font-size: clamp(1rem, 3.2vw, 1.15rem);
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-greeting::before {
    content: '';
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    background: var(--secondary);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--secondary);
}

.hero-name {
    font-size: clamp(2.1rem, 8vw, 3.8rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -0.04em;
    overflow-wrap: break-word;
}

.hero-role {
    font-size: clamp(1.2rem, 4.4vw, 1.75rem);
    color: var(--text-dim);
    font-weight: 500;
    margin-bottom: 20px;
    min-height: 40px;
    overflow-wrap: break-word;
}

.hero-description {
    font-size: clamp(1rem, 3.4vw, 1.15rem);
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 520px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.hero-social {
    display: flex;
    gap: 14px;
}

.social-link {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    background: var(--surface);
    border-radius: 11px;
    transition: all 0.25s ease;
}

.social-link svg {
    width: 20px;
    height: 20px;
    fill: var(--text);
}

.social-link:hover {
    background: var(--gradient);
    transform: translateY(-3px);
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-blob {
    position: absolute;
    width: min(420px, 84vw);
    height: min(420px, 84vw);
    background: var(--gradient);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    filter: blur(60px);
    opacity: 0.35;
    animation: blob 15s ease-in-out infinite;
    z-index: 1;
}

@keyframes blob {
    0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; transform: translate(0, 0) scale(1); }
    33% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; transform: translate(20px, -30px) scale(1.05); }
    66% { border-radius: 30% 70% 70% 30% / 60% 40% 70% 30%; transform: translate(-20px, 20px) scale(0.95); }
}

.hero-avatar {
    position: relative;
    z-index: 2;
    width: min(320px, 70vw);
    height: min(320px, 70vw);
    background: var(--bg-card);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: clamp(18px, 5vw, 28px);
    display: grid;
    place-items: center;
    font-size: clamp(2.6rem, 13vw, 5rem);
    font-weight: 800;
    color: var(--primary-light);
    box-shadow: var(--shadow);
}

.hero-avatar.has-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 26px;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 60px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scroll-down:hover {
    border-color: var(--primary);
}

.scroll-down span {
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    animation: scroll 2s ease-in-out infinite;
}

.scroll-down span:last-child {
    animation-delay: 0.3s;
}

@keyframes scroll {
    0%, 100% { opacity: 1; transform: translateY(0); }
    50% { opacity: 0.4; transform: translateY(8px); }
}

/* ----------------------------- About ----------------------------- */

.about {
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 0.9fr 1.2fr;
    gap: clamp(32px, 5vw, 60px);
    align-items: start;
}

.about-avatar {
    width: min(340px, 74vw);
    height: min(340px, 74vw);
    background: var(--bg-card);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: clamp(16px, 4vw, 24px);
    display: grid;
    place-items: center;
    font-size: clamp(2.2rem, 10vw, 4.5rem);
    font-weight: 800;
    color: var(--primary-light);
    margin: 0 auto;
    box-shadow: var(--shadow);
}

.about-avatar.has-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 22px;
}

.about-text h3 {
    font-size: clamp(1.4rem, 4.4vw, 1.85rem);
    margin-bottom: 20px;
    overflow-wrap: break-word;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 16px;
    overflow-wrap: break-word;
}

.about-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 24px;
    margin-top: 28px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.info-label {
    font-size: 0.85rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.info-value {
    font-weight: 600;
    color: var(--text);
}

.info-value.available {
    color: var(--success);
}

/* ----------------------------- Services ----------------------------- */

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 26px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(124, 92, 255, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    font-size: 2.2rem;
    margin-bottom: 18px;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    background: rgba(124, 92, 255, 0.1);
    border-radius: 12px;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ----------------------------- Skills ----------------------------- */

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

.skill-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    transition: all 0.3s ease;
}

.skill-card:hover {
    border-color: rgba(0, 212, 255, 0.4);
    transform: translateY(-4px);
}

.skill-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    background: var(--surface);
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 1.5rem;
}

.skill-icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.skill-card h3 {
    font-size: 1.2rem;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-card ul {
    display: grid;
    gap: 10px;
}

.skill-card li {
    color: var(--text-muted);
    font-size: 0.95rem;
    padding: 6px 10px;
    background: var(--bg-input);
    border-radius: 8px;
}

/* ----------------------------- Team ----------------------------- */

.team {
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 100%);
}

/* 3 cards per row on every screen size. Below 900px the grid turns into a
   swipeable horizontal carousel (see the responsive section) instead of
   collapsing to a single column. */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.team-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 24px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 0;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.team-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 212, 255, 0.4);
}

.team-card:hover::before {
    transform: scaleX(1);
}

.team-card-avatar {
    width: clamp(76px, 18vw, 100px);
    height: clamp(76px, 18vw, 100px);
    margin: 0 auto 18px;
    background: var(--bg-input);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
}

.team-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.team-card h4 {
    font-size: clamp(1.08rem, 3.2vw, 1.25rem);
    margin-bottom: 4px;
    overflow-wrap: break-word;
}

.team-card-role {
    color: var(--primary-light);
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.team-card-bio {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.team-card-social {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.team-card-social a {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    background: var(--bg-input);
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dim);
    transition: all 0.25s ease;
}

.team-card-social a:hover {
    background: var(--gradient);
    color: #fff;
}

/* ----------------------------- Experience ----------------------------- */

.exp-timeline {
    display: grid;
    gap: 24px;
}

.exp-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 28px;
    display: flex;
    gap: 24px;
    transition: all 0.3s ease;
}

.exp-card:hover {
    border-color: rgba(0, 212, 255, 0.4);
    transform: translateX(6px);
}

.exp-logo {
    width: 72px;
    height: 72px;
    min-width: 72px;
    background: var(--bg-input);
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text);
}

.exp-logo img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.exp-top {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 12px;
    flex: 1;
    min-width: 0;
    flex-wrap: wrap;
}

.exp-top h3 {
    font-size: clamp(1.08rem, 3.2vw, 1.2rem);
    margin-bottom: 4px;
    overflow-wrap: break-word;
}

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

.exp-badge {
    padding: 5px 12px;
    background: var(--surface);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

.exp-time {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin: 8px 0;
}

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

/* ----------------------------- Projects ----------------------------- */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
}

.project-image {
    height: 170px;
    background: var(--gradient);
    position: relative;
    overflow: hidden;
}

.project-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(0deg, var(--bg-card) 0%, transparent 50%);
}

.project-image[data-color="1"] { background: linear-gradient(135deg, #7c5cff 0%, #9d8aff 100%); }
.project-image[data-color="2"] { background: linear-gradient(135deg, #00d4ff 0%, #22d3ee 100%); }
.project-image[data-color="3"] { background: linear-gradient(135deg, #a855f7 0%, #c084fc 100%); }
.project-image[data-color="4"] { background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%); }
.project-image[data-color="5"] { background: linear-gradient(135deg, #10b981 0%, #34d399 100%); }

.project-content {
    padding: 24px;
}

.project-content h3 {
    font-size: clamp(1.1rem, 3.2vw, 1.25rem);
    margin-bottom: 8px;
    overflow-wrap: break-word;
}

.project-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 14px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.project-tags span {
    padding: 4px 10px;
    background: var(--bg-input);
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.project-links {
    display: flex;
    gap: 14px;
}

.project-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-light);
}

.project-link:hover {
    color: var(--secondary);
}

/* Projects page filters */
.project-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 0 0 24px;
}

.project-filters input[type="search"] {
    flex: 1 1 240px;
    min-width: 0;
    padding: 10px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 0.95rem;
    font-family: inherit;
}

.project-filters input[type="search"]:focus {
    outline: none;
    border-color: var(--primary);
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.25s ease;
}

.filter-chip:hover {
    border-color: rgba(0, 212, 255, 0.4);
    color: var(--text);
}

.filter-chip.active {
    background: var(--gradient);
    border-color: transparent;
    color: #fff;
}

.filter-chip-n {
    font-size: 0.75rem;
    opacity: 0.75;
}

/* ----------------------------- Library ----------------------------- */

.library-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.library-card {
    display: flex;
    flex-direction: column;
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    transition: all 0.3s ease;
    min-width: 0;
}

.library-card:hover {
    transform: translateY(-6px);
    border-color: rgba(124, 92, 255, 0.4);
    box-shadow: var(--shadow);
}

.library-card-featured {
    border-color: rgba(124, 92, 255, 0.35);
}

.library-card-featured::after {
    content: '★';
    position: absolute;
    top: 14px;
    right: 16px;
    color: var(--primary-light);
    font-size: 0.85rem;
}

.library-card-top {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
}

.library-icon {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    background: var(--surface);
    border-radius: 12px;
    font-size: 1.4rem;
    line-height: 1;
}

.library-icon[data-color="1"] { background: rgba(124, 92, 255, 0.14); }
.library-icon[data-color="2"] { background: rgba(0, 212, 255, 0.14); }
.library-icon[data-color="3"] { background: rgba(168, 85, 247, 0.14); }
.library-icon[data-color="4"] { background: rgba(245, 158, 11, 0.14); }
.library-icon[data-color="5"] { background: rgba(16, 185, 129, 0.14); }

.library-card-heading {
    min-width: 0;
    padding-right: 18px;
}

.library-title {
    font-size: clamp(1.05rem, 3vw, 1.15rem);
    margin-bottom: 6px;
    overflow-wrap: break-word;
}

.library-desc {
    color: var(--text-muted);
    font-size: 0.93rem;
    margin-bottom: 18px;
    flex: 1;
}

.library-open {
    align-self: flex-start;
    margin-top: auto;
}

/* ----------------------------- Blog ----------------------------- */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s ease;
    min-width: 0;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.blog-cover {
    position: relative;
    height: 190px;
    overflow: hidden;
}

.blog-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-cover img {
    transform: scale(1.08);
}

.blog-cover .featured-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 12px;
    background: rgba(168, 85, 247, 0.9);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.blog-body {
    padding: 24px;
}

.blog-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.cat-tag, .lang-tag {
    padding: 3px 10px;
    background: var(--bg-input);
    border-radius: 6px;
    font-size: 0.78rem;
    color: var(--text-dim);
}

.blog-title {
    font-size: clamp(1.1rem, 3.2vw, 1.2rem);
    margin-bottom: 10px;
    overflow-wrap: break-word;
}

.blog-title a:hover {
    color: var(--primary-light);
}

.blog-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-light);
}

.read-more span {
    transition: transform 0.25s ease;
}

.read-more:hover span {
    transform: translateX(4px);
}

/* Featured card + meta row + inline share buttons (blog list) */

.blog-card-featured {
    border-color: rgba(168, 85, 247, 0.45);
}

.blog-cover-fallback {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    min-height: 190px;
    font-size: 3rem;
    background: var(--gradient-purple);
    opacity: 0.85;
}

.blog-meta,
.post-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    font-size: 0.82rem;
    color: var(--text-dim);
    margin-bottom: 16px;
}

.blog-meta-item,
.post-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.post-meta-dot {
    color: var(--text-dim);
    opacity: 0.6;
}

.blog-share-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.blog-share-mini a {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    background: var(--bg-input);
    border-radius: 9px;
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: all 0.25s ease;
}

.blog-share-mini a:hover {
    background: var(--gradient);
    color: #fff;
    transform: translateY(-2px);
}

/* ----------------------------- Single post ----------------------------- */

.page-top {
    padding-top: calc(var(--nav-height) + clamp(40px, 8vw, 72px));
}

.page-top .section-title {
    margin-bottom: 32px;
}

.empty-box {
    padding: 48px 24px;
    text-align: center;
    color: var(--text-dim);
    background: var(--bg-card);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
}

.post-wrap {
    max-width: 820px;
    margin: 0 auto;
}

.post-crumb {
    margin-bottom: 20px;
}

.post-hero {
    margin-bottom: 4px;
}

.post-hero-media {
    margin: 0 0 24px;
    border: 1px solid var(--border);
    border-radius: clamp(14px, 3vw, var(--radius-lg));
    overflow: hidden;
    background: var(--bg-card);
}

.post-hero-media img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.post-hero-fallback {
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 9;
    font-size: clamp(2.5rem, 10vw, 4rem);
    background: var(--gradient-purple);
    opacity: 0.85;
}

.post-kicker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    margin-bottom: 14px;
    font-size: 0.85rem;
    color: var(--text-dim);
}

.featured-badge-static {
    position: static;
    top: auto;
    left: auto;
}

.post-hero-title {
    font-size: clamp(1.7rem, 6vw, 2.8rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 14px;
    overflow-wrap: break-word;
}

.post-lede {
    color: var(--text-muted);
    font-size: clamp(1rem, 3.4vw, 1.1rem);
    margin-bottom: 18px;
    overflow-wrap: break-word;
}

.post-author-avatar {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--gradient);
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
    flex: 0 0 30px;
}

.post-divider {
    border: 0;
    border-top: 1px solid var(--border);
    margin: clamp(28px, 5vw, 40px) 0;
}

/* ----------------------------- Rich post body ----------------------------- */

.post-rich {
    font-size: 1.02rem;
    line-height: 1.8;
    color: var(--text-muted);
    overflow-wrap: break-word;
}

.post-rich > * + * {
    margin-top: 1.1em;
}

.post-rich h1,
.post-rich h2,
.post-rich h3,
.post-rich h4 {
    color: var(--text);
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin: 1.8em 0 0;
}

.post-rich > :first-child {
    margin-top: 0;
}

.post-rich h1 { font-size: clamp(1.5rem, 5vw, 2rem); }
.post-rich h2 { font-size: clamp(1.35rem, 4.4vw, 1.7rem); }
.post-rich h3 { font-size: clamp(1.18rem, 3.8vw, 1.4rem); }
.post-rich h4 { font-size: clamp(1.05rem, 3.4vw, 1.15rem); }

.post-rich strong,
.post-rich b {
    color: var(--text);
}

.post-rich a {
    color: var(--primary-light);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.post-rich ul,
.post-rich ol {
    padding-left: 1.4em;
}

.post-rich ul { list-style: disc; }
.post-rich ol { list-style: decimal; }

.post-rich li + li {
    margin-top: 0.4em;
}

.post-rich blockquote {
    border-left: 3px solid var(--primary);
    background: rgba(124, 92, 255, 0.07);
    padding: 14px 18px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text);
}

.post-rich pre {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 0.88rem;
    line-height: 1.6;
}

.post-rich code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.9em;
}

.post-rich :not(pre) > code {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 2px 6px;
}

.post-rich hr {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 2em 0;
}

.post-rich img {
    border-radius: var(--radius-sm);
}

.blog-grid-related {
    grid-template-columns: repeat(3, 1fr);
}

.blog-grid-related .blog-body {
    padding: 20px;
}

/* ----------------------------- Contact ----------------------------- */

.contact {
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 100%);
}

.contact-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: clamp(1rem, 3.2vw, 1.1rem);
    margin-bottom: 40px;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: clamp(24px, 5vw, 40px);
}

.form-group {
    margin-bottom: 20px;
}

.form-group-full {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 13px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-family: var(--font);
    font-size: 0.95rem;
    transition: all 0.25s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.form-submit {
    width: 100%;
    margin-top: 10px;
}

.form-status {
    text-align: center;
    margin-top: 20px;
    font-weight: 500;
}

/* ----------------------------- Footer ----------------------------- */

.footer {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    padding: 40px 0;
    padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
    text-align: center;
}

.footer p {
    color: var(--text-dim);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.back-to-top {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border-radius: 10px;
    color: var(--text);
    transition: all 0.25s ease;
}

.back-to-top:hover {
    background: var(--gradient);
    color: #fff;
    transform: translateY(-3px);
}

/* ----------------------------- Reveal animation ----------------------------- */

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ----------------------------- Auth pages ----------------------------- */

.auth-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px var(--gutter);
    position: relative;
    overflow: hidden;
}

.auth-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(124, 92, 255, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(0, 212, 255, 0.12) 0%, transparent 50%);
    z-index: 0;
}

.auth-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 460px;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 44px 40px;
    box-shadow: var(--shadow);
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.auth-header h1 {
    font-size: 1.75rem;
    margin-bottom: 8px;
}

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

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-form .form-group {
    margin-bottom: 0;
}

.auth-form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 7px;
    color: var(--text);
}

.auth-form input {
    width: 100%;
    padding: 13px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-family: var(--font);
    font-size: 0.95rem;
    transition: all 0.25s ease;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.15);
}

.auth-form input:disabled {
    background: var(--bg-elevated);
    color: var(--text-dim);
    cursor: not-allowed;
}

.field-hint {
    display: block;
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-top: 5px;
}

.auth-footer {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 24px;
}

.auth-footer a {
    color: var(--primary-light);
    font-weight: 600;
}

.auth-footer a:hover {
    color: var(--secondary);
}

/* ----------------------------- Forms / tables (reused) ----------------------------- */

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.form-actions .btn {
    flex: 1;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.help {
    display: block;
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-top: 5px;
}

.alert {
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.alert-error {
    background: rgba(220, 38, 38, 0.1);
    color: #fca5a5;
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.alert-success {
    background: rgba(22, 163, 74, 0.1);
    color: #86efac;
    border: 1px solid rgba(22, 163, 74, 0.3);
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.table thead {
    background: var(--bg-input);
}

.table th,
.table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.table th {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table td {
    font-size: 0.95rem;
}

.table tbody tr {
    transition: background 0.2s ease;
}

.table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.text-right {
    text-align: right;
}

.text-muted {
    color: var(--text-muted);
}

.muted {
    color: var(--text-dim);
}

.nowrap {
    white-space: nowrap;
}

.empty {
    padding: 40px !important;
    text-align: center;
    color: var(--text-dim) !important;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
}

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

.avatar-current img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.08);
}

.avatar-empty {
    width: 120px;
    height: 120px;
    background: #e2e8f0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 2rem;
    font-weight: 700;
    color: #475569;
}

/* Avatar + upload form side by side (profile page). */
.profile-row {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-unread {
    background: rgba(234, 179, 8, 0.15);
    color: #fcd34d;
}

.badge-read {
    background: rgba(124, 92, 255, 0.15);
    color: #c4b5fd;
}

.page-header {
    margin-bottom: 32px;
}

/* ----------------------------- Admin overrides ----------------------------- */

.admin-shell {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    padding: 24px 20px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar h1 {
    font-size: 1.25rem;
    margin-bottom: 24px;
    color: var(--text);
}

.sidebar nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 6px;
    color: var(--text-dim);
    transition: all 0.25s ease;
}

.sidebar nav a:hover,
.sidebar nav a.active {
    background: var(--bg-input);
    color: var(--text);
}

.user {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-dim);
}

.main {
    padding: 40px;
}

/* ----------------------------- Responsive ----------------------------- */

/* Large desktop — cap the grid a little earlier. */
@media (max-width: 1200px) {
    :root { --container: 1080px; }

    .services-grid,
    .projects-grid { gap: 20px; }
}

/* Tablet / small laptop — stack the hero, keep the 3-up team grid. */
@media (max-width: 1024px) {
    :root { --container: 1000px; }

    .hero-container { grid-template-columns: 1fr; gap: 40px; }
    .hero-content { text-align: center; max-width: 700px; margin: 0 auto; }
    .hero-description { margin-left: auto; margin-right: auto; }
    .hero-buttons,
    .hero-social { justify-content: center; }
    .hero-greeting { justify-content: center; }
    .hero-image { order: -1; }
    .scroll-down { display: none; }

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

    .about-content { grid-template-columns: 1fr; }
    .about-text { text-align: center; }
    .about-info { max-width: 520px; margin-left: auto; margin-right: auto; text-align: left; }

    .blog-cover, .blog-cover-fallback { height: 170px; min-height: 170px; }
}

/* Tablet — hamburger drawer. */
@media (max-width: 900px) {
    .team-grid {
        display: flex;
        gap: 16px;
        /* Run to the screen edge so the next card peeks in. */
        margin-inline: calc(var(--gutter) * -1);
        padding: 4px var(--gutter) 14px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scroll-padding-left: var(--gutter);
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .team-grid::-webkit-scrollbar {
        display: none;
    }

    .team-card {
        flex: 0 0 clamp(230px, 62%, 300px);
        scroll-snap-align: start;
        padding: 26px 20px;
    }

    .team-card:hover {
        transform: none;
    }
}

/* Phone */
@media (max-width: 768px) {
    :root {
        --nav-height: 62px;
        --gutter: 18px;
    }

    .nav-toggle {
        display: flex;
        margin-right: -8px;
    }

    /* Hamburger → X */
    .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle.open span:nth-child(2) { opacity: 0; }
    .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        max-height: calc(100vh - var(--nav-height));
        max-height: calc(100dvh - var(--nav-height));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        background: var(--bg-card);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px var(--gutter) 24px;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
        transform: translateY(-150%);
        transition: transform 0.3s ease, visibility 0.3s ease;
        visibility: hidden;
    }

    .nav-menu.open {
        transform: translateY(0);
        visibility: visible;
    }

    .nav-menu .nav-item { width: 100%; margin-bottom: 0; }
    .nav-menu .nav-link { display: block; padding: 11px 0; font-size: 1.02rem; }
    .nav-menu .nav-link::after { display: none; }
    .nav-menu .nav-item + .nav-item { border-top: 1px solid var(--border); }
    .nav-menu .btn {
        width: 100%;
        min-height: 46px;
        margin-top: 10px;
    }
    .nav-user { border-top: 1px solid var(--border); }

    body.nav-open { overflow: hidden; }

    .section { padding: clamp(56px, 12vw, 70px) 0; }
    .hero { padding: calc(var(--nav-height) + 48px) 0 56px; }

    .btn { min-height: 46px; padding: 12px 20px; }
    .hero-buttons .btn { flex: 1 1 auto; }

    .service-card { padding: 26px 22px; }
    .skills-grid { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .library-grid { grid-template-columns: 1fr; }

    .exp-card { flex-direction: column; gap: 16px; padding: 20px; }
    .exp-card:hover { transform: none; }
    .exp-logo { width: 56px; height: 56px; min-width: 56px; border-radius: 12px; font-size: 1.3rem; }
    .exp-logo img { width: 34px; height: 34px; }

    .project-image, .blog-cover, .blog-cover-fallback { height: 150px; min-height: 150px; }
    .blog-body, .project-content { padding: 20px; }

    .contact-form { padding: 24px 18px; }
    .auth-card { padding: 28px 20px; }
    .auth-page { align-items: flex-start; padding: 28px var(--gutter); }

    /* 16px minimum keeps iOS Safari from zooming when a field is focused. */
    .form-group input,
    .form-group textarea,
    .auth-form input,
    .project-filters input[type="search"] { font-size: 16px; }

    .form-row { grid-template-columns: 1fr; }
    .about-info { grid-template-columns: 1fr; gap: 14px; }
    .form-actions { flex-direction: column; }
    .form-actions .btn { width: 100%; }

    .filter-chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        margin-inline: calc(var(--gutter) * -1);
        padding: 2px var(--gutter) 8px;
    }

    .filter-chips::-webkit-scrollbar { display: none; }
    .filter-chip { flex: 0 0 auto; }

    .project-filters input[type="search"] { flex: 1 1 100%; }

    /* Wide tables scroll instead of blowing out the layout. */
    .table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .table > thead,
    .table > tbody { display: table; width: 100%; min-width: 560px; }
    .table th,
    .table td { padding: 12px 14px; }

    .avatar-current img { width: 96px; height: 96px; }
    .avatar-empty { width: 96px; height: 96px; }
    .profile-row { grid-template-columns: 1fr; gap: 1rem; justify-items: center; text-align: center; }
    .card { padding: 20px; }
    .flex-between { flex-wrap: wrap; gap: 10px; }
}

/* Small phone */
@media (max-width: 480px) {
    :root { --gutter: 16px; }

    html { font-size: 15px; }
    .hero-buttons { gap: 10px; }
    .hero-social { gap: 10px; }
    .social-link { width: 42px; height: 42px; }
    .team-card { flex-basis: min(78%, 260px); }
    .contact-form { padding: 22px 16px; }
    .post-rich { font-size: 1rem; }
    .blog-share-mini a { width: 40px; height: 40px; }
    .back-to-top { width: 44px; height: 44px; }
}

/* Respect users who ask for less motion. */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ----------------------------- Skip link ----------------------------- */

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--gradient);
    color: #fff;
    padding: 8px 16px;
    z-index: 9999;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}
