/* 
 * Tim Norris Portfolio
 * Premium CSS with animations
 */

/* ============================================
   CSS Variables & Reset
   ============================================ */

:root {
    /* Colors */
    --bg-primary: #050507;
    --bg-secondary: #0a0a0f;
    --bg-card: rgba(255, 255, 255, 0.02);
    --bg-card-hover: rgba(255, 255, 255, 0.04);
    
    --border-color: rgba(255, 255, 255, 0.06);
    --border-color-hover: rgba(255, 255, 255, 0.12);
    
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --text-tertiary: rgba(255, 255, 255, 0.4);
    
    --accent-primary: #667eea;
    --accent-secondary: #764ba2;
    --accent-tertiary: #f093fb;
    
    --gradient-primary: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    --gradient-text: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --gradient-glow: radial-gradient(ellipse at center, rgba(102, 126, 234, 0.15) 0%, transparent 70%);
    
    --success: #22c55e;
    --error: #ef4444;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing */
    --section-padding: clamp(80px, 12vw, 160px);
    --container-width: 1280px;
    --container-padding: clamp(20px, 5vw, 40px);
    
    /* Animation */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    
    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100vw;
    touch-action: pan-y;
    -webkit-text-size-adjust: 100%;
}

::selection {
    background: var(--accent-primary);
    color: white;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
}

/* ============================================
   Preloader
   ============================================ */

.preloader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    animation: autoHidePreloader 3s ease-in-out forwards;
}

@keyframes autoHidePreloader {
    0%, 80% { opacity: 1; visibility: visible; }
    100% { opacity: 0; visibility: hidden; pointer-events: none; }
}

.preloader.hidden,
.preloader:empty {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    display: none !important;
}

/* Failsafe: auto-hide preloader after 3s even if JS fails */
.preloader {
    animation: forceHidePreloader 0.5s ease 3s forwards;
}

@keyframes forceHidePreloader {
    to {
        opacity: 0;
        visibility: hidden;
        display: none;
    }
}

.preloader-content {
    text-align: center;
}

.preloader-logo {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 30px;
    animation: pulse-glow 2s ease-in-out infinite;
}

.preloader-logo span:first-child {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

.preloader-logo span:last-child {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

@keyframes pulse-glow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3); }
}

.preloader-bar {
    width: 200px;
    height: 3px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
}

.preloader-progress {
    height: 100%;
    width: 0%;
    background: var(--gradient-primary);
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* ============================================
   Scroll Progress
   ============================================ */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--gradient-primary);
    z-index: 9999;
    width: 0%;
    transition: width 0.1s linear;
}

/* ============================================
   Noise Overlay
   ============================================ */


/* ============================================
   Custom Cursor
   ============================================ */

.cursor,
.cursor-follower {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

body:hover .cursor,
body:hover .cursor-follower {
    opacity: 1;
}

.cursor {
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(102, 126, 234, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s var(--ease-out-expo), height 0.3s var(--ease-out-expo), border-color 0.3s ease;
}

.cursor-follower.hovering {
    width: 60px;
    height: 60px;
    border-color: var(--accent-primary);
}

@media (max-width: 1024px) {
    .cursor, .cursor-follower { display: none; }
}

/* ============================================
   Layout
   ============================================ */

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 20px auto 0;
    line-height: 1.7;
}

.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   Navigation
   ============================================ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s var(--ease-out-expo);
}

.nav.scrolled {
    padding: 12px 0;
    background: rgba(5, 5, 7, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: baseline;
}

.logo-norris {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.nav-logo .logo-tim,
.footer-logo .logo-tim,
span.logo-tim {
    color: #ffffff !important;
    font-weight: 800;
    -webkit-text-fill-color: #ffffff !important;
    background: none !important;
    background-image: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    position: relative;
    z-index: 1;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-card);
}

.nav-link-cta {
    background: var(--gradient-primary);
    color: white !important;
    margin-left: 8px;
    overflow: hidden;
}

.nav-link-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px -10px rgba(102, 126, 234, 0.5);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    background: transparent;
    border: none;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
        z-index: 10001;
        cursor: pointer;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0;
        padding: 40px 24px;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
        z-index: 10000;
    }
    
    .nav-links.active {
        opacity: 1;
        visibility: visible;
    }
    
    .nav-link {
        padding: 20px 40px;
        font-size: 20px;
        text-align: center;
    }
    
    .nav-link-cta {
        margin-left: 0;
        margin-top: 24px;
        text-align: center;
    }
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(102, 126, 234, 0.2) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(118, 75, 162, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 20% 80%, rgba(240, 147, 251, 0.1) 0%, transparent 50%);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

.hero-particles {
    position: absolute;
    inset: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    opacity: 0;
    transform: translateY(20px);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-title {
    font-size: clamp(42px, 8vw, 80px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(60px);
}

.title-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(16px, 2.5vw, 20px);
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 640px;
    margin: 0 auto 40px;
    opacity: 0;
    transform: translateY(30px);
}

.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(30px);
}

/* Buttons */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all 0.3s var(--ease-out-expo);
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px -5px rgba(102, 126, 234, 0.5);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px -10px rgba(102, 126, 234, 0.6);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary svg {
    transition: transform 0.3s ease;
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-color-hover);
}

.btn-full {
    width: 100%;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    opacity: 0;
    transform: translateY(30px);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 13px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

.stat-percent {
    font-size: 24px;
    font-weight: 600;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-exceed {
    position: relative;
    cursor: pointer;
}

.stat-exceed::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 15px;
    padding: 12px 18px;
    background: rgba(15, 15, 25, 0.98);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 10px;
    font-size: 13px;
    color: #ffffff;
    white-space: nowrap;
    font-style: italic;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    pointer-events: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.stat-exceed:hover::after {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .stat-exceed::after {
        display: none;
    }
}

@media (max-width: 768px) {
    /* Force hero elements to be visible on mobile - no waiting for JS animations */
    .hero-badge,
    .title-line,
    .hero-subtitle,
    .hero-cta,
    .hero-stats {
        opacity: 1 !important;
        transform: none !important;
    }
}

@media (max-width: 640px) {
    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }
    
    .stat-divider {
        width: 60px;
        height: 1px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .stat-percent {
        font-size: 18px;
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-tertiary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--accent-primary), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% { 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; }
}

/* ============================================
   Services Section
   ============================================ */

.services {
    padding: var(--section-padding) 0;
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    position: relative;
    padding: 36px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all 0.4s var(--ease-out-expo);
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s var(--ease-out-expo);
}

.service-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-color-hover);
    transform: translateY(-8px);
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* Animated gradient border on hover */
.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 1px;
    background: linear-gradient(135deg, transparent 0%, transparent 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover::after {
    opacity: 1;
    background: var(--gradient-primary);
    animation: borderRotate 3s linear infinite;
}

@keyframes borderRotate {
    0% { background: linear-gradient(0deg, var(--accent-primary), var(--accent-secondary)); }
    25% { background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary)); }
    50% { background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary)); }
    75% { background: linear-gradient(270deg, var(--accent-primary), var(--accent-secondary)); }
    100% { background: linear-gradient(360deg, var(--accent-primary), var(--accent-secondary)); }
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.service-icon svg {
    width: 28px;
    height: 28px;
    stroke: white;
}

.service-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.service-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-link {
    color: var(--accent-primary);
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.service-link:hover {
    opacity: 0.8;
}

.service-features {
    list-style: none;
}

.service-features li {
    position: relative;
    padding-left: 20px;
    font-size: 14px;
    color: var(--text-tertiary);
    margin-bottom: 8px;
}

.service-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
}

/* ============================================
   Work Section
   ============================================ */

.work {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
}

.work-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 768px) {
    .work-grid {
        grid-template-columns: 1fr;
    }
}

.work-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all 0.4s var(--ease-out-expo);
}

.work-card:hover {
    border-color: var(--border-color-hover);
    transform: translateY(-8px);
    box-shadow: 0 30px 60px -20px rgba(102, 126, 234, 0.2);
}

.work-card-featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
}

@media (max-width: 900px) {
    .work-card-featured {
        grid-template-columns: 1fr;
    }
}

.work-card-image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg-card);
}

.work-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.6s var(--ease-out-expo);
}

.work-card:hover .work-card-img {
    transform: scale(1.05);
}

/* Screenshot with overlay */
.work-card-screenshot {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: var(--bg-secondary);
}

.work-card-screenshot .work-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top left;
    transition: transform 0.6s var(--ease-out-expo);
}

.work-card-featured:hover .work-card-screenshot .work-card-img {
    transform: scale(1.03);
}

.screenshot-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(5, 5, 7, 0.8) 100%);
    pointer-events: none;
}

.screenshot-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 8px 16px;
    background: rgba(34, 197, 94, 0.95);
    color: white;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.4);
    z-index: 10;
}

/* Scrolling image animation for tall screenshots */
.work-card-scroll {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.work-card-scroll .work-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    min-height: 100%;
    object-fit: cover;
    animation: scrollImagePan 12s ease-in-out infinite;
}

@keyframes scrollImagePan {
    0%, 8% {
        transform: translateY(0);
    }
    46%, 54% {
        transform: translateY(calc(-100% + 300px));
    }
    92%, 100% {
        transform: translateY(0);
    }
}

.work-card:hover .work-card-scroll .work-card-img {
    animation-play-state: paused;
}

/* Dashboard Mockup */
.work-card-mockup {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 100%);
    display: flex;
    padding: 20px;
    gap: 12px;
    overflow: hidden;
}

.mockup-sidebar {
    width: 50px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

.mockup-logo {
    width: 34px;
    height: 34px;
    background: var(--gradient-primary);
    border-radius: 8px;
    margin-bottom: 8px;
}

.mockup-nav-item {
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.mockup-nav-item.active {
    background: rgba(102, 126, 234, 0.3);
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.3);
}

.mockup-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.mockup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mockup-title {
    width: 120px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.mockup-btn {
    width: 80px;
    height: 28px;
    background: var(--gradient-primary);
    border-radius: 6px;
}

.mockup-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.mockup-stat-card {
    height: 60px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.mockup-stat-card::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    width: 50%;
    height: 12px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
}

.mockup-stat-card::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 10px;
    width: 30%;
    height: 18px;
    background: rgba(102, 126, 234, 0.3);
    border-radius: 3px;
}

.mockup-stat-card:nth-child(2)::after {
    background: rgba(34, 197, 94, 0.3);
}

.mockup-stat-card:nth-child(3)::after {
    background: rgba(245, 158, 11, 0.3);
}

.mockup-stat-card:nth-child(4)::after {
    background: rgba(118, 75, 162, 0.3);
}

.mockup-table {
    flex: 1;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mockup-table-header {
    height: 24px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.mockup-table-row {
    height: 32px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
    position: relative;
}

.mockup-table-row::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background: rgba(34, 197, 94, 0.3);
    border-radius: 4px;
}

.mockup-table-row:nth-child(3)::before {
    background: rgba(245, 158, 11, 0.3);
}

.mockup-table-row:nth-child(5)::before {
    background: rgba(239, 68, 68, 0.3);
}

.mockup-label {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

/* Animate mockup on hover */
.work-card:hover .mockup-nav-item:not(.active) {
    background: rgba(255, 255, 255, 0.08);
}

.work-card:hover .mockup-stat-card {
    border-color: rgba(255, 255, 255, 0.1);
}

.work-card-featured .work-card-image {
    aspect-ratio: auto;
    min-height: 300px;
}

.work-card-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.work-card-placeholder.placeholder-blue {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(37, 99, 235, 0.1) 100%);
}

.work-card-placeholder.placeholder-green {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(22, 163, 74, 0.1) 100%);
}

.placeholder-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
}

.placeholder-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.work-card-content {
    padding: 32px;
}

.work-card-featured .work-card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.work-card-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.tag {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 100px;
}

.work-card-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
}

.work-card-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.work-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-tertiary);
}

.meta-building {
    color: var(--accent-primary);
}

.meta-building svg {
    animation: spin-slow 3s linear infinite;
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.meta-coming {
    color: var(--text-secondary);
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.work-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--accent-primary);
    transition: gap 0.3s ease;
}

.work-card-link:hover {
    gap: 12px;
}

/* ============================================
   About Section
   ============================================ */

.about {
    padding: var(--section-padding) 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

.about-content .section-title {
    text-align: left;
}

.about-content .section-tag {
    display: inline-block;
}

.about-text {
    margin: 32px 0 48px;
}

.about-text p {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-approach h3 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-tertiary);
    margin-bottom: 24px;
}

.approach-items {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.approach-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.approach-number {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-primary);
}

.approach-item h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.approach-item p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* About Visual */
.about-visual {
    position: relative;
}

.visual-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.visual-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.visual-content {
    position: relative;
    padding: 40px;
}

.tech-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-tertiary);
    margin-bottom: 20px;
}

.tech-section {
    text-align: center;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.tech-item {
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-align: center;
    transition: all 0.3s var(--ease-out-expo);
    cursor: default;
}

.tech-item:hover {
    color: var(--text-primary);
    border-color: var(--accent-primary);
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px -8px rgba(102, 126, 234, 0.3);
}

/* ============================================
   Contact Section
   ============================================ */

.contact {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: start;
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

.contact-info .section-title {
    text-align: left;
}

.contact-info .section-tag {
    display: inline-block;
}

.contact-intro {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 24px 0 32px;
}

.contact-details {
    margin-bottom: 32px;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.3s var(--ease-out-expo);
}

.contact-link:hover {
    color: var(--accent-primary);
    transform: translateX(5px);
}

.contact-link svg {
    width: 24px;
    height: 24px;
    color: var(--accent-primary);
}

.contact-availability {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 100px;
    font-size: 14px;
    color: var(--success);
}

.availability-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.honeypot {
    position: absolute;
    left: -9999px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-label .optional {
    font-weight: 400;
    color: var(--text-tertiary);
}

.form-input {
    padding: 14px 18px;
    font-size: 15px;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    outline: none;
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.form-input::placeholder {
    color: var(--text-tertiary);
}

.form-textarea {
    resize: vertical;
    min-height: 140px;
}

select.form-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

select.form-input option {
    background: var(--bg-secondary);
}

/* Submit Button States */
#submitBtn {
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease;
}

#submitBtn .btn-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    pointer-events: none;
}

#submitBtn.loading .btn-text { opacity: 0; }
#submitBtn.loading .btn-loading { opacity: 1; }

#submitBtn.success { background: var(--success); }

.spinner {
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.form-message {
    text-align: center;
    font-size: 14px;
    padding: 12px;
    border-radius: var(--radius-md);
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: var(--success);
}

.form-message.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--error);
}

/* ============================================
   Footer
   ============================================ */

.footer {
    padding: 60px 0 40px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

@media (max-width: 640px) {
    .footer-content {
        flex-direction: column;
        gap: 32px;
        text-align: center;
    }
}

.footer-logo {
    font-size: 20px;
    font-weight: 700;
    display: inline-flex;
}

.footer-logo .logo-norris {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

/* ============================================
   Glow Effects
   ============================================ */

.hero-title .title-gradient {
    position: relative;
}

.hero-title .title-gradient::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(30px);
    opacity: 0.5;
    z-index: -1;
}

/* Section divider glow line */
.services::before,
.work::before,
.about::before,
.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: var(--gradient-primary);
    opacity: 0.3;
}

.services, .work, .about, .contact {
    position: relative;
}

.footer-brand p {
    font-size: 14px;
    color: var(--text-tertiary);
    margin-top: 8px;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    font-size: 14px;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-tertiary);
}

.footer-bottom .footer-links {
    gap: 24px;
}

.footer-bottom .footer-links a {
    font-size: 13px;
}

@media (max-width: 640px) {
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* ============================================
   Animation Classes (GSAP triggers)
   ============================================ */

.reveal-up {
    opacity: 0;
    transform: translateY(60px);
}

.reveal-fade {
    opacity: 0;
}

.stagger-item {
    opacity: 0;
    transform: translateY(40px);
}

/* Smooth scroll offset for anchors */
section[id] {
    scroll-margin-top: 100px;
}
