/* ================================================
   FUTURISTIC APPLE-STYLE PORTFOLIO
   Emre Ayan - Software Engineer
   ================================================ */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

:root {
    --bg: #000000;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    /* slight brighten for B&W */
    --text-primary: #f5f5f7;
    --text-secondary: #aaaaaa;
    --text-tertiary: #666666;
    --accent: #ffffff;
    --accent-purple: #6e6e73;
    --accent-green: #ffffff;
    --accent-gradient: linear-gradient(135deg, #ffffff 0%, #888888 100%);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', monospace;
    --radius: 16px;
    --radius-sm: 8px;
    --radius-lg: 24px;
}

body {
    background: var(--bg);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.logo-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    z-index: 1000;
    min-width: 0;
}

.logo-ea {
    font-size: 2rem;
    font-weight: 900;
    font-style: italic;
    background: linear-gradient(135deg, #ffffff 0%, #aaaaaa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -3px;
    line-height: 1;
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 5px;
    color: #dfdfdf;
    text-transform: uppercase;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    box-sizing: border-box;
}

/* === NEON GLOW FRAME === */
.glow-frame {
    position: fixed;
    z-index: 0;
    pointer-events: none;
}

.glow-top {
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4) 50%, transparent);
    box-shadow: 0 0 40px 15px rgba(255, 255, 255, 0.05);
}

.glow-bottom {
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2) 50%, transparent);
    box-shadow: 0 0 40px 15px rgba(255, 255, 255, 0.03);
}

/* === CURSOR SPOTLIGHT (fareyi takip eden isik huzmeleri) === */
.cursor-spotlight {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    /* Konik isik huzmesi + yumusak merkez */
    background:
        radial-gradient(ellipse 350px 550px at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(255, 255, 255, 0.12) 0%,
            rgba(255, 255, 255, 0.05) 22%,
            rgba(255, 255, 255, 0.02) 45%,
            transparent 65%),
        radial-gradient(500px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(255, 255, 255, 0.08) 0%,
            rgba(255, 255, 255, 0.03) 35%,
            transparent 60%);
    transition: opacity 0.4s ease;
    opacity: 0;
    will-change: background;
}

.cursor-spotlight.active {
    opacity: 1;
}

/* === FLOATING SHAPES === */
.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.02);
    border-radius: 50%;
    animation: floatShape 25s infinite ease-in-out;
}

.shape-1 {
    top: 20%;
    left: 10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
}

.shape-2 {
    bottom: 10%;
    right: 5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.02) 0%, transparent 70%);
}

.shape-3 {
    top: 50%;
    left: 40%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.015) 0%, transparent 70%);
}

@keyframes floatShape {

    0%,
    100% {
        transform: translate(0, 0);
    }

    33% {
        transform: translate(30px, -40px);
    }

    66% {
        transform: translate(-20px, 25px);
    }
}

/* === UTILITIES === */
.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* === SCROLL PROGRESS === */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent-gradient);
    z-index: 9999;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

/* === LOGO === */
.logo-svg {
    width: 48px;
    height: 32px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.logo:hover .logo-svg {
    transform: scale(1.05);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
}

.footer-logo-svg {
    width: 40px;
    height: 26px;
}

/* === NAVBAR === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100vw;
    padding: 1.2rem 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-x: hidden;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
    padding: 0.3rem 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link.active::after,
.nav-link:hover::after {
    width: 100%;
}

.nav-link.cta-link {
    background: var(--accent-gradient);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
}

.nav-link.cta-link::after {
    display: none;
}

.nav-link.cta-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 28px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.mobile-menu-btn span:nth-child(1) {
    top: 0;
}

.mobile-menu-btn span:nth-child(2) {
    top: 9px;
}

.mobile-menu-btn span:nth-child(3) {
    top: 18px;
}

/* === HERO === */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding: 120px 0 60px;
    z-index: 1;
    text-align: center;
    overflow-x: hidden;
}

.hero-center {
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    letter-spacing: 0.5px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--text-primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(255, 255, 255, 0);
    }
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -3px;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.typewriter {
    color: var(--accent);
    font-weight: 600;
    border-right: 2px solid var(--accent);
    padding-right: 4px;
    animation: blink 0.8s step-end infinite;
}

@keyframes blink {

    from,
    to {
        border-color: transparent;
    }

    50% {
        border-color: var(--accent);
    }
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: var(--font-main);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(41, 151, 255, 0.3);
}

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* === MACBOOK FRAME === */
.macbook-wrapper {
    max-width: 900px;
    width: 100%;
    margin: 3rem auto 0;
    perspective: 1200px;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.macbook-wrapper:hover {
    transform: translateY(-8px);
}

.macbook-screen {
    position: relative;
    background: linear-gradient(145deg, #2a2a2a 0%, #1a1a1a 50%, #222222 100%);
    border-radius: 16px 16px 0 0;
    padding: 10px 10px 0 10px;
    box-shadow:
        0 -2px 20px rgba(255, 255, 255, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 40px 100px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: none;
}

/* Notch */
.macbook-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 22px;
    background: #111111;
    border-radius: 0 0 12px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: none;
}

.macbook-camera {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #1a3a1a;
    box-shadow: inset 0 0 2px rgba(0, 255, 0, 0.2);
}

/* Display area */
.macbook-display {
    border-radius: 8px;
    overflow: hidden;
    background: #111111;
}

/* Base / Hinge */
.macbook-base {
    width: 105%;
    margin-left: -2.5%;
    height: 14px;
    background: linear-gradient(180deg, #3a3a3a 0%, #2a2a2a 40%, #1e1e1e 100%);
    border-radius: 0 0 10px 10px;
    position: relative;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.macbook-base-indent {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 2px;
    width: 60px;
    height: 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
}

/* === IDE CODE EDITOR (inside MacBook) === */
.hero-ide {
    position: relative;
    /* no margin/max-width - fills macbook display */
}

/* Remove standalone glow when inside MacBook */
.hero-ide::before {
    display: none;
}

@keyframes borderGlow {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

.ide-frame {
    background: rgba(22, 22, 22, 0.95);
    overflow: hidden;
    /* No border-radius or shadow - MacBook frame handles it */
}

.ide-frame:hover {
    transform: none;
    /* Hover handled by macbook-wrapper */
}

/* Title Bar */
.ide-titlebar {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    background: rgba(30, 30, 30, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    gap: 12px;
}

.ide-dots {
    display: flex;
    gap: 7px;
    flex-shrink: 0;
}

.dot-red {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff5f57;
}

.dot-yellow {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #febc2e;
}

.dot-green {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #28c840;
}

.ide-tabs {
    display: flex;
    gap: 0;
    margin-left: 12px;
}

.ide-tab {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-tertiary);
    padding: 6px 14px;
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ide-tab.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 2px solid var(--text-primary);
}

.ide-tab i {
    font-size: 0.65rem;
    opacity: 0.6;
}

.ide-title-text {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-tertiary);
    margin-left: auto;
    opacity: 0.5;
}

/* IDE Body */
.ide-body {
    display: flex;
    min-height: 290px;
    min-width: 0;
}

/* Sidebar */
.ide-sidebar {
    display: flex;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.ide-activity-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 0;
    width: 44px;
    background: rgba(20, 20, 20, 0.8);
    border-right: 1px solid rgba(255, 255, 255, 0.04);
}

.activity-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
    position: relative;
}

.activity-icon:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.activity-icon.active {
    color: var(--text-primary);
}

.activity-icon.active::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: var(--text-primary);
    border-radius: 2px;
}

/* File Tree */
.ide-file-tree {
    width: 160px;
    padding: 8px 0;
    background: rgba(25, 25, 25, 0.6);
    overflow: hidden;
}

.file-tree-title {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 1.5px;
    color: var(--text-tertiary);
    padding: 4px 12px 8px;
    font-weight: 600;
}

.file-tree-item {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-secondary);
    padding: 3px 12px 3px 20px;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.file-tree-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.file-tree-item.active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.file-tree-item i {
    font-size: 0.65rem;
    opacity: 0.7;
}

.file-tree-item.folder i:first-child {
    font-size: 0.5rem;
}

.file-tree-item.folder i:nth-child(2) {
    color: #dcb67a;
}

/* Editor */
.ide-editor {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ide-breadcrumb {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-tertiary);
    padding: 4px 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    background: rgba(25, 25, 25, 0.3);
}

.ide-breadcrumb i {
    font-size: 0.45rem;
    opacity: 0.4;
}

.ide-code {
    padding: 10px 0;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.8;
    flex: 1;
}

.code-line {
    padding: 0 16px;
    display: flex;
    white-space: nowrap;
    transition: background 0.15s;
}

.code-line:hover {
    background: rgba(255, 255, 255, 0.03);
}

.line-num {
    color: rgba(255, 255, 255, 0.2);
    width: 28px;
    text-align: right;
    margin-right: 20px;
    user-select: none;
    flex-shrink: 0;
}

.keyword {
    color: #c586c0;
}

.class-name {
    color: #4ec9b0;
}

.type {
    color: #4ec9b0;
}

.string {
    color: #ce9178;
}

.function {
    color: #dcdcaa;
}

.cursor-blink {
    color: var(--text-primary);
    animation: cursorBlink 1s step-end infinite;
}

@keyframes cursorBlink {

    from,
    to {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Status Bar */
.ide-statusbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 12px;
    background: rgba(0, 120, 212, 0.0);
    /* Transparent — monochrome */
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(30, 30, 30, 0.8);
}

.statusbar-left,
.statusbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.statusbar-item {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.statusbar-item i {
    font-size: 0.6rem;
}

/* === HERO STATS === */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
}

.stat-plus {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat-label {
    display: block;
    color: var(--text-tertiary);
    font-size: 0.8rem;
    margin-top: 0.3rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
}

/* === SCROLL INDICATOR === */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 3px;
    height: 6px;
    background: rgba(255, 255, 255, 0.5);
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
    0% {
        top: 8px;
        opacity: 1;
    }

    100% {
        top: 22px;
        opacity: 0;
    }
}

/* === SECTIONS === */
.section {
    padding: 6rem 0;
    position: relative;
    z-index: 1;
    overflow-x: hidden;
}

.section-header {
    margin-bottom: 4rem;
}

.section-tag {
    font-family: var(--font-main);
    color: var(--text-tertiary);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    display: block;
    margin-bottom: 0.8rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 0.5rem;
}

.section-desc {
    color: var(--text-secondary);
    max-width: 500px;
    font-size: 1.05rem;
}

/* === ABOUT === */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.7;
}

.highlight {
    color: var(--text-primary);
    font-weight: 600;
}

/* === BENTO GRID === */
.bento-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.bento-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
}

.bento-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(41, 151, 255, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 0 40px rgba(41, 151, 255, 0.08);
}

.bento-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.bento-card h3 {
    font-size: 1rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.bento-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.bento-tags span {
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.bento-tags span:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
}


/* === PROJECTS — Sinematic Showcase === */
.projects-showcase {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.project-block {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    overflow: hidden;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
    max-width: 100%;
}

.project-block:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 80px rgba(255, 255, 255, 0.05);
}

/* Top meta bar */
.project-block-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.4rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    flex-wrap: wrap;
}

.project-index {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    letter-spacing: 2px;
    flex-shrink: 0;
}

.project-block-header {
    flex: 1;
}

.project-block-title {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 0.15rem;
}

.project-block-subtitle {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

.project-tech-inline {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    flex-shrink: 1;
    min-width: 0;
}

.project-tech-inline span {
    font-size: 0.68rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    padding: 0.25rem 0.6rem;
    border-radius: 5px;
    white-space: nowrap;
}

/* Hero Image */
.project-hero-img {
    position: relative;
    aspect-ratio: 21 / 9;
    /* Ultra-wide cinematic aspect ratio */
    min-height: 380px;
    max-height: 600px;
    overflow: hidden;
    background: #000000;
}

.project-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.project-block:hover .project-hero-img img {
    transform: scale(1.04);
}

.project-hero-overlay {
    position: absolute;
    inset: 0;
    /* Stronger blending gradients to hide edges */
    background:
        radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.8) 100%),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, transparent 20%, transparent 70%, rgba(0, 0, 0, 0.95) 100%),
        linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, transparent 15%, transparent 85%, rgba(0, 0, 0, 0.8) 100%);
    pointer-events: none;
}

/* Footer: stats + desc */
.project-block-footer {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.project-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-right: 1px solid rgba(255, 255, 255, 0.04);
}

.pstat {
    padding: 1.5rem 1.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.3s;
}

.pstat:nth-child(even) {
    border-right: none;
}

.pstat:nth-child(3),
.pstat:nth-child(4) {
    border-bottom: none;
}

.pstat:hover {
    background: rgba(255, 255, 255, 0.03);
}

.pstat-value {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.3rem;
    line-height: 1.1;
}

.pstat-label {
    font-size: 0.7rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 500;
}

.project-block-desc {
    padding: 1.6rem 2rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    min-width: 0;
}

.project-block-desc p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 680px;
    flex: 1;
    min-width: 0;
}

.project-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.88rem;
    padding: 0.7rem 1.4rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    align-self: flex-start;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.03);
}

.project-cta:hover {
    background: var(--accent-gradient);
    border-color: transparent;
    color: var(--bg);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
}

/* Keep .project-tech for modal */
.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.project-tech span {
    font-size: 0.72rem;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-weight: 500;
}



/* === CONTACT === */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.contact-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.contact-link-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    padding: 0.8rem 1.2rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
}

.contact-link-item i {
    color: var(--accent);
    width: 20px;
    text-align: center;
}

.contact-link-item:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(4px);
}

/* Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 0.95rem;
    transition: all 0.3s;
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-tertiary);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.form-message {
    margin-top: 0.5rem;
    padding: 1rem;
    border-radius: var(--radius-sm);
    text-align: center;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-message.success {
    background: rgba(48, 209, 88, 0.1);
    color: var(--accent-green);
    border: 1px solid rgba(48, 209, 88, 0.2);
}

.form-message.error {
    background: rgba(255, 55, 95, 0.1);
    color: #ff375f;
    border: 1px solid rgba(255, 55, 95, 0.2);
}

/* === BACK TO TOP === */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-3px);
}

/* === MODAL === */
.project-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.project-modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: #111;
    border-radius: var(--radius-lg);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transform: scale(0.95);
    transition: transform 0.3s;
}

.project-modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-header {
    height: 300px;
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-body {
    padding: 2.5rem;
}

.modal-body h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.modal-description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.modal-features {
    margin: 2rem 0;
}

.modal-features h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.modal-features ul {
    list-style: none;
}

.modal-features li {
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
    color: var(--text-secondary);
}

.modal-features li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* === SCREENSHOT GALLERY === */
.modal-gallery {
    margin: 2rem 0;
}

.modal-gallery h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.gallery-viewport {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.gallery-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-slide {
    min-width: 100%;
    position: relative;
}

.gallery-slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    max-height: 450px;
    margin: 0 auto;
    background: #000;
}

.gallery-caption {
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-secondary);
    padding: 0.8rem 1rem;
    background: rgba(0, 0, 0, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Arrows */
.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-60%);
    z-index: 5;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-arrow:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-60%) scale(1.1);
}

.gallery-prev {
    left: 12px;
}

.gallery-next {
    right: 12px;
}

/* Dots */
.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.gallery-dot.active {
    background: var(--text-primary);
    transform: scale(1.3);
}

.gallery-dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* === FOOTER === */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 3rem;
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-brand p {
    color: var(--text-tertiary);
    font-size: 0.85rem;
}

.footer-nav {
    display: flex;
    gap: 2rem;
}

.footer-nav a {
    color: var(--text-tertiary);
    font-size: 0.85rem;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: var(--text-primary);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: all 0.3s;
}

.footer-social a:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding: 2rem 0;
    color: var(--text-tertiary);
    font-size: 0.8rem;
}

.footer-bottom i {
    color: #ff375f;
}

/* === ANIMATIONS === */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === MOBILE === */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    padding: 6rem 2rem 2rem;
    z-index: 999;
    transition: right 0.3s ease;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu .nav-link {
    display: block;
    padding: 1rem 0;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

.mobile-menu .cta-link {
    margin-top: 2rem;
    display: inline-block;
    width: auto;
}

.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.mobile-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
    .container {
        padding: 0 1.25rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-brand {
        flex-direction: column;
        gap: 0.5rem;
    }

    .project-block-meta {
        flex-wrap: wrap;
        gap: 0.8rem;
    }

    .project-block-desc {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .project-hero-img {
        height: auto;
        min-height: 250px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .logo-text {
        font-size: 0.9rem;
        letter-spacing: 2px;
    }

    .hero-title {
        font-size: 2.8rem;
        letter-spacing: -1.5px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .contact-title {
        font-size: 2.2rem;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .stat-divider {
        width: 60px;
        height: 1px;
    }

    .macbook-wrapper {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding: 0;
    }

    .macbook-base {
        width: 100%;
        margin-left: 0;
    }

    .macbook-screen {
        padding: 8px 8px 0 8px;
    }

    .ide-frame {
        overflow-x: hidden;
    }

    .ide-titlebar {
        flex-wrap: wrap;
        padding: 8px 10px;
        gap: 8px;
    }

    .ide-tabs {
        overflow-x: auto;
        flex: 1;
        min-width: 0;
        -webkit-overflow-scrolling: touch;
    }

    .ide-title-text {
        display: none;
    }

    .ide-sidebar {
        display: none;
    }

    .ide-code {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .ide-code::-webkit-scrollbar {
        height: 4px;
    }

    .ide-code::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.2);
        border-radius: 2px;
    }

    .code-line {
        font-size: 0.75rem;
    }

    .project-block-meta {
        padding: 1rem 1.25rem;
    }

    .project-hero-img {
        height: auto;
        min-height: 200px;
        aspect-ratio: 16 / 10;
    }

    .project-hero-img img {
        max-width: 100%;
        object-fit: cover;
    }

    .project-block-desc {
        padding: 1.25rem 1.25rem;
    }

    .project-cta {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }

    .hero-title {
        font-size: 2.2rem;
        letter-spacing: -1px;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section {
        padding: 4rem 0;
    }

    .code-line {
        font-size: 0.65rem;
    }

    .project-block-meta {
        padding: 0.875rem 1rem;
    }

    .project-block-title {
        font-size: 1.1rem;
    }

    .project-block-subtitle {
        font-size: 0.75rem;
    }

    .project-block-desc {
        padding: 1rem;
    }

    .project-hero-img {
        min-height: 180px;
    }
}