:root {
    /* Dark Theme (Default) - Dark Blue Tones */
    --bg-color: #030b16;
    /* Deep Dark Blue */
    --text-color: #e0e6ed;
    --text-muted: #94a3b8;
    --primary-color: #00d4ff;
    /* Cyan Blue */
    --secondary-color: #0056b3;
    /* Darker Blue */
    --accent-color: #ff3366;
    /* Vibrant Pink/Red */
    --card-bg: rgba(15, 23, 42, 0.6);
    --card-border: rgba(148, 163, 184, 0.1);
    --nav-bg: rgba(3, 11, 22, 0.85);
    /* Glassmorphic Dark Blue */
    --font-main: 'Outfit', sans-serif;
    --font-heading: 'Syncopate', sans-serif;
}

/* Light Theme Variables */
.light-mode {
    --bg-color: #f0f4f8;
    /* Light Blue-Grey */
    --text-color: #1e293b;
    --text-muted: #64748b;
    --primary-color: #0077cc;
    /* Strong Blue */
    --secondary-color: #00a8ff;
    /* Sky Blue */
    --accent-color: #e11d48;
    /* Red */
    --card-bg: rgba(255, 255, 255, 0.7);
    --card-border: rgba(203, 213, 225, 0.5);
    --nav-bg: rgba(240, 244, 248, 0.85);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
    cursor: default;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--card-border);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.highlight {
    color: var(--primary-color);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

/* Theme Toggle Button */
#theme-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-color);
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

#theme-toggle:hover {
    transform: rotate(15deg);
    color: var(--primary-color);
}

.cta-btn {
    display: inline-block;
    padding: 10px 25px;
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.cta-btn:hover {
    background: var(--primary-color);
    color: var(--bg-color);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

.cta-btn.big {
    padding: 15px 40px;
    font-size: 1.1rem;
    margin-top: 20px;
}

.cta-btn.small {
    font-size: 0.8rem;
    padding: 8px 15px;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 1001;
    /* Above mobile menu */
}

.hamburger span {
    width: 30px;
    height: 3px;
    background-color: var(--text-color);
    transition: 0.3s;
    border-radius: 2px;
}

/* Mobile Nav - Side Drawer */
@media (max-width: 768px) {
    header {
        padding: 20px;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        /* Hidden off-screen */
        width: 250px;
        height: 100vh;
        background: var(--nav-bg);
        flex-direction: column;
        padding: 80px 30px;
        /* Top padding for close area */
        border-left: 1px solid var(--card-border);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        backdrop-filter: blur(15px);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        align-items: flex-start;
    }

    .nav-links.active {
        right: 0;
        /* Slide in */
    }

    /* Hamburger Animation to X */
    .nav-links.active~.hamburger span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 6px);
    }

    .nav-links.active~.hamburger span:nth-child(2) {
        opacity: 0;
    }

    .nav-links.active~.hamburger span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -6px);
    }
}

/* Hero Section - See bottom of file for new Split Layout styles */
/* .hero styles overridden below */

/* Glitch Effect */
.glitch {
    position: relative;
    color: var(--text-color);
}

.subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    min-height: 1.5em;
    /* Prevent layout shift */
}

.typing-text {
    font-size: 1.8em;
    /* Increased font size */
    font-weight: 800;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    padding: 5px 20px;
    border-radius: 8px;
    animation: colorCycle 6s infinite;
    /* RGB Color Cycle */
}

/* Light RGB Color Cycle */
@keyframes colorCycle {

    0%,
    100% {
        color: #ff4d4d;
        /* Light Red */
        text-shadow: 0 0 15px rgba(255, 77, 77, 0.6);
    }

    33% {
        color: #00ff88;
        /* Light Green */
        text-shadow: 0 0 15px rgba(0, 255, 136, 0.6);
    }

    66% {
        color: #ffff00;
        /* Light Yellow */
        text-shadow: 0 0 15px rgba(255, 255, 0, 0.6);
    }
}

/* Hero Visual Background */
.hero-visual {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.glowing-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    filter: blur(60px);
    animation: pulse 5s infinite ease-in-out;
}

@keyframes pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.8;
    }
}

/* Services Section */
.services,
.about,
.contact {
    padding: 100px 50px;
    /* Removed specific background, using body bg */
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 60px;
    text-align: center;
    text-transform: uppercase;
    color: var(--text-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 30px;
    border-radius: 15px;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    backdrop-filter: blur(5px);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.service-card .icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.service-card p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* About Section */
.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.about strong {
    color: var(--primary-color);
}

/* Contact Section */
.contact-form {
    max-width: 600px;
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 15px;
    color: var(--text-color);
    font-family: var(--font-main);
    font-size: 1rem;
    border-radius: 5px;
    outline: none;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.1);
}

.social-links {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.social-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    font-weight: 600;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--primary-color);
}

/* Footer */
footer {
    padding: 30px;
    text-align: center;
    border-top: 1px solid var(--card-border);
    color: var(--text-muted);
    font-size: 0.9rem;
    background: var(--bg-color);
    /* Match body */
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .services,
    .about,
    .contact,
    .services-page-header,
    .contact-page-header {
        padding: 80px 20px;
    }
}

/* Hero Section - Split Layout */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 120px 50px 50px;
    /* More top padding for header */
    gap: 50px;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-content {
    text-align: left;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-small-text {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    /* Bold */
    margin-bottom: 10px;
    color: #fff;
    /* White */
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero h1 .highlight {
    display: block;
    font-size: 4.5rem;
    /* Larger than base h1 */
    margin-top: -10px;
}

.contact-hero {
    text-align: center;
    padding: 150px 20px 80px;
    position: relative;
    overflow: hidden;
}

.contact-hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
    background: linear-gradient(to right, #fff, #ff7f50);
    /* Coral / Orange */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInDown 1s ease-out;
}

.contact-hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

.contact-form-container {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Hero Carousel - Contained on Right */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 500px;
    /* Fixed height for consistency */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--card-border);
    z-index: 1;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.8s ease-in-out, transform 8s linear;
    transform: scale(1);
}

.carousel-slide.active {
    opacity: 1;
    transform: scale(1.1);
    /* Subtle zoom */
}

/* Remove old full-screen overlay if present, or adapt it */
.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(3, 11, 22, 0.8) 100%);
    pointer-events: none;
}

/* Responsive Split Layout */
@media (max-width: 968px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 100px 20px 50px;
    }

    .hero-content {
        text-align: center;
        order: 1;
    }

    .hero-carousel {
        order: 2;
        height: 300px;
        /* Smaller on mobile */
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

/* =========================================
   Creative Revamp Styles - Reacts Page
   ========================================= */

/* Animated Gradient Background for Reacts Page */
.creative-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at 10% 20%, rgba(0, 212, 255, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(255, 51, 102, 0.1) 0%, transparent 20%);
    pointer-events: none;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    top: -50px;
    left: -50px;
    animation-delay: 0s;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary-color);
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: var(--accent-color);
    top: 40%;
    left: 60%;
    animation-delay: -10s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* Reacts Hero Section */
.reacts-hero {
    text-align: center;
    padding: 150px 20px 80px;
    position: relative;
    overflow: hidden;
}

.reacts-hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
    background: linear-gradient(to right, #fff, var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInDown 1s ease-out;
}

.followers-hero {
    text-align: center;
    padding: 150px 20px 80px;
    position: relative;
    overflow: hidden;
}

.followers-hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
    background: linear-gradient(to right, #fff, var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInDown 1s ease-out;
}

.followers-hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

.design-hero {
    text-align: center;
    padding: 150px 20px 80px;
    position: relative;
    overflow: hidden;
}

.design-hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
    background: linear-gradient(to right, #fff, #bd00ff);
    /* Purple/Pink */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInDown 1s ease-out;
}

.design-hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

.about-hero {
    text-align: center;
    padding: 150px 20px 80px;
    position: relative;
    overflow: hidden;
}

.about-hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
    background: linear-gradient(to right, #fff, #00fa9a);
    /* Spring Green / Cyan */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInDown 1s ease-out;
}

.about-hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

.creative-panel {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, border-color 0.3s;
}

.creative-panel:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.ads-hero {
    text-align: center;
    padding: 150px 20px 80px;
    position: relative;
    overflow: hidden;
}

.ads-hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
    background: linear-gradient(to right, #fff, var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInDown 1s ease-out;
}

.ads-hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

.cart-hero {
    text-align: center;
    padding: 150px 20px 80px;
    position: relative;
    overflow: hidden;
}

.cart-hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
    background: linear-gradient(to right, #fff, #ffd700);
    /* Gold */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInDown 1s ease-out;
}

.cart-hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

/* Enhanced Cart Container */
.cart-container {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(15, 23, 42, 0.6);
    /* Match creative-panel */
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Match creative-panel */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, border-color 0.3s;
}

.cart-container:hover {
    border-color: #ffd700;
    /* Gold border on hover */
    transform: translateY(-5px);
}

.reacts-hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

/* Home Page Service Navigation */
.service-nav-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 40px;
    width: 100%;
    max-width: 600px;
}

.nav-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    position: relative;
    overflow: hidden;
}

.nav-card:hover {
    transform: translateY(-5px);
    border-color: var(--card-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.nav-card .icon {
    font-size: 2rem;
    margin-bottom: 10px;
    transition: transform 0.3s;
}

.nav-card:hover .icon {
    transform: scale(1.2);
}

.nav-card span {
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Creative Service Cards */
.creative-card {
    position: relative;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    overflow: hidden;
    z-index: 1;
}

.creative-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    z-index: -1;
    transition: opacity 0.3s;
}

.creative-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(0, 212, 255, 0.2);
    /* Glow effect */
}

.creative-card:hover::before {
    opacity: 0.8;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: inline-block;
    transition: transform 0.3s;
}

.creative-card:hover .card-icon {
    transform: scale(1.2) rotate(10deg);
}

.creative-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #fff;
}

.creative-card .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 15px 0 25px;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

/* Badge for Popular Items */
.badge-popular {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-color);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 5px 15px rgba(255, 51, 102, 0.4);
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stagger-1 {
    animation-delay: 0.1s;
}

.stagger-2 {
    animation-delay: 0.2s;
}

.stagger-3 {
    animation-delay: 0.3s;
}