/* ===========================================================================
   JAMES DANCER — site.css
   Visual language: Dark Refraction. Glass panels, neon gradients, spotlight cursor.
   =========================================================================== */

/* CSS VARIABLES */
:root {
    --bg-deep:        #02010a;
    --bg-mid:         #08041c;
    --bg-light:       #120b3a;
    --glass-base:     rgba(18, 11, 58, 0.4);
    --glass-border:   rgba(139, 92, 246, 0.25);
    --glass-highlight:rgba(255, 255, 255, 0.15);
    --accent-cyan:    #22d3ee;
    --accent-blue:    #3b82f6;
    --accent-violet:  #8b5cf6;
    --accent-magenta: #d946ef;
    --text-main:      #f8fafc;
    --text-muted:     #94a3b8;
    --font-body:      'Inter', system-ui, sans-serif;
    --font-display:   'Space Grotesk', sans-serif;

    /* Cursor tracking */
    --cursor-x: 50vw;
    --cursor-y: 50vh;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-deep);
    background-image:
        radial-gradient(circle at 15% 20%, rgba(59, 130, 246, 0.15), transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(139, 92, 246, 0.15), transparent 40%);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* WordPress admin bar offset */
body.admin-bar { margin-top: 32px; }
@media screen and (max-width: 782px) { body.admin-bar { margin-top: 46px; } }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: white;
}
h1 { font-size: clamp(3rem, 6vw, 5rem); line-height: 1.1; margin-bottom: 1.5rem; }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
p  { color: var(--text-muted); margin-bottom: 1.5rem; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.text-gradient {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-violet));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.text-highlight { color: var(--accent-cyan); font-weight: 500; }

/* ===========================================================================
   SPOTLIGHT SYSTEM
   =========================================================================== */
.spotlight-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: screen;
    opacity: 0;
    transition: opacity 0.5s ease;

    /* STATE 1: Default clean white followspot */
    background: radial-gradient(
        circle at var(--cursor-x) var(--cursor-y),
        rgba(255, 255, 255, 0.45) 0px,
        rgba(150, 200, 255, 0.15) 80px,
        rgba(59, 130, 246, 0.05) 150px,
        transparent 300px
    );
}

/* STATE 2: Hover (Gobo effect) — Congo blue halo */
.spotlight-layer[data-gobo="true"] {
    background: radial-gradient(
        circle at var(--cursor-x) var(--cursor-y),
        rgba(60, 20, 240, 0.6) 0px,
        rgba(40, 0, 200, 0.3) 100px,
        transparent 180px
    );
}

/* Eye icon pseudo-element with independent zoom */
.spotlight-layer::after {
    content: '';
    position: absolute;
    left: var(--cursor-x);
    top:  var(--cursor-y);
    width: 48px;
    height: 48px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.spotlight-layer[data-gobo="true"]::after {
    transform: translate(-50%, -50%) scale(1);
}

@media (pointer: fine) {
    body { cursor: none; }
    a, button, input, textarea, select, .project-card, .glass-panel { cursor: none; }
    .spotlight-layer { opacity: 1; }
}

/* Accessibility focus */
a:focus-visible, button:focus-visible, .form-control:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 3px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-display);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 10;
    cursor: pointer;
    border: 1px solid transparent;
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-violet));
    color: white;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.6);
}
.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-cyan);
}

/* GLASS PANELS */
.glass-panel {
    background: linear-gradient(145deg, var(--glass-base), rgba(8, 4, 28, 0.6));
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-top: 1px solid var(--glass-highlight);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 24px 48px rgba(0,0,0,0.5);
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.glass-panel:hover { border-color: var(--accent-blue); }

/* GLASS TINT VARIATIONS */
.services-grid .glass-panel:nth-child(2),
.competencies-grid .competency-card:nth-child(odd),
.portfolio-grid .project-card:nth-child(2n),
.process-steps .step:nth-child(2n) {
    background: linear-gradient(145deg, rgba(6, 40, 50, 0.5), rgba(8, 4, 28, 0.7));
    border-top-color: rgba(34, 211, 238, 0.4);
    border-left-color: rgba(34, 211, 238, 0.2);
    box-shadow: 0 24px 48px rgba(0,0,0,0.5), inset 0 0 30px rgba(34, 211, 238, 0.05);
}
.services-grid .glass-panel:nth-child(3),
.competencies-grid .competency-card:nth-child(even),
.portfolio-grid .project-card:nth-child(3n),
.process-steps .step:nth-child(3n) {
    background: linear-gradient(145deg, rgba(45, 10, 50, 0.5), rgba(8, 4, 28, 0.7));
    border-top-color: rgba(217, 70, 239, 0.4);
    border-left-color: rgba(217, 70, 239, 0.2);
    box-shadow: 0 24px 48px rgba(0,0,0,0.5), inset 0 0 30px rgba(217, 70, 239, 0.05);
}
.services-grid .glass-panel:nth-child(4),
.portfolio-grid .project-card:nth-child(5n) {
    background: linear-gradient(145deg, rgba(20, 20, 90, 0.5), rgba(8, 4, 28, 0.7));
    border-top-color: rgba(139, 92, 246, 0.4);
    border-left-color: rgba(139, 92, 246, 0.2);
    box-shadow: 0 24px 48px rgba(0,0,0,0.5), inset 0 0 30px rgba(139, 92, 246, 0.05);
}

/* ===========================================================================
   NAV
   =========================================================================== */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 20px 0;
    transition: all 0.3s ease;
}
nav.scrolled {
    background: rgba(2, 1, 10, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
}
.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    color: white;
    text-decoration: none;
    letter-spacing: 0.05em;
}

.nav-links { display: flex; gap: 2rem; }
.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
    white-space: nowrap;
}
.nav-links a:hover {
    color: white;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

/* Mobile nav: horizontal scroll */
@media (max-width: 768px) {
    .nav-content { flex-wrap: wrap; gap: 1rem; }
    .nav-links {
        order: 3;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 10px;
        gap: 1.5rem;
        display: flex;
        -webkit-overflow-scrolling: touch;
    }
    .btn-primary { margin-left: auto; }
}

/* ===========================================================================
   SECTIONS
   =========================================================================== */
#hero { padding: 180px 0 100px; position: relative; }
.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 50px;
    color: var(--accent-cyan);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
}

#competencies { padding: 80px 0; }
.competencies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.competency-card {
    background: linear-gradient(145deg, rgba(18, 11, 58, 0.3), rgba(0,0,0,0.4));
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 32px;
    backdrop-filter: blur(12px);
    transition: transform 0.3s;
}
.competency-card:hover { transform: translateY(-5px); }
.icon-box {
    width: 56px; height: 56px;
    background: rgba(255,255,255,0.05);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: var(--accent-cyan);
    border: 1px solid rgba(255,255,255,0.1);
}

#services, #process, #portfolio, #contact { padding: 100px 0; }
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 50px;
}
.step {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: 16px;
    position: relative;
}
.step-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255,255,255,0.05);
    position: absolute;
    top: 10px;
    right: 20px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}
.project-card {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: #000;
    cursor: pointer;
}
.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    opacity: 0.7;
}
.project-card:hover img {
    transform: scale(1.05);
    opacity: 1;
}
.project-content {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 24px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}

.contact-form { max-width: 600px; margin: 0 auto; }
.form-group { margin-bottom: 20px; }
.form-control {
    width: 100%;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 16px;
    border-radius: 12px;
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s, background 0.3s;
}
.form-control:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: rgba(0,0,0,0.5);
}
.form-control::placeholder { color: rgba(255,255,255,0.4); }

footer {
    padding: 60px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ===========================================================================
   REDUCED MOTION
   =========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .spotlight-layer { display: none; }
    body { cursor: auto; }
    a, button, input, textarea, select, .project-card, .glass-panel { cursor: auto; }
    html { scroll-behavior: auto; }
}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 