:root {
    /* Color Palette - Light Mode */
    --primary-bg: #f8f9fa;
    --secondary-bg: #ffffff;
    --text-main: #1a202c;
    --text-muted: #718096;
    --accent-color: #3182ce; /* Blue */
    --accent-hover: #2c5282;
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --accent-purple: #8e44ad; 
    
    /* UI Elements */
    --border-light: rgba(0, 0, 0, 0.08);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
    --card-bg: rgba(255, 255, 255, 0.8);
    --nav-bg: rgba(255, 255, 255, 0.85);
    
    /* Spacing */
    --container-padding: 2rem;
    --header-height: 80px;
}

[data-theme="dark"] {
    /* Color Palette - Dark Mode */
    --primary-bg: #0f172a;
    --secondary-bg: #1e293b;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --accent-color: #38bdf8;
    --accent-hover: #0ea5e9;
    --accent-gradient: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
    
    --border-light: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
    --card-bg: rgba(30, 41, 59, 0.7);
    --nav-bg: rgba(15, 23, 42, 0.85);
}

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-main);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-main);
}

a { text-decoration: none; color: inherit; transition: color 0.2s; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Typography Utilities */
.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
    border: none;
}

.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.9rem; }

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(56, 189, 248, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-main);
}

.btn-secondary:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.btn-outline {
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
}

.btn-outline:hover {
    background: var(--accent-color);
    color: white;
}

.btn-link {
    color: var(--accent-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.btn-link:hover { gap: 0.8rem; }

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo-img {
    height: 40px;
    width: auto;
}
[data-theme="dark"] .logo-img {
    /* If the logo is dark text on white bg, we might need to invert it. 
       If it's already white text transparent, it's fine.
       Assuming the previous logo was "white-bg", it might have a white box.
       Ideally we use a transparent PNG/SVG.
       Based on filename "sls-cropped-white-bg.avif", it probably has a white background.
       We might need to mix-blend-mode or filter it. 
    */
    /* filter: invert(1); Check this later */
}

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

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-main);
}
.nav-links a:hover { color: var(--accent-color); }

/* Mobile Menu */
.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; }
.bar { display: block; width: 25px; height: 3px; background: var(--text-main); margin: 5px auto; transition: 0.3s; }

/* Theme Switcher */
.theme-switcher { position: relative; }
.theme-switcher-checkbox { display: none; }
.theme-switcher-label {
    cursor: pointer; display: flex; align-items: center; justify-content: space-between;
    width: 50px; height: 26px; background-color: var(--secondary-bg);
    border: 1px solid var(--border-light); border-radius: 50px; position: relative; padding: 5px;
}
.theme-switcher-ball {
    position: absolute; top: 2px; left: 2px; width: 20px; height: 20px;
    background-color: var(--text-main); border-radius: 50%; transition: transform 0.3s ease;
}
.theme-switcher-checkbox:checked + .theme-switcher-label .theme-switcher-ball { transform: translateX(24px); }
.theme-switcher-icon { font-size: 12px; }

/* Hero Section */
.hero-section {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 6rem;
    position: relative;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

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

.hero-buttons { display: flex; gap: 1rem; }

/* Hero Visuals */
.visual-circle {
    width: 500px;
    height: 500px;
    background: var(--accent-gradient);
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.2;
    position: absolute;
    top: -100px;
    right: -100px;
    z-index: -1;
    animation: pulse-glow 10s infinite alternate;
}

@keyframes pulse-glow {
    0% { transform: scale(0.8); opacity: 0.1; }
    100% { transform: scale(1.1); opacity: 0.3; }
}

/* Sections */
.section { padding: 6rem 0; }
.section-header { margin-bottom: 4rem; }
.section-header.center { text-align: center; }
.section-tag {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
}
.section-title { font-size: 2.5rem; font-weight: 700; }

/* Cards & Grid */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
}

.card-content h3 { font-size: 1.75rem; margin-bottom: 1rem; }
.card-content p { color: var(--text-muted); margin-bottom: 2rem; flex-grow: 1; }

.service-item {
    padding: 2rem;
    border-radius: 16px;
    background: var(--secondary-bg);
    border: 1px solid var(--border-light);
    transition: 0.3s;
}
.service-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-sm); }
.service-icon { font-size: 2.5rem; margin-bottom: 1.5rem; }
.service-item h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.service-item p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.5rem; }
.link-hover { color: var(--accent-color); font-weight: 500; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; justify-content: center; }
.pricing-card { text-align: center; }
.pricing-card.featured {
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.15);
    transform: scale(1.05);
    z-index: 2;
}
.plan-name { font-size: 1.25rem; font-weight: 600; color: var(--accent-color); margin-bottom: 1rem; }
.plan-price { font-size: 3rem; font-weight: 700; margin-bottom: 1rem; color: var(--text-main); }
.plan-price span { font-size: 1rem; color: var(--text-muted); font-weight: 400; }
.plan-description { color: var(--text-muted); margin-bottom: 2rem; }

/* Footer */
.main-footer {
    background: var(--secondary-bg);
    padding: 5rem 0 2rem;
    border-top: 1px solid var(--border-light);
    margin-top: 4rem;
}
.footer-container { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; }
.footer-col h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.footer-col h4 { font-size: 1.1rem; margin-bottom: 1.5rem; color: var(--text-main); }
.footer-col ul li { margin-bottom: 0.8rem; }
.footer-col ul li a { color: var(--text-muted); }
.footer-col ul li a:hover { color: var(--accent-color); }
.footer-bottom { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--border-light); text-align: center; color: var(--text-muted); font-size: 0.9rem; }

/* Responsive */
@media (max-width: 992px) {
    .hero-title { font-size: 3.5rem; }
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-buttons { justify-content: center; }
    .pricing-card.featured { transform: scale(1); }
}

@media (max-width: 768px) {
    .navbar-container { padding: 0 1.5rem; }
    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: 0;
        background: var(--nav-bg);
        backdrop-filter: blur(12px);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 2rem;
        overflow: hidden;
        transition: height 0.3s ease;
        border-bottom: 1px solid var(--border-light);
    }
    
    .nav-links.active { height: calc(100vh - var(--header-height)); }
    .mobile-menu-btn { display: block; z-index: 1001; }
    .mobile-menu-btn.active .bar:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
    .mobile-menu-btn.active .bar:nth-child(2) { opacity: 0; }
    .mobile-menu-btn.active .bar:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }
    
    .grid-2 { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr; text-align: center; }
}
