/* Modern Reset & Variables */
:root {
    --bg-dark: #0a0a0a;
    --bg-card: #141414;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent: #3b82f6;
    /* A vibrant blue */
    --accent-glow: rgba(59, 130, 246, 0.5);
    --gradient-1: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --gradient-text: linear-gradient(to right, #60a5fa, #c084fc);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --transition: all 0.3s ease;
    --container-width: 1200px;
}

body.light-mode {
    --bg-dark: #ffffff;
    --bg-card: #f5f5f5;
    --text-primary: #000000;
    --text-secondary: #4a4a4a;
    --accent: #f97316;
    /* Orange */
    --accent-glow: rgba(249, 115, 22, 0.5);
    --gradient-1: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    --gradient-text: linear-gradient(to right, #ea580c, #f97316);
}

/* Light Mode Specific Overrides */
body.light-mode .hero {
    background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.1), transparent 40%),
        radial-gradient(circle at bottom left, rgba(249, 115, 22, 0.05), transparent 40%);
}

body.light-mode header.scrolled {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode .service-card {
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

body.light-mode .service-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

body.light-mode .text-gradient {
    /* Ensure gradient is visible on light background */
    background: linear-gradient(to right, #ea580c, #c2410c);
    -webkit-background-clip: text;
    background-clip: text;
}


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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: var(--font-heading);
    transition: var(--transition);
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-glow);
}

.section-padding {
    padding: 6rem 0;
}

.tag {
    font-size: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    color: white;
    display: inline-block;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

header.scrolled {
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

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

.nav-links a {
    font-weight: 500;
    opacity: 0.8;
}

.nav-links a:hover {
    opacity: 1;
    color: #60a5fa;
}

/* Mobile Menu */
.mobile-toggle {
    display: block;
    font-size: 1.5rem;
    cursor: pointer;
}

.theme-toggle {
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 1rem;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

body.light-mode .theme-toggle:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.15), transparent 40%),
        radial-gradient(circle at bottom left, rgba(139, 92, 246, 0.15), transparent 40%);
}

.hero-content {
    max-width: 650px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

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

.service-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.service-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-5px);
    background: linear-gradient(to bottom, #1a1a1a, #141414);
}

.service-icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #60a5fa;
}

/* Carousel */
.media-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    /* Adjust height as needed */
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.media-carousel img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* or cover, depending on aspect ratio preference */
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.media-carousel img.active {
    opacity: 1;
}

/* Product Section (Ananke) */
.product-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.product-features li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.product-features li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* Stats */
.stats {
    display: flex;
    justify-content: space-around;
    text-align: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: white;
}

.stat-label {
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
}

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info-item {
    margin-bottom: 2rem;
}

.contact-info-item h4 {
    margin-bottom: 0.5rem;
    color: white;
}

.contact-info-item p {
    color: var(--text-secondary);
}

.contact-links {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

/* Footer */
footer {
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-card);
        padding: 2rem;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .product-showcase,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}