/* IECC Digital - Main Stylesheet */
/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Golos+Text:wght@400;500;600;700&family=Onest:wght@400;500;700&display=swap');

/* CSS Variables for Theme Management */
:root {
    --bg-main: #020617;
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --card-bg: #0f172a;
    --border-color: rgba(255, 255, 255, 0.1);
    --primary: 238 100% 70%;
    --font-heading: 'Onest', sans-serif;
    --font-body: 'Golos Text', sans-serif;
}

/* Light Theme Variables */
html:not(.dark) {
    --bg-main: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --card-bg: #ffffff;
    --border-color: rgba(0, 0, 0, 0.1);
    --primary: 238 100% 50%;
}

/* Base Styles */
body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    transition: background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1), color 0.5s;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
}

/* Banner Background */
.banner-bg {
    background: linear-gradient(120deg, #1e1b4b 0%, var(--bg-main) 100%);
    position: relative;
}

html:not(.dark) .banner-bg {
    background: linear-gradient(120deg, #e0e7ff 0%, var(--bg-main) 100%);
}

/* MagicAI Outline Glow Effect */
.lqd-outline-glow {
    position: absolute;
    inset: -2px;
    padding: 2px;
    background: transparent;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    border-radius: inherit;
}

.lqd-outline-glow-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    transform: translate(-50%, -50%);
    background: conic-gradient(from 290deg, transparent 0%, #4f46e5 10%, transparent 20%);
    animation: outline-glow 4s linear infinite;
}

@keyframes outline-glow {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Progressive Blur */
.lqd-progressive-blur {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    pointer-events: none;
    z-index: 5;
}

/* Theme adjustments for Tailwind classes */
html:not(.dark) .bg-slate-950,
html:not(.dark) .bg-slate-900,
html:not(.dark) .bg-slate-900\/50 {
    background-color: #ffffff;
}

html:not(.dark) .text-white {
    color: var(--text-main);
}

html:not(.dark) .text-slate-400,
html:not(.dark) .text-slate-500 {
    color: #475569;
}

html:not(.dark) .text-slate-300 {
    color: #1e293b;
}

html:not(.dark) .bg-white\/5 {
    background-color: rgba(79, 70, 229, 0.08);
}

html:not(.dark) .border-white\/5,
html:not(.dark) .border-white\/10 {
    border-color: rgba(0, 0, 0, 0.08);
}

/* Icon Container Contrast */
html:not(.dark) .w-16.h-16.rounded-2xl.bg-white\/5 {
    background-color: #f1f5f9;
    border-color: rgba(0, 0, 0, 0.05);
}

/* CTA Section Contrast Fix */
html:not(.dark) .relative.rounded-3xl.p-12.overflow-hidden.border.border-white\/5 {
    background-color: #ffffff;
    border-color: rgba(0, 0, 0, 0.05);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
}

html:not(.dark) .relative.rounded-3xl.p-12.overflow-hidden.border.border-white\/5 .text-slate-400 {
    color: #64748b;
}

html:not(.dark) .relative.rounded-3xl.p-12.overflow-hidden.border.border-white\/5 a.bg-white {
    background-color: #0f172a;
    color: #ffffff;
}

/* Glow Effects */
.glow-indigo {
    filter: blur(120px);
    background: #4f46e5;
    opacity: 0.15;
}

html:not(.dark) .glow-indigo {
    opacity: 0.05;
}

/* Card Glow Effect */
.card-glow {
    box-shadow: 0 0 50px -12px rgba(79, 70, 229, 0.15);
}

/* Form Input Styles */
.form-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: inherit;
    transition: all 0.3s ease;
}

html:not(.dark) .form-input {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
}

.form-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #4f46e5;
    outline: none;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

/* Selection Styling */
::selection {
    background-color: rgba(79, 70, 229, 0.3);
}

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

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

::-webkit-scrollbar-thumb {
    background: rgba(79, 70, 229, 0.5);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(79, 70, 229, 0.7);
}

/* Prose and Legal Pages Styling */
.prose h2 {
    color: #ffffff;
    font-weight: 700;
}

.prose h3 {
    color: #f1f5f9;
    font-weight: 600;
}

.prose ul li {
    color: #e2e8f0;
}

.prose p {
    color: #cbd5e1;
    line-height: 1.8;
}

.text-slate-200 {
    color: #e2e8f0;
}

.text-slate-200 p {
    color: #cbd5e1;
}

.text-slate-200 li {
    color: #cbd5e1;
}

.text-slate-200 ul li {
    color: #cbd5e1;
}