/* ═══════════════════════════════════════════════════════════════
   AndyDevMX — Premium Portfolio Styles
   Design System: Light/Dark Mode, Glassmorphism, Micro-animations
   ═══════════════════════════════════════════════════════════════ */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

/* ─── CSS CUSTOM PROPERTIES (THEME TOKENS) ─────────────────── */
:root {
    /* Brand Colors */
    --primary: #16889B;
    --primary-light: #1ca8bf;
    --primary-dark: #126e7d;
    --primary-glow: rgba(22, 136, 155, 0.4);
    --primary-subtle: rgba(22, 136, 155, 0.08);

    /* Font */
    --font: 'Inter', system-ui, -apple-system, sans-serif;

    /* Sizing */
    --header-height: 4.5rem;
    --container-max: 1200px;
    --radius-sm: 0.5rem;
    --radius-md: 0.875rem;
    --radius-lg: 1.25rem;
    --radius-xl: 1.75rem;
    --radius-full: 50px;

    /* 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-theme: 0.4s ease;
}

/* ─── DARK THEME (DEFAULT) ─────────────────────────────────── */
[data-theme="dark"] {
    --bg: #0d1117;
    --bg-secondary: #161b22;
    --bg-tertiary: #1c2128;
    --bg-card: rgba(22, 27, 34, 0.7);
    --bg-glass: rgba(13, 17, 23, 0.75);

    --text: #e6edf3;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;

    --border: rgba(139, 148, 158, 0.15);
    --border-hover: rgba(139, 148, 158, 0.3);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(22, 136, 155, 0.2);

    --particle-color: rgba(22, 136, 155, 0.5);
    --particle-line: rgba(22, 136, 155, 0.12);

    --skill-track: rgba(255, 255, 255, 0.06);
    --timeline-line: rgba(22, 136, 155, 0.3);
}

/* ─── LIGHT THEME ──────────────────────────────────────────── */
[data-theme="light"] {
    --bg: #f8fafb;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f0f3f5;
    --bg-card: rgba(255, 255, 255, 0.8);
    --bg-glass: rgba(248, 250, 251, 0.8);

    --text: #1B2121;
    --text-secondary: #4a5568;
    --text-muted: #8896a6;

    --border: rgba(27, 33, 33, 0.1);
    --border-hover: rgba(27, 33, 33, 0.2);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 30px rgba(22, 136, 155, 0.15);

    --particle-color: rgba(22, 136, 155, 0.35);
    --particle-line: rgba(22, 136, 155, 0.08);

    --skill-track: rgba(0, 0, 0, 0.06);
    --timeline-line: rgba(22, 136, 155, 0.25);
}

/* ─── GLOBAL THEME TRANSITION ──────────────────────────────── */
body,
.header,
.project-card,
.specialty-card,
.skills__panel,
.soft-card,
.timeline-item__card,
.contact__info-card,
.contact__form,
.hero__dashboard,
.hero__tech-card,
.footer {
    transition:
        background-color var(--transition-theme),
        color var(--transition-theme),
        border-color var(--transition-theme),
        box-shadow var(--transition-theme);
}

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

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

/* ─── SECTION ──────────────────────────────────────────────── */
.section {
    padding: 6rem 0;
    position: relative;
}

.section__header {
    text-align: center;
    margin-bottom: 4rem;
}

.section__label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.section__label i {
    width: 16px;
    height: 16px;
}

.section__title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section__subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 550px;
    margin: 0 auto;
}

/* ─── TEXT UTILITIES ───────────────────────────────────────── */
.text-primary {
    color: var(--primary);
}

/* ─── BUTTONS ──────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font);
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn i {
    width: 18px;
    height: 18px;
}

.btn--sm {
    font-size: 0.85rem;
    padding: 0.55rem 1.25rem;
}

.btn--lg {
    font-size: 1rem;
    padding: 0.85rem 2rem;
}

.btn--full {
    width: 100%;
}

.btn--primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
    filter: brightness(1.1);
}

.btn--primary:active {
    transform: translateY(0);
}

.btn--outline {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border-hover);
}

.btn--outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-subtle);
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════════ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    background: transparent;
    transition: all var(--transition-base);
}

.header.scrolled {
    height: 3.75rem;
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.header__container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header__logo {
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text);
    letter-spacing: -0.02em;
    transition: color var(--transition-fast);
}

.header__logo span {
    color: var(--primary);
}

.header__logo:hover {
    color: var(--primary);
}

.header__nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.header__nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
    padding: 0.25rem 0;
    position: relative;
    transition: color var(--transition-fast);
    white-space: nowrap;
}

.header__nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
    transition: width var(--transition-base);
}

.header__nav-link:hover,
.header__nav-link.active {
    color: var(--primary);
}

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

.header__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header__logo-img {
    height: 36px;
    width: auto;
    display: none;
}

[data-theme="light"] .header__logo-img--light {
    display: block;
}

[data-theme="dark"] .header__logo-img--dark {
    display: block;
}

/* ─── Theme Toggle ─────────────────────────────────────────── */
.theme-toggle {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: var(--bg-card);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    border-color: var(--primary);
    background: var(--primary-subtle);
    transform: rotate(15deg);
}

.theme-icon {
    position: absolute;
    width: 18px;
    height: 18px;
    color: var(--text);
    transition: all var(--transition-base);
}

[data-theme="dark"] .theme-icon--light {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="dark"] .theme-icon--dark {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

[data-theme="light"] .theme-icon--light {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

[data-theme="light"] .theme-icon--dark {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* ─── Hamburger ────────────────────────────────────────────── */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 2.5rem;
    height: 2.5rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

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

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

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

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

/* ─── Mobile Menu ──────────────────────────────────────────── */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-slow);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu__nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.mobile-menu__link {
    font-size: 1.75rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text);
    transition: color var(--transition-fast);
    transform: translateY(30px);
    opacity: 0;
    white-space: nowrap;
}

.mobile-menu.active .mobile-menu__link {
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu.active .mobile-menu__link:nth-child(1) {
    transition-delay: 0.1s;
}

.mobile-menu.active .mobile-menu__link:nth-child(2) {
    transition-delay: 0.15s;
}

.mobile-menu.active .mobile-menu__link:nth-child(3) {
    transition-delay: 0.2s;
}

.mobile-menu.active .mobile-menu__link:nth-child(4) {
    transition-delay: 0.25s;
}

.mobile-menu.active .mobile-menu__link:nth-child(5) {
    transition-delay: 0.3s;
}

.mobile-menu.active .mobile-menu__link:nth-child(6) {
    transition-delay: 0.35s;
}

.mobile-menu__link:hover {
    color: var(--primary);
}

/* ═══════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--header-height);
}

.hero__canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero__container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 2rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    background: var(--primary-subtle);
    border: 1px solid rgba(22, 136, 155, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1.5rem;
    animation: pulse-badge 3s ease-in-out infinite;
}

.hero__badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

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

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

@keyframes pulse-badge {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(22, 136, 155, 0.1);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(22, 136, 155, 0);
    }
}

.hero__title {
    font-size: clamp(2.5rem, 6vw, 4.25rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.hero__tagline {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--primary);
    margin-bottom: 1.25rem;
    padding-left: 1rem;
    border-left: 3px solid var(--primary);
    line-height: 1.6;
}

.hero__description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 520px;
    text-align: justify;
}

.hero__cta-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

/* ─── Hero Stats ───────────────────────────────────────────── */
.hero__stats {
    display: flex;
    gap: 2.5rem;
}

.hero__stat {
    text-align: center;
}

.hero__stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}

.hero__stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

/* ─── Hero Visual (Floating Tech Cards + Dashboard) ────────── */
.hero__visual {
    position: relative;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__floating-cards {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero__tech-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    box-shadow: var(--shadow-md);
    z-index: 2;
    transition: all var(--transition-base);
}

.hero__tech-card:hover {
    transform: scale(1.08) !important;
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.hero__tech-card i {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

.hero__tech-card--1 {
    top: 5%;
    left: 15%;
    animation: float-1 6s ease-in-out infinite;
}

.hero__tech-card--2 {
    top: 15%;
    right: 5%;
    animation: float-2 7s ease-in-out infinite;
}

.hero__tech-card--3 {
    bottom: 20%;
    left: 5%;
    animation: float-3 5.5s ease-in-out infinite;
}

.hero__tech-card--4 {
    bottom: 5%;
    right: 15%;
    animation: float-1 6.5s ease-in-out infinite reverse;
}

.hero__tech-card--5 {
    top: 45%;
    right: 0%;
    animation: float-2 5s ease-in-out infinite;
}

/* ─── Hero Dashboard Mockup ────────────────────────────────── */
.hero__dashboard {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) perspective(1000px) rotateY(-5deg) rotateX(3deg);
    width: 300px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
    animation: float-dashboard 8s ease-in-out infinite;
}

.hero__dashboard-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-tertiary);
}

.hero__dashboard-dots {
    display: flex;
    gap: 5px;
}

.hero__dashboard-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.hero__dashboard-dots span:nth-child(1) {
    background: #ff5f57;
}

.hero__dashboard-dots span:nth-child(2) {
    background: #febc2e;
}

.hero__dashboard-dots span:nth-child(3) {
    background: #28c840;
}

.hero__dashboard-title {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
}

.hero__dashboard-body {
    display: flex;
    padding: 1rem;
    gap: 0.75rem;
    min-height: 160px;
}

.hero__dashboard-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 0 0 80px;
}

.hero__dash-bar {
    height: 8px;
    background: var(--primary);
    border-radius: 4px;
    opacity: 0.3;
    animation: bar-shimmer 3s ease-in-out infinite;
}

.hero__dash-bar:nth-child(1) {
    animation-delay: 0s;
}

.hero__dash-bar:nth-child(2) {
    animation-delay: 0.3s;
}

.hero__dash-bar:nth-child(3) {
    animation-delay: 0.6s;
}

.hero__dash-bar:nth-child(4) {
    animation-delay: 0.9s;
}

@keyframes bar-shimmer {

    0%,
    100% {
        opacity: 0.2;
    }

    50% {
        opacity: 0.6;
    }
}

.hero__dashboard-content {
    flex: 1;
}

.hero__dash-chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 100%;
}

.hero__dash-col {
    flex: 1;
    background: linear-gradient(to top, var(--primary), var(--primary-light));
    border-radius: 4px 4px 0 0;
    opacity: 0.5;
    animation: chart-grow 4s ease-in-out infinite alternate;
}

.hero__dash-col:nth-child(even) {
    animation-delay: 0.5s;
}

.hero__dash-col:nth-child(3n) {
    animation-delay: 1s;
}

@keyframes chart-grow {
    0% {
        transform: scaleY(0.7);
    }

    100% {
        transform: scaleY(1);
    }
}

/* ─── Float Keyframes ──────────────────────────────────────── */
@keyframes float-1 {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    33% {
        transform: translateY(-12px) rotate(1deg);
    }

    66% {
        transform: translateY(6px) rotate(-1deg);
    }
}

@keyframes float-2 {

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

    50% {
        transform: translateY(-18px);
    }
}

@keyframes float-3 {

    0%,
    100% {
        transform: translateY(0px) translateX(0px);
    }

    50% {
        transform: translateY(-10px) translateX(5px);
    }
}

@keyframes float-dashboard {

    0%,
    100% {
        transform: translate(-50%, -50%) perspective(1000px) rotateY(-5deg) rotateX(3deg) translateY(0);
    }

    50% {
        transform: translate(-50%, -50%) perspective(1000px) rotateY(-3deg) rotateX(1deg) translateY(-10px);
    }
}

/* ─── Scroll Indicator ─────────────────────────────────────── */
.hero__scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce-scroll 2s ease-in-out infinite;
    color: var(--text-muted);
    z-index: 1;
}

.hero__scroll-indicator i {
    width: 24px;
    height: 24px;
}

@keyframes bounce-scroll {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 0.5;
    }

    50% {
        transform: translateX(-50%) translateY(10px);
        opacity: 1;
    }
}

/* ═══════════════════════════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════════════════════════ */
.about__grid {
    display: grid;
    grid-template-columns: 0.6fr 1.4fr;
    gap: 3rem;
    align-items: start;
}

.about__photo-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about__photo-frame {
    position: relative;
    max-width: 300px;
    height: 300px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 2px solid var(--border);
    transition: all var(--transition-base);
    margin-bottom: 1rem;
}

.about__photo-frame:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.about__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.about__photo-frame:hover .about__photo {
    transform: scale(1.05);
}

.about__photo-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, var(--primary-glow), transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.about__photo-frame:hover .about__photo-glow {
    opacity: 1;
}

.about__photo-decoration {
    position: absolute;
    bottom: -1rem;
    right: -1rem;
}

.about__cv-btn {
    width: 100%;
    margin-top: 1.5rem;
    justify-content: center;
}

.about__decoration-line {
    width: 60px;
    height: 2px;
    background: var(--primary);
    margin-bottom: 8px;
}

.about__decoration-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    margin-left: auto;
}

.about__text {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.8;
    text-align: justify;
}

.about__text strong {
    color: var(--text);
    font-weight: 600;
}

/* ─── Specialty Cards ──────────────────────────────────────── */
.about__specialties {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* era repeat(2, 1fr) */
    gap: 1rem;
    margin-top: 2rem;
}

.specialty-card {
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    transition: all var(--transition-base);
    cursor: default;
}

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

.specialty-card__icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-subtle);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    color: var(--primary);
    transition: all var(--transition-base);
}

.specialty-card:hover .specialty-card__icon {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1);
}

.specialty-card__icon i {
    width: 20px;
    height: 20px;
}

.specialty-card__title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.specialty-card__desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.specialty-card:last-child {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
}

.specialty-card:last-child .specialty-card__desc {
    columns: unset;
    column-gap: 2rem;
    text-align: justify;
}

/* ═══════════════════════════════════════════════════════════════
   FAQ ACCORDION
   ═══════════════════════════════════════════════════════════════ */
.faq__panel {
    display: flex;
    flex-direction: column;
}

.faq__list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.faq__item {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--transition-fast);
}

.faq__item--open {
    border-color: var(--primary);
}

.faq__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: var(--font);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    text-align: left;
    transition: color var(--transition-fast), background var(--transition-fast);
}

.faq__question:hover {
    color: var(--primary);
    background: var(--primary-subtle);
}

.faq__item--open .faq__question {
    color: var(--primary);
    background: var(--primary-subtle);
}

.faq__icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform var(--transition-base), color var(--transition-fast);
}

.faq__item--open .faq__icon {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        padding 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: justify;
}

.faq__item--open .faq__answer {
    max-height: 200px;
}

.faq__answer p {
    padding: 0 1rem 0.9rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.faq__answer strong {
    color: var(--primary);
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════
   ═══════════════════════════════════════════════════════════════ */
.projects {
    background: var(--bg-secondary);
}

.projects__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

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

.project-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.project-card__image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.project-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.project-card:hover .project-card__image {
    transform: scale(1.08);
}

.project-card__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity var(--transition-base);
}

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

.project-card__badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.3rem 0.8rem;
    background: var(--primary);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 2;
}

.project-card__badge--alt {
    background: #8b5cf6;
}

.project-card__badge--sys {
    background: #f59e0b;
    color: #1B2121;
}

.project-card__badge--ent {
    background: #10b981;
}

.project-card__content {
    padding: 1.5rem;
}

.project-card__category {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: block;
}

.project-card__title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.project-card__description {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.project-card__tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.3rem 0.7rem;
    background: var(--primary-subtle);
    color: var(--primary);
    border-radius: var(--radius-full);
    border: 1px solid rgba(22, 136, 155, 0.15);
}

/* ═══════════════════════════════════════════════════════════════
   SKILLS
   ═══════════════════════════════════════════════════════════════ */
.skills__dashboard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

.skills__right-col {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.skills__panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    backdrop-filter: blur(10px);
    transition: all var(--transition-base);
}

.skills__panel:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.skills__panel-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--text);
}

.skills__panel-title i {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

/* ─── Skill Bars ───────────────────────────────────────────── */
.skills__bars {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skill-bar__header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.35rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.skill-bar__pct {
    color: var(--primary);
    font-weight: 600;
}

.skill-bar__track {
    width: 100%;
    height: 8px;
    background: var(--skill-track);
    border-radius: 4px;
    overflow: hidden;
}

.skill-bar__fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 4px;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.skill-bar__fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 6px;
    height: 100%;
    border-radius: 50%;
    background: #fff;
    opacity: 0.4;
}

/* ─── Skills Tabs ──────────────────────────────────────────── */
.skills__tabs-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    backdrop-filter: blur(10px);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skills__tabs-wrapper:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.skills__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
}

.skills__tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    font-family: var(--font);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.skills__tab i {
    width: 14px;
    height: 14px;
}

.skills__tab:hover {
    color: var(--primary);
    background: var(--primary-subtle);
    border-color: rgba(22, 136, 155, 0.2);
}

.skills__tab.active {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-color: transparent;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.skills__tab-content {
    min-height: 120px;
}

.skills__tab-panel {
    display: none;
    animation: fadeIn 0.25s ease forwards;
}

.skills__tab-panel.active {
    display: block;
}


.skills__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.85rem;
    background: var(--primary-subtle);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
    transition: all var(--transition-base);
}

.skill-tag:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.skill-tag i {
    width: 14px;
    height: 14px;
    color: var(--primary);
}

/* ─── Soft Skills ──────────────────────────────────────────── */
.skills__soft {
    text-align: center;
}

.skills__soft-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.skills__soft-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.25rem;
}

.soft-card {
    padding: 1.5rem 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition-base);
    cursor: default;
    backdrop-filter: blur(10px);
}

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

.soft-card__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-subtle);
    border-radius: 50%;
    margin: 0 auto 0.75rem;
    color: var(--primary);
    transition: all var(--transition-base);
}

.soft-card:hover .soft-card__icon {
    background: var(--primary);
    color: #fff;
    transform: scale(1.15) rotate(5deg);
}

.soft-card__icon i {
    width: 22px;
    height: 22px;
}

.soft-card span {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    line-height: 1.3;
    display: block;
}

/* ═══════════════════════════════════════════════════════════════
   EDUCATION / TIMELINE
   ═══════════════════════════════════════════════════════════════ */
.education {
    background: var(--bg-secondary);
}

.education__timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    padding-left: 3rem;
}

.education__timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15px;
    bottom: 0;
    width: 2px;
    background: var(--timeline-line);
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item__dot {
    position: absolute;
    left: -3rem;
    top: 1.5rem;
    transform: translateX(-50%);
    left: -2.05rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    z-index: 1;
    transition: all var(--transition-base);
}

.timeline-item:hover .timeline-item__dot {
    background: var(--primary);
    color: #fff;
    transform: translateX(-50%) scale(1.15);
}

.timeline-item__dot i {
    width: 14px;
    height: 14px;
}

.timeline-item__card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    transition: all var(--transition-base);
}

.timeline-item:hover .timeline-item__card {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
    transform: translateX(4px);
}

.timeline-item__date {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.timeline-item__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0.25rem 0;
}

.timeline-item__institution {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.timeline-item__detail {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

/* ═══════════════════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════════════════ */
.contact__grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 3rem;
    align-items: start;
}

.contact__info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

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

.contact__info-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
    transform: translateX(4px);
}

.contact__info-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-subtle);
    border-radius: var(--radius-md);
    color: var(--primary);
    flex-shrink: 0;
    transition: all var(--transition-base);
}

.contact__info-card:hover .contact__info-icon {
    background: var(--primary);
    color: #fff;
}

.contact__info-icon i {
    width: 22px;
    height: 22px;
}

.contact__info-card h4 {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.15rem;
    font-weight: 600;
}

.contact__info-card a,
.contact__info-card span {
    font-size: 0.95rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.contact__info-card a:hover {
    color: var(--primary);
}

.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all var(--transition-base);
    z-index: 999;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

/* ─── Contact Form ─────────────────────────────────────────── */
.contact__form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 0 0.5rem;
    background: transparent;
    border: none;
    border-bottom: 1.5px solid var(--border);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.95rem;
    outline: none;
    transition: all var(--transition-base);
    resize: none;
}

.form-group textarea {
    min-height: 100px;
}

.form-group label {
    position: absolute;
    top: 0.8rem;
    left: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: all var(--transition-base);
    font-weight: 500;
}

.form-group input:focus~label,
.form-group input:valid~label,
.form-group textarea:focus~label,
.form-group textarea:valid~label {
    top: -0.5rem;
    font-size: 0.72rem;
    color: var(--primary);
    font-weight: 600;
}

.form-group__line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition-base);
}

.form-group input:focus~.form-group__line,
.form-group textarea:focus~.form-group__line {
    width: 100%;
}

.contact__form-success {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: var(--radius-md);
    color: #22c55e;
    font-size: 0.9rem;
    font-weight: 500;
}

.contact__form-success.show {
    display: flex;
    animation: fadeInUp 0.5s ease forwards;
}

.contact__form-success i {
    width: 20px;
    height: 20px;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border);
    background: var(--bg-secondary);
}

.footer__content {
    text-align: center;
}

.footer__logo {
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text);
    letter-spacing: -0.02em;
}

.footer__logo span {
    color: var(--primary);
}

.footer__tagline {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    margin-bottom: 1.25rem;
}

.footer__social {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.footer__social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-base);
}

.footer__social-link:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-subtle);
    transform: translateY(-3px);
}

.footer__social-link i {
    width: 18px;
    height: 18px;
}

.footer__copy {
    font-size: 0.8rem;
    color: var(--text-muted);
}

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

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Scroll-triggered animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
}

.animate-on-scroll.visible {
    animation-fill-mode: forwards;
}

.animate-on-scroll.visible[data-animation="fadeInUp"] {
    animation: fadeInUp 0.7s ease forwards;
}

.animate-on-scroll.visible[data-animation="fadeInLeft"] {
    animation: fadeInLeft 0.7s ease forwards;
}

.animate-on-scroll.visible[data-animation="fadeInRight"] {
    animation: fadeInRight 0.7s ease forwards;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

/* ─── Tablet ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .header__nav {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .header__cta {
        display: none;
    }

    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero__content {
        order: 1;
    }

    .hero__visual {
        order: 0;
        height: 300px;
    }

    .hero__cta-group {
        justify-content: center;
    }

    .hero__stats {
        justify-content: center;
    }

    .hero__tagline {
        text-align: left;
    }

    .hero__description {
        margin: 0 auto 2rem;
    }

    .about__grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about__photo-wrapper {
        justify-content: center;
    }

    .projects__grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }

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

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

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

/* ─── Mobile ───────────────────────────────────────────────── */
@media (max-width: 640px) {
    .section {
        padding: 4rem 0;
    }

    .hero__visual {
        height: 250px;
    }

    .hero__dashboard {
        width: 240px;
    }

    .hero__tech-card--3,
    .hero__tech-card--5 {
        display: none;
    }

    .hero__stats {
        gap: 1.5rem;
    }

    .hero__stat-number {
        font-size: 1.5rem;
    }

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

    .about__photo-frame {
        width: 220px;
        height: 260px;
    }

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

    .education__timeline {
        padding-left: 2.5rem;
    }

    .timeline-item__dot {
        left: -1.55rem;
        width: 28px;
        height: 28px;
    }

    .contact__form {
        padding: 1.5rem;
    }

    .hero__cta-group {
        flex-direction: column;
        align-items: center;
    }

    .hero__cta-group .btn {
        width: 100%;
        max-width: 280px;
    }

    .about__photo-wrapper {
        align-items: center;
    }
}

/* ─── Accessibility: Reduce Motion ─────────────────────────── */
@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;
    }

    .animate-on-scroll {
        opacity: 1;
        transform: none;
    }
}