:root {
    --primary: #4F46E5;
    --primary-hover: #4338CA;
    --secondary: #1F2937;
    --bg-dark: #0f172a;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --shelf-bg: rgba(30, 41, 59, 0.85);
    --border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0; padding: 0; box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    cursor: default; 
}

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

.text-center { text-align: center; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.text-muted { color: var(--text-muted); }
.small { font-size: 0.875rem; }

/* NAVBAR */
.navbar {
    padding: 24px 0;
    position: fixed; top: 0; width: 100%; z-index: 100;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    display: flex; justify-content: space-between; align-items: center;
}

.logo {
    font-size: 1.5rem; font-weight: 800; color: white; text-decoration: none;
    display: flex; align-items: center; gap: 8px;
}

.nav-links { display: flex; gap: 32px; }
.nav-links a {
    color: var(--text-muted); text-decoration: none; font-weight: 500; transition: color 0.2s;
}
.nav-links a:hover { color: white; }

/* BUTTONS */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-weight: 600; text-decoration: none; border-radius: 8px;
    transition: all 0.2s; border: none; cursor: pointer;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: rgba(255,255,255,0.1); color: white; border: 1px solid rgba(255,255,255,0.2); }
.btn-secondary:hover { background: rgba(255,255,255,0.15); }
.btn-sm { padding: 8px 16px; font-size: 0.875rem; }
.btn-lg { padding: 14px 28px; font-size: 1.125rem; }

/* HERO */
.hero {
    position: relative;
    padding: 160px 0 100px;
    min-height: 100vh;
    display: flex; align-items: center;
    overflow: hidden;
}

/* Fading Hero Backgrounds (Mac & Windows) */
.hero-os-float {
    position: absolute;
    width: 700px; height: 500px;
    border-radius: 16px;
    z-index: 0; opacity: 0.15; filter: blur(3px);
    background-size: cover;
    background-position: center;
    pointer-events: none;
}
.win-float {
    top: 50px; left: -200px;
    background-image: url('https://images.unsplash.com/photo-1618477388954-7ea42bc43eb8?auto=format&fit=crop&w=1200&q=80');
    transform: rotate(-15deg);
    mask-image: radial-gradient(circle, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(circle, black 30%, transparent 70%);
}
.mac-float {
    top: 50px; right: -200px;
    background-image: url('https://images.unsplash.com/photo-1611186871348-b1ce696e52c9?auto=format&fit=crop&w=1200&q=80');
    transform: rotate(15deg);
    mask-image: radial-gradient(circle, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(circle, black 30%, transparent 70%);
}

.hero-container {
    display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
    position: relative; z-index: 2;
}

.badge {
    display: inline-block; padding: 6px 12px; background: rgba(79, 70, 229, 0.2);
    color: #818cf8; border-radius: 20px; font-size: 0.875rem; font-weight: 600;
    margin-bottom: 24px; border: 1px solid rgba(79, 70, 229, 0.3);
}

.hero-title {
    font-size: 4rem; font-weight: 800; line-height: 1.1; margin-bottom: 24px;
}
.text-gradient {
    background: linear-gradient(135deg, #818cf8, #c084fc);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem; color: var(--text-muted); margin-bottom: 40px;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 32px; }
.hero-trust { display: flex; gap: 16px; color: var(--text-muted); font-size: 0.875rem; }

/* HERO DEMO ANIMATION */
.animation-window {
    background: #1e293b; border-radius: 12px; border: 1px solid var(--border);
    overflow: hidden; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    height: 400px; position: relative;
}
.mac-header {
    background: #0f172a; padding: 12px; border-bottom: 1px solid var(--border);
}
.dots { display: flex; gap: 6px; }
.dots span { width: 12px; height: 12px; border-radius: 50%; background: #475569; }
.dots span:nth-child(1) { background: #ef4444; }
.dots span:nth-child(2) { background: #f59e0b; }
.dots span:nth-child(3) { background: #10b981; }

.demo-area { position: relative; height: calc(100% - 37px); overflow: hidden; }

.demo-folder, .demo-mail {
    position: absolute; width: 80%; height: 80%; top: 10%; left: 10%;
    background: #334155; border-radius: 8px; border: 1px solid var(--border);
    transition: opacity 0.5s;
}
.demo-folder { z-index: 2; padding: 20px; }
.demo-mail { z-index: 1; opacity: 0; }

.demo-file {
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px;
    background: white; color: black; border-radius: 6px; font-weight: 500;
    position: absolute; top: 80px; left: 80px; z-index: 10;
}

.demo-shelf {
    position: absolute; right: -150px; top: 10%; height: 80%; width: 120px;
    background: rgba(15, 23, 42, 0.95); border-left: 2px solid var(--primary);
    border-radius: 12px 0 0 12px; padding: 16px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    transition: right 0.3s; z-index: 5;
}
.shelf-label { font-size: 0.75rem; color: var(--text-muted); position: absolute; top: 16px; }
.shelf-dropzone {
    width: 100%; height: 100px; border: 2px dashed var(--border); border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; color: var(--text-muted);
}

.mail-header { background: #1e293b; padding: 12px; font-size: 0.875rem; border-bottom: 1px solid var(--border); }
.mail-body { padding: 40px; text-align: center; color: var(--text-muted); border: 2px dashed transparent; height: calc(100% - 45px); }

.demo-cursor {
    position: absolute; top: 200px; left: 200px; z-index: 20;
    transition: transform 0.1s;
}

/* STEPS */
.section { padding: 100px 0; }
.section-header { margin-bottom: 64px; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 16px; }

.steps-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.step-card {
    background: #1e293b; padding: 40px; border-radius: 16px; border: 1px solid var(--border);
    position: relative;
}
.step-number {
    position: absolute; top: -20px; left: 40px; width: 48px; height: 48px;
    background: var(--primary); border-radius: 50%; display: flex;
    align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 800;
}
.step-card h3 { font-size: 1.5rem; margin: 16px 0; }
.step-card p { color: var(--text-muted); }

/* FEATURES */
.bg-light { background: #151f32; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.features-split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.features-text h2 { font-size: 2.5rem; margin-bottom: 16px; line-height: 1.2; }
.features-text > p { color: var(--text-muted); font-size: 1.125rem; margin-bottom: 40px; }

.feature-list { list-style: none; display: flex; flex-direction: column; gap: 32px; }
.feature-list li { display: flex; gap: 16px; }
.feature-icon {
    width: 48px; height: 48px; flex-shrink: 0; background: rgba(79, 70, 229, 0.1);
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    color: var(--primary); border: 1px solid rgba(79, 70, 229, 0.2);
}
.feature-list h4 { font-size: 1.25rem; margin-bottom: 8px; }
.feature-list p { color: var(--text-muted); }

.feature-mockup {
    position: relative; height: 500px; background: url('data:image/svg+xml;utf8,<svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    border-radius: 24px; border: 1px solid var(--border); overflow: hidden;
    display: flex; align-items: center; justify-content: flex-end; padding-right: 20px;
}
.mockup-shelf {
    width: 250px; background: rgba(15, 23, 42, 0.8); backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1); border-radius: 16px;
    box-shadow: -10px 10px 40px rgba(0,0,0,0.5); border-right: 4px solid var(--primary);
}
.mockup-header { padding: 16px; border-bottom: 1px solid var(--border); font-weight: 600; text-align: center; }
.mockup-items { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.m-item {
    background: rgba(255,255,255,0.05); padding: 12px; border-radius: 8px;
    display: flex; align-items: center; gap: 12px; border: 1px solid var(--border);
}
.mockup-footer { padding: 16px; text-align: center; color: var(--primary); font-weight: 600; border-top: 1px solid var(--border); cursor: pointer; transition: all 0.2s;}
.mockup-footer:hover { background: rgba(255,255,255,0.05); }

/* ADS */
.ad-slot {
    background: rgba(0,0,0,0.2); border: 1px dashed var(--border);
    display: flex; align-items: center; justify-content: center; color: var(--text-muted);
}
/* Advertisement Styles */
.ad-container {
    width: 100%;
    text-align: center;
    margin: 40px auto;
}

/* OMNIFORGE STUDIO - PROJECT GRID */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.project-card {
    background: #1e293b;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.project-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}
.project-card h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 12px;
}
.project-card p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

/* FOOTER */
.footer { border-top: 1px solid var(--border); padding: 64px 0 32px; background: #0b1120; }
.footer-flex { display: flex; justify-content: space-between; margin-bottom: 40px; }
.footer-brand p { color: var(--text-muted); margin-top: 8px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text-muted); text-decoration: none; }
.footer-links a:hover { color: white; }
.footer-copyright { text-align: center; color: var(--text-muted); font-size: 0.875rem; border-top: 1px solid var(--border); padding-top: 32px; }

svg { vertical-align: middle; }

/* RESPONSIVE */
@media (max-width: 992px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-title { font-size: 3rem; }
    .hero-cta { justify-content: center; }
    .hero-trust { justify-content: center; }
    .features-split { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .steps-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .hero-cta { flex-direction: column; }
    .footer-flex { flex-direction: column; gap: 32px; text-align: center; }
}


/* Prevent images from being dragged while allowing selection */
img {
    -webkit-user-drag: none;
}
.logo img {
    pointer-events: none;
}

/* Float Animation for OS visuals */
@keyframes os-float {
    0% { transform: translateY(0) rotate(var(--rot, 0deg)); }
    50% { transform: translateY(-20px) rotate(var(--rot, 0deg)); }
    100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
}
.win-float { --rot: -15deg; animation: os-float 6s ease-in-out infinite; }
.mac-float { --rot: 15deg; animation: os-float 7s ease-in-out infinite; }



/* Universal Black Footer Override */
.footer {
    background: #000000 !important;
    border-top: 1px solid #222 !important;
}
.footer a { color: #888; transition: color 0.2s ease; }
.footer a:hover {
    color: #fff !important;
}

/* ==========================================================================
   COMMON ACCESSIBILITY & UTILITY CLASSES
   ========================================================================== */

/* Native Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Screen Reader Only Utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Accessible Skip to Main Content Link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    background: #ffffff;
    color: #000000;
    padding: 10px 20px;
    font-weight: 600;
    border-radius: 6px;
    z-index: 9999;
    text-decoration: none;
    transition: top 0.2s ease;
}
.skip-link:focus {
    top: 16px;
}

/* Scroll Reveal Effects */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Cyber Grid Background */
.cyber-grid {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        linear-gradient(var(--grid, rgba(255,255,255,0.05)) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid, rgba(255,255,255,0.05)) 1px, transparent 1px);
    background-size: 60px 60px;
    background-position: center center;
    -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 25%, rgba(0,0,0,0) 75%, rgba(0,0,0,1) 100%);
    mask-image: linear-gradient(90deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 25%, rgba(0,0,0,0) 75%, rgba(0,0,0,1) 100%);
    z-index: 0;
    pointer-events: none;
}
.cyber-grid::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, #000000 0%, transparent 20%, transparent 70%, #000000 95%, #000000 100%);
}

/* Glossy Button Utility */
.btn-glossy {
    padding: 12px 28px !important;
    font-size: 1.05rem !important;
    font-weight: 500 !important;
    display: inline-block;
    margin-top: 1rem;
    background-color: var(--primary, #ffffff) !important;
    color: #000000 !important;
    border: none !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    text-shadow: none !important;
    transition: all 0.2s ease !important;
}
.btn-glossy:hover {
    background-color: var(--primary-hover, #cccccc) !important;
    transform: none !important;
}

/* Page Section Backgrounds */
#about-content {
    background: linear-gradient(to bottom, #000000 0%, var(--bg-secondary, #0a0a0a) 300px) !important;
}

#projects {
    background: linear-gradient(to bottom, #000000 0%, var(--bg-secondary, #0a0a0a) 300px) !important;
}

/* ==========================================================================
   OMNIFORGE STUDIO - EXCLUSIVE MONOCHROME THEME
   ========================================================================== */
body.theme-monochrome,
body:has(#about-content),
.theme-monochrome {
    --bg: #000000;
    --bg-secondary: #0a0a0a;
    --border: #222222;
    --primary: #ffffff;
    --primary-hover: #cccccc;
    --text: #ffffff;
    --text-muted: #888888;
    --glow: rgba(255,255,255,0.03);
    --grid: rgba(255,255,255,0.05);
    --grad-1: #ffffff;
    --grad-2: #666666;
    background-color: var(--bg) !important;
    color: var(--text) !important;
}

.theme-monochrome .navbar,
body:has(#about-content) .navbar {
    background: rgba(0,0,0,0.8) !important;
    border-bottom: 1px solid var(--border) !important;
}

.theme-monochrome .hero,
body:has(#about-content) .hero {
    background: #000000 !important;
    border-bottom: none !important;
}

.theme-monochrome .section,
body:has(#about-content) .section {
    background: var(--bg-secondary) !important;
}

.theme-monochrome .project-card,
body:has(#about-content) .project-card {
    background: #0a0a0a !important;
    border: 1px solid var(--border) !important;
}

.theme-monochrome .project-icon,
body:has(#about-content) .project-icon {
    background: #1a1a1a !important;
    color: var(--primary) !important;
    border: 1px solid var(--border) !important;
}

.theme-monochrome .btn-primary,
body:has(#about-content) .btn-primary {
    background: var(--primary) !important;
    color: #000000 !important;
}

.theme-monochrome .btn-primary:hover,
body:has(#about-content) .btn-primary:hover {
    background: var(--primary-hover) !important;
    color: #000000 !important;
}

.theme-monochrome .btn-secondary,
body:has(#about-content) .btn-secondary {
    border: 1px solid var(--border) !important;
    color: #ffffff !important;
}

.theme-monochrome .btn-secondary:hover,
body:has(#about-content) .btn-secondary:hover {
    background: #1a1a1a !important;
    border-color: #555 !important;
}

.theme-monochrome .text-gradient,
body:has(#about-content) .text-gradient {
    background: linear-gradient(135deg, var(--grad-1) 0%, var(--grad-2) 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.theme-monochrome .badge,
body:has(#about-content) .badge {
    background: rgba(255,255,255,0.05) !important;
    border-color: var(--border) !important;
    color: #aaa !important;
}

.theme-monochrome .footer,
body:has(#about-content) .footer {
    background: linear-gradient(to bottom, var(--bg-secondary) 0%, #000000 100%) !important;
    border-top: none !important;
}

/* ==========================================================================
   LEGAL & CONTACT SHARED UI STYLES
   ========================================================================== */
.date {
    color: var(--text-muted, #888888);
    font-weight: 500;
    margin-bottom: 40px;
    display: inline-block;
}

.privacy-content {
    max-width: 800px;
    margin: 120px auto 60px;
    padding: 0 20px;
    color: var(--text, #ffffff);
}
.privacy-content h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #fff;
}
.privacy-content h2,
.privacy-content h3 {
    font-size: 1.5rem;
    margin-top: 40px;
    margin-bottom: 15px;
    color: #fff;
}
.privacy-content p {
    margin-bottom: 20px;
    line-height: 1.7;
    color: var(--text-muted, #888888);
}

.contact-content {
    max-width: 600px;
    margin: 120px auto 60px;
    padding: 0 20px;
    color: var(--text, #ffffff);
    position: relative;
    z-index: 1;
}
.contact-content h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #fff;
    text-align: center;
}
.contact-content p {
    text-align: center;
    color: var(--text-muted, #888888);
    margin-bottom: 40px;
    line-height: 1.6;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    background: transparent;
    position: relative;
    overflow: hidden;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border, #222222);
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.form-group label {
    font-weight: 500;
    font-size: 0.9rem;
    color: #ccc;
}
.form-control {
    background: transparent;
    border: 1px solid var(--border, #222222);
    padding: 14px 16px;
    border-radius: 8px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}
.form-control:focus {
    outline: none;
    border-color: #555;
}
textarea.form-control {
    resize: vertical;
    min-height: 150px;
}
.btn-submit {
    background: #ffffff;
    color: #000000;
    padding: 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    transition: background 0.3s;
    margin-top: 10px;
}
.btn-submit:hover {
    background: #cccccc;
}

/* ==========================================================================
   MOTION ACCESSIBILITY (WCAG 2.3.3)
   ========================================================================== */

/* Universal Reduced Motion Accessibility Reset */
@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;
    }

    /* Specific animation disables */
    .cloud-bg {
        animation: none !important;
        display: none !important;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .slider-track {
        transition: none !important;
    }

    .win-float,
    .mac-float {
        animation: none !important;
    }
}

/* Utility class fallback for reduced motion */
.reduced-motion *,
.reduced-motion *::before,
.reduced-motion *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
}
.reduced-motion .cloud-bg {
    animation: none !important;
    display: none !important;
}
.reduced-motion .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}
.reduced-motion .slider-track {
    transition: none !important;
}
.reduced-motion .win-float,
.reduced-motion .mac-float {
    animation: none !important;
}



