:root {
    --bg-primary: #d9f1fe;
    --bg-dark: #1a1a1a;
    --bg-darker: #0d0d0d;
    --text-light: #ffffff;
    --text-dark: #1a1a1a;
    --cmyk-cyan: #00aeef;
    --cmyk-magenta: #ec008c;
    --cmyk-yellow: #fff200;
    --font-primary: 'Outfit', sans-serif;
    --glass-bg: rgba(26, 26, 26, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.6;
    cursor: none; /* For custom cursor */
}

/* Custom Cursor */
#custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--cmyk-magenta);
    mix-blend-mode: exclusion;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
    box-shadow: 0 0 10px var(--cmyk-cyan), 0 0 20px var(--cmyk-yellow);
}

#custom-cursor.hover {
    width: 40px;
    height: 40px;
    background-color: var(--cmyk-cyan);
}

/* Typography */
h1, h2, h3 {
    font-weight: 800;
    line-height: 1.2;
}

h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

p {
    font-size: 1.125rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Sections */
.section {
    padding: 8rem 0;
    position: relative;
    z-index: 10;
}

.dark-section {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.light-section {
    background-color: var(--bg-primary);
    color: var(--text-dark);
}

.section-header {
    margin-bottom: 4rem;
    text-align: center;
}

.text-dark {
    color: var(--text-dark);
}

/* Top Navigation */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    z-index: 100;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s;
    text-transform: uppercase;
}

.nav-links a:hover {
    color: var(--cmyk-cyan);
}

.nav-cta {
    background-color: var(--text-dark);
    color: var(--text-light) !important;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
}

.nav-cta:hover {
    background-color: var(--cmyk-magenta) !important;
    color: var(--text-light) !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 300vh; /* Allow for scrolling */
    background-color: var(--bg-primary);
}

.canvas-container {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: var(--bg-primary);
}

#hero-canvas {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 100%;
    max-height: 100vh;
    object-fit: contain;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    pointer-events: none; /* Let clicks pass through if needed, but CTA needs pointer-events */
}

.hero-content {
    text-align: center;
    color: var(--text-dark);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.2);
    padding: 3rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-headline {
    font-size: 5rem;
    text-transform: uppercase;
    letter-spacing: -2px;
    background: linear-gradient(90deg, var(--cmyk-cyan), var(--cmyk-magenta), var(--text-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.hero-subheadline {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

/* Buttons */
.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button.primary {
    background-color: var(--text-dark);
    color: var(--bg-primary);
    border: 2px solid var(--text-dark);
}

.cta-button.primary:hover {
    background-color: transparent;
    color: var(--text-dark);
    box-shadow: 0 0 20px rgba(0, 174, 239, 0.5);
    border-color: var(--cmyk-cyan);
}

/* Grids */
.grid {
    display: grid;
    gap: 2rem;
}

.workflow-grid {
    grid-template-columns: 1.5fr 1fr;
    align-items: center;
}

.feature-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* Cards */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    overflow: hidden;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.wrap-card {
    padding: 0;
}

.card-image {
    height: 300px;
    background: url('https://images.unsplash.com/photo-1550478142-ff0c5f212261?q=80&w=1000&auto=format&fit=crop') center/cover;
    position: relative;
    overflow: hidden;
}

.wireframe-reveal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 174, 239, 0.8) url('https://www.transparenttextures.com/patterns/cubes.png');
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.card-image:hover .wireframe-reveal {
    opacity: 1;
}

.wireframe-reveal span {
    color: #fff;
    font-weight: 600;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.card-content {
    padding: 2rem;
    color: #fff;
}

.card-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.technical-highlight {
    background-color: var(--bg-darker);
    padding: 3rem;
    border-radius: 20px;
    border-left: 4px solid var(--cmyk-magenta);
}

.technical-highlight h3 {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.steps {
    list-style: none;
}

.steps li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
}

.steps li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 10px;
    height: 10px;
    background-color: var(--cmyk-cyan);
    border-radius: 50%;
}

/* Feature Cards (Apparel & Digital) */
.feature-card {
    background: #fff;
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    border-bottom: 4px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--cmyk-yellow);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card.dark-card {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.feature-card.dark-card:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Contact Section */
.cta-section {
    background: linear-gradient(135deg, var(--cmyk-cyan), var(--cmyk-magenta));
    color: #fff;
}

.cta-headline {
    font-size: 4rem;
}

.form-container {
    max-width: 600px;
    margin: 3rem auto 0;
    background: rgba(26, 26, 26, 0.8);
    padding: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

input, select, textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: border-color 0.3s;
}

input::placeholder, textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--cmyk-cyan);
    background: rgba(255, 255, 255, 0.15);
}

select option {
    background: var(--bg-dark);
    color: #fff;
}

.submit-button {
    width: 100%;
    padding: 1.2rem;
    background: #fff;
    color: var(--text-dark);
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background: var(--cmyk-yellow);
    box-shadow: 0 0 30px rgba(255, 242, 0, 0.6);
    transform: translateY(-3px);
}

/* Footer */
.footer {
    background-color: var(--bg-darker);
    color: #fff;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
    margin: 0;
}

.footer-links a, .footer-social a {
    color: #fff;
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 600;
    transition: color 0.3s;
}

.footer-links a:hover, .footer-social a:hover {
    color: var(--cmyk-cyan);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
}

/* Responsive */
@media (max-width: 900px) {
    .workflow-grid, .feature-grid, .footer-content {
        grid-template-columns: 1fr;
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links, .footer-social {
        margin-top: 2rem;
    }
    
    .footer-links a, .footer-social a {
        margin: 0 1rem;
    }
    
    .hero-headline {
        font-size: 3rem;
    }
}
