/* ============================================
   Jakub Kalina — Personal Portfolio
   Dark, playful, slightly futuristic
   ============================================ */

:root {
    --bg: #0a0a0f;
    --bg-alt: #0f0f18;
    --surface: #161625;
    --surface-hover: #1e1e32;
    --text: #e4e4ef;
    --text-muted: #8888a4;
    --accent: #a855f7;
    --accent-2: #06b6d4;
    --gradient: linear-gradient(135deg, var(--accent), var(--accent-2));
    --radius: 16px;
    --radius-sm: 10px;
    --font: 'Inter', -apple-system, sans-serif;
    --mono: 'JetBrains Mono', monospace;
}

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

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

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

::selection {
    background: var(--accent);
    color: #fff;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

/* ============ Preloader ============ */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    transition: opacity 0.5s, visibility 0.5s;
}

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

.preloader__logo {
    font-family: var(--font);
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -3px;
    display: flex;
}

.preloader__j,
.preloader__k,
.preloader__dot {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
    animation: preloaderLetter 0.5s forwards;
}

.preloader__j { animation-delay: 0.1s; color: var(--text); }
.preloader__k { animation-delay: 0.25s; color: var(--text); }
.preloader__dot {
    animation-delay: 0.4s;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.preloader__bar {
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
}

.preloader__fill {
    height: 100%;
    width: 0;
    background: var(--gradient);
    border-radius: 3px;
    animation: preloaderFill 1.2s 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes preloaderFill {
    to { width: 100%; }
}

/* ============ Cursor Glow ============ */
.cursor-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.04) 0%, rgba(6, 182, 212, 0.02) 30%, transparent 60%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.5s;
    opacity: 0;
    mix-blend-mode: screen;
    filter: blur(40px);
}

.cursor-glow.active {
    opacity: 1;
}

/* ============ Particles ============ */
.particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0);
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(-100vh) scale(1);
    }
}

/* ============ Navigation ============ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav--scrolled {
    padding: 14px 40px;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(168, 85, 247, 0.1);
}

.nav__logo {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -1px;
    z-index: 101;
}

.nav__links {
    display: flex;
    gap: 36px;
}

.nav__links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.3s;
    position: relative;
}

.nav__links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav__links a:hover {
    color: var(--text);
}

.nav__links a:hover::after {
    width: 100%;
}

.nav__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 101;
    padding: 4px;
}

.nav__burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s;
    border-radius: 2px;
}

.nav__burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav__burger.active span:nth-child(2) {
    opacity: 0;
}
.nav__burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99;
    background: rgba(10, 10, 15, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu a {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.3s;
}

.mobile-menu a:hover {
    color: var(--text);
}

/* ============ Hero ============ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 120px 40px 80px;
    max-width: 1300px;
    margin: 0 auto;
    gap: 60px;
    z-index: 1;
}

.hero__content {
    flex: 1;
    max-width: 600px;
}

.hero__badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 100px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.25);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.5px;
    margin-bottom: 24px;
    font-family: var(--mono);
}

.hero__title {
    font-size: clamp(2.8rem, 5.5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 24px;
}

.hero__subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 40px;
}

.typed {
    color: var(--accent-2);
    font-weight: 600;
    border-right: 2px solid var(--accent-2);
    padding-right: 2px;
    animation: blink 0.8s step-end infinite;
}

@keyframes blink {
    50% { border-color: transparent; }
}

.hero__cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
}

.btn--primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 4px 24px rgba(168, 85, 247, 0.3);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(168, 85, 247, 0.45);
}

.btn--outline {
    background: transparent;
    color: var(--text);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
}

.btn--outline:hover {
    border-color: var(--accent);
    background: rgba(168, 85, 247, 0.05);
    transform: translateY(-2px);
}

/* Hero phone 3D */
.hero__phone {
    flex-shrink: 0;
}

.phone-3d {
    perspective: 1200px;
}

.phone {
    width: 280px;
    height: 580px;
    background: #1a1a2e;
    border-radius: 40px;
    border: 3px solid #2a2a45;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(168, 85, 247, 0.1),
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 100px rgba(168, 85, 247, 0.08),
        inset 0 0 30px rgba(0, 0, 0, 0.3);
    transform: rotateY(-12deg) rotateX(5deg);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    animation: phoneFloat 6s ease-in-out infinite;
}

.phone:hover {
    transform: rotateY(-4deg) rotateX(2deg);
}

@keyframes phoneFloat {
    0%, 100% { transform: rotateY(-12deg) rotateX(5deg) translateY(0); }
    50% { transform: rotateY(-12deg) rotateX(5deg) translateY(-12px); }
}

.phone__notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 28px;
    background: #0a0a0f;
    border-radius: 0 0 18px 18px;
    z-index: 2;
}

.phone__screen {
    position: absolute;
    inset: 0;
    padding: 50px 16px 16px;
    background: linear-gradient(180deg, #0f0f1e 0%, #161630 100%);
    overflow: hidden;
}

/* App mockup inside phone */
.phone__app {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.app-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.app-header__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--gradient);
}

.skeleton {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 6px;
}

.skeleton-light {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
}

.app-cards {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.app-card {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.app-card--accent {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(6, 182, 212, 0.15));
    border-color: rgba(168, 85, 247, 0.2);
}

.app-nav {
    display: flex;
    justify-content: space-around;
    padding: 16px 0 8px;
    margin-top: auto;
}

.app-nav__item {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
}

.app-nav__item--active {
    background: var(--gradient);
}

/* Scroll indicator */
.hero__scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.5; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(4px); }
}

.scroll-indicator__mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-indicator__wheel {
    width: 3px;
    height: 8px;
    border-radius: 3px;
    background: var(--accent);
    animation: wheelScroll 1.5s ease-in-out infinite;
}

@keyframes wheelScroll {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(10px); opacity: 0; }
}

/* ============ Sections ============ */
.section {
    position: relative;
    padding: 120px 0;
    z-index: 1;
}

.section--alt {
    background: var(--bg-alt);
}

.section__title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -1.5px;
    text-align: center;
    margin-bottom: 16px;
}

.section__desc {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 60px;
}

/* ============ About ============ */
.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    margin-top: 60px;
}

.about__text p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.8;
}

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

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

.stat-card {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    padding: 24px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-card:hover {
    background: var(--surface-hover);
    border-color: rgba(168, 85, 247, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(168, 85, 247, 0.08);
}

.stat-card__icon {
    width: 40px;
    height: 40px;
    margin-bottom: 16px;
    color: var(--accent);
}

.stat-card__icon svg {
    width: 100%;
    height: 100%;
}

.stat-card__label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.stat-card__value {
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============ Skills ============ */
.skills__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 60px;
}

.skill-card {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    padding: 32px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

/* Animated gradient border glow */
.skill-card__glow {
    position: absolute;
    inset: -1px;
    border-radius: var(--radius);
    background: conic-gradient(from var(--glow-angle, 0deg), transparent 40%, var(--accent) 50%, var(--accent-2) 55%, transparent 65%);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: -1;
}

.skill-card__glow::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: calc(var(--radius) - 1px);
    background: var(--surface);
}

.skill-card:hover .skill-card__glow {
    opacity: 1;
    animation: glowRotate 3s linear infinite;
}

@keyframes glowRotate {
    to { --glow-angle: 360deg; }
}

@property --glow-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

.skill-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.4s;
}

.skill-card:hover {
    border-color: transparent;
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(168, 85, 247, 0.1);
}

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

.skill-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
}

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

.skill-card__icon--kotlin {
    background: rgba(127, 82, 255, 0.15);
    color: #7F52FF;
}

.skill-card__icon--compose {
    background: rgba(79, 195, 113, 0.15);
    color: #4FC371;
}

.skill-card__icon--kmp {
    background: rgba(6, 182, 212, 0.15);
    color: var(--accent-2);
}

.skill-card__icon--android {
    background: rgba(61, 220, 132, 0.15);
    color: #3DDC84;
}

.skill-card__icon--python {
    background: rgba(255, 212, 59, 0.15);
    color: #FFD43B;
}

.skill-card__icon--devops {
    background: rgba(0, 120, 212, 0.15);
    color: #0078D4;
}

.skill-card__icon--ai {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(6, 182, 212, 0.15));
    color: var(--accent);
}

.skill-card__icon--figma {
    background: rgba(242, 78, 30, 0.12);
    color: #F24E1E;
}

.skill-card__icon--web {
    background: rgba(247, 223, 30, 0.12);
    color: #F7DF1E;
}

.skill-card__badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 12px;
    position: relative;
}

.skill-badge {
    padding: 3px 10px;
    border-radius: 100px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.2);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--accent-2);
    font-family: var(--mono);
}

.skill-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    position: relative;
}

.skill-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    position: relative;
}

/* ============ Workflow ============ */
.workflow__track {
    position: relative;
    margin-top: 60px;
}

.workflow__line {
    position: absolute;
    top: 7px;
    /* Start/end at center of first/last dot (1/8 and 1/8 of grid for 4 cols) */
    left: calc(100% / 8);
    right: calc(100% / 8);
    height: 3px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    z-index: 2;
}

.workflow__line-fill {
    height: 100%;
    width: 0;
    background: var(--gradient);
    border-radius: 3px;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.workflow__steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
    z-index: 1;
}

.workflow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.workflow-step__dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--gradient);
    margin-bottom: 24px;
    position: relative;
    z-index: 3;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
}

.workflow-step__dot::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(168, 85, 247, 0.2);
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0; }
}

.workflow-step__card {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    padding: 28px 20px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
    position: relative;
    overflow: hidden;
}

.workflow-step__card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.4s;
}

.workflow-step__card:hover {
    border-color: rgba(168, 85, 247, 0.25);
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(168, 85, 247, 0.12);
}

.workflow-step__card:hover::before {
    opacity: 0.04;
}

.workflow-step__icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 16px;
    color: var(--accent);
    position: relative;
}

.workflow-step__icon svg {
    width: 100%;
    height: 100%;
}

.workflow-step__num {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--accent-2);
    margin-bottom: 8px;
    letter-spacing: 2px;
    position: relative;
}

.workflow-step h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    position: relative;
}

.workflow-step p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    position: relative;
}

/* ============ Timeline ============ */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 60px auto 0;
    padding: 0 20px;
}

.timeline__line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(-50%);
    border-radius: 3px;
}

.timeline__line-fill {
    width: 100%;
    height: 0;
    background: var(--gradient);
    border-radius: 3px;
    transition: height 2s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: calc(50% + 32px);
    padding-left: 0;
    position: relative;
    margin-bottom: 48px;
}

.timeline-item--right {
    justify-content: flex-start;
    padding-left: calc(50% + 32px);
    padding-right: 0;
}

.timeline-item__dot {
    position: absolute;
    left: 50%;
    top: 28px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--gradient);
    transform: translateX(-50%);
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.3);
    z-index: 2;
}

.timeline-item__content {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    padding: 28px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 100%;
}

.timeline-item__content:hover {
    border-color: rgba(168, 85, 247, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(168, 85, 247, 0.08);
}

.timeline-item__date {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--accent-2);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.timeline-item__content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.timeline-item__content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 12px;
}

.timeline-item__tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.timeline-item__tags span {
    padding: 3px 10px;
    border-radius: 100px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.2);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--accent);
    font-family: var(--mono);
}

/* ============ Portfolio ============ */
.portfolio__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.portfolio-card {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-card:hover {
    border-color: rgba(168, 85, 247, 0.25);
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(168, 85, 247, 0.1);
}

.portfolio-card__phone {
    display: flex;
    justify-content: center;
    padding: 40px 20px 20px;
    background: linear-gradient(180deg, rgba(168, 85, 247, 0.05), transparent);
}

.phone--small {
    width: 160px;
    height: 330px;
    border-radius: 24px;
    border-width: 2px;
    transform: rotateY(-8deg) rotateX(3deg);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    animation: none;
}

.portfolio-card:hover .phone--small {
    transform: rotateY(0deg) rotateX(0deg) scale(1.02);
}

.phone--small .phone__notch {
    width: 70px;
    height: 16px;
    top: 8px;
    border-radius: 0 0 12px 12px;
}

.phone--small .phone__screen {
    padding: 30px 10px 10px;
}

/* Mock apps */
.mock-app {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mock-app__header {
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
    padding: 0 4px;
}

/* Fitness app mock */
.mock-app--fitness {
    text-align: center;
}

.mock-ring {
    width: 80px;
    height: 80px;
    margin: 0 auto 12px;
    position: relative;
}

.mock-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.mock-ring span {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
}

.mock-app__hero-stat {
    margin-bottom: 12px;
}

.mock-app__bars {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    height: 50px;
    margin-top: auto;
    padding: 0 8px;
}

.mock-bar {
    flex: 1;
    background: var(--gradient);
    border-radius: 3px 3px 0 0;
    opacity: 0.7;
}

/* Weather app mock */
.mock-weather {
    text-align: center;
    padding: 8px 0;
}

.mock-weather__icon svg {
    width: 48px;
    height: 48px;
}

.mock-weather__temp {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    line-height: 1.2;
}

.mock-weather__label {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 12px;
}

.mock-weather__forecast {
    display: flex;
    justify-content: space-around;
    margin-top: auto;
    padding: 8px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mock-forecast-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.6);
}

.mock-forecast-item span:last-child {
    color: white;
    font-weight: 600;
}

/* Notes app mock */
.mock-app--notes {
    position: relative;
}

.mock-notes {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.mock-note {
    padding: 10px;
    border-radius: 10px;
    border-left: 3px solid;
}

.mock-note--1 {
    background: rgba(168, 85, 247, 0.1);
    border-color: var(--accent);
}
.mock-note--2 {
    background: rgba(6, 182, 212, 0.1);
    border-color: var(--accent-2);
}
.mock-note--3 {
    background: rgba(251, 191, 36, 0.1);
    border-color: #fbbf24;
}

.mock-note__title {
    width: 60%;
    height: 8px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    margin-bottom: 6px;
}

.mock-note__text {
    width: 90%;
    height: 5px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin-bottom: 4px;
}

.mock-note__text.short {
    width: 50%;
}

.mock-fab {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: var(--gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 300;
    box-shadow: 0 4px 16px rgba(168, 85, 247, 0.3);
}

.portfolio-card__info {
    padding: 24px;
}

.portfolio-card__info h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.portfolio-card__info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

.portfolio-card__tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.portfolio-card__tags span {
    padding: 4px 12px;
    border-radius: 100px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.2);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent);
    font-family: var(--mono);
}

/* ============ Contact ============ */
.contact__links {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 32px 48px;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-link:hover {
    border-color: rgba(168, 85, 247, 0.3);
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(168, 85, 247, 0.1);
    background: var(--surface-hover);
}

.contact-link__icon {
    width: 48px;
    height: 48px;
    color: var(--text-muted);
    transition: color 0.3s;
}

.contact-link__icon svg {
    width: 100%;
    height: 100%;
}

.contact-link:hover .contact-link__icon {
    color: var(--accent);
}

.contact-link span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.3s;
}

.contact-link:hover span {
    color: var(--text);
}

/* ============ Footer ============ */
.footer {
    position: relative;
    z-index: 1;
    padding: 40px 0 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.footer__links {
    display: flex;
    gap: 16px;
}

.footer__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.footer__link:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.footer__text {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer__top {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.footer__top:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* ============ Scroll Reveal ============ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Stagger children */
.reveal[data-delay="100"] { transition-delay: 0.1s; }
.reveal[data-delay="200"] { transition-delay: 0.2s; }
.reveal[data-delay="300"] { transition-delay: 0.3s; }
.reveal[data-delay="400"] { transition-delay: 0.4s; }
.reveal[data-delay="500"] { transition-delay: 0.5s; }
.reveal[data-delay="600"] { transition-delay: 0.6s; }
.reveal[data-delay="700"] { transition-delay: 0.7s; }
.reveal[data-delay="800"] { transition-delay: 0.8s; }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 140px 24px 80px;
    }

    .hero__subtitle br {
        display: none;
    }

    .hero__cta {
        justify-content: center;
    }

    .about__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about__text {
        text-align: center;
    }

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

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

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

    .workflow__line {
        display: none;
    }
}

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

    .nav__burger {
        display: flex;
    }

    .mobile-menu {
        display: flex;
    }

    .hero {
        padding: 120px 20px 60px;
    }

    .hero__title {
        letter-spacing: -1px;
    }

    .phone-3d {
        transform: scale(0.85);
    }

    .section {
        padding: 80px 0;
    }

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

    .portfolio__grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

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

    .contact-link {
        width: 100%;
        max-width: 300px;
    }

    .workflow__steps {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Timeline mobile */
    .timeline__line {
        left: 20px;
    }

    .timeline-item,
    .timeline-item--right {
        padding-left: 56px;
        padding-right: 0;
        justify-content: flex-start;
    }

    .timeline-item__dot {
        left: 20px;
    }

    .cursor-glow {
        display: none;
    }
}

@media (max-width: 480px) {
    .nav {
        padding: 16px 20px;
    }

    .nav--scrolled {
        padding: 12px 20px;
    }

    .hero__badge {
        font-size: 0.75rem;
    }

    .phone-3d {
        transform: scale(0.75);
    }

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