@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,400&family=Montserrat:wght@200;300;400;500;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Teko:wght@300;600&family=Archivo:wght@400;700&display=swap');

:root {
    /* LIGHT MODE (DEFAULT) */
    --bg-dark: #f0f7ff; /* Very Light Blue Gradient Start */
    --bg-card: #ffffff;
    --bg-card-hover: #ffffff;
    --primary: #2563eb;
    --primary-light: #60a5fa;
    --secondary: #3b82f6; 
    --accent: #1d4ed8; 
    --text-main: #0f172a; /* Dark Text */
    --text-muted: #475569; 
    --border: #bfdbfe;
    --gradient: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    --bg-body: linear-gradient(to bottom, #eff6ff, #dbeafe);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
    --container: 1200px;
    --radius-lg: 20px;
    --shadow-header: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --header-bg: rgba(255, 255, 255, 0.9);
}

/* DARK MODE OVERRIDES - EXPANDED & FIXED */
[data-theme="dark"] {
    --bg-dark: #000000;
    --bg-card: rgba(25, 25, 25, 0.6); /* Darker, more visible card bg */
    --bg-card-hover: rgba(40, 40, 40, 0.8);
    --primary: #3b82f6; 
    --primary-light: #60a5fa;
    --secondary: #60a5fa;
    --accent: #2563eb;
    --text-main: #ffffff;
    --text-muted: #d1d5db; /* Light Gray for better readability */
    --border: rgba(255, 255, 255, 0.15);
    --gradient: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    --bg-body: #030303; 
    --shadow-header: 0 4px 20px rgba(0,0,0,0.8);
    --header-bg: rgba(0, 0, 0, 0.95); /* Darker header */
}

/* Base Elements in Dark Mode */
[data-theme="dark"] body {
    background: var(--bg-body);
    color: var(--text-main);
}

[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3, 
[data-theme="dark"] h4, [data-theme="dark"] h5, [data-theme="dark"] h6 {
    color: #ffffff !important;
}

[data-theme="dark"] p, [data-theme="dark"] span, [data-theme="dark"] li {
    color: #e2e8f0; /* Ensure all text is readable */
}

/* Buttons in Dark Mode */
[data-theme="dark"] .btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.5); /* Neon Glow */
}

[data-theme="dark"] .btn-outline {
    border-color: #ffffff;
    color: #ffffff;
}
[data-theme="dark"] .btn-outline:hover {
    background: #ffffff;
    color: #000000;
}

/* Cards & Services */
[data-theme="dark"] .glass-card, 
[data-theme="dark"] .service-image-box,
[data-theme="dark"] .feature-card {
    background: rgba(30, 30, 30, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(12px);
}

[data-theme="dark"] .service-content h2 {
    color: white !important;
}

[data-theme="dark"] .service-number {
    color: rgba(255, 255, 255, 0.05) !important;
}

/* Form Inputs */
[data-theme="dark"] input, 
[data-theme="dark"] textarea, 
[data-theme="dark"] select {
    background: #111111 !important;
    border: 1px solid #333 !important;
    color: white !important;
}
[data-theme="dark"] input:focus, 
[data-theme="dark"] textarea:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3) !important;
}

/* Footer & Header */
[data-theme="dark"] .footer {
    background: #000000;
    border-top: 1px solid #222;
}
[data-theme="dark"] .header {
    background: rgba(0, 0, 0, 0.9);
    border-bottom: 1px solid #222;
}
[data-theme="dark"] .nav a {
    color: #cbd5e1;
}
[data-theme="dark"] .nav a.active, 
[data-theme="dark"] .nav a:hover {
    color: white;
    text-shadow: 0 0 10px var(--primary);
}

/* Fix "Özeldir" text visibility in Dark Mode if needed */
[data-theme="dark"] .quote-banner .quote-title .gradient-text {
    /* Keep orange as set globally, but ensure contrast */
    text-shadow: 0 0 20px rgba(255, 136, 0, 0.3);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
    background: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo { font-family: var(--font-heading); font-weight: 700; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 100px 0; position: relative; }
.text-center { text-align: center; }
.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    backdrop-filter: blur(20px); border-bottom: 1px solid var(--border);
    background: var(--header-bg);
    padding: 20px 0;
    box-shadow: var(--shadow-header);
    transition: background 0.3s, border 0.3s;
}

/* Theme Toggle Button Style FIX */
.theme-toggle-btn {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 20px; /* Consistent margin */
    transition: 0.3s;
    width: 40px;
    height: 40px;
}
.theme-toggle-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
/* Mobile Toggle Hidden on Desktop */
.menu-toggle, .menu-btn { display: none !important; }

/* Responsive Header Adjustments */
@media (max-width: 768px) {
    .menu-btn { 
        display: flex !important;
        color: var(--text-main); /* Ensure visibility */
        border: 1px solid var(--border);
        padding: 8px;
        border-radius: 8px;
    } 
}

/* Fix CSS syntax error on line 185 (extra closing brace) */
/* } was deleted here */
.header-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.8rem; letter-spacing: -1px; text-decoration: none; color: var(--text-main); }
.logo:hover { cursor: pointer; }
.logo span { color: var(--primary-light); }
.nav { display: flex; gap: 30px; align-items: center; }
.nav a { font-size: 0.95rem; color: var(--text-muted); font-weight: 500; position: relative; }
.nav a:hover, .nav a.active { color: var(--text-main); }
.nav a::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px; background: var(--primary); transition: 0.3s; }
.nav a:hover::after, .nav a.active::after { width: 100%; }

.btn {
    padding: 12px 28px; border-radius: 50px; font-weight: 600; font-family: var(--font-heading);
    display: inline-flex; align-items: center; justify-content: center;
}
.btn-primary { 
    background: #2563eb; color: white; border: none; 
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}
.btn-primary:hover { background: #1d4ed8; box-shadow: 0 6px 20px rgba(37, 99, 235, 0.6); transform: translateY(-2px); }
.btn-outline { border: 2px solid #2563eb; color: #2563eb; background: transparent; font-weight: 700; }
.btn-outline:hover { background: #eff6ff; border-color: #1d4ed8; color: #1d4ed8; }
.full-width { width: 100%; }

.hero {
    min-height: 100vh; display: flex; align-items: center;
    position: relative; overflow: hidden; padding-top: 80px;
}
.hero-content { position: relative; z-index: 2; max-width: 800px; text-align: center; margin: 0 auto; }
.hero h1 { font-size: 4rem; line-height: 1.1; margin-bottom: 25px; }
.hero-desc { font-size: 1.25rem; color: var(--text-muted); margin-bottom: 40px; }

.hero-shapes .shape {
    position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.15;
    animation: float 10s infinite alternate; z-index: 1;
}
.shape-1 { top: -10%; left: -10%; width: 500px; height: 500px; background: var(--primary); }
.shape-2 { bottom: 10%; right: -10%; width: 400px; height: 400px; background: var(--secondary); animation-delay: -5s; }
.shape-3 { top: 40%; left: 40%; width: 300px; height: 300px; background: var(--accent); opacity: 0.2; animation-duration: 15s; }

@keyframes float { 0% { transform: translate(0, 0); } 100% { transform: translate(50px, 50px); } }

.hero-badge {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 16px; background: rgba(255,255,255,0.05);
    border-radius: 30px; border: 1px solid var(--border);
    margin-bottom: 30px; font-size: 0.9rem; color: var(--accent);
}
.pulse { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 0 rgba(6,182,212, 0.7); animation: pulse 2s infinite; }
@keyframes pulse { 0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.7); } 70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(6, 182, 212, 0); } 100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(6, 182, 212, 0); } }

.hero-features-mini {
    display: flex; justify-content: center; gap: 20px;
    margin-bottom: 40px; color: var(--text-muted); font-size: 0.9rem;
}
.dot { display: inline-block; width: 6px; height: 6px; background: var(--primary); border-radius: 50%; margin-right: 8px; }

.marquee-container {
    background: var(--primary); color: white; padding: 15px 0;
    overflow: hidden; white-space: nowrap; transform: rotate(-1deg) scale(1.05);
    border-top: 1px solid rgba(255,255,255,0.2); border-bottom: 1px solid rgba(255,255,255,0.2);
}
.marquee-content { display: inline-block; animation: scroll 40s linear infinite; }
.marquee-content span { margin: 0 30px; font-weight: 700; font-family: var(--font-heading); font-size: 1.1rem; }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Mini Site Previews */
.preview-container {
    width: 100%;
    height: 300px; /* Fixed height */
    position: relative;
    overflow: hidden;
    background: #1e1e1e;
    border-bottom: 1px solid #333;
    display: block; /* Removed flex to prevent squashing */
}
.browser-header {
    height: 28px;
    background: #2d2d2d;
    display: flex;
    align-items: center;
    padding: 0 12px;
    border-bottom: 1px solid #000;
    position: relative;
    z-index: 10;
}
.browser-dots {
    display: flex;
    gap: 6px;
    margin-right: 12px;
}
.browser-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }
.browser-address {
    flex: 1;
    height: 20px;
    background: #000;
    border-radius: 4px;
    border: 1px solid #444;
    font-size: 10px;
    line-height: 20px;
    color: #4ade80; /* Terminal Green text */
    padding-left: 10px;
    font-family: 'Share Tech Mono', monospace;
    opacity: 0.8;
}
.iframe-container {
    width: 300%; /* Scale base width */
    height: calc((300px - 28px) * 3); /* Exact calculation to fill remaining space */
    transform: scale(0.3333); /* 1 / 3 */
    transform-origin: top left;
    background: #fff;
    display: block;
    position: relative;
    z-index: 1;
}
[data-theme="dark"] .iframe-container {
    background: #111;
}
.iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none;
}
/* Ensure links overlay the iframe so the card is clickable or buttons work */
.card-overlay-link {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 10;
}

.grid-card-layout {
    display: grid; grid-template-columns: 1.2fr 1.8fr; gap: 30px;
}
.glass-card {
    background: white; border: 1px solid #bfdbfe;
    border-radius: var(--radius-lg); padding: 40px;
    transition: 0.4s; position: relative; overflow: hidden;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.05); /* Soft blue shadow */
    z-index: 10;
}
.glass-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(37,99,235,0.15); }
.big-card {
    display: flex; flex-direction: column; justify-content: center;
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
    border-color: #bfdbfe !important;
    box-shadow: 0 20px 40px -10px rgba(37, 99, 235, 0.1);
}
.big-card h3 { 
    font-size: 2rem; 
    margin-bottom: 20px; 
    color: #1e3a8a; /* Deep Blue for contrast on light bg */
    line-height: 1.3; 
}
.big-card p {
    color: #475569;
}
.small-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.feature-box:hover { background: var(--bg-card-hover); transform: translateY(-5px); border-color: var(--primary); }
.icon-box { font-size: 2.5rem; margin-bottom: 15px; }

.details-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px;
}
details.interactive-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
}
details.interactive-card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.2);
}
details.interactive-card[open] {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--secondary);
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
}
details.interactive-card summary {
    padding: 30px;
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    list-style: none;
    position: relative;
    display: flex; justify-content: space-between; align-items: center;
}
details.interactive-card summary::after {
    content: '+'; 
    font-size: 2rem; color: var(--accent); transition: 0.3s;
}
details.interactive-card[open] summary::after {
    content: '-'; color: var(--secondary); transform: rotate(180deg);
}
details.interactive-card summary::-webkit-details-marker { display: none; }
.card-detail-content {
    padding: 0 30px 30px 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
    animation: fadeIn 0.5s ease;
}
.card-detail-content p { color: var(--text-muted); margin-bottom: 20px; }
.tech-tag {
    display: inline-block; padding: 5px 12px; 
    background: rgba(79, 70, 229, 0.2); 
    border: 1px solid rgba(79, 70, 229, 0.4);
    border-radius: 20px; font-size: 0.8rem; margin-right: 5px; margin-bottom: 5px;
    color: var(--primary-light);
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

.quote-banner {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%); /* Deep Royal Blue */
    border: none;
    border-radius: 30px;
    padding: 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: white; /* Force white text */
    box-shadow: 0 20px 50px -10px rgba(30, 58, 138, 0.4);
}

.quote-banner .quote-title {
    color: white !important;
    line-height: 1.4; /* Fix 'dip dibe' - add breathing room */
    letter-spacing: 0.5px;
}

/* Make 'Özeldir' Orange */
.quote-banner .quote-title span, 
.quote-banner .quote-title .gradient-text {
    background: none !important;
    -webkit-text-fill-color: #ff8800 !important; /* Bright Orange */
    color: #ff8800 !important;
}

.quote-banner .quote-desc {
    color: rgba(255, 255, 255, 0.9) !important; /* Slightly transparent white for desc */
    line-height: 1.6; /* Improve readability */
}

.quote-banner::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: rotate 20s linear infinite; pointer-events: none;
}
@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.quote-content { position: relative; z-index: 2; }
.quote-title { font-size: 3rem; margin-bottom: 20px; }
.quote-desc { font-size: 1.2rem; color: var(--text-muted); max-width: 700px; margin: 0 auto 40px; }

.badge-3d {
    background: #000; border: 1px solid #333; padding: 5px 10px; border-radius: 4px;
    font-family: monospace; color: #0f0; margin-bottom: 10px; display: inline-block;
    box-shadow: 0 0 10px #0f0; text-transform: uppercase; letter-spacing: 2px;
}

@media (max-width: 991px) {
    .details-grid { grid-template-columns: 1fr; }
    .quote-banner { padding: 40px 20px; }
    .quote-title { font-size: 2rem; }
}

.timeline {
    position: relative; max-width: 800px; margin: 40px auto 0;
}
.timeline::after {
    content: ''; position: absolute; width: 2px; background: var(--border);
    top: 0; bottom: 0; left: 50%; margin-left: -1px;
}
.timeline-item { padding: 10px 40px; position: relative; width: 50%; box-sizing: border-box; }
.timeline-item:nth-child(even) { left: 50%; }
.timeline-item:nth-child(odd) { left: 0; text-align: right; }
.timeline-dot {
    width: 40px; height: 40px; background: var(--bg-dark);
    border: 2px solid var(--primary); border-radius: 50%;
    position: absolute; top: 10px; right: -20px; z-index: 1;
    display: flex; align-items: center; justify-content: center;
    font-weight: bold; color: var(--primary);
}
.timeline-item:nth-child(even) .timeline-dot { left: -20px; }
.timeline-item:nth-child(odd) .timeline-content { margin-right: 20px; }
.timeline-item:nth-child(even) .timeline-content { margin-left: 20px; }
.timeline-content {
    padding: 20px; background: var(--bg-card); border-radius: 12px;
    border: 1px solid var(--border);
}
.timeline-content h4 { color: var(--accent); margin-bottom: 10px; }

.accordion { max-width: 800px; margin: 0 auto; }
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 0; cursor: pointer; font-weight: 600; font-size: 1.1rem;
}
.accordion-content { max-height: 0; overflow: hidden; transition: 0.3s ease; color: var(--text-muted); }
.accordion-item input { display: none; }
.accordion-item input:checked ~ .accordion-content { max-height: 200px; padding-bottom: 20px; }
.accordion-item input:checked ~ .accordion-header .icon { transform: rotate(45deg); color: var(--secondary); }
.icon { font-size: 1.5rem; transition: 0.3s; }

.footer {
    padding: 80px 0 30px; text-align: center; border-top: 1px solid var(--border);
}
.cta-mini h2 { font-size: 2.5rem; margin-bottom: 10px; }
.contact-links { display: flex; justify-content: center; gap: 40px; margin: 40px 0; }
.link-item { font-size: 1.2rem; font-weight: 500; }
.link-item:hover { color: var(--primary-light); }
.footer-divider { height: 1px; background: var(--border); margin: 40px 0; }
.footer-bottom-row { display: flex; justify-content: space-between; color: var(--text-muted); font-size: 0.9rem; }
.social-links { display: flex; gap: 20px; }
.social-links a:hover { color: white; }

.page-header-spacer { height: 100px; }
.page-heading { padding: 60px 0; text-align: center; }
.page-heading h1 { font-size: 3.5rem; margin-bottom: 20px; }
.page-heading p { color: var(--text-muted); font-size: 1.2rem; max-width: 600px; margin: 0 auto; }

.contact-wrapper { display: flex; gap: 50px; align-items: flex-start; }
.contact-info { flex: 1; padding: 40px; background: var(--bg-card); border-radius: var(--radius-lg); }
.contact-form-container { flex: 1.5; padding: 40px; background: var(--bg-card); border-radius: var(--radius-lg); border: 1px solid var(--border); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 10px; font-weight: 600; font-size: 0.9rem; }
.form-control { 
    width: 100%; 
    padding: 15px; 
    background: white; 
    border: 1px solid #bfdbfe; 
    border-radius: 10px; 
    color: #475569; 
    font-family: var(--font-body); 
    transition: 0.3s;
}
.form-control:focus { 
    outline: none; 
    border-color: var(--primary); 
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
select.form-control option { color: #000; background-color: #fff; }
textarea.form-control { resize: none; height: 150px; }
.contact-item { display: flex; align-items: center; gap: 15px; margin-bottom: 25px; }
.contact-item .ci-icon { width: 40px; height: 40px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; }

.examples-grid { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 40px; 
}

.example-card {
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #bfdbfe;
    overflow: hidden;
    position: relative;
    transition: 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 10px 30px -10px rgba(37, 99, 235, 0.1);
}

.example-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px -20px rgba(79, 70, 229, 0.2);
    border-color: #3b82f6;
}

.browser-header {
    background: #f1f5f9;
    padding: 12px 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 15px;
}
.browser-dots { display: flex; gap: 6px; }
.b-dot { width: 10px; height: 10px; border-radius: 50%; opacity: 0.7; }
.bd-1 { background: #ff5f56; }
.bd-2 { background: #ffbd2e; }
.bd-3 { background: #27c93f; }
.address-bar {
    background: white;
    border-radius: 4px;
    height: 24px;
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 10px;
    font-size: 0.75rem;
    color: #475569;
    border: 1px solid #e2e8f0;
    font-family: monospace;
}

.preview-window {
    height: 350px;
    position: relative;
    overflow: hidden;
    background: #fff;
    font-family: 'Inter', sans-serif; 
}

.preview-window * { transition: 0.4s ease; }
.overlay-hover {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; backdrop-filter: blur(2px); z-index: 10;
}
.example-card:hover .overlay-hover { opacity: 1; }
.btn-live-view {
    padding: 10px 25px; background: white; color: black;
    font-weight: bold; border-radius: 30px; transform: translateY(20px);
}
.example-card:hover .btn-live-view { transform: translateY(0); }

.ex-ecommerce {
    background: #f3f4f6; padding: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.imac-mock { width: 100%; height: 100%; display: flex; gap: 20px; padding: 20px; }
.prod-card {
    background: white; border-radius: 12px; padding: 15px; flex: 1;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); position: relative;
    transform-origin: bottom center;
}
.prod-img { width: 100%; height: 100px; background: #e5e7eb; border-radius: 8px; margin-bottom: 10px; position: relative; overflow: hidden; }
.prod-img::after { 
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.5) 50%, transparent 70%);
    background-size: 200% 100%; animation: shimmer 2s infinite; display: none;
}
.example-card:hover .prod-img::after { display: block; }

.prod-title { height: 10px; width: 70%; background: #d1d5db; border-radius: 4px; margin-bottom: 5px; }
.prod-price { height: 10px; width: 40%; background: #4f46e5; border-radius: 4px; }
.btn-add { 
    position: absolute; bottom: 15px; right: 15px; 
    width: 30px; height: 30px; background: #111; border-radius: 50%; 
    color: white; display: flex; align-items: center; justify-content: center;
    opacity: 0; transform: scale(0);
}

.example-card:hover .prod-card:nth-child(2) { transform: scale(1.1) translateY(-10px); z-index: 2; box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.example-card:hover .btn-add { opacity: 1; transform: scale(1); }

@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

.ex-market {
    background: #0f172a; color: white; padding: 0; display: flex; flex-direction: column;
}
.market-nav { border-bottom: 1px solid #334155; padding: 15px; display: flex; justify-content: space-between; }
.market-nav-brand { font-weight: 800; color: #38bdf8; letter-spacing: 1px; }
.market-grid { 
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 20px; 
    perspective: 500px;
}
.nft-item {
    background: #1e293b; border-radius: 8px; padding: 10px;
    border: 1px solid transparent; transition: 0.3s;
}
.nft-img { background: linear-gradient(45deg, #6366f1, #ec4899); height: 60px; border-radius: 6px; margin-bottom: 8px; opacity: 0.7; }

.example-card:hover .nft-item { transform: rotateY(10deg); filter: brightness(0.7); }
.example-card:hover .nft-item:nth-child(2) { 
    transform: rotateY(0) scale(1.15) translateZ(20px); 
    filter: brightness(1); 
    border-color: #38bdf8; z-index: 5;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
}

.ex-corporate { background: white; color: #333; position: relative; }
.corp-hero { height: 100%; background: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&q=80&w=1000') center/cover; position: relative; }
.corp-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,0.8), transparent); padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.corp-title { 
    font-size: 1.8rem; font-weight: 800; color: white; margin-bottom: 15px; 
    transform: translateX(-20px); opacity: 0; 
}
.corp-sub { 
    color: #ccc; font-size: 0.9rem; max-width: 150px; 
    transform: translateX(-20px); opacity: 0; 
}
.corp-btn {
    margin-top: 20px; padding: 8px 20px; background: #2563eb; color: white; 
    border: none; width: fit-content; opacity: 0; transform: translateY(20px);
}

.example-card:hover .corp-title { transform: translateX(0); opacity: 1; transition-delay: 0.1s; }
.example-card:hover .corp-sub { transform: translateX(0); opacity: 1; transition-delay: 0.2s; }
.example-card:hover .corp-btn { transform: translateY(0); opacity: 1; transition-delay: 0.3s; }

.ex-social { background: #f0f2f5; display: flex; gap: 15px; padding: 20px; align-items: flex-start; }
.social-sidebar { width: 25%; height: 80%; background: white; border-radius: 8px; }
.social-feed { width: 75%; display: flex; flex-direction: column; gap: 15px; }
.post-card { 
    background: white; padding: 15px; border-radius: 8px; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); position: relative;
}
.post-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: #ddd; }
.like-bubble {
    position: absolute; right: 20px; bottom: 20px;
    background: #ef4444; color: white; width: 24px; height: 24px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 12px;
    opacity: 0; transform: scale(0);
}

.example-card:hover .like-bubble { 
    animation: popLike 1s ease infinite alternate; opacity: 1; 
}
@keyframes popLike { 0% { transform: scale(1); } 100% { transform: scale(1.3); } }

.ex-saas { background: #111827; display: flex; color: #9ca3af; padding: 15px; gap: 15px; }
.saas-nav { width: 40px; background: #1f2937; border-radius: 8px; height: 100%; }
.saas-main { flex: 1; display: flex; flex-direction: column; gap: 15px; }
.chart-box { 
    height: 100px; background: #1f2937; border-radius: 8px; 
    display: flex; align-items: flex-end; padding: 10px; gap: 5px; 
    overflow: hidden;
}
.bar { flex: 1; background: #374151; border-radius: 3px 3px 0 0; height: 20%; transition: 1s cubic-bezier(0.4, 0, 0.2, 1); }

.example-card:hover .bar:nth-child(1) { height: 60%; background: #4f46e5; }
.example-card:hover .bar:nth-child(2) { height: 80%; background: #818cf8; }
.example-card:hover .bar:nth-child(3) { height: 40%; background: #4f46e5; }
.example-card:hover .bar:nth-child(4) { height: 90%; background: #c7d2fe; }

.ex-kiosk {
    background: #111; display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
}
.kiosk-screen {
    width: 60%; height: 80%; background: #222; border-radius: 10px;
    border: 2px solid #444; display: flex; flex-direction: column; overflow: hidden;
    box-shadow: 0 0 20px rgba(0,0,0,0.5); transform: translateY(10px);
}
.k-header { height: 20px; background: #d4af37; width: 100%; }
.k-body { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 10px; }
.k-item { background: #333; border-radius: 4px; }
.k-sidebar { width: 30%; background: #1a1a1a; }

.example-card:hover .kiosk-screen { transform: scale(1.1); box-shadow: 0 0 30px rgba(212, 175, 55, 0.3); border-color: #d4af37; }
.example-card:hover .k-item:nth-child(1) { background: #555; }


@media (max-width: 991px) {
    .examples-grid { grid-template-columns: 1fr; }
}


@media (max-width: 991px) {
    .container { max-width: 100%; }
    .hero h1 { font-size: 2.8rem; }
    .grid-card-layout, .details-grid, .contact-wrapper, .site-retro .retro-grid { grid-template-columns: 1fr; flex-direction: column; display: flex; }
    .grid-card-layout { display: grid; grid-template-columns: 1fr; }
    .details-grid { display: grid; }
    
    .contact-wrapper { gap: 30px; } 

    .timeline::after { left: 31px; }
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; }
    .timeline-item:nth-child(even) { left: 0%; }
    .timeline-item:nth-child(odd) { text-align: left; }
    .timeline-dot, .timeline-item:nth-child(even) .timeline-dot { left: 15px; right: auto; }
    .hero-btns { flex-direction: column; }
    
    .menu-toggle { display: none; }
    .menu-btn { display: flex; flex-direction: column; gap: 6px; cursor: pointer; z-index: 1002; position: relative; }
    .menu-btn span { width: 30px; height: 3px; background: #000000; transition: 0.3s; }
    [data-theme="dark"] .menu-btn span {
        background: #ffffff;
    }

    .nav {
        position: fixed; top: 0; right: -100%; width: 100%; height: 100vh;
        background-color: #ffffff; /* Matte white by default (light mode) */
        flex-direction: column; justify-content: center;
        transition: 0.3s; z-index: 1001; 
    }
    [data-theme="dark"] .nav {
        background-color: #000000; /* Matte black in dark mode */
    }
    #menu-toggle:checked ~ .nav { right: 0; }
    #menu-toggle:checked ~ .menu-btn span:nth-child(1) { transform: rotate(45deg) translate(5px, 8px); }
    #menu-toggle:checked ~ .menu-btn span:nth-child(2) { opacity: 0; }
    #menu-toggle:checked ~ .menu-btn span:nth-child(3) { transform: rotate(-45deg) translate(5px, -8px); }
    .page-heading h1 { font-size: 2.5rem; }
}

.modal-window {
    position: fixed;
    background-color: rgba(0,0,0, 0.85);
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal-window:target {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.modal-content-wrapper {
    width: 90%;
    max-width: 1200px;
    height: 85vh;
    background: #0f172a;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    animation: modalSlideIn 0.4s ease-out;
}

@keyframes modalSlideIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header-bar {
    padding: 15px 25px;
    background: #1e293b;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px 12px 0 0;
}

.modal-header-bar h2 {
    color: white;
    font-size: 1.2rem;
    margin: 0;
    font-family: var(--font-heading);
}

.modal-close {
    position: absolute;
    top: -35px;
    right: 0;
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    background: rgba(255,255,255,0.1);
    padding: 5px 15px;
    border-radius: 20px;
    transition: 0.2s;
}
.modal-close:hover { background: rgba(255,255,255,0.2); }

.modal-iframe-container {
    flex: 1;
    width: 100%;
    height: 100%;
    background: white;
    overflow: hidden;
    border-radius: 0 0 12px 12px;
}

.modal-iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.btn-fullscreen-link {
    background: var(--primary);
    color: white;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: 0.3s;
}
.btn-fullscreen-link:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
}

.preview-link {
    display: block;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

/*
  -------------------
  Services Page Styles
  -------------------
*/

/* Page Specific Overrides */
.services-page .page-header-spacer { height: 100px; }
.services-page .page-heading { padding: 80px 0 40px; text-align: center; }
.services-page .page-heading h1 { font-size: 3.5rem; margin-bottom: 20px; }
.services-page .page-heading p { color: var(--text-muted); font-size: 1.2rem; max-width: 600px; margin: 0 auto; }

/* Service Row Layout (Adapted to Main Theme) */
.service-list { display: flex; flex-direction: column; gap: 120px; padding: 60px 0; }

.service-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.service-item:nth-child(even) { direction: rtl; }
.service-item:nth-child(even) .service-content { direction: ltr; text-align: right; }

.service-image-box {
    position: relative;
    height: 450px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    /* Static glow effect instead of animation */
    box-shadow: 0 0 30px rgba(79, 70, 229, 0.15); 
}

.service-image-box img {
    width: 100%; height: 100%; object-fit: cover;
    opacity: 1; /* Fully visible for light theme */
    transition: opacity 0.3s;
    border-radius: 12px;
}
.service-image-box:hover img { opacity: 0.9; }

.service-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-main); /* Adaptive Color */
    background: none;
    -webkit-text-fill-color: initial;
    font-weight: 700;
}

.service-content p {
    color: var(--text-muted); /* Adaptive Color */
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.tech-list {
    list-style: none;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 18px; /* Breathing room for list items */
}

.tech-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    color: var(--text-main); /* Adaptive Color */
    font-size: 1.1rem;
}

/* Adjust alignment for RTL rows */
.service-item:nth-child(even) .tech-list li { justify-content: flex-end; }
.service-item:nth-child(even) .tech-list li::after {
    content: ''; width: 6px; height: 6px; background: #2563eb; border-radius: 50%;
}
/* Default LTR dots */
.service-item:nth-child(odd) .tech-list li::before {
    content: ''; width: 6px; height: 6px; background: #2563eb; border-radius: 50%;
}

.service-number {
    font-size: 5rem;
    font-weight: 800;
    color: var(--text-muted); opacity: 0.1; /* Adaptive transparent */
    line-height: 1;
    margin-bottom: -20px;
    position: relative;
    z-index: -1;
    font-family: var(--font-heading);
}

/* Responsive */
@media (max-width: 900px) {
    .service-item, .service-item:nth-child(even) { grid-template-columns: 1fr; gap: 40px; direction: ltr; margin-bottom: 60px; text-align: left; }
    .service-item:nth-child(even) .service-content { text-align: left; }
    .service-item:nth-child(even) .tech-list li { justify-content: flex-start; }
    .service-item:nth-child(even) .tech-list li::after { display: none; }
    .service-item:nth-child(even) .tech-list li::before { content: ''; width: 6px; height: 6px; background: var(--secondary); border-radius: 50%; }
    .service-image-box { height: 300px; }
    .service-content h2 { font-size: 2rem; }
}

/*
  -------------------
  Ecommerce Demo Styles (Scoped)
  -------------------
*/

.ecommerce-demo-page {
    --primary: #4338ca;
    --secondary: #f43f5e;
    --dark: #0f172a;
    --light: #f8fafc;
    /* Reset body defaults within scope */
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    background-color: var(--light);
    color: var(--dark);
}

.ecommerce-demo-page h1, 
.ecommerce-demo-page h2, 
.ecommerce-demo-page h3 { font-family: 'Outfit', sans-serif; }

.ecommerce-demo-page header {
    background: white;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.ecommerce-demo-page .logo { font-size: 24px; font-weight: 700; color: var(--primary); }
.ecommerce-demo-page .nav-link { margin-left: 20px; text-decoration: none; color: var(--dark); font-weight: 500; }
.ecommerce-demo-page .cart-btn { background: var(--dark); color: white; padding: 10px 20px; border-radius: 50px; text-decoration: none; }

.ecommerce-demo-page .hero {
    background: linear-gradient(to right, #4338ca, #6366f1);
    color: white;
    padding: 100px 40px;
    text-align: center;
    /* Hero override */
    min-height: auto; 
    display: block;
}

.ecommerce-demo-page .hero h1 { font-size: 3.5rem; margin-bottom: 20px; line-height: normal; }
.ecommerce-demo-page .hero p { font-size: 1.2rem; opacity: 0.9; max-width: 600px; margin: 0 auto 30px; }
.ecommerce-demo-page .btn-hero { background: var(--secondary); color: white; border: none; padding: 15px 35px; font-size: 1.1rem; border-radius: 10px; cursor: pointer; transition: 0.3s; }
.ecommerce-demo-page .btn-hero:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(244, 63, 94, 0.4); }

.ecommerce-demo-page .products {
    padding: 80px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.ecommerce-demo-page .section-title { font-size: 2.5rem; text-align: center; margin-bottom: 50px; }

.ecommerce-demo-page .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.ecommerce-demo-page .product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
}
.ecommerce-demo-page .product-card:hover { transform: translateY(-10px); }

.ecommerce-demo-page .img-placeholder {
    width: 100%;
    height: 250px;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 3rem;
}

.ecommerce-demo-page .p-info { padding: 25px; }
.ecommerce-demo-page .price { font-size: 1.5rem; color: var(--primary); font-weight: 700; display: block; margin: 10px 0; }
.ecommerce-demo-page .add-btn { width: 100%; padding: 12px; background: var(--dark); color: white; border: none; border-radius: 8px; cursor: pointer; }

.ecommerce-demo-page footer {
    background: var(--dark);
    color: white;
    padding: 50px 40px;
    text-align: center;
    margin-top: 50px;
}

/*
  -------------------
  CRM Dashboard Styles (Scoped)
  -------------------
*/

.crm-page {
    /* Scoped Variables */
    --primary: #4f46e5;
    --bg: #0f172a;
    --bg-card: #1e293b;
    --text-main: #f8fafc;
    --text-sub: #94a3b8;
    --border: #334155;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    
    /* Body Replacement */
    background-color: var(--bg);
    color: var(--text-main);
    display: flex;
    height: 100vh;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    margin: 0; 
    padding: 0;
    box-sizing: border-box;
}

.crm-page * { box-sizing: border-box; }

.crm-page .sidebar {
    width: 260px;
    background-color: var(--bg-card);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.crm-page .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.crm-page .logo i { color: var(--primary); }

.crm-page .menu-item {
    padding: 12px 15px;
    margin-bottom: 5px;
    border-radius: 8px;
    color: var(--text-sub);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s;
    cursor: pointer;
}

.crm-page .menu-item:hover, .crm-page .menu-item.active {
    background-color: var(--primary);
    color: white;
}

.crm-page .main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.crm-page .top-bar {
    height: 70px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    background-color: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(5px);
}

.crm-page .search-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 8px 15px;
    border-radius: 6px;
    color: white;
    width: 300px;
    outline: none;
}

.crm-page .user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.crm-page .user-avatar {
    width: 35px;
    height: 35px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.crm-page .view-content {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

.crm-page .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.crm-page .stat-card {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.crm-page .stat-label { color: var(--text-sub); font-size: 0.9rem; margin-bottom: 5px; }
.crm-page .stat-value { font-size: 1.8rem; font-weight: 700; }
.crm-page .stat-trend { font-size: 0.8rem; margin-top: 5px; display: flex; align-items: center; gap: 5px; }
.crm-page .trend-up { color: var(--success); }
.crm-page .trend-down { color: var(--danger); }

.crm-page .table-container {
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.crm-page .table-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.crm-page .btn-add {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.crm-page .btn-add:hover { background-color: #4338ca; }

.crm-page table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.crm-page th {
    background-color: rgba(255,255,255,0.02);
    padding: 15px 20px;
    color: var(--text-sub);
    font-weight: 500;
    font-size: 0.9rem;
}

.crm-page td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
}

.crm-page tr:last-child td { border-bottom: none; }
.crm-page tr:hover { background-color: rgba(255,255,255,0.02); }

.crm-page .status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}
/* Utility */
.crm-page.light-mode {
    --bg: #f1f5f9;
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-sub: #475569;
    --border: #cbd5e1;
}

/* CRM Mobile Styles */
.crm-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
    margin-right: 15px;
}

@media (max-width: 991px) {
    .crm-page {
        flex-direction: column;
        height: 100vh; /* Ensure full viewport height */
        overflow: hidden; /* Hide main overflow, scroll views independently */
    }

    .crm-page .sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        bottom: 0;
        z-index: 1000;
        width: 80%;
        max-width: 300px;
        transition: 0.3s;
        box-shadow: 10px 0 30px rgba(0,0,0,0.5);
        background-color: var(--bg-card); /* Ensure opaque */
    }


    .crm-page .sidebar.active {
        left: 0;
    }

    .crm-page .main-content {
        width: 100%;
        height: 100%;
    }

    .crm-page .top-bar {
        padding: 0 15px;
        background-color: var(--primary) !important; /* Blue background as requested */
        color: white; /* Ensure text is visible on blue */
    }
    
    /* Ensure elements inside top bar inherit visibility */
    .crm-page .top-bar h2, 
    .crm-page .crm-menu-toggle {
        color: white !important;
    }

    .crm-page .crm-menu-toggle {
        display: block;
    }

    /* Stack stats */
    .crm-page .stats-grid {
        grid-template-columns: 1fr;
    }

    /* Stack header items */
    .crm-page .top-bar h2 {
        font-size: 1.2rem;
    }
    .crm-page .search-box {
        display: none; /* Hide search on mobile for space */
    }
    
    /* Make table scrollable */
    .crm-page .table-container {
        overflow-x: auto;
    }
    
    /* Adjust Profile */
    .crm-page .user-profile span {
        display: none; /* Hide name, show avatar only */
    }
}

    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.crm-page .status-active { background: rgba(16, 185, 129, 0.2); color: var(--success); }
.crm-page .status-pending { background: rgba(245, 158, 11, 0.2); color: var(--warning); }
.crm-page .status-inactive { background: rgba(239, 68, 68, 0.2); color: var(--danger); }

.crm-page .action-btn {
    background: none;
    border: none;
    color: var(--text-sub);
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s;
}
.crm-page .action-btn:hover { color: white; }

.crm-page .modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.crm-page .modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.crm-page .modal-box {
    background: var(--bg-card);
    width: 500px;
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 30px;
    transform: translateY(-20px);
    transition: transform 0.3s;
}

.crm-page .modal-overlay.open .modal-box { transform: translateY(0); }

.crm-page .form-group { margin-bottom: 15px; }
.crm-page .form-group label { display: block; margin-bottom: 8px; color: var(--text-sub); font-size: 0.9rem; }
.crm-page .form-input {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 10px;
    border-radius: 6px;
    color: white;
    outline: none;
}
.crm-page .form-input:focus { border-color: var(--primary); }

.crm-page .modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.crm-page .btn-cancel {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-sub);
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
}

.crm-page .kanban-board { display: flex; gap: 20px; height: 100%; overflow-x: auto; padding-bottom: 20px; }
.crm-page .kanban-col { flex: 1; min-width: 300px; background: var(--bg-card); border-radius: 12px; border: 1px solid var(--border); display: flex; flex-direction: column; }
.crm-page .kanban-header { padding: 15px; border-bottom: 1px solid var(--border); font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.crm-page .kanban-body { padding: 15px; flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.crm-page .task-card { background: var(--bg); padding: 15px; border-radius: 8px; border: 1px solid var(--border); cursor: grab; transition: transform 0.2s; }
.crm-page .task-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.crm-page .task-tag { font-size: 0.7rem; padding: 2px 8px; border-radius: 10px; background: rgba(79, 70, 229, 0.2); color: var(--primary); margin-bottom: 5px; display: inline-block; }
.crm-page .task-title { font-weight: 500; margin-bottom: 5px; }
.crm-page .task-meta { font-size: 0.8rem; color: var(--text-sub); display: flex; justify-content: space-between; align-items: center; }

.crm-page .settings-section { background: var(--bg-card); border-radius: 12px; border: 1px solid var(--border); padding: 30px; margin-bottom: 20px; }
.crm-page .settings-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.crm-page .toggle-switch { position: relative; display: inline-block; width: 50px; height: 26px; }
.crm-page .toggle-switch input { opacity: 0; width: 0; height: 0; }
.crm-page .slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: var(--border); transition: .4s; border-radius: 34px; }
.crm-page .slider:before { position: absolute; content: ""; height: 20px; width: 20px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; }
.crm-page input:checked + .slider { background-color: var(--primary); }
.crm-page input:checked + .slider:before { transform: translateX(24px); }



/* 
   ====================================
   LUXURY THEME STYLES (Scoped)
   Matching files: luxury-*.html
   ====================================
*/

.theme-luxury {
    --bg-body: #050505;
    --bg-surface: #121212;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent: #D4AF37; /* Gold */
    --accent-glow: rgba(212, 175, 55, 0.3);
    --font-display: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
    --transition: cubic-bezier(0.16, 1, 0.3, 1) 0.6s;

    /* Body Reset */
    background-color: var(--bg-body);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    margin: 0;
}

.theme-luxury * { box-sizing: border-box; }

.theme-luxury h1, 
.theme-luxury h2, 
.theme-luxury h3, 
.theme-luxury h4 { font-family: var(--font-display); font-weight: 400; }

.theme-luxury .display-text { font-size: 5rem; line-height: 1; letter-spacing: -2px; }
.theme-luxury .subtitle { font-size: 1.2rem; color: var(--text-secondary); letter-spacing: 2px; text-transform: uppercase; }

/* Components */
.theme-luxury .btn-lux {
    display: inline-block;
    padding: 15px 40px;
    border: 1px solid rgba(255,255,255,0.2);
    background: transparent;
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.theme-luxury .btn-lux::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 0%; height: 100%;
    background: var(--text-primary);
    transition: var(--transition);
    z-index: -1;
}

.theme-luxury .btn-lux:hover { color: var(--bg-body); border-color: var(--text-primary); }
.theme-luxury .btn-lux:hover::after { width: 100%; }

/* Header & Nav */
.theme-luxury .lux-header {
    position: fixed; top: 0; width: 100%;
    padding: 30px 50px;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 100;
    mix-blend-mode: difference;
}
.theme-luxury .brand { font-family: var(--font-display); font-size: 2rem; font-style: italic; font-weight: 600; }
.theme-luxury .lux-nav { display: flex; gap: 40px; }
.theme-luxury .lux-nav a { color: white; text-decoration: none; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 2px; opacity: 0.7; transition: 0.3s; position: relative; }
.theme-luxury .lux-nav a::before { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 1px; background: var(--accent); transition: 0.3s; }
.theme-luxury .lux-nav a:hover { opacity: 1; color: var(--accent); }
.theme-luxury .lux-nav a:hover::before { width: 100%; }
.theme-luxury .active-link { color: var(--accent) !important; opacity: 1 !important; }

/* Interactive & Anim */
.theme-luxury .hover-reveal { position: relative; display: inline-block; cursor: pointer; }
.theme-luxury .hover-reveal:hover img { opacity: 1; transform: scale(1) rotate(0deg); }

.theme-luxury .animate-up { animation: fadeInUp 1s cubic-bezier(0.16,1,0.3,1) forwards; opacity: 0; }
.theme-luxury .delay-1 { animation-delay: 0.2s; }
.theme-luxury .delay-2 { animation-delay: 0.4s; }
.theme-luxury .delay-3 { animation-delay: 0.6s; }

/* Loader */
.theme-luxury .page-loader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #000; z-index: 9999;
    animation: loaderExit 1s ease-in-out 1.5s forwards;
    display: flex; justify-content: center; align-items: center;
}
.theme-luxury .loader-text {
    font-family: var(--font-display); font-size: 3rem; color: var(--accent);
    animation: pulse 1.5s infinite;
}

@keyframes loaderExit {
    99% { opacity: 0; }
    100% { opacity: 0; display: none; visibility: hidden; pointer-events: none; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Home Specific (from luxury-home.html) */
.theme-luxury .hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('https://images.unsplash.com/photo-1539109136881-3be0616acf4b?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') center/cover no-repeat;
    background-attachment: fixed;
}
.theme-luxury .hero-content { text-align: center; z-index: 2; }
.theme-luxury .hero-title { font-size: 8rem; margin-bottom: 20px; color: #fff; text-shadow: 0 10px 30px rgba(0,0,0,0.5); }

.theme-luxury .scroll-indicator {
    position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 10px; opacity: 0.7;
}
.theme-luxury .scroll-line { width: 1px; height: 60px; background: white; animation: scrollLine 2s infinite; }

.theme-luxury .showcase { padding: 150px 0; background: var(--bg-surface); }
.theme-luxury .container { max-width: 1400px; margin: 0 auto; padding: 0 40px; }

.theme-luxury .product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 100px; align-items: center; }
.theme-luxury .p-image-wrapper { position: relative; overflow: hidden; height: 700px; }
.theme-luxury .p-image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.theme-luxury .p-image-wrapper:hover .p-image { transform: scale(1.1); }

.theme-luxury .p-info h2 { font-size: 4rem; margin-bottom: 30px; }
.theme-luxury .p-info p { font-size: 1.1rem; line-height: 1.8; color: var(--text-secondary); margin-bottom: 40px; }

.theme-luxury .marquee { padding: 40px 0; background: var(--accent); color: var(--bg-body); overflow: hidden; white-space: nowrap; position: relative; }
.theme-luxury .marquee-content { display: inline-block; animation: marquee 20s linear infinite; font-family: var(--font-display); font-size: 3rem; font-style: italic; }

.theme-luxury .model-grid { display: grid; grid-template-columns: 1.5fr 1fr; height: 100vh; }
.theme-luxury .model-item { position: relative; overflow: hidden; }
.theme-luxury .model-item img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); transition: 0.6s; }
.theme-luxury .model-item:hover img { filter: grayscale(0%); transform: scale(1.05); }
.theme-luxury .model-overlay { position: absolute; bottom: 40px; left: 40px; pointer-events: none; }

/* 
   ====================================
   STORE THEME STYLES (Scoped)
   Matching files: store-*.html
   ====================================
*/

.theme-store {
    --primary: #ccff00; /* Acid Lime */
    --secondary: #000000;
    --text-light: #ffffff;
    --bg-light: #f4f4f4;
    --font-display: 'Teko', sans-serif;
    --font-body: 'Archivo', sans-serif;

    background-color: var(--bg-light);
    font-family: var(--font-body);
    color: var(--secondary);
    overflow-x: hidden;
    margin: 0;
}

.theme-store * { box-sizing: border-box; }

/* Running Text (Marquee) */
.theme-store .marquee-container {
    background: var(--secondary);
    color: var(--primary);
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    z-index: 100;
}
.theme-store .marquee-content {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    animation: marquee 20s linear infinite;
}

/* Navigation */
.theme-store nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 5%;
    position: absolute; width: 100%; top: 40px; z-index: 10;
}
.theme-store .logo { font-family: var(--font-display); font-size: 3rem; font-weight: 600; line-height: 1; letter-spacing: -1px; }
.theme-store .nav-links { display: flex; gap: 30px; font-weight: 700; font-size: 0.9rem; text-transform: uppercase; }
.theme-store .cart-icon { position: relative; font-weight: bold; cursor: pointer; }
.theme-store .cart-count { 
    position: absolute; top: -10px; right: -15px; 
    background: var(--primary); padding: 2px 6px; 
    border-radius: 50%; font-size: 0.8rem; border: 1px solid black;
}

/* Hero Section */
.theme-store .hero {
    height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 0 5%;
    position: relative;
    background: white;
}

.theme-store .hero-text h1 {
    font-family: var(--font-display);
    font-size: 12vw;
    line-height: 0.8;
    text-transform: uppercase;
    color: var(--secondary);
}
.theme-store .hero-text h1 span { color: transparent; -webkit-text-stroke: 2px var(--secondary); display: block; }
        
.theme-store .cta-btn {
    display: inline-block;
    margin-top: 30px;
    padding: 15px 40px;
    background: var(--secondary);
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-family: var(--font-body);
    clip-path: polygon(0 0, 100% 0, 95% 100%, 0% 100%);
    transition: 0.3s;
}
.theme-store .cta-btn:hover { padding-right: 60px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%); }

/* Floating Product */
.theme-store .hero-visual {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
        
.theme-store .main-shoe {
    width: 80%;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.3));
    animation: float 3s ease-in-out infinite;
    transform: rotate(-15deg);
    z-index: 2;
}

.theme-store .circle-bg {
    position: absolute;
    width: 500px; height: 500px;
    background: var(--primary);
    border-radius: 50%;
    z-index: 1;
}

/* Product Grid */
.theme-store .drops-title {
    font-family: var(--font-display);
    font-size: 8rem;
    text-align: center;
    margin-top: 100px;
    margin-bottom: -40px;
    position: relative; z-index: 2;
    color: transparent; -webkit-text-stroke: 1px #ccc;
}

.theme-store .product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: black; /* Create borders via gap */
    margin: 50px 0;
    border-top: 2px solid black;
    border-bottom: 2px solid black;
}

.theme-store .product-card {
    background: white;
    padding: 40px;
    position: relative;
    transition: 0.3s;
    overflow: hidden;
}
.theme-store .product-card:hover { background: #f9f9f9; }

.theme-store .p-badge {
    position: absolute; top: 20px; left: 20px;
    background: var(--primary); padding: 5px 10px;
    font-weight: 700; font-size: 0.8rem; text-transform: uppercase; border: 1px solid black;
}

.theme-store .p-image { width: 100%; height: 250px; object-fit: contain; transition: 0.5s; mix-blend-mode: multiply; }
.theme-store .product-card:hover .p-image { transform: scale(1.1) rotate(5deg); }

.theme-store .p-info { margin-top: 20px; display: flex; justify-content: space-between; align-items: flex-end; }
.theme-store .p-name { font-family: var(--font-display); font-size: 2rem; line-height: 1; }
.theme-store .p-price { font-weight: 700; font-size: 1.2rem; }

.theme-store .add-btn {
    width: 100%; padding: 15px; margin-top: 20px;
    background: transparent; border: 2px solid black;
    font-weight: 700; cursor: pointer; text-transform: uppercase;
    transition: 0.3s;
}
.theme-store .product-card:hover .add-btn { background: black; color: white; }

/* Media Queries */
@media (max-width: 900px) {
    .theme-store .hero { grid-template-columns: 1fr; text-align: center; height: auto; padding: 150px 5% 50px; }
    .theme-store .hero-text h1 { font-size: 18vw; }
    .theme-store .circle-bg { width: 300px; height: 300px; }
    .theme-store .product-grid { grid-template-columns: 1fr; }
}

/* 
   ====================================
   LUXURY EXTRAS (Products, Cart, Shop)
   ====================================
*/

/* Product Page (luxury-product.html) */
.theme-luxury .product-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

.theme-luxury .gallery-nav {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
}
.theme-luxury .main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: zoomSlow 20s infinite alternate;
}
@keyframes zoomSlow { from { transform: scale(1); } to { transform: scale(1.1); } }

.theme-luxury .product-details {
    background: var(--bg-body);
    padding: 120px 80px;
    overflow-y: auto;
}

.theme-luxury .breadcrumb { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 40px; }
.theme-luxury .p-title { font-size: 4rem; margin-bottom: 10px; line-height: 1; margin-left: -5px; }
.theme-luxury .p-price { font-size: 2rem; color: var(--accent); margin-bottom: 40px; font-family: var(--font-display); }

.theme-luxury .desc { line-height: 1.8; color: #ccc; margin-bottom: 50px; font-size: 1.1rem; }

.theme-luxury .options-grid { display: flex; gap: 20px; margin-bottom: 40px; }
.theme-luxury .size-box {
    width: 60px; height: 60px;
    border: 1px solid #333;
    display: flex; justify-content: center; align-items: center;
    cursor: pointer;
    transition: 0.3s;
}
.theme-luxury .size-box:hover, .theme-luxury .size-box.active { border-color: var(--accent); color: var(--accent); }

.theme-luxury .add-cart-section {
    display: flex; gap: 20px;
    padding: 30px 0;
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
    margin-bottom: 50px;
    align-items: center;
}

.theme-luxury .qty-selector {
    display: flex;
    align-items: center;
    border: 1px solid #333;
    height: 50px;
}
.theme-luxury .qty-btn { width: 40px; text-align: center; cursor: pointer; user-select: none; }
.theme-luxury .qty-val { width: 40px; text-align: center; }

/* Accordion */
.theme-luxury details { padding: 20px 0; border-bottom: 1px solid #222; cursor: pointer; }
.theme-luxury details summary { font-family: var(--font-display); font-size: 1.5rem; list-style: none; display: flex; justify-content: space-between; }
.theme-luxury details summary::after { content: '+'; font-weight: 300; }
.theme-luxury details[open] summary::after { content: '-'; color: var(--accent); }
.theme-luxury details p { margin-top: 15px; color: var(--text-secondary); line-height: 1.6; }

.theme-luxury .reveal-delay { opacity: 0; animation: fadeInUp 0.8s forwards; }
.theme-luxury .d-1 { animation-delay: 0.2s; }
.theme-luxury .d-2 { animation-delay: 0.4s; }
.theme-luxury .d-3 { animation-delay: 0.6s; }


/* Cart Page (luxury-cart.html) */
/* Override body padding for internal pages if needed, but scoping handles it */
.theme-luxury body { /* Previously defined, but some pages set padding-top: 100px. Need to handle specific page class or inline style? 
   The <style> said body { padding-top: 100px; } for cart/shop.
   I can apply this to .theme-luxury.padded-page or similar, but for now I will add it to specific selectors or leave it inline if critical? 
   Better: .theme-luxury.page-padded { padding-top: 100px; }
*/
}
.theme-luxury.page-padded { padding-top: 100px; }


.theme-luxury .cart-container { max-width: 1000px; margin: 0 auto; padding: 40px; display: grid; grid-template-columns: 2fr 1fr; gap: 60px; }

.theme-luxury .cart-title { font-size: 3rem; font-family: var(--font-display); border-bottom: 1px solid #333; padding-bottom: 20px; margin-bottom: 40px; }

.theme-luxury .cart-item { display: flex; gap: 20px; margin-bottom: 30px; position: relative; }
.theme-luxury .c-img { width: 120px; height: 160px; object-fit: cover; }
.theme-luxury .c-info { display: flex; flex-direction: column; justify-content: space-between; }
.theme-luxury .c-name { font-size: 1.5rem; font-family: var(--font-display); }
.theme-luxury .c-meta { color: var(--text-secondary); font-size: 0.9rem; }
.theme-luxury .c-price { color: var(--accent); font-size: 1.2rem; }

.theme-luxury .remove-btn { position: absolute; top: 0; right: 0; background: none; border: none; color: #555; cursor: pointer; font-size: 1.2rem; }
.theme-luxury .remove-btn:hover { color: white; }

.theme-luxury .summary-box { background: var(--bg-surface); padding: 30px; height: fit-content; }
.theme-luxury .s-row { display: flex; justify-content: space-between; margin-bottom: 15px; color: var(--text-secondary); font-size: 0.9rem; }
.theme-luxury .total-row { display: flex; justify-content: space-between; margin-top: 30px; padding-top: 20px; border-top: 1px solid #333; font-size: 1.2rem; color: white; }
.theme-luxury .checkout-btn { width: 100%; text-align: center; margin-top: 30px; background: var(--accent); border-color: var(--accent); color: black; font-weight: 600; }
.theme-luxury .checkout-btn:hover { background: white; border-color: white; color: black; }


/* Shop Page (luxury-shop.html) */
.theme-luxury .shop-container { display: flex; min-height: 100vh; }

.theme-luxury .shop-sidebar {
    width: 250px;
    padding: 40px;
    position: sticky;
    top: 100px;
    height: calc(100vh - 100px);
    border-right: 1px solid rgba(255,255,255,0.05);
}

.theme-luxury .filter-group { margin-bottom: 40px; }
.theme-luxury .filter-title { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 20px; color: var(--accent); }
.theme-luxury .filter-list { list-style: none; }
.theme-luxury .filter-list li { margin-bottom: 10px; }
.theme-luxury .filter-btn {
    background: none; border: none; color: var(--text-secondary); font-family: var(--font-body); font-size: 0.9rem;
    cursor: pointer; transition: 0.3s; text-transform: uppercase; letter-spacing: 1px; padding: 0;
}
.theme-luxury .filter-btn:hover, .theme-luxury .filter-btn.active { color: white; transform: translateX(5px); }

.theme-luxury .shop-content { flex: 1; padding: 40px 60px; }
.theme-luxury .shop-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 60px; }
.theme-luxury .shop-title { font-size: 4rem; line-height: 1; }
.theme-luxury .result-count { color: var(--text-secondary); font-size: 0.9rem; }

.theme-luxury .p-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 60px 40px; }
.theme-luxury .product-card { cursor: pointer; transition: 0.5s; }
.theme-luxury .pc-img-wrap { height: 500px; width: 100%; overflow: hidden; position: relative; margin-bottom: 20px; }
.theme-luxury .pc-img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1); }
.theme-luxury .product-card:hover .pc-img { transform: scale(1.1); }
.theme-luxury .pc-info { display: flex; justify-content: space-between; align-items: baseline; }
.theme-luxury .pc-title { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 5px; }
.theme-luxury .pc-cat { font-size: 0.8rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; }
.theme-luxury .pc-price { color: var(--accent); font-family: var(--font-body); font-weight: 500; }

.theme-luxury .btn-add-quick {
    position: absolute; bottom: 0; left: 0; width: 100%; padding: 15px;
    background: rgba(0,0,0,0.8); color: white; border: none;
    text-transform: uppercase; letter-spacing: 1px;
    transform: translateY(100%); transition: 0.4s; cursor: pointer;
}
.theme-luxury .product-card:hover .btn-add-quick { transform: translateY(0); }


/* 
   ====================================
   STORE EXTRAS (Products, Detail)
   ====================================
*/

/* Reset overrides for store internal pages if needed */
.theme-store.page-relative { position: relative; }

/* Store Products (store-products.html) */
.theme-store .container-shop { /* Renamed to avoid generic container conflict if any */
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 100vh;
}

.theme-store .sidebar {
    background: white;
    padding: 40px 20px;
    border-right: 2px solid black;
    position: sticky; top: 80px; height: calc(100vh - 80px);
    overflow-y: auto;
}
.theme-store .filter-group { margin-bottom: 30px; }
.theme-store .filter-title { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 15px; border-bottom: 2px solid var(--primary); display: inline-block; }
.theme-store .filter-item { display: block; margin-bottom: 10px; cursor: pointer; font-size: 0.9rem; }
.theme-store .checkbox { margin-right: 10px; accent-color: var(--secondary); }
.theme-store .clear-filters { font-size: 0.8rem; text-decoration: underline; cursor: pointer; color: #888; }

.theme-store .shop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: black;
    border-bottom: 2px solid black;
}
        
.theme-store .product-card-shop { /* Renaming to avoid conflict if generic product-card exists differently */
    background: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: 0.3s;
    text-decoration: none;
    color: black;
}
.theme-store .product-card-shop:hover { background: #f0f0f0; }
.theme-store .product-card-shop.hidden { display: none; }

.theme-store .p-img-container { height: 300px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.theme-store .p-image-shop { width: 90%; transition: 0.5s; mix-blend-mode: multiply; }
.theme-store .product-card-shop:hover .p-image-shop { transform: scale(1.1) rotate(-5deg); }

.theme-store .p-info-shop { border-top: 1px solid #ddd; padding-top: 15px; margin-top: 15px; }
.theme-store .p-cat { font-size: 0.7rem; color: #888; text-transform: uppercase; letter-spacing: 1px; }
.theme-store .p-title { font-family: var(--font-display); font-size: 1.8rem; line-height: 1; margin: 5px 0; }
.theme-store .p-price { font-weight: 700; }
.theme-store .add-quick {
    margin-top: 10px; background: black; color: white; border: none; padding: 5px; 
    font-family: var(--font-display); width: 100%; cursor: pointer; opacity: 0; transition: 0.2s;
}
.theme-store .product-card-shop:hover .add-quick { opacity: 1; }
.theme-store .add-quick:hover { background: var(--primary); color: black; }

/* Cart Drawer */
.theme-store .cart-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 998;
    opacity: 0; visibility: hidden; transition: 0.3s;
    backdrop-filter: blur(2px);
}
.theme-store .cart-overlay.open { opacity: 1; visibility: visible; }

.theme-store .cart-drawer {
    position: fixed; top: 0; right: -400px; width: 400px; height: 100%;
    background: white; z-index: 999;
    transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex; flex-direction: column;
    border-left: 2px solid black;
}
.theme-store .cart-drawer.open { right: 0; }

.theme-store .cart-header { padding: 20px; background: black; color: white; display: flex; justify-content: space-between; align-items: center; }
.theme-store .cart-title { font-family: var(--font-display); font-size: 2rem; }
.theme-store .close-cart { cursor: pointer; font-size: 1.5rem; }

.theme-store .cart-items { flex: 1; overflow-y: auto; padding: 20px; }
.theme-store .cart-item { display: flex; gap: 15px; margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 20px; }
.theme-store .cart-item-img { width: 80px; height: 80px; object-fit: cover; border: 1px solid #ddd; }
.theme-store .cart-item-info { flex: 1; }
.theme-store .ci-name { font-weight: 700; font-family: var(--font-display); font-size: 1.2rem; }
.theme-store .ci-price { color: #555; font-size: 0.9rem; }
.theme-store .ci-remove { color: red; font-size: 0.8rem; cursor: pointer; margin-top: 5px; display: inline-block; }

.theme-store .cart-footer { padding: 20px; border-top: 2px solid #eee; background: #f9f9f9; }
.theme-store .cart-total { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.2rem; margin-bottom: 20px; }
.theme-store .checkout-btn {
    width: 100%; padding: 15px; background: var(--primary); color: black;
    border: 2px solid black; font-weight: 700; font-family: var(--font-display); font-size: 1.5rem;
    cursor: pointer; text-transform: uppercase;
}
.theme-store .checkout-btn:hover { background: black; color: var(--primary); }

/* Store Detail (store-detail.html) */
.theme-store .product-container { display: grid; grid-template-columns: 1.2fr 0.8fr; min-height: calc(100vh - 84px); }

.theme-store .gallery {
    background: #fff; padding: 50px; display: flex; align-items: center; justify-content: center;
    position: sticky; top: 84px; height: calc(100vh - 84px); border-right: 2px solid black;
}
.theme-store .main-img { width: 90%; max-width: 600px; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.2)); transition: 0.5s; }
.theme-store .main-img.shoe { transform: rotate(-15deg); }

.theme-store .info { padding: 60px 40px; display: flex; flex-direction: column; justify-content: center; }
.theme-store .breadcrumb { font-size: 0.8rem; color: #888; margin-bottom: 20px; text-transform: uppercase; }
.theme-store .breadcrumb a { color: black; text-decoration: none; font-weight: 700; }

.theme-store h1 { font-family: var(--font-display); font-size: 5rem; line-height: 0.8; margin-bottom: 10px; text-transform: uppercase; }
.theme-store .price { font-size: 2rem; font-weight: 700; margin-bottom: 30px; color: #333; }
.theme-store .desc { line-height: 1.6; color: #666; margin-bottom: 40px; max-width: 500px; }

.theme-store .size-label { font-weight: 700; text-transform: uppercase; margin-bottom: 10px; display: block; }
.theme-store .size-grid { display: flex; gap: 10px; margin-bottom: 40px; }
.theme-store .size-btn {
    width: 50px; height: 50px; border: 1px solid #ddd; background: white;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-weight: 700; transition: 0.2s;
}
.theme-store .size-btn:hover, .theme-store .size-btn.active { background: black; color: white; border-color: black; }

.theme-store .actions { display: flex; gap: 20px; }
.theme-store .add-cart {
    flex: 1; padding: 20px; background: var(--secondary); color: var(--primary);
    border: none; font-family: var(--font-display); font-size: 1.5rem; letter-spacing: 1px;
    cursor: pointer; clip-path: polygon(0 0, 100% 0, 95% 100%, 0% 100%); transition: 0.3s;
}
.theme-store .add-cart:hover { padding-right: 40px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%); }

.theme-store .accordion { margin-top: 50px; border-top: 2px solid #eee; }
.theme-store .acc-item { border-bottom: 1px solid #eee; }
.theme-store .acc-header { padding: 20px 0; cursor: pointer; font-weight: 700; display: flex; justify-content: space-between; }
.theme-store .acc-content { display: none; padding-bottom: 20px; color: #666; font-size: 0.9rem; line-height: 1.5; }

/* Media Queries Override */
@media(max-width: 900px) {
    .theme-store .container-shop { grid-template-columns: 1fr; }
    .theme-store .sidebar { display: none; }
    .theme-store .shop-grid { grid-template-columns: 1fr 1fr; }
    .theme-store .product-container { grid-template-columns: 1fr; }
    .theme-store .gallery { height: auto; padding: 100px 20px; position: relative; top: 0; }
    .theme-store h1 { font-size: 3.5rem; }
}


/* ----------------------------------------------------------- */
/* CRITICAL DARK MODE INLINE STYLE OVERRIDES */
/* ----------------------------------------------------------- */

/* Force all headings and paragraphs in dark mode to be light, 
   ignoring inline styles in HTML */
[data-theme="dark"] h1[style], 
[data-theme="dark"] h2[style], 
[data-theme="dark"] h3[style], 
[data-theme="dark"] h4[style], 
[data-theme="dark"] h5[style], 
[data-theme="dark"] h6[style],
[data-theme="dark"] p[style],
[data-theme="dark"] span[style],
[data-theme="dark"] li[style] {
    color: #e2e8f0 !important;
}

/* Force backgrounds of cards to be dark/glass even if inline style says white */
[data-theme="dark"] .glass-card > div[style*="background: white"],
[data-theme="dark"] .glass-card > div[style*="background:white"] {
    background: rgba(30,30,30,0.4) !important; /* Semi-transparent dark */
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,255,255,0.05);
}

[data-theme="dark"] .examples-grid div[style*="background: white"],
[data-theme="dark"] .example-card div[style*="background: white"] {
    background: transparent !important;
    color: white !important;
}

/* Fix specific badges */
[data-theme="dark"] .glass-card div[style*="position: absolute"] {
    background: rgba(0,0,0,0.8) !important;
    color: white !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
}

/* Modal and Preview Windows Fix */
[data-theme="dark"] .modal-content-wrapper {
    background: #0a0a0a !important;
    border: 1px solid #333;
}

[data-theme="dark"] .modal-header-bar {
    background: #0a0a0a !important;
    border-bottom: 1px solid #333;
}
[data-theme="dark"] .modal-header-bar h2 {
    color: white !important;
}

/* Fix Example Cards in Examples.html */
[data-theme="dark"] .example-card {
    background: rgba(255,255,255,0.03) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
}
[data-theme="dark"] .browser-header {
    background: #111 !important;
    border-bottom: 1px solid #333 !important;
}
[data-theme="dark"] .address-bar {
    background: #000 !important;
    color: #888;
}

/* Force dark mode styling for the quote banner */
[data-theme="dark"] .quote-banner {
    background: #000000 !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.15); /* Subtle blue glow */
}

/* Ensure text remains visible in dark mode */
[data-theme="dark"] .quote-banner .quote-title {
    color: white !important;
}

[data-theme="dark"] .quote-banner .quote-desc {
    color: #e2e8f0 !important;
}

/* Force demo themes to IGNORE global theme override */
[data-theme="dark"] body.theme-luxury,
[data-theme="dark"] body.theme-store,
[data-theme="dark"] body.crm-page {
    background: initial; /* Let specific theme rules handle it */
    color: initial;
    /* Reset critical overrides for these specific pages so they work correctly */
}
[data-theme="dark"] body.theme-store .glass-card > div[style*="background: white"] {
   background: white !important; /* Restore white functionality for store theme */
}

/* Original Demo Theme Resets */
[data-theme="dark"] body.theme-luxury {
    background: #050505 !important;
}

[data-theme="dark"] body.theme-store {
    background: #ffffff !important; 
    color: black !important;
}
[data-theme="dark"] body.theme-store nav { background: white !important; }
[data-theme="dark"] body.theme-store a { color: black !important; }
[data-theme="dark"] body.theme-store h1, 
[data-theme="dark"] body.theme-store h2, 
[data-theme="dark"] body.theme-store h3, 
[data-theme="dark"] body.theme-store p { 
    color: black !important; 
}

[data-theme="dark"] body.crm-page {
    background: #f3f4f6 !important;
    color: #1f2937 !important;
}
[data-theme="dark"] body.crm-page h1,
[data-theme="dark"] body.crm-page h2,
[data-theme="dark"] body.crm-page h3,
[data-theme="dark"] body.crm-page p,
[data-theme="dark"] body.crm-page li,
[data-theme="dark"] body.crm-page span {
    color: #1f2937 !important;
}


[data-theme="dark"] body.theme-store .glass-card > div[style*="background: white"] {
   background: white !important; /* Restore white functionality for store theme */
}

/* Original Demo Theme Resets */
[data-theme="dark"] body.theme-luxury {
    background: #050505 !important;
}

[data-theme="dark"] body.theme-store {
    background: #ffffff !important; 
    color: black !important;
}
[data-theme="dark"] body.theme-store nav { background: white !important; }
[data-theme="dark"] body.theme-store a { color: black !important; }
[data-theme="dark"] body.theme-store h1, 
[data-theme="dark"] body.theme-store h2, 
[data-theme="dark"] body.theme-store h3, 
[data-theme="dark"] body.theme-store p { 
    color: black !important; 
}

[data-theme="dark"] body.crm-page {
    background: #f3f4f6 !important;
    color: #1f2937 !important;
}
[data-theme="dark"] body.crm-page h1,
[data-theme="dark"] body.crm-page h2,
[data-theme="dark"] body.crm-page h3,
[data-theme="dark"] body.crm-page p,
[data-theme="dark"] body.crm-page li,
[data-theme="dark"] body.crm-page span {
    color: #1f2937 !important;
}



[data-theme="dark"] body.theme-luxury {
    background: #050505 !important;
}

[data-theme="dark"] body.theme-store {
    background: #ffffff !important; /* Store stays white even in dark mode */
    color: black !important;
}
[data-theme="dark"] body.theme-store nav { background: white !important; }
[data-theme="dark"] body.theme-store a { color: black !important; }

[data-theme="dark"] body.crm-page {
    background: #f3f4f6 !important;
    color: #1f2937 !important;
}
@keyframes fadeInUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes scrollLine { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }


/* ----------------------------------------------------------- */
/* VELOCITY STORE THEME OVERRIDES */
/* ----------------------------------------------------------- */
body.theme-store {
    background-color: #f4f4f4 !important;
    color: black !important;
    font-family: 'Archivo', sans-serif !important;
}

body.theme-store nav {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 20px 5% !important;
    background: white !important;
    border-bottom: 2px solid black !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    width: 100% !important;
    box-shadow: none !important;
}

body.theme-store .logo a, body.theme-store .logo {
    font-family: 'Teko', sans-serif !important;
    font-size: 2.5rem !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    letter-spacing: -1px !important;
    color: black !important;
    text-decoration: none !important;
    background: transparent !important;
    -webkit-text-fill-color: black !important;
}

body.theme-store .nav-links {
    display: flex !important;
    gap: 30px !important;
}

body.theme-store .nav-links a {
    color: black !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    text-transform: uppercase !important;
}

body.theme-store .cart-icon {
    color: black !important;
    font-weight: bold !important;
    cursor: pointer !important;
    border: 2px solid black;
    padding: 8px 16px;
    border-radius: 0;
    background: white;
}

body.theme-store .cart-icon:hover {
    background: black;
    color: #ccff00 !important;
}

/* Fix Product Cards background in list view */
body.theme-store .product-card-shop {
    background: white !important;
    color: black !important;
    border: 1px solid #ddd !important;
}

body.theme-store .p-info-shop .p-title {
    color: black !important;
}


/* Live Experience Title Animation */
.live-experience-title {
    color: #FF6B00 !important; /* Vivid Orange */
    font-weight: 900;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
    cursor: default;
    background: linear-gradient(to right, #FF6B00, #FF9E00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.live-experience-title:hover {
    transform: scale(1.1) rotate(2deg);
    text-shadow: 0 10px 30px rgba(255, 107, 0, 0.5);
    letter-spacing: 5px;
    -webkit-text-fill-color: #FF6B00;
}

/* MOBILE RESPONSIVENESS CHEAT SHEET */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    /* FIX: Header overlap and visibility */
    .header {
        position: relative; 
        background-color: #ffffff !important; 
        backdrop-filter: none !important;
        padding: 10px 0;
    }
    [data-theme="dark"] .header {
        background-color: #000000 !important;
        border-bottom: 1px solid #333;
    }

    /* FIX: Luxury Theme Mobile */
    .theme-luxury .hero-title {
        font-size: 14vw !important; /* Scale down ESSENCE text */
        width: 100%;
        overflow-wrap: break-word;
    }
    .theme-luxury .lux-header {
        position: relative;
        background-color: #000000 !important; /* Matte Black */
        mix-blend-mode: normal !important; /* Remove transparency effect */
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }
    .theme-luxury .lux-nav {
        gap: 20px;
        justify-content: center;
        flex-wrap: wrap;
    }
    .theme-luxury .lux-nav a {
        font-size: 0.9rem; /* Make links readable */
    }
    
    .header .container {
        padding: 10px 20px;
        flex-direction: column;
        gap: 15px;
    }

    .hero {
        padding-top: 20px; /* Reduced since header is not fixed or if fixed needs more */
        min-height: auto; /* Remove 100vh constraint */
        padding-bottom: 50px;
    }
    
    /* If we kept header fixed, we would need this: */
    /* .hero { padding-top: 220px; } */
    /* But relative is safer for "content hiding" issues on small screens */

    .nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        width: 100%;
        background: rgba(0,0,0,0.03); /* Slight contrast for menu area */
        padding: 10px;
        border-radius: 10px;
    }

    /* Re-enforce Sidebar for .nav (Fixing the accidental override) */
    .nav {
        position: fixed !important;
        top: 0; right: -100%; 
        width: 100% !important; 
        height: 100vh !important;
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        justify-content: center !important;
        background-color: #ffffff !important;
        background: #ffffff !important;
        backdrop-filter: none !important;
        padding: 0 !important;
        border-radius: 0 !important;
        z-index: 1001;
        transition: 0.3s;
        gap: 30px !important;
    }
    [data-theme="dark"] .nav {
        background-color: #000000 !important;
        background: #000000 !important;
    }
    #menu-toggle:checked ~ .nav { right: 0 !important; }
    
    .nav a {
        font-size: 1.2rem !important;
        padding: 5px 10px;
        color: var(--text-main) !important; /* Force visibility */
        width: 100%;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.2;
        text-align: center;
        margin-top: 10px;
    }
    
    /* FIX: Preview Containers on Mobile */
    .preview-container {
        height: 400px; /* Taller on mobile for better view */
    }
    
    /* Disable scaling on mobile - show true mobile view */
    .iframe-container {
        width: 100% !important;
        height: calc(100% - 28px) !important; /* Fill space exactly */
        transform: scale(1) !important;
    }

    .hero p {
        font-size: 1rem;
        text-align: center;
    }
    .grid-card-layout {
        display: flex;
        flex-direction: column;
    }
    .small-cards {
        grid-template-columns: 1fr;
    }
    .details-grid {
        grid-template-columns: 1fr;
    }
    .examples-grid {
        grid-template-columns: 1fr !important;
    }
    .glass-card {
        margin-bottom: 20px;
        padding: 20px !important;
    }
    .glass-card > div[style*="height: 250px"] {
        height: 200px !important; /* Smaller images on mobile */
    }
    .hero-btns {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }
    .btn {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .marquee-content span {
        margin: 0 15px;
        font-size: 0.9rem;
    }
    /* Button Placement Fix */
    .hero-features-mini {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    /* Modal Mobile Fixes */
    .modal-content-wrapper {
        width: 95% !important;
        height: 85% !important;
        padding: 10px !important;
    }
    
    .btn-fullscreen-link {
        font-size: 0.8rem;
        padding: 5px 10px;
    }
    
    /* Ensure iframe inside modal fits perfectly */
    .modal-iframe-container iframe {
        width: 100% !important; /* Force fit */
        height: 100% !important;
        transform: scale(1) !important; /* No scaling on mobile to allow responsive site inside to work */
    }
}

/* ----------------------------------------------------------- */
/* THEME ISOLATION (FIXED) */
/* ----------------------------------------------------------- */

/* FORCE RESET BACKGROUNDS FOR DEMO SITES */
body.theme-luxury {
    background: #050505 !important;
    background-image: none !important;
    color: #ffffff !important;
    font-family: 'Cinzel', serif; /* Restore luxury font feel */
}
body.theme-luxury .hero-title {
    /* Keep luxury title gradient if it had one, or reset if it was inheriting the blue one */
    /* Usually luxury has gold/white. Resetting to white for safety */
    background: none !important; 
    -webkit-text-fill-color: white !important;
    color: white !important;
}
body.theme-luxury nav a {
    color: white !important;
}

body.crm-page {
    background: #f3f4f6 !important; /* Light Grey Dashboard BG */
    background-image: none !important;
    color: #1f2937 !important;
}

/* Ensure Store Theme is solid */
body.theme-store {
    background: #ffffff !important;
    background-image: none !important;
}




/* Theme Label Style */
.theme-mode-label {
    margin-left: 10px;
    background: rgba(128, 128, 128, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-main);
    display: inline-block;
    vertical-align: middle;
    transition: 0.3s;
    white-space: nowrap;
}
.theme-toggle-btn { display: inline-flex; align-items: center; justify-content: center; height: auto; vertical-align: middle; }
@media (max-width: 900px) {
    /* Align theme toggle in mobile menu */
    .nav .theme-toggle-btn {
        margin-top: 20px;
        align-self: center; /* Center horizontally */
    }
    .theme-mode-label {
        display: block; /* Stack or just behave nicely */
        margin: 10px auto 0; /* Center it */
        text-align: center;
        width: fit-content;
    }
}
