/*
 * ═══════════════════════════════════════════════════════════
 * GrandezSoft - Design System
 * Modern, premium dark theme with glassmorphism and gradients
 * ═══════════════════════════════════════════════════════════
 */

/* ─── 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;600&display=swap');

/* ─── CSS Custom Properties ─────────────────────────────── */
:root {
    /* Colors - Premium Dark Palette */
    --clr-bg-primary: #0a0a1a;
    --clr-bg-secondary: #0f0f2e;
    --clr-bg-tertiary: #141432;
    --clr-bg-card: rgba(20, 20, 50, 0.6);
    --clr-bg-glass: rgba(255, 255, 255, 0.03);
    --clr-bg-glass-hover: rgba(255, 255, 255, 0.06);

    /* Accent Colors */
    --clr-accent: #6C63FF;
    --clr-accent-light: #8B83FF;
    --clr-accent-dark: #4E47CC;
    --clr-accent-glow: rgba(108, 99, 255, 0.3);

    --clr-secondary: #FF6584;
    --clr-tertiary: #00C9A7;
    --clr-quaternary: #FFC75F;
    --clr-purple: #845EC2;

    /* Gradient */
    --gradient-primary: linear-gradient(135deg, #6C63FF 0%, #FF6584 50%, #FFC75F 100%);
    --gradient-accent: linear-gradient(135deg, #6C63FF 0%, #845EC2 100%);
    --gradient-hero: linear-gradient(160deg, #0a0a1a 0%, #0f0f2e 30%, #141432 60%, #0a0a1a 100%);
    --gradient-card: linear-gradient(145deg, rgba(108, 99, 255, 0.08) 0%, rgba(255, 101, 132, 0.04) 100%);

    /* Text */
    --clr-text-primary: #E8E8F0;
    --clr-text-secondary: #A0A0C0;
    --clr-text-muted: #6B6B8D;
    --clr-text-white: #FFFFFF;

    /* Borders */
    --clr-border: rgba(108, 99, 255, 0.15);
    --clr-border-hover: rgba(108, 99, 255, 0.35);

    /* Typography */
    --ff-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --ff-mono: 'JetBrains Mono', 'Fira Code', monospace;

    --fs-xs: 0.75rem;
    --fs-sm: 0.875rem;
    --fs-base: 1rem;
    --fs-md: 1.125rem;
    --fs-lg: 1.25rem;
    --fs-xl: 1.5rem;
    --fs-2xl: 2rem;
    --fs-3xl: 2.5rem;
    --fs-4xl: 3.5rem;
    --fs-5xl: 4.5rem;

    --fw-light: 300;
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;
    --fw-extrabold: 800;
    --fw-black: 900;

    --lh-tight: 1.2;
    --lh-base: 1.6;
    --lh-loose: 1.8;

    /* Spacing */
    --sp-xs: 0.25rem;
    --sp-sm: 0.5rem;
    --sp-md: 1rem;
    --sp-lg: 1.5rem;
    --sp-xl: 2rem;
    --sp-2xl: 3rem;
    --sp-3xl: 4rem;
    --sp-4xl: 6rem;
    --sp-5xl: 8rem;

    /* Layout */
    --container-max: 1200px;
    --container-padding: 1.5rem;

    /* Borders */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 30px var(--clr-accent-glow);
    --shadow-card: 0 4px 30px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Z-index */
    --z-behind: -1;
    --z-base: 1;
    --z-above: 10;
    --z-header: 100;
    --z-overlay: 500;
    --z-modal: 1000;
}

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

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--clr-accent) var(--clr-bg-secondary);
}

html::-webkit-scrollbar {
    width: 8px;
}

html::-webkit-scrollbar-track {
    background: var(--clr-bg-secondary);
}

html::-webkit-scrollbar-thumb {
    background: var(--clr-accent);
    border-radius: var(--radius-full);
}

body {
    font-family: var(--ff-primary);
    font-size: var(--fs-base);
    font-weight: var(--fw-regular);
    line-height: var(--lh-base);
    color: var(--clr-text-primary);
    background-color: var(--clr-bg-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

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

ul,
ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

input,
textarea {
    font-family: inherit;
    font-size: inherit;
}

/* ─── Layout ────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: var(--sp-5xl) 0;
    position: relative;
}

.section__header {
    text-align: center;
    margin-bottom: var(--sp-4xl);
}

.section__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-sm);
    padding: var(--sp-sm) var(--sp-lg);
    border-radius: var(--radius-full);
    background: var(--clr-bg-glass);
    border: 1px solid var(--clr-border);
    color: var(--clr-accent-light);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: var(--sp-lg);
    backdrop-filter: blur(10px);
}

.section__title {
    font-size: var(--fs-3xl);
    font-weight: var(--fw-bold);
    color: var(--clr-text-white);
    margin-bottom: var(--sp-md);
    letter-spacing: -0.02em;
}

.section__subtitle {
    font-size: var(--fs-md);
    color: var(--clr-text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: var(--lh-loose);
}

/* ─── Gradient Text ─────────────────────────────────────── */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ─── Navbar ────────────────────────────────────────────── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-header);
    transition: all var(--transition-base);
    padding: var(--sp-md) 0;
}

.site-header.scrolled {
    padding: var(--sp-sm) 0;
    background: rgba(10, 10, 26, 0.85);
    backdrop-filter: blur(20px) saturate(1.5);
    border-bottom: 1px solid var(--clr-border);
    box-shadow: var(--shadow-md);
}

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

.navbar__logo {
    display: flex;
    align-items: center;
    gap: var(--sp-sm);
    font-weight: var(--fw-bold);
    font-size: var(--fs-lg);
    color: var(--clr-text-white);
    position: relative;
    z-index: calc(var(--z-overlay) + 1);
}

.navbar__logo .logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--gradient-accent);
    border-radius: var(--radius-sm);
    font-size: var(--fs-base);
    color: white;
}

.navbar__menu {
    display: flex;
    align-items: center;
    gap: var(--sp-xs);
}

.navbar__link {
    display: flex;
    align-items: center;
    gap: var(--sp-sm);
    padding: var(--sp-sm) var(--sp-md);
    border-radius: var(--radius-sm);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    color: var(--clr-text-secondary);
    transition: all var(--transition-fast);
    position: relative;
}

.navbar__link:hover,
.navbar__link.active {
    color: var(--clr-text-white);
    background: var(--clr-bg-glass-hover);
}

.navbar__link-icon {
    font-size: var(--fs-xs);
    opacity: 0.7;
}

.navbar__toggle {
    display: none;
    position: relative;
    z-index: calc(var(--z-overlay) + 1);
    padding: var(--sp-sm);
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 24px;
}

.hamburger__line {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--clr-text-white);
    border-radius: 2px;
    transition: all var(--transition-base);
    transform-origin: center;
}

.navbar__toggle.active .hamburger__line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.navbar__toggle.active .hamburger__line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.navbar__toggle.active .hamburger__line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ─── Hero Section ──────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--gradient-hero);
    overflow: hidden;
    padding-top: 80px;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: var(--z-behind);
    overflow: hidden;
}

.hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.hero__orb--1 {
    width: 500px;
    height: 500px;
    background: var(--clr-accent);
    top: -10%;
    right: -5%;
    animation-delay: 0s;
}

.hero__orb--2 {
    width: 400px;
    height: 400px;
    background: var(--clr-secondary);
    bottom: -15%;
    left: -10%;
    animation-delay: -7s;
}

.hero__orb--3 {
    width: 300px;
    height: 300px;
    background: var(--clr-tertiary);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
    opacity: 0.2;
}

.hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(108, 99, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(108, 99, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero__content {
    text-align: center;
    z-index: var(--z-base);
    max-width: 800px;
    padding: 0 var(--container-padding);
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-sm);
    padding: var(--sp-sm) var(--sp-lg);
    border-radius: var(--radius-full);
    background: var(--clr-bg-glass);
    border: 1px solid var(--clr-border);
    color: var(--clr-accent-light);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    margin-bottom: var(--sp-xl);
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.8s ease-out;
}

.hero__badge .pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--clr-tertiary);
    animation: pulse 2s ease-in-out infinite;
}

.hero__title {
    font-size: var(--fs-5xl);
    font-weight: var(--fw-black);
    line-height: var(--lh-tight);
    color: var(--clr-text-white);
    margin-bottom: var(--sp-lg);
    letter-spacing: -0.03em;
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.hero__typing {
    display: block;
    min-height: 1.3em;
}

.hero__subtitle {
    font-size: var(--fs-lg);
    color: var(--clr-text-secondary);
    max-width: 600px;
    margin: 0 auto var(--sp-2xl);
    line-height: var(--lh-loose);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-md);
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero__scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-sm);
    color: var(--clr-text-muted);
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.hero__scroll-indicator {
    width: 24px;
    height: 40px;
    border: 2px solid var(--clr-border);
    border-radius: var(--radius-full);
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.hero__scroll-dot {
    width: 4px;
    height: 8px;
    background: var(--clr-accent);
    border-radius: var(--radius-full);
    animation: scrollDot 2s ease-in-out infinite;
}

/* ─── Buttons ───────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-sm);
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: var(--fw-semibold);
    font-size: var(--fs-sm);
    letter-spacing: 0.02em;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn--primary {
    background: var(--gradient-accent);
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px var(--clr-accent-glow), 0 8px 30px rgba(108, 99, 255, 0.3);
}

.btn--outline {
    background: transparent;
    color: var(--clr-text-white);
    border: 1px solid var(--clr-border);
    backdrop-filter: blur(10px);
}

.btn--outline:hover {
    background: var(--clr-bg-glass-hover);
    border-color: var(--clr-accent);
    transform: translateY(-2px);
}

.btn--sm {
    padding: 10px 20px;
    font-size: var(--fs-xs);
}

/* ─── About Section ─────────────────────────────────────── */
.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-4xl);
    align-items: start;
}

.about__content p {
    color: var(--clr-text-secondary);
    margin-bottom: var(--sp-lg);
    line-height: var(--lh-loose);
}

.about__highlight {
    display: flex;
    align-items: center;
    gap: var(--sp-md);
    padding: var(--sp-lg);
    background: var(--gradient-card);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    margin-bottom: var(--sp-xl);
    backdrop-filter: blur(10px);
}

.about__highlight-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-accent);
    border-radius: var(--radius-sm);
    color: white;
    font-size: var(--fs-lg);
}

.about__highlight-text h4 {
    color: var(--clr-text-white);
    font-weight: var(--fw-semibold);
    margin-bottom: var(--sp-xs);
}

.about__highlight-text p {
    color: var(--clr-text-secondary);
    font-size: var(--fs-sm);
    margin-bottom: 0;
}

/* Stats */
.about__stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-lg);
    margin-bottom: var(--sp-2xl);
}

.stat-card {
    padding: var(--sp-xl);
    background: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    text-align: center;
    transition: all var(--transition-base);
    backdrop-filter: blur(10px);
}

.stat-card:hover {
    border-color: var(--clr-border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.stat-card__number {
    font-size: var(--fs-3xl);
    font-weight: var(--fw-extrabold);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: var(--sp-xs);
}

.stat-card__label {
    font-size: var(--fs-xs);
    color: var(--clr-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: var(--fw-medium);
}

/* Skills */
.skill {
    margin-bottom: var(--sp-md);
}

.skill__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--sp-sm);
}

.skill__name {
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    color: var(--clr-text-primary);
}

.skill__percent {
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    color: var(--clr-accent-light);
    font-family: var(--ff-mono);
}

.skill__bar {
    height: 6px;
    background: var(--clr-bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
}

.skill__fill {
    height: 100%;
    background: var(--gradient-accent);
    border-radius: var(--radius-full);
    width: 0%;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.skill__fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: var(--clr-accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--clr-accent-glow);
}

/* ─── Services Section ──────────────────────────────────── */
.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-xl);
}

.service-card {
    padding: var(--sp-2xl);
    background: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

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

.service-card:hover {
    border-color: var(--clr-border-hover);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

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

.service-card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-card);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    font-size: var(--fs-xl);
    color: var(--clr-accent-light);
    margin-bottom: var(--sp-lg);
    transition: all var(--transition-base);
}

.service-card:hover .service-card__icon {
    background: var(--gradient-accent);
    color: white;
    border-color: transparent;
    transform: scale(1.1) rotate(-5deg);
}

.service-card__title {
    font-size: var(--fs-lg);
    font-weight: var(--fw-semibold);
    color: var(--clr-text-white);
    margin-bottom: var(--sp-sm);
}

.service-card__desc {
    font-size: var(--fs-sm);
    color: var(--clr-text-secondary);
    line-height: var(--lh-loose);
    margin-bottom: var(--sp-lg);
}

.service-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-sm);
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    font-size: var(--fs-xs);
    font-weight: var(--fw-medium);
    font-family: var(--ff-mono);
    background: var(--clr-bg-glass);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-full);
    color: var(--clr-text-muted);
    transition: all var(--transition-fast);
}

.service-card:hover .tag {
    border-color: var(--clr-accent);
    color: var(--clr-accent-light);
}

/* ─── Portfolio Section ─────────────────────────────────── */
.portfolio__filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--sp-sm);
    margin-bottom: var(--sp-2xl);
}

.portfolio__filter {
    padding: var(--sp-sm) var(--sp-lg);
    border-radius: var(--radius-full);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    color: var(--clr-text-secondary);
    background: var(--clr-bg-glass);
    border: 1px solid var(--clr-border);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.portfolio__filter:hover,
.portfolio__filter.active {
    background: var(--gradient-accent);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-glow);
}

.portfolio__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-xl);
}

.project-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    transition: all var(--transition-base);
    backdrop-filter: blur(10px);
}

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

.project-card__preview {
    height: 200px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.2);
}

.project-card__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-md);
    opacity: 0;
    transition: opacity var(--transition-base);
}

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

.project-card__overlay-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--clr-bg-glass);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    backdrop-filter: blur(10px);
    transition: all var(--transition-fast);
    transform: translateY(20px);
}

.project-card:hover .project-card__overlay-btn {
    transform: translateY(0);
}

.project-card__overlay-btn:hover {
    background: var(--clr-accent);
    border-color: var(--clr-accent);
}

.project-card__body {
    padding: var(--sp-xl);
}

.project-card__title {
    font-size: var(--fs-md);
    font-weight: var(--fw-semibold);
    color: var(--clr-text-white);
    margin-bottom: var(--sp-sm);
}

.project-card__desc {
    font-size: var(--fs-sm);
    color: var(--clr-text-secondary);
    line-height: var(--lh-base);
    margin-bottom: var(--sp-md);
}

.project-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-sm);
}

/* ─── Tools Section ─────────────────────────────────────── */
.tools__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-xl);
}

.tool-card {
    padding: var(--sp-2xl);
    background: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
    backdrop-filter: blur(10px);
}

.tool-card:hover {
    border-color: var(--clr-border-hover);
    transform: translateY(-4px);
}

.tool-card__status {
    position: absolute;
    top: var(--sp-md);
    right: var(--sp-md);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tool-card__status--coming-soon {
    background: rgba(255, 199, 95, 0.15);
    color: var(--clr-quaternary);
    border: 1px solid rgba(255, 199, 95, 0.3);
}

.tool-card__status--active {
    background: rgba(0, 201, 167, 0.15);
    color: var(--clr-tertiary);
    border: 1px solid rgba(0, 201, 167, 0.3);
}

.tool-card__icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--sp-lg);
    background: var(--gradient-card);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    font-size: var(--fs-xl);
    color: var(--clr-accent-light);
    transition: all var(--transition-base);
}

.tool-card:hover .tool-card__icon {
    background: var(--gradient-accent);
    color: white;
    border-color: transparent;
    transform: scale(1.1);
}

.tool-card__title {
    font-size: var(--fs-md);
    font-weight: var(--fw-semibold);
    color: var(--clr-text-white);
    margin-bottom: var(--sp-sm);
}

.tool-card__desc {
    font-size: var(--fs-sm);
    color: var(--clr-text-secondary);
    line-height: var(--lh-loose);
}

/* ─── Contact Section ───────────────────────────────────── */
.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-3xl);
}

.contact__info {
    display: flex;
    flex-direction: column;
    gap: var(--sp-xl);
}

.contact__info-item {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-lg);
    padding: var(--sp-lg);
    background: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    backdrop-filter: blur(10px);
}

.contact__info-item:hover {
    border-color: var(--clr-border-hover);
    transform: translateX(8px);
}

.contact__info-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-accent);
    border-radius: var(--radius-sm);
    color: white;
    font-size: var(--fs-md);
}

.contact__info-text h4 {
    font-weight: var(--fw-semibold);
    color: var(--clr-text-white);
    margin-bottom: var(--sp-xs);
}

.contact__info-text p,
.contact__info-text a {
    font-size: var(--fs-sm);
    color: var(--clr-text-secondary);
}

.contact__info-text a:hover {
    color: var(--clr-accent-light);
}

/* Contact Form */
.contact__form {
    padding: var(--sp-2xl);
    background: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
}

.form__group {
    margin-bottom: var(--sp-lg);
}

.form__label {
    display: block;
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    color: var(--clr-text-primary);
    margin-bottom: var(--sp-sm);
}

.form__input,
.form__textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--clr-bg-glass);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-sm);
    color: var(--clr-text-primary);
    font-size: var(--fs-sm);
    transition: all var(--transition-fast);
    outline: none;
}

.form__input:focus,
.form__textarea:focus {
    border-color: var(--clr-accent);
    box-shadow: 0 0 0 3px var(--clr-accent-glow);
    background: var(--clr-bg-glass-hover);
}

.form__input::placeholder,
.form__textarea::placeholder {
    color: var(--clr-text-muted);
}

.form__textarea {
    resize: vertical;
    min-height: 140px;
}

.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-lg);
}

/* ─── Coffee / Support Section ──────────────────────────── */
.coffee-section {
    background: var(--clr-bg-secondary);
    position: relative;
    overflow: hidden;
}

.coffee-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--clr-quaternary) 50%, transparent);
    opacity: 0.4;
}

.coffee__card {
    max-width: 700px;
    margin: 0 auto;
    padding: var(--sp-3xl);
    background: var(--gradient-card);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-xl);
    text-align: center;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.coffee__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--clr-quaternary), var(--clr-secondary), var(--clr-quaternary));
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}

.coffee__cup-wrapper {
    margin-bottom: var(--sp-2xl);
}

.coffee__cup {
    position: relative;
    display: inline-block;
}

.coffee__cup-body {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    background: linear-gradient(145deg, rgba(255, 199, 95, 0.15), rgba(255, 101, 132, 0.1));
    border: 1px solid rgba(255, 199, 95, 0.25);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
    animation: coffeePulse 3s ease-in-out infinite;
}

.coffee__cup-body:hover {
    transform: scale(1.1) rotate(-5deg);
    border-color: rgba(255, 199, 95, 0.5);
    box-shadow: 0 0 40px rgba(255, 199, 95, 0.2);
}

.coffee__emoji {
    font-size: 3rem;
    line-height: 1;
}

.coffee__steam {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
}

.coffee__steam-line {
    width: 3px;
    height: 18px;
    background: linear-gradient(to top, rgba(255, 199, 95, 0.4), transparent);
    border-radius: var(--radius-full);
    animation: steam 2s ease-in-out infinite;
}

.coffee__steam-line:nth-child(1) {
    animation-delay: 0s;
    height: 16px;
}

.coffee__steam-line:nth-child(2) {
    animation-delay: 0.3s;
    height: 22px;
}

.coffee__steam-line:nth-child(3) {
    animation-delay: 0.6s;
    height: 14px;
}

@keyframes steam {
    0%,
    100% {
        opacity: 0.3;
        transform: translateY(0) scaleY(1);
    }

    50% {
        opacity: 0.8;
        transform: translateY(-10px) scaleY(1.2);
    }
}

@keyframes coffeePulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 199, 95, 0.1);
    }

    50% {
        box-shadow: 0 0 30px 10px rgba(255, 199, 95, 0.08);
    }
}

/* Benefits */
.coffee__benefits {
    display: flex;
    flex-direction: column;
    gap: var(--sp-md);
    margin-bottom: var(--sp-2xl);
    text-align: left;
}

.coffee__benefit {
    display: flex;
    align-items: center;
    gap: var(--sp-md);
    padding: var(--sp-md) var(--sp-lg);
    background: var(--clr-bg-glass);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.coffee__benefit:hover {
    border-color: rgba(255, 199, 95, 0.3);
    transform: translateX(4px);
}

.coffee__benefit-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 199, 95, 0.2), rgba(255, 101, 132, 0.15));
    border-radius: var(--radius-sm);
    color: var(--clr-quaternary);
    font-size: var(--fs-base);
}

.coffee__benefit strong {
    display: block;
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    color: var(--clr-text-white);
    margin-bottom: 2px;
}

.coffee__benefit p {
    font-size: var(--fs-xs);
    color: var(--clr-text-muted);
    margin: 0;
}

/* CTA */
.coffee__cta {
    text-align: center;
}

.btn--coffee {
    background: linear-gradient(135deg, #FFC439, #FFB347);
    color: #003087;
    padding: 16px 40px;
    font-size: var(--fs-base);
    font-weight: var(--fw-bold);
    border-radius: var(--radius-full);
    box-shadow: 0 4px 20px rgba(255, 196, 57, 0.3);
    text-decoration: none;
}

.btn--coffee:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 196, 57, 0.4);
    filter: brightness(1.05);
}

.btn--coffee i {
    font-size: var(--fs-lg);
}

.coffee__note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-sm);
    margin-top: var(--sp-md);
    font-size: var(--fs-xs);
    color: var(--clr-text-muted);
}

.coffee__note i {
    color: var(--clr-tertiary);
}

/* ─── Footer ────────────────────────────────────────────── */
.site-footer {
    position: relative;
    background: var(--clr-bg-secondary);
    padding-top: var(--sp-3xl);
}

.footer__wave {
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    color: var(--clr-bg-primary);
    line-height: 0;
}

.footer__wave svg {
    width: 100%;
    height: 60px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--sp-3xl);
    padding-top: var(--sp-3xl);
}

.footer__logo {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-sm);
    font-weight: var(--fw-bold);
    font-size: var(--fs-lg);
    color: var(--clr-text-white);
    margin-bottom: var(--sp-lg);
}

.footer__logo .logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--gradient-accent);
    border-radius: var(--radius-sm);
    font-size: var(--fs-sm);
    color: white;
}

.footer__desc {
    font-size: var(--fs-sm);
    color: var(--clr-text-secondary);
    line-height: var(--lh-loose);
    margin-bottom: var(--sp-xl);
}

.footer__social {
    display: flex;
    gap: var(--sp-sm);
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--clr-bg-glass);
    border: 1px solid var(--clr-border);
    color: var(--clr-text-secondary);
    font-size: var(--fs-base);
    transition: all var(--transition-base);
}

.social-link:hover {
    background: var(--gradient-accent);
    border-color: transparent;
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.footer__heading {
    font-size: var(--fs-base);
    font-weight: var(--fw-semibold);
    color: var(--clr-text-white);
    margin-bottom: var(--sp-xl);
    position: relative;
    padding-bottom: var(--sp-sm);
}

.footer__heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

.footer__links li {
    margin-bottom: var(--sp-sm);
}

.footer__links a {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-sm);
    font-size: var(--fs-sm);
    color: var(--clr-text-secondary);
    transition: all var(--transition-fast);
}

.footer__links a i {
    font-size: 8px;
    color: var(--clr-accent);
    transition: transform var(--transition-fast);
}

.footer__links a:hover {
    color: var(--clr-accent-light);
    transform: translateX(4px);
}

.footer__links a:hover i {
    transform: translateX(2px);
}

.footer__contact li {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-sm);
    margin-bottom: var(--sp-md);
    font-size: var(--fs-sm);
    color: var(--clr-text-secondary);
}

.footer__contact li i {
    color: var(--clr-accent);
    margin-top: 3px;
    flex-shrink: 0;
}

.footer__contact a {
    color: var(--clr-text-secondary);
}

.footer__contact a:hover {
    color: var(--clr-accent-light);
}

.footer__bottom {
    margin-top: var(--sp-3xl);
    padding: var(--sp-lg) 0;
    border-top: 1px solid var(--clr-border);
}

.footer__bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--sp-md);
}

.footer__bottom p {
    font-size: var(--fs-sm);
    color: var(--clr-text-muted);
}

.footer__made {
    display: flex;
    align-items: center;
    gap: var(--sp-xs);
}

/* ─── Back to Top ───────────────────────────────────────── */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-accent);
    border-radius: 50%;
    color: white;
    font-size: var(--fs-base);
    box-shadow: var(--shadow-glow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    z-index: var(--z-above);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 40px var(--clr-accent-glow);
}

/* ─── Animations ────────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(30px, -30px) scale(1.05);
    }

    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }

    75% {
        transform: translate(10px, -10px) scale(1.02);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.5);
    }
}

@keyframes scrollDot {
    0% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(12px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

/* ─── Section Separator ─────────────────────────────────── */
.section--alt {
    background: var(--clr-bg-secondary);
}

.section__separator {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--clr-accent) 50%, transparent);
    opacity: 0.3;
}

/* ─── Responsive Design ─────────────────────────────────── */

/* Tablet */
@media (max-width: 1024px) {
    :root {
        --fs-5xl: 3.5rem;
        --fs-4xl: 2.5rem;
        --fs-3xl: 2rem;
    }

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

    .about__grid {
        grid-template-columns: 1fr;
        gap: var(--sp-2xl);
    }

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

    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--sp-2xl);
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --fs-5xl: 2.5rem;
        --fs-4xl: 2rem;
        --fs-3xl: 1.75rem;
        --sp-5xl: 5rem;
        --container-padding: 1.25rem;
    }

    .navbar__toggle {
        display: block;
    }

    .navbar__menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        justify-content: center;
        background: rgba(10, 10, 26, 0.98);
        backdrop-filter: blur(20px);
        gap: var(--sp-sm);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
        z-index: var(--z-overlay);
        padding: var(--sp-xl);
    }

    .navbar__menu.active {
        opacity: 1;
        visibility: visible;
    }

    .navbar__link {
        font-size: var(--fs-lg);
        padding: var(--sp-md) var(--sp-xl);
        width: 100%;
        justify-content: center;
        border-radius: var(--radius-md);
    }
    
    .navbar__item--donate .btn {
        width: 100%;
        margin-left: 0 !important;
        margin-top: var(--sp-sm);
    }

    .services__grid,
    .portfolio__grid,
    .tools__grid {
        grid-template-columns: 1fr;
    }

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

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

    .footer__grid {
        grid-template-columns: 1fr;
        gap: var(--sp-2xl);
    }

    .footer__bottom .container {
        flex-direction: column;
        text-align: center;
    }

    .hero__actions {
        flex-direction: column;
    }

    .hero__actions .btn {
        width: 100%;
        justify-content: center;
    }

    .hero__scroll {
        display: none;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    :root {
        --fs-5xl: 2rem;
        --fs-4xl: 1.75rem;
        --fs-3xl: 1.5rem;
    }

    .about__stats {
        grid-template-columns: 1fr 1fr;
        gap: var(--sp-sm);
    }

    .stat-card {
        padding: var(--sp-md);
    }

    .stat-card__number {
        font-size: var(--fs-2xl);
    }
}

/* ─── Accessibility ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
    }
}

/* ─── Selection ─────────────────────────────────────────── */
::selection {
    background: var(--clr-accent);
    color: white;
}

::-moz-selection {
    background: var(--clr-accent);
    color: white;
}

/* ─── Tools Page Specific ───────────────────────────────── */
.tools-page {
    padding-top: 120px;
    min-height: 100vh;
}

.tools-page .tools__grid {
    margin-bottom: var(--sp-3xl);
}

.tools-page__cta {
    text-align: center;
    padding: var(--sp-3xl);
    background: var(--gradient-card);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
}

.tools-page__cta h3 {
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    color: var(--clr-text-white);
    margin-bottom: var(--sp-md);
}

.tools-page__cta p {
    color: var(--clr-text-secondary);
    margin-bottom: var(--sp-xl);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}