/* ============================================
   WebDevHabib — Premium Personal Brand Website
   style.css
   ============================================ */

/* CSS Variables */
:root {
    --bg: #0a0a0b;
    --bg-alt: #111113;
    --surface: #f7f6f3;
    --surface-alt: #eeedea;
    --text: #1a1a1b;
    --text-light: #f7f6f3;
    --muted: #6b6b6f;
    --muted-light: #a0a0a5;
    --border: #222225;
    --border-light: #e0dfdc;
    --accent: #c4965a;
    --accent-hover: #d4a66a;
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth: cubic-bezier(0.65, 0, 0.35, 1);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text-light);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

::selection {
    background: var(--accent);
    color: var(--bg);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s var(--ease);
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

.section {
    padding: 140px 0;
}

/* Custom Cursor */
.custom-cursor,
.custom-cursor-dot {
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    border-radius: 50%;
    transition: transform 0.15s var(--ease);
    display: none;
}

.custom-cursor {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(196, 150, 90, 0.4);
    transform: translate(-50%, -50%);
}

.custom-cursor-dot {
    width: 5px;
    height: 5px;
    background: var(--accent);
    transform: translate(-50%, -50%);
}

/* Eyebrow */
.eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
}

/* Section Headline */
.section-headline {
    font-family: var(--font-heading);
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 40px;
    max-width: 800px;
}

/* Text Link */
.text-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.3s var(--ease), color 0.3s var(--ease);
}

.text-link:hover {
    gap: 8px;
    color: var(--accent-hover);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s var(--ease);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

/* Reveal Animations */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-up.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   HEADER
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 0;
    transition: all 0.4s var(--ease);
}

.header.scrolled {
    background: rgba(10, 10, 11, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: var(--text-light);
}

.nav-list {
    display: flex;
    gap: 36px;
}

.nav-link {
    font-size: 13px;
    font-weight: 500;
    color: var(--muted-light);
    transition: color 0.3s var(--ease);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s var(--ease);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-light);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-cta {
    font-size: 13px;
    font-weight: 500;
    color: var(--accent);
    padding: 10px 24px;
    border: 1px solid rgba(196, 150, 90, 0.3);
    border-radius: 4px;
    transition: all 0.3s var(--ease);
}

.header-cta:hover {
    background: var(--accent);
    color: var(--bg);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1002;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--text-light);
    transition: all 0.3s var(--ease);
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 11, 0.97);
    backdrop-filter: blur(30px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s var(--ease-out);
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-content {
    text-align: center;
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-nav-link {
    font-family: var(--font-heading);
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 700;
    color: var(--text-light);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s var(--ease-out);
    display: block;
    padding: 8px 0;
}

.mobile-nav-overlay.active .mobile-nav-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav-overlay.active .mobile-nav-list li:nth-child(1) .mobile-nav-link { transition-delay: 0.1s; }
.mobile-nav-overlay.active .mobile-nav-list li:nth-child(2) .mobile-nav-link { transition-delay: 0.15s; }
.mobile-nav-overlay.active .mobile-nav-list li:nth-child(3) .mobile-nav-link { transition-delay: 0.2s; }
.mobile-nav-overlay.active .mobile-nav-list li:nth-child(4) .mobile-nav-link { transition-delay: 0.25s; }
.mobile-nav-overlay.active .mobile-nav-list li:nth-child(5) .mobile-nav-link { transition-delay: 0.3s; }
.mobile-nav-overlay.active .mobile-nav-list li:nth-child(6) .mobile-nav-link { transition-delay: 0.35s; }
.mobile-nav-overlay.active .mobile-nav-list li:nth-child(7) .mobile-nav-link { transition-delay: 0.4s; }

.mobile-nav-link:hover {
    color: var(--accent);
}

.mobile-nav-footer {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s var(--ease-out) 0.45s;
}

.mobile-nav-overlay.active .mobile-nav-footer {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav-footer a {
    font-size: 14px;
    color: var(--muted);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-headline {
    font-family: var(--font-heading);
    font-size: clamp(36px, 5.5vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 28px;
}

.hero-text {
    font-size: 17px;
    color: var(--muted-light);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 520px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-portrait {
    position: relative;
    z-index: 2;
}

.portrait-placeholder {
    width: 260px;
    height: 320px;
    background: linear-gradient(135deg, var(--bg-alt), #1a1a1e);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.portrait-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(196,150,90,0.05), transparent);
}

.portrait-initials {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 800;
    color: rgba(196, 150, 90, 0.2);
    letter-spacing: 0.05em;
}

.portrait-ring {
    position: absolute;
    inset: -20px;
    border: 1px solid rgba(196, 150, 90, 0.1);
    border-radius: 50%;
    animation: ringPulse 4s ease-in-out infinite;
}

@keyframes ringPulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.05); opacity: 0.6; }
}

/* Floating Elements */
.floating-element {
    position: absolute;
    z-index: 3;
    transition: transform 0.1s linear;
}

.fe-card {
    background: rgba(17, 17, 19, 0.9);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 14px 16px;
    backdrop-filter: blur(10px);
    min-width: 120px;
}

.fe-card-bar {
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
    margin-bottom: 8px;
}

.fe-card-lines span {
    display: block;
    height: 2px;
    background: var(--border);
    margin-bottom: 4px;
    border-radius: 1px;
}

.fe-card-lines span:nth-child(1) { width: 80%; }
.fe-card-lines span:nth-child(2) { width: 60%; }
.fe-card-lines span:nth-child(3) { width: 40%; }

.fe-card-label {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 8px;
}

.fe-card-box {
    width: 50px;
    height: 60px;
    background: linear-gradient(135deg, #2a4a3f, #4a7c6b);
    border-radius: 3px;
    margin-bottom: 8px;
}

.fe-card-brand {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 4px;
}

.fe-card-type {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 300;
    color: var(--text-light);
    margin-bottom: 4px;
}

.fe-card-note {
    font-size: 11px;
    color: var(--accent);
    white-space: nowrap;
}

.fe-1 { top: 20px; left: 10px; }
.fe-2 { bottom: 40px; left: -10px; }
.fe-3 { top: 10px; right: 10px; }
.fe-4 { bottom: 60px; right: 0; }
.fe-5 { top: 50%; right: -30px; transform: translateY(-50%); }
.fe-6 { bottom: 120px; left: 50%; }

.fe-cursor {
    animation: cursorFloat 3s ease-in-out infinite;
}

@keyframes cursorFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(10px, -10px); }
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    50.1% { transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

.hero-scroll-indicator span {
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ============================================
   MARQUEE
   ============================================ */
.marquee-section {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.marquee-track {
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-flex;
    gap: 24px;
    animation: marqueeScroll 30s linear infinite;
    will-change: transform;
}

.marquee-content span {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--muted);
    flex-shrink: 0;
}

.marquee-dot {
    color: var(--accent) !important;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================
   ABOUT
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 100px;
    align-items: center;
}

.about-text {
    font-size: 18px;
    line-height: 1.9;
    color: var(--muted-light);
    margin-bottom: 32px;
}

.about-visual {
    display: flex;
    justify-content: center;
}

.about-portrait-composition {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.portrait-lg {
    width: 280px;
    height: 340px;
}

.about-timeline-mini {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 280px;
}

.timeline-mini-item {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 12px 16px;
    border-left: 2px solid var(--border);
    transition: border-color 0.3s var(--ease);
}

.timeline-mini-item.active {
    border-left-color: var(--accent);
}

.tmi-year {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    min-width: 40px;
}

.tmi-text {
    font-size: 13px;
    color: var(--muted-light);
}

/* ============================================
   WORK
   ============================================ */
.work-section {
    background: var(--bg-alt);
}

.work-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--muted-light);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s var(--ease);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.work-card {
    position: relative;
    cursor: pointer;
    transition: transform 0.4s var(--ease-out);
}

.work-card:hover {
    transform: translateY(-8px);
}

.work-card-image {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 20px;
    aspect-ratio: 16/10;
}

.work-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: rgba(255,255,255,0.3);
    transition: transform 0.6s var(--ease-out);
}

.work-card:hover .work-img-placeholder {
    transform: scale(1.05);
}

.work-card-arrow {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--bg);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s var(--ease);
}

.work-card:hover .work-card-arrow {
    opacity: 1;
    transform: translateY(0);
}

.work-category {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
    display: block;
}

.work-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.work-desc {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 8px;
}

.work-year {
    font-size: 12px;
    color: var(--muted);
}

.work-card.hidden {
    display: none;
}

/* ============================================
   CASE STUDY
   ============================================ */
.case-study-inner {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 60px;
    background: var(--bg-alt);
}

.case-study-header {
    margin-bottom: 48px;
}

.case-study-category {
    font-size: 14px;
    color: var(--muted);
}

.case-study-visual {
    margin-bottom: 48px;
}

.case-study-mockup {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
}

.cs-mockup-main,
.cs-mockup-side {
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    color: rgba(255,255,255,0.3);
}

.cs-mockup-main {
    aspect-ratio: 16/9;
}

.cs-mockup-side {
    aspect-ratio: 3/4;
}

.cs-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    padding: 32px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 40px;
}

.cs-detail-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
    display: block;
    margin-bottom: 8px;
}

.cs-detail-value {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-light);
}

.cs-narrative {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

.cs-narrative-block h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--accent);
}

.cs-narrative-block p {
    font-size: 14px;
    color: var(--muted-light);
    line-height: 1.8;
}

/* ============================================
   SERVICES
   ============================================ */
.services-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border);
}

.service-block {
    display: grid;
    grid-template-columns: 60px 48px 1fr 40px;
    gap: 24px;
    align-items: center;
    padding: 36px 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.3s var(--ease);
}

.service-block:hover {
    padding-left: 16px;
}

.service-number {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
}

.service-icon {
    color: var(--muted);
    transition: color 0.3s var(--ease);
}

.service-block:hover .service-icon {
    color: var(--accent);
}

.service-content h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    transition: color 0.3s var(--ease);
}

.service-block:hover .service-content h3 {
    color: var(--accent);
}

.service-content p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.7;
    max-width: 560px;
}

.service-arrow {
    font-size: 24px;
    color: var(--muted);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s var(--ease);
}

.service-block:hover .service-arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--accent);
}

/* ============================================
   PRINCIPLES
   ============================================ */
.principles-section {
    background: var(--bg-alt);
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}

.principle-item {
    padding: 40px 32px;
    background: var(--bg-alt);
}

.principle-number {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 20px;
}

.principle-item h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
}

.principle-item p {
    font-size: 14px;
    color: var(--muted-light);
    line-height: 1.8;
}

/* ============================================
   PROCESS
   ============================================ */
.process-timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 20px;
}

.process-step {
    position: relative;
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: 6px;
    transition: border-color 0.3s var(--ease);
}

.process-step:hover {
    border-color: var(--accent);
}

.process-step-number {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 800;
    color: rgba(196, 150, 90, 0.15);
    margin-bottom: 16px;
}

.process-step-content h4 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.process-step-content p {
    font-size: 14px;
    color: var(--muted-light);
    line-height: 1.7;
}

.process-connector {
    display: none;
}

/* ============================================
   ACADEMIC
   ============================================ */
.academic-section {
    background: var(--bg-alt);
}

.academic-timeline {
    position: relative;
    padding-left: 40px;
    max-width: 640px;
}

.academic-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--border);
}

.academic-item {
    position: relative;
    padding-bottom: 48px;
}

.academic-item:last-child {
    padding-bottom: 0;
}

.academic-marker {
    position: absolute;
    left: -40px;
    top: 4px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--bg-alt);
    z-index: 1;
    transition: border-color 0.3s var(--ease);
}

.academic-item.current .academic-marker {
    border-color: var(--accent);
    background: var(--accent);
}

.academic-year {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--accent);
    display: block;
    margin-bottom: 8px;
}

.academic-content h4 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.academic-institution {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 8px;
}

.academic-details {
    font-size: 13px;
    color: var(--muted);
}

/* ============================================
   FUTURE
   ============================================ */
.future-section {
    background: linear-gradient(180deg, var(--bg), #0d0d10);
}

.future-text {
    font-size: 18px;
    color: var(--muted-light);
    max-width: 640px;
    line-height: 1.8;
    margin-bottom: 60px;
}

.future-concepts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.future-concept {
    padding: 40px 32px;
    border: 1px solid var(--border);
    border-radius: 6px;
    position: relative;
    transition: border-color 0.3s var(--ease);
}

.future-concept:hover {
    border-color: var(--accent);
}

.fc-icon {
    color: var(--accent);
    margin-bottom: 24px;
}

.future-concept h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
}

.future-concept p {
    font-size: 14px;
    color: var(--muted-light);
    line-height: 1.8;
}

.fc-connector {
    position: absolute;
    right: -32px;
    top: 50%;
    width: 32px;
    height: 1px;
    background: var(--border);
}

.future-concept:last-child .fc-connector {
    display: none;
}

/* ============================================
   RESEARCH
   ============================================ */
.research-section {
    background: var(--bg-alt);
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.research-card {
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg);
    transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.research-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.research-card-featured {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(196,150,90,0.05), var(--bg));
}

.research-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}

.research-area {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.research-status {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 3px;
}

.status-idea {
    background: rgba(160, 160, 165, 0.1);
    color: var(--muted-light);
}

.status-progress {
    background: rgba(196, 150, 90, 0.15);
    color: var(--accent);
}

.status-completed {
    background: rgba(90, 196, 130, 0.15);
    color: #5ac482;
}

.research-card h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.research-card p {
    font-size: 14px;
    color: var(--muted-light);
    line-height: 1.8;
    margin-bottom: 16px;
}

/* ============================================
   JOURNAL
   ============================================ */
.journal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.journal-card {
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: 6px;
    transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
    cursor: pointer;
}

.journal-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.journal-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.journal-category {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
}

.journal-date,
.journal-read {
    font-size: 12px;
    color: var(--muted);
}

.journal-card h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.journal-card p {
    font-size: 14px;
    color: var(--muted-light);
    line-height: 1.7;
}

.journal-cta {
    text-align: center;
    margin-top: 48px;
}

/* ============================================
   RESOURCES
   ============================================ */
.resources-section {
    background: var(--bg-alt);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.resource-card {
    display: grid;
    grid-template-columns: 48px 1fr 24px;
    gap: 16px;
    align-items: center;
    padding: 20px 24px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg);
    transition: all 0.3s var(--ease);
}

.resource-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.resource-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(196, 150, 90, 0.08);
    border-radius: 6px;
    color: var(--accent);
}

.resource-content h4 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.resource-content p {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 4px;
}

.resource-category {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
}

.resource-external {
    font-size: 16px;
    color: var(--muted);
    transition: color 0.3s var(--ease);
}

.resource-card:hover .resource-external {
    color: var(--accent);
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonial-section {
    background: var(--bg-alt);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg);
    position: relative;
}

.testimonial-demo-badge {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    background: rgba(160, 160, 165, 0.1);
    padding: 4px 10px;
    border-radius: 3px;
    display: inline-block;
    margin-bottom: 16px;
}

.testimonial-text {
    font-size: 15px;
    font-style: italic;
    color: var(--muted-light);
    line-height: 1.8;
    margin-bottom: 24px;
}

.testimonial-author {
    display: flex;
    gap: 12px;
    align-items: center;
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
}

.testimonial-name {
    font-size: 14px;
    font-weight: 600;
    display: block;
}

.testimonial-role {
    font-size: 12px;
    color: var(--muted);
}

/* ============================================
   SOCIAL
   ============================================ */
.social-links-grid {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border);
}

.social-link-card {
    display: grid;
    grid-template-columns: 1fr auto 40px;
    align-items: center;
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
    transition: padding-left 0.3s var(--ease);
}

.social-link-card:hover {
    padding-left: 16px;
}

.social-name {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    transition: color 0.3s var(--ease);
}

.social-link-card:hover .social-name {
    color: var(--accent);
}

.social-handle {
    font-size: 14px;
    color: var(--muted);
}

.social-arrow {
    font-size: 20px;
    color: var(--muted);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s var(--ease);
}

.social-link-card:hover .social-arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--accent);
}

/* ============================================
   CONTACT
   ============================================ */
.contact-section {
    background: linear-gradient(180deg, var(--bg-alt), var(--bg));
}

.contact-inner {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.contact-headline {
    font-family: var(--font-heading);
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
}

.contact-text {
    font-size: 17px;
    color: var(--muted-light);
    line-height: 1.8;
    margin-bottom: 40px;
}

.contact-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-details a {
    font-size: 14px;
    color: var(--muted);
    transition: color 0.3s var(--ease);
}

.contact-details a:hover {
    color: var(--accent);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--border);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 80px;
    margin-bottom: 60px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.15em;
    display: block;
    margin-bottom: 16px;
}

.footer-desc {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.7;
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-nav h5 {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 16px;
}

.footer-nav ul li {
    margin-bottom: 8px;
}

.footer-nav ul li a {
    font-size: 14px;
    color: var(--muted-light);
    transition: color 0.3s var(--ease);
}

.footer-nav ul li a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-contact {
    display: flex;
    gap: 24px;
}

.footer-contact a {
    font-size: 13px;
    color: var(--muted);
    transition: color 0.3s var(--ease);
}

.footer-contact a:hover {
    color: var(--accent);
}

.footer-statement {
    font-size: 13px;
    font-style: italic;
    color: var(--muted);
}

.footer-copyright {
    font-size: 12px;
    color: var(--muted);
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: var(--accent);
    color: var(--bg);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s var(--ease);
    z-index: 100;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    background: var(--accent-hover);
}

/* ============================================
   RESPONSIVE — TABLET
   ============================================ */
@media (max-width: 1024px) {
    .container {
        padding: 0 32px;
    }

    .section {
        padding: 100px 0;
    }

    .header-cta {
        display: none;
    }

    .nav {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .hero-visual {
        height: 400px;
    }

    .fe-1 { top: 10px; left: 20px; }
    .fe-2 { bottom: 20px; left: 10px; }
    .fe-3 { top: 0; right: 20px; }
    .fe-4 { bottom: 40px; right: 10px; }
    .fe-5 { display: none; }
    .fe-6 { bottom: 80px; left: 40%; }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .work-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cs-narrative {
        grid-template-columns: 1fr;
    }

    .case-study-inner {
        padding: 40px;
    }

    .service-block {
        grid-template-columns: 48px 40px 1fr 32px;
        gap: 16px;
    }

    .principles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-timeline {
        grid-template-columns: repeat(2, 1fr);
    }

    .future-concepts {
        grid-template-columns: 1fr;
    }

    .fc-connector {
        display: none;
    }

    .research-grid {
        grid-template-columns: 1fr;
    }

    .journal-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .resources-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-contact {
        flex-direction: column;
        gap: 8px;
    }
}

/* ============================================
   RESPONSIVE — MOBILE
   ============================================ */
@media (max-width: 640px) {
    .container {
        padding: 0 20px;
    }

    .section {
        padding: 80px 0;
    }

    .header-inner {
        height: 64px;
    }

    .logo {
        font-size: 13px;
    }

    .hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .hero-headline {
        font-size: 32px;
    }

    .hero-text {
        font-size: 15px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-visual {
        height: 320px;
    }

    .portrait-placeholder {
        width: 180px;
        height: 220px;
    }

    .portrait-lg {
        width: 200px;
        height: 240px;
    }

    .portrait-initials {
        font-size: 32px;
    }

    .fe-card {
        padding: 10px 12px;
        min-width: 90px;
    }

    .fe-card-label {
        font-size: 8px;
    }

    .hero-scroll-indicator {
        display: none;
    }

    .section-headline {
        font-size: 28px;
    }

    .work-grid {
        grid-template-columns: 1fr;
    }

    .work-filters {
        gap: 6px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 12px;
    }

    .case-study-inner {
        padding: 24px;
    }

    .case-study-mockup {
        grid-template-columns: 1fr;
    }

    .cs-detail-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-block {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 24px 0;
    }

    .service-number {
        order: -1;
    }

    .service-icon {
        display: none;
    }

    .service-arrow {
        display: none;
    }

    .principles-grid {
        grid-template-columns: 1fr;
    }

    .process-timeline {
        grid-template-columns: 1fr;
    }

    .journal-grid {
        grid-template-columns: 1fr;
    }

    .social-name {
        font-size: 22px;
    }

    .social-handle {
        font-size: 12px;
    }

    .contact-headline {
        font-size: 32px;
    }

    .contact-buttons {
        flex-direction: column;
    }

    .contact-buttons .btn {
        width: 100%;
    }

    .footer-nav {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

/* No custom cursor on touch */
@media (hover: none) {
    .custom-cursor,
    .custom-cursor-dot {
        display: none !important;
    }
}

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal-up {
        opacity: 1;
        transform: none;
    }

    html {
        scroll-behavior: auto;
    }
}