/* ═══════════════════════════════════════════════
   PORTFOLIO - PREMIUM DESIGN SYSTEM
   ═══════════════════════════════════════════════ */

/* ── CSS VARIABLES ─────────────────────────── */
:root {
    /* Colors - Dark Theme (Default) */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a2e;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);

    --text-primary: #f0f0f5;
    --text-secondary: #a0a0b8;
    --text-muted: #6b6b80;

    --accent-primary: #7c3aed;
    --accent-secondary: #06b6d4;
    --accent-tertiary: #f43f5e;
    --accent-glow: rgba(124, 58, 237, 0.3);

    --gradient-primary: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
    --gradient-hero: linear-gradient(135deg, rgba(124, 58, 237, 0.15) 0%, rgba(6, 182, 212, 0.1) 50%, rgba(244, 63, 94, 0.08) 100%);
    --gradient-card: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);

    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(124, 58, 237, 0.4);

    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Spacing */
    --section-padding: 120px 0;
    --container-max: 1200px;
    --container-padding: 0 24px;

    /* Animation */
    --transition-fast: 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
    --transition-smooth: 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    --transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 16px 64px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 40px rgba(124, 58, 237, 0.15);

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

/* Light Theme */
[data-theme="light"] {
    --bg-primary: #f8f9fc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #eef0f5;
    --bg-card: rgba(0, 0, 0, 0.02);
    --bg-card-hover: rgba(0, 0, 0, 0.05);

    --text-primary: #1a1a2e;
    --text-secondary: #4a4a6a;
    --text-muted: #8a8aaa;

    --accent-glow: rgba(124, 58, 237, 0.15);

    --border-color: rgba(0, 0, 0, 0.08);
    --border-glow: rgba(124, 58, 237, 0.3);

    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.06);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 16px 64px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 40px rgba(124, 58, 237, 0.08);
}

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

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

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

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

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

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

@media (max-width: 768px) {
    body { cursor: auto; }
}

a {
    text-decoration: none;
    color: inherit;
    cursor: none;
}

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

button {
    border: none;
    outline: none;
    background: none;
    cursor: none;
    font-family: inherit;
}

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

.section {
    padding: var(--section-padding);
    position: relative;
}

/* ── CUSTOM CURSOR ─────────────────────────── */
.cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10001;
    transition: transform 0.1s ease, opacity 0.3s ease;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}

.cursor-ring {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease, transform 0.15s ease;
    transform: translate(-50%, -50%);
    opacity: 0.5;
}

.cursor-ring.hover {
    width: 64px;
    height: 64px;
    border-color: var(--accent-secondary);
    opacity: 0.3;
}

.cursor-dot.click {
    transform: translate(-50%, -50%) scale(0.5);
}

@media (max-width: 768px) {
    .cursor-dot, .cursor-ring { display: none; }
}

/* ── LOADER ─────────────────────────── */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10002;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.loader__line {
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    animation: loaderLine 1.2s ease-in-out infinite;
}

.loader__line:nth-child(2) {
    animation-delay: 0.2s;
    width: 40px;
}

.loader__line:nth-child(3) {
    animation-delay: 0.4s;
    width: 20px;
}

@keyframes loaderLine {
    0%, 100% { transform: scaleX(1); opacity: 1; }
    50% { transform: scaleX(0.3); opacity: 0.5; }
}

.loader__text {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--text-muted);
    letter-spacing: 4px;
    text-transform: uppercase;
}

/* ── NAVBAR ─────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    transition: all var(--transition-smooth);
}

.navbar.scrolled {
    padding: 12px 40px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
}

.navbar__logo {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 2px;
    transition: color var(--transition-fast);
}

.logo-bracket {
    color: var(--accent-primary);
    font-weight: 400;
}

.navbar__links {
    display: flex;
    list-style: none;
    gap: 36px;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    position: relative;
    padding: 4px 0;
    transition: color var(--transition-fast);
}

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

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

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

.theme-toggle {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    border: 1px solid var(--border-color);
    background: var(--glass-bg);
}

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

.theme-icon {
    width: 20px;
    height: 20px;
    transition: var(--transition-smooth);
}

.theme-icon.moon { display: none; }
[data-theme="light"] .theme-icon.sun { display: none; }
[data-theme="light"] .theme-icon.moon { display: block; }

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    border-radius: var(--radius-sm);
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: var(--radius-full);
    transition: all var(--transition-smooth);
    transform-origin: center;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
    .navbar { padding: 16px 20px; }
    .navbar.scrolled { padding: 10px 20px; }
    .navbar__links { display: none; }
    .theme-toggle { width: 38px; height: 38px; }
    .menu-toggle { display: flex; }
}

/* ── MOBILE MENU ─────────────────────────── */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: right var(--transition-smooth);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu__links {
    list-style: none;
    text-align: center;
}

.mobile-menu__links li {
    margin: 20px 0;
}

.mobile-link {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    position: relative;
}

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

/* ── SCROLL PROGRESS ─────────────────────────── */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gradient-primary);
    z-index: 1001;
    transition: width 0.05s linear;
}

/* ── SIDE NAV DOTS ─────────────────────────── */
.side-nav {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 100;
}

.side-nav__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-muted);
    opacity: 0.4;
    transition: all var(--transition-smooth);
    position: relative;
}

.side-nav__dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border: 1px solid transparent;
    border-radius: 50%;
    transition: all var(--transition-smooth);
}

.side-nav__dot.active {
    background: var(--accent-primary);
    opacity: 1;
    transform: scale(1.3);
}

.side-nav__dot.active::before {
    border-color: var(--accent-primary);
    opacity: 0.4;
}

.side-nav__dot:hover {
    opacity: 0.8;
}

@media (max-width: 768px) {
    .side-nav { display: none; }
}

/* ── SECTION HEADER ─────────────────────────── */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--accent-primary);
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── GLASS CARD ─────────────────────────── */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
    transition: all var(--transition-smooth);
}

.glass-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow), var(--glass-shadow);
    transform: translateY(-4px);
}

/* ── BUTTONS ─────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn svg {
    width: 18px;
    height: 18px;
    transition: transform var(--transition-smooth);
}

.btn--primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.5);
}

.btn--primary:hover svg {
    transform: translateX(4px);
}

.btn--ghost {
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
}

.btn--ghost:hover {
    border-color: var(--accent-primary);
    background: rgba(124, 58, 237, 0.1);
    transform: translateY(-2px);
}

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

/* ── HERO SECTION ─────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

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

.hero__bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: 0;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero);
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 24px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    backdrop-filter: blur(10px);
    margin-bottom: 32px;
}

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

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
    50% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}

.hero__title {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.hero__greeting {
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 400;
    color: var(--accent-primary);
    letter-spacing: 2px;
}

.hero__name {
    font-family: var(--font-display);
    font-size: clamp(42px, 8vw, 80px);
    font-weight: 800;
    line-height: 1.1;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__role {
    font-family: var(--font-display);
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 500;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
}

.typed-text {
    color: var(--accent-secondary);
    font-weight: 600;
}

.typed-cursor {
    color: var(--accent-primary);
    animation: blink 0.8s ease infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero__description {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.hero__social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    transition: all var(--transition-smooth);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

.social-link:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
}

.hero__scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: float 3s ease-in-out infinite;
}

.mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}

.mouse__wheel {
    width: 3px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: var(--radius-full);
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 2s ease infinite;
}

@keyframes scroll-wheel {
    0% { opacity: 1; top: 6px; }
    100% { opacity: 0; top: 22px; }
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

.hero__floating-shape {
    position: absolute;
    right: -5%;
    top: 15%;
    width: 400px;
    height: 400px;
    z-index: 1;
    opacity: 0.6;
    animation: float-shape 8s ease-in-out infinite;
    pointer-events: none;
}

.hero__floating-shape img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes float-shape {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(5deg); }
    50% { transform: translateY(-10px) rotate(-3deg); }
    75% { transform: translateY(-30px) rotate(2deg); }
}

@media (max-width: 768px) {
    .hero__floating-shape { display: none; }
    .hero__scroll-indicator { bottom: 20px; }
}

/* ── ABOUT SECTION ─────────────────────────── */
.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about__image-wrapper {
    position: relative;
}

.about__image-frame {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.about__image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    transition: transform var(--transition-smooth);
}

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

.about__image-decoration {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent-primary);
    border-radius: var(--radius-xl);
    z-index: -1;
    opacity: 0.3;
}

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

.stat-card {
    padding: 20px 16px;
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-primary);
    display: inline;
}

.stat-suffix {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-secondary);
}

.stat-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about__subtitle {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 20px;
}

.about__text {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.8;
}

.about__info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 32px 0;
    padding: 24px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
}

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

.info-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-value {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
}

.status-available {
    color: #22c55e;
}

@media (max-width: 768px) {
    .about__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about__stats {
        grid-template-columns: repeat(3, 1fr);
    }
    .about__info-grid {
        grid-template-columns: 1fr;
    }
}

/* ── SKILLS SECTION ─────────────────────────── */
.skills {
    background: var(--bg-secondary);
}

.skills__tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.skills__tab {
    padding: 10px 28px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    transition: all var(--transition-smooth);
    background: var(--glass-bg);
}

.skills__tab:hover {
    color: var(--text-primary);
    border-color: var(--accent-primary);
}

.skills__tab.active {
    background: var(--gradient-primary);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}

.skills__panel {
    display: none;
}

.skills__panel.active {
    display: block;
    animation: fadeInUp 0.5s ease;
}

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

.skills__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.skill-card {
    padding: 28px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent, var(--accent-primary));
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.skill-card:hover::before {
    opacity: 1;
}

.skill-card__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: rgba(124, 58, 237, 0.1);
    color: var(--accent, var(--accent-primary));
    transition: all var(--transition-smooth);
}

.skill-card:hover .skill-card__icon {
    transform: scale(1.1);
    background: rgba(124, 58, 237, 0.2);
}

.skill-card__icon svg {
    width: 28px;
    height: 28px;
}

.skill-card__title {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
}

.skill-card__bar {
    width: 100%;
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 8px;
}

.skill-card__fill {
    height: 100%;
    width: 0%;
    background: var(--accent, var(--accent-primary));
    border-radius: var(--radius-full);
    transition: width 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.skill-card__fill.animated {
    width: var(--fill-width, 0%);
}

.skill-card__percent {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}

/* ── PROJECTS SECTION ─────────────────────────── */
.projects__filters {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    transition: all var(--transition-smooth);
    background: var(--glass-bg);
}

.filter-btn:hover {
    color: var(--text-primary);
    border-color: var(--accent-primary);
}

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

.projects__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

.project-card {
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    transition: all var(--transition-smooth);
    transform-style: preserve-3d;
}

.project-card.hidden {
    display: none;
}

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

.project-card__image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.project-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, 
        hsl(var(--hue, 260), 60%, 15%) 0%, 
        hsl(calc(var(--hue, 260) + 40), 50%, 20%) 100%);
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.2);
    transition: transform var(--transition-smooth);
}

.project-card:hover .project-card__placeholder {
    transform: scale(1.1);
}

.project-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

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

.project-link {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    color: #fff;
    transition: all var(--transition-smooth);
    transform: translateY(20px);
}

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

.project-link:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.project-link svg {
    width: 20px;
    height: 20px;
}

.project-card__content {
    padding: 24px;
}

.project-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.tag {
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 500;
    color: var(--accent-primary);
    background: rgba(124, 58, 237, 0.1);
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-card__title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.project-card__description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .projects__grid {
        grid-template-columns: 1fr;
    }
}

/* ── EXPERIENCE SECTION ─────────────────────────── */
.experience {
    background: var(--bg-secondary);
}

.experience__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}

.experience__column-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    color: var(--text-primary);
}

.experience__column-title svg {
    width: 24px;
    height: 24px;
    color: var(--accent-primary);
}

.timeline {
    position: relative;
    padding-left: 32px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-primary), var(--accent-secondary));
    opacity: 0.3;
}

.timeline__item {
    position: relative;
    margin-bottom: 24px;
}

.timeline__dot {
    position: absolute;
    left: -29px;
    top: 24px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-primary);
    border: 3px solid var(--bg-secondary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.3);
    z-index: 1;
}

.timeline__card {
    padding: 24px;
}

.timeline__date {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline__title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    margin: 8px 0 4px;
}

.timeline__company {
    font-size: 14px;
    color: var(--accent-primary);
    font-weight: 500;
}

.timeline__description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 12px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .experience__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ── CONTACT SECTION ─────────────────────────── */
.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 48px;
    align-items: start;
}

.contact__info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-card {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-card__icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: rgba(124, 58, 237, 0.1);
    color: var(--accent-primary);
}

.contact-card__icon svg {
    width: 22px;
    height: 22px;
}

.contact-card h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-card a,
.contact-card span {
    font-size: 14px;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

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

.contact__form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input,
.input-wrapper textarea {
    width: 100%;
    padding: 16px 20px;
    font-family: var(--font-primary);
    font-size: 15px;
    color: var(--text-primary);
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-smooth);
    outline: none;
    resize: vertical;
}

.input-wrapper input:focus,
.input-wrapper textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.15);
}

.input-wrapper label {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    font-size: 14px;
    color: var(--text-muted);
    transition: all var(--transition-smooth);
    pointer-events: none;
    background: transparent;
    padding: 0 4px;
}

.input-wrapper textarea ~ label {
    top: 20px;
    transform: none;
}

.input-wrapper input:focus ~ label,
.input-wrapper input:not(:placeholder-shown) ~ label {
    top: -8px;
    left: 16px;
    font-size: 12px;
    color: var(--accent-primary);
    background: var(--bg-primary);
}

.input-wrapper textarea:focus ~ label,
.input-wrapper textarea:not(:placeholder-shown) ~ label {
    top: -8px;
    left: 16px;
    font-size: 12px;
    color: var(--accent-primary);
    background: var(--bg-primary);
}

[data-theme="light"] .input-wrapper input:focus ~ label,
[data-theme="light"] .input-wrapper input:not(:placeholder-shown) ~ label,
[data-theme="light"] .input-wrapper textarea:focus ~ label,
[data-theme="light"] .input-wrapper textarea:not(:placeholder-shown) ~ label {
    background: var(--bg-primary);
}

.input-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    transition: width var(--transition-smooth);
}

.input-wrapper input:focus ~ .input-line,
.input-wrapper textarea:focus ~ .input-line {
    width: 100%;
}

@media (max-width: 768px) {
    .contact__grid {
        grid-template-columns: 1fr;
    }
}

/* ── FOOTER ─────────────────────────── */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 24px;
}

.footer__content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer__logo {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 16px;
}

.footer__brand p {
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 300px;
}

.footer__links h4,
.footer__social h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer__links a {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    transition: color var(--transition-fast);
}

.footer__links a:hover {
    color: var(--accent-primary);
}

.footer__social-links {
    display: flex;
    gap: 12px;
}

.footer__social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    transition: all var(--transition-smooth);
}

.footer__social-links a svg {
    width: 16px;
    height: 16px;
}

.footer__social-links a:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .footer__content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .footer__bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

/* ── 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-primary);
    border-radius: var(--radius-full);
    color: #fff;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-smooth);
    z-index: 100;
}

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

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.5);
}

.back-to-top svg {
    width: 22px;
    height: 22px;
}

/* ── REVEAL ANIMATIONS ─────────────────────────── */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-up {
    transform: translateY(40px);
}

.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

.reveal-up.revealed,
.reveal-left.revealed,
.reveal-right.revealed {
    opacity: 1;
    transform: translate(0);
}

/* ── PARTICLE STYLES ─────────────────────────── */
.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    background: var(--accent-primary);
}

/* ── RESPONSIVE UTILITIES ─────────────────────────── */
@media (max-width: 480px) {
    :root {
        --section-padding: 80px 0;
    }
    .section-title {
        font-size: 32px;
    }
    .hero__name {
        font-size: 36px;
    }
    .hero__description {
        font-size: 16px;
    }
    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }
}
