/* ============================================
   TheSiliconIntern — Style System
   Jazz Cup x Miami Vice x Dark Mode
   ============================================ */

/* --- Design Tokens --- */
:root {
    --bg-deep: #0A0A0F;
    --bg-card: rgba(20, 20, 35, 0.7);
    --bg-card-hover: rgba(30, 30, 50, 0.85);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(0, 200, 200, 0.3);
    
    --teal: #00C8C8;
    --teal-dim: #009999;
    --purple: #8B5CF6;
    --pink: #FF2D78;
    --coral: #FF6B6B;
    --gold: #FBBF24;
    --green: #34D399;
    
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --text-dim: #64748B;
    
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

a {
    color: var(--teal);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--pink);
}

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

/* --- Jazz Cup Background --- */
.jazzcup-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.jazzcup-bg svg {
    width: 100%;
    height: 100%;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: all var(--transition);
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(10, 10, 15, 0.95);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

.logo-chip {
    font-size: 1.4rem;
    background: linear-gradient(135deg, var(--teal), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text {
    font-weight: 300;
    letter-spacing: 0.5px;
}

.logo-bold {
    font-weight: 800;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--teal), var(--purple));
    transition: width var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a.active {
    color: var(--text-primary);
}

/* Mobile menu toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    padding: 16px 24px;
    gap: 16px;
}

.mobile-menu a {
    color: var(--text-secondary);
    font-size: 1rem;
    padding: 8px 0;
    border-bottom: 1px solid var(--glass-border);
}

.mobile-menu.active {
    display: flex;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    padding: 6px 20px;
    border-radius: 100px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-family: var(--font-mono);
    margin-bottom: 32px;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: clamp(3rem, 10vw, 7rem);
    line-height: 0.95;
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.title-thin {
    display: block;
    font-weight: 300;
    font-size: 0.4em;
    letter-spacing: 12px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.title-bold {
    display: block;
    font-weight: 900;
    background: linear-gradient(135deg, var(--teal), var(--purple), var(--pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

.title-accent {
    display: block;
    font-weight: 900;
    color: var(--text-primary);
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-tagline {
    font-size: 1.25rem;
    color: var(--teal);
    font-weight: 500;
    margin-bottom: 12px;
    font-family: var(--font-mono);
}

.hero-disclaimer {
    font-size: 0.8rem;
    color: var(--text-dim);
    font-style: italic;
    margin-bottom: 40px;
}

.hero-glow {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 200, 200, 0.06) 0%, rgba(139, 92, 246, 0.03) 50%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* --- Social Links --- */
.social-links {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.social-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    transition: all var(--transition);
    color: var(--text-secondary);
}

.social-btn svg {
    width: 20px;
    height: 20px;
}

.social-btn:hover {
    border-color: var(--teal);
    color: var(--teal);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 200, 200, 0.15);
}

/* --- Section Styles --- */
.section {
    position: relative;
    z-index: 1;
    padding: 100px 0;
}

.section-alt {
    background: rgba(15, 15, 25, 0.6);
    backdrop-filter: blur(5px);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 60px;
    font-family: var(--font-mono);
}

/* --- Project Cards --- */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all var(--transition);
    cursor: pointer;
}

.project-card:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 200, 200, 0.08);
}

.project-thumb {
    height: 180px;
    background: linear-gradient(135deg, rgba(0, 200, 200, 0.1), rgba(139, 92, 246, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-card:hover .project-thumb img {
    transform: scale(1.05);
}

.project-placeholder {
    font-size: 4rem;
}

.project-info {
    padding: 24px;
}

.project-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.project-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 16px;
    line-height: 1.5;
}

.project-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    background: rgba(0, 200, 200, 0.1);
    color: var(--teal);
    border: 1px solid rgba(0, 200, 200, 0.2);
    margin-right: 6px;
    margin-bottom: 4px;
}

/* --- 2x2 Grid for 4 Cards --- */
.project-grid-4 {
    grid-template-columns: repeat(2, 1fr);
}

/* --- Clickable Card --- */
a.project-card-link {
    text-decoration: none;
    color: inherit;
}

a.project-card-link:hover {
    color: inherit;
}

/* --- Status Badges --- */
.project-thumb {
    position: relative;
}

.status-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 14px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
    font-family: var(--font-mono);
    letter-spacing: 0.3px;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

.status-coming-soon {
    background: rgba(255, 170, 50, 0.12);
    color: #FFAA32;
    border: 1px solid rgba(255, 170, 50, 0.25);
}

.status-pending {
    background: rgba(255, 170, 50, 0.12);
    color: #FFAA32;
    border: 1px solid rgba(255, 170, 50, 0.25);
}

/* --- Gallery Mosaic Card --- */
.gallery-card-wrapper {
    margin: 0 auto;
}

.gallery-card {
    cursor: default;
}

.gallery-mosaic {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(3, 180px);
    grid-template-areas:
        "a a b c d"
        "a a b f e"
        "g h i j j";
    gap: 4px;
    padding: 4px;
    background: linear-gradient(145deg, rgba(0, 200, 200, 0.04), rgba(139, 92, 246, 0.04));
    overflow: hidden;
}

.mosaic-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1), filter 0.4s ease;
    filter: brightness(0.85) saturate(1.1);
}

.mosaic-img:hover {
    transform: scale(1.08);
    filter: brightness(1) saturate(1.2);
    z-index: 5;
    position: relative;
}

/* Explicit tile placement via grid-area */
.tile-a { grid-area: a; }
.tile-b { grid-area: b; }
.tile-c { grid-area: c; }
.tile-d { grid-area: d; }
.tile-e { grid-area: e; }
.tile-f { grid-area: f; }
.tile-g { grid-area: g; }
.tile-h { grid-area: h; }
.tile-i { grid-area: i; }
.tile-j { grid-area: j; }

/* Subtle overlay gradient at bottom for flow into text */
.gallery-mosaic::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to top, rgba(20, 20, 35, 0.9), transparent);
    pointer-events: none;
    z-index: 6;
}

/* Badge positioning inside mosaic */
.gallery-mosaic .status-badge,
.merch-mosaic .status-badge {
    z-index: 10;
}

/* --- Merch Tee Rack --- */
.merch-rack {
    position: relative;
    height: 420px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(0, 200, 200, 0.04), rgba(139, 92, 246, 0.04));
    padding: 20px 0;
}

.merch-rack-inner {
    position: relative;
    width: 100%;
    max-width: 750px;
    height: 380px;
    margin: 0 auto;
}

.merch-tee {
    position: absolute;
    height: 370px;
    width: auto;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1),
                filter 0.3s ease,
                z-index 0s;
    filter: brightness(0.92) drop-shadow(0px 4px 12px rgba(0,0,0,0.4));
    cursor: pointer;
}

.merch-tee:hover {
    transform: translateY(-53%) scale(1.06);
    filter: brightness(1) drop-shadow(0px 8px 24px rgba(0,0,0,0.5));
    z-index: 10 !important;
}

/* Position each tee left-to-right with slight overlap */
.merch-tee:nth-child(1) { left: 0%;    z-index: 1; }
.merch-tee:nth-child(2) { left: 21%;   z-index: 2; }
.merch-tee:nth-child(3) { left: 42%;   z-index: 3; }
.merch-tee:nth-child(4) { left: 63%;   z-index: 4; }

/* Badge positioning inside merch rack */
.merch-rack .status-badge {
    z-index: 20;
}

/* Bottom fade overlay */
.merch-rack::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to top, rgba(20, 20, 35, 0.9), transparent);
    pointer-events: none;
    z-index: 15;
}

/* --- Unified Buttons --- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    font-family: var(--font-body);
    text-align: center;
}

/* Ghost button — glass border, teal hover glow */
.btn-ghost {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
}

.btn-ghost:hover {
    border-color: var(--teal);
    color: var(--teal);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 200, 200, 0.1);
}

/* Gradient button — teal→purple fill */
.btn-gradient {
    background: linear-gradient(135deg, var(--teal), var(--purple));
    color: white;
    border: none;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 200, 200, 0.25);
    color: white;
}

.btn-sm {
    padding: 10px 24px;
    font-size: 0.85rem;
}

/* --- Merch Section --- */
.merch-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-bottom: 48px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.merch-card {
    flex: 0 1 calc(33.333% - 16px);
    min-width: 280px;
    max-width: 340px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all var(--transition);
    cursor: pointer;
}

.merch-card:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(0, 200, 200, 0.12);
}

.merch-thumb {
    position: relative;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(145deg, #0a0a16, #121223);
    padding: 20px;
}

.merch-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 2;
    transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
    filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.5));
}

.merch-card:hover .merch-thumb img {
    transform: scale(1.1);
}

/* Radial color glow behind the design — visible on hover */
.merch-thumb::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.35;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.merch-card:hover .merch-thumb::before {
    opacity: 0.65;
}

.merch-glow-teal::before {
    background: radial-gradient(ellipse at center, rgba(0, 200, 200, 0.25) 0%, transparent 65%);
}

.merch-glow-purple::before {
    background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.3) 0%, rgba(255, 45, 120, 0.1) 40%, transparent 65%);
}

.merch-glow-neon::before {
    background: radial-gradient(ellipse at center, rgba(120, 255, 68, 0.2) 0%, rgba(255, 68, 136, 0.12) 40%, transparent 65%);
}

.merch-glow-red::before {
    background: radial-gradient(ellipse at center, rgba(220, 38, 38, 0.2) 0%, rgba(30, 30, 80, 0.1) 40%, transparent 65%);
}

.merch-info {
    padding: 20px 24px 24px;
    text-align: center;
}

.merch-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.merch-price {
    color: var(--teal);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 12px;
}

.merch-tags {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.merch-order-btn {
    width: 100%;
    display: block;
    text-align: center;
    padding: 10px 24px;
}

.merch-note {
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.3px;
}

/* --- Merch Collage Images Overrides --- */
.merch-collage-img {
    position: absolute;
    width: 65%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.4));
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.collage-1 {
    transform: rotate(-10deg) translateX(-15%) translateY(10%);
    z-index: 2;
}

.collage-2 {
    transform: rotate(-2deg) translateX(-5%) translateY(0%);
    z-index: 3;
}

.collage-3 {
    transform: rotate(5deg) translateX(5%) translateY(-5%);
    z-index: 4;
}

.collage-4 {
    transform: rotate(12deg) translateX(15%) translateY(5%);
    z-index: 5;
}

.merch-card:hover .collage-1 {
    transform: rotate(-15deg) translateX(-20%) translateY(10%) scale(1.05);
}

.merch-card:hover .collage-2 {
    transform: rotate(-5deg) translateX(-10%) translateY(0%) scale(1.05);
}

.merch-card:hover .collage-3 {
    transform: rotate(10deg) translateX(10%) translateY(-5%) scale(1.05);
}

.merch-card:hover .collage-4 {
    transform: rotate(18deg) translateX(20%) translateY(5%) scale(1.05);
}

/* --- Contact Section --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
    align-items: start;
}

.contact-wrapper.contact-centered {
    grid-template-columns: 1fr;
    max-width: 640px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

.form-input {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
    background: rgba(10, 10, 20, 0.6);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: border var(--transition), box-shadow var(--transition);
    -webkit-appearance: none;
}

.form-input:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(0, 200, 200, 0.08);
}

.form-input::placeholder {
    color: var(--text-dim);
}

.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover,
.form-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px rgba(10, 10, 20, 1) inset !important;
    -webkit-text-fill-color: var(--text-primary) !important;
    border-color: var(--glass-border);
    transition: background-color 5000s ease-in-out 0s;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}

select.form-input {
    cursor: pointer;
}

select.form-input option {
    background: #0F0F1A;
    color: var(--text-primary);
}

.contact-form .btn-gradient {
    align-self: center;
    padding: 14px 40px;
}

.contact-form .btn-gradient:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Form status messages */
.form-status {
    font-size: 0.85rem;
    font-family: var(--font-mono);
    padding: 0;
    border-radius: var(--radius-sm);
    line-height: 1.5;
    transition: all var(--transition);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
}

.form-status.visible {
    padding: 12px 16px;
    max-height: 100px;
    opacity: 1;
}

.form-status.success {
    background: rgba(0, 200, 200, 0.08);
    border: 1px solid rgba(0, 200, 200, 0.25);
    color: var(--teal);
}

.form-status.error {
    background: rgba(255, 107, 107, 0.08);
    border: 1px solid rgba(255, 107, 107, 0.25);
    color: var(--coral);
}

/* Contact aside */
.contact-aside {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 28px;
    backdrop-filter: blur(10px);
}

.contact-info-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.contact-channels {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.channel {
    display: flex;
    align-items: center;
    gap: 12px;
}

.channel-icon {
    font-size: 1.2rem;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(0, 200, 200, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.channel-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-dim);
    font-family: var(--font-mono);
}

.channel-value {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.channel-value:hover {
    color: var(--teal);
}

.contact-note {
    font-size: 0.8rem;
    color: var(--text-dim);
    font-style: italic;
    line-height: 1.5;
    padding: 0 4px;
}

/* --- Footer --- */
.footer {
    position: relative;
    z-index: 1;
    padding: 48px 0 32px;
    border-top: 1px solid var(--glass-border);
    background: rgba(5, 5, 10, 0.9);
}

.footer-content {
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.footer-name {
    font-weight: 700;
    font-size: 1.1rem;
}

.footer-links {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.footer-links a {
    color: var(--text-dim);
    font-size: 0.85rem;
}

.footer-links a:hover {
    color: var(--teal);
}

.footer-tagline {
    color: var(--text-dim);
    font-size: 0.8rem;
    font-style: italic;
    margin-bottom: 8px;
}

.footer-copyright {
    color: var(--text-dim);
    font-size: 0.75rem;
    font-family: var(--font-mono);
}

/* --- Template Showcase --- */
.template-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-bottom: 20px;
}

.template-card {
    flex: 0 1 calc(33.333% - 16px);
    min-width: 300px;
}

.template-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all var(--transition);
}

.template-card {
    cursor: zoom-in;
}

.template-card:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(0, 200, 200, 0.12);
}

.template-preview {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: rgba(15, 15, 25, 0.8);
}

.template-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top left;
    transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.template-card:hover .template-preview img {
    transform: scale(1.08);
}

.template-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 15, 0.85) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 16px;
    opacity: 0;
    transition: opacity var(--transition);
}

.template-card:hover .template-overlay {
    opacity: 1;
}

.template-style {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--teal);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.template-info {
    padding: 20px 24px 24px;
}

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

.template-info p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 14px;
    line-height: 1.5;
}

.template-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* --- Lightbox --- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(5, 5, 10, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    width: 80vw;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    transform: scale(0.92);
    transition: transform 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-img {
    width: 100%;
    max-height: calc(80vh - 50px);
    object-fit: contain;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding: 0 4px;
}

.lightbox-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.lightbox-style {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--teal);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lightbox-close {
    position: absolute;
    top: -48px;
    right: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
}

.lightbox-close:hover {
    border-color: var(--pink);
    color: var(--pink);
    transform: rotate(90deg);
}

/* --- AI Gallery --- */
.gallery-coming-soon {
    max-width: 640px;
    margin: 0 auto;
}

.gallery-placeholder {
    text-align: center;
    padding: 60px 32px;
    background: var(--bg-card);
    border: 1px dashed var(--glass-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
}

.gallery-icon {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 16px;
}

.gallery-placeholder h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--teal), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gallery-placeholder p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 480px;
    margin: 0 auto;
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-title {
        letter-spacing: -1px;
    }
    
    .title-thin {
        letter-spacing: 6px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .project-grid,
    .project-grid-4 {
        grid-template-columns: 1fr;
    }

    .template-grid {
        flex-direction: column;
    }

    .template-card {
        flex: 1 1 100%;
    }

    .lightbox {
        padding: 16px;
    }

    .lightbox-close {
        top: -44px;
    }
    
    .merch-grid {
        flex-direction: column;
        align-items: center;
    }

    .merch-card {
        flex: 1 1 100%;
        max-width: 360px;
        width: 100%;
    }

    /* Gallery mosaic — collapse to 3 columns on mobile */
    .gallery-mosaic {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(4, 100px);
        grid-template-areas:
            "a a b"
            "a a c"
            "d e f"
            "g h j";
    }
    .tile-i { display: none; }

    /* Merch mosaic — collapse to 2 columns on mobile */
    .merch-mosaic {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 120px);
        grid-template-areas:
            "ma mb"
            "mc md"
            "me mf"
            "mg mh";
    }
    .merch-tile-i { display: none; }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form .btn-gradient {
        align-self: stretch;
    }
    
    .footer-links {
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .social-btn {
        width: 42px;
        height: 42px;
    }
    
    .social-btn svg {
        width: 18px;
        height: 18px;
    }
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge, .hero-title, .hero-tagline, .hero-disclaimer, .social-links {
    animation: fadeInUp 0.8s ease forwards;
}

.hero-title { animation-delay: 0.1s; }
.hero-tagline { animation-delay: 0.3s; }
.hero-disclaimer { animation-delay: 0.4s; }
.social-links { animation-delay: 0.5s; }

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
    background: var(--text-dim);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}
