/*
Theme Name: Effectus Modern
Theme URI: https://www.effectusx360.com
Author: Antigravity
Author URI: https://www.effectusx360.com
Description: A modern, elegant WordPress theme for digital agencies. Features a single-page architecture with dedicated service sub-pages, Elementor compatibility, and sophisticated animations.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: effectus-modern
Tags: one-column, custom-colors, custom-menu, featured-images, footer-widgets, full-width-template
*/

:root {
    /* Default (Light Theme) */
    --primary-color: #2D3748;
    /* Dark Slate */
    --secondary-color: #C68E17;
    /* Gold/Caramel */
    --accent-color: #3182CE;
    /* Blue Accent */
    --text-main: #2D3748;
    /* Dark Text */
    --text-light: #F7FAFC;
    /* Light Text (for dark backgrounds) */
    --text-gray: #718096;
    /* Gray Text */
    --bg-light: #F7FAFC;
    /* Off-white Body */
    --bg-dark: #1A202C;
    /* Dark bg */
    --bg-card: #FFFFFF;
    /* White Cards */
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(0, 0, 0, 0.05);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-speed: 0.3s;
    --section-spacing: 120px;
}

[data-theme="dark"] {
    --primary-color: #F7FAFC;
    --secondary-color: #D69E2E;
    --accent-color: #63B3ED;
    --text-main: #EDF2F7;
    --text-light: #F7FAFC;
    --text-gray: #A0AEC0;
    --bg-light: #171923;
    --bg-dark: #1A202C;
    --bg-card: #2D3748;
    --glass-bg: rgba(26, 32, 44, 0.8);
    --glass-border: rgba(255, 255, 255, 0.1);
}

[data-theme="hybrid"] {
    /* Mixed: Dark Headers/Hero, Light Body */
    --primary-color: #2D3748;
    --secondary-color: #C68E17;
    --accent-color: #3182CE;
    --text-main: #2D3748;
    --text-light: #F7FAFC;
    --text-gray: #4A5568;
    --bg-light: #F7FAFC;
    --bg-dark: #1A202C;
    --bg-card: #FFFFFF;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(0, 0, 0, 0.08);
}

/* Theme Switcher Styles */
.theme-switch-wrapper {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--bg-card);
    padding: 10px;
    border-radius: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    gap: 10px;
    z-index: 9999;
    border: 1px solid var(--glass-border);
}

.theme-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.theme-btn:hover {
    transform: scale(1.1);
}

.theme-btn.active {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}


/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 16px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--primary-color);
}

h1 {
    font-size: 4rem;
}

h2 {
    font-size: 3rem;
}

h3 {
    font-size: 2rem;
    color: var(--secondary-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-speed);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color), #d68233);
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(152, 94, 35, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(152, 94, 35, 0.5);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
}

.btn-outline:hover {
    background: var(--accent-color);
    color: var(--primary-color);
}

/* Header & Nav */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: background-color var(--transition-speed), padding var(--transition-speed);
}

.site-header.scrolled {
    background-color: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid var(--glass-border);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo a {
    font-size: 24px;
    font-weight: 800;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

.main-navigation a {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width var(--transition-speed);
}

.main-navigation a:hover::after {
    width: 100%;
}

.nav-cta-btn {
    background-color: var(--accent-color);
    color: var(--primary-color) !important;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 700 !important;
}

.nav-cta-btn:hover {
    background-color: #fff;
    color: var(--primary-color) !important;
}

.nav-cta-btn::after {
    display: none;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Dropdown Menu */
.menu-item-has-children {
    position: relative;
}

.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 500px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 15px;
    z-index: 1000;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.menu-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu li {
    display: block;
    margin: 0;
}

.sub-menu a {
    display: block;
    padding: 10px 15px;
    font-size: 14px;
    color: var(--text-main);
    border-radius: 4px;
    border-bottom: none;
    transition: all 0.2s;
}

.sub-menu a:hover {
    background: var(--bg-light);
    color: var(--secondary-color);
    transform: translateX(5px);
}

.sub-menu a::after {
    display: none;
}

/* Service Page Layout */
.page-header {
    background: var(--bg-dark);
    /* Use theme variable */
    padding: 150px 0 80px;
    color: var(--text-light);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header h1 {
    color: var(--text-light);
    /* Force light text for header regardless of theme */
    font-size: 3.5rem;
    margin-bottom: 20px;
}

/* Hero Section Styles (Moved from inline) */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    background: var(--bg-light);
    /* Default Light */
    position: relative;
    overflow: hidden;
    transition: background 0.3s;
}

/* Specific overrides for Dark/Hybrid modes on Hero */
[data-theme="dark"] .hero-section,
[data-theme="hybrid"] .hero-section {
    background: radial-gradient(circle at center, #002d55 0%, #020b16 100%);
}

/* Ensure text in Hero is readable in Light Mode */
[data-theme="light"] .hero-section h1 {
    color: var(--text-main);
}

[data-theme="light"] .hero-section p {
    color: var(--text-gray);
}

/* Ensure text in Hero is readable in Dark/Hybrid Mode */
[data-theme="dark"] .hero-section h1,
[data-theme="hybrid"] .hero-section h1 {
    color: var(--text-main);
    /* Which is light in dark mode */
}

.service-content-section {
    padding: 80px 0;
}

.service-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

@media (max-width: 768px) {
    .service-layout {
        grid-template-columns: 1fr;
    }
}

.service-interactive-area {
    background: var(--bg-light);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 40px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Interactive: Web Design (Wireframe Build) */
.wireframe-box {
    width: 200px;
    height: 150px;
    border: 2px solid var(--primary-color);
    position: relative;
    background: #fff;
}

.wireframe-header {
    height: 20px;
    border-bottom: 2px solid var(--primary-color);
    background: #eee;
}

.wireframe-sidebar {
    width: 30%;
    height: 100%;
    border-right: 2px solid var(--primary-color);
    position: absolute;
    top: 20px;
    left: 0;
}

.wireframe-content {
    position: absolute;
    top: 30px;
    left: 40%;
    width: 50%;
    height: 10px;
    background: var(--secondary-color);
    animation: wireframeLoading 2s infinite;
}

@keyframes wireframeLoading {
    0% {
        width: 0;
    }

    50% {
        width: 50%;
    }

    100% {
        width: 50%;
    }
}

/* Interactive: SEO (Growing Bar Chart) */
.chart-container {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 150px;
}

.bar {
    width: 30px;
    background: var(--secondary-color);
    animation: growBar 2s ease-out forwards;
}

@keyframes growBar {
    from {
        height: 0;
    }
}

/* Interactive: Chat/Text (Typing) */
.typing-container {
    font-family: monospace;
    font-size: 1.2rem;
    color: var(--primary-color);
    border-right: 2px solid var(--secondary-color);
    animation: blinkCursor 0.7s infinite;
    white-space: nowrap;
    overflow: hidden;
}

@keyframes blinkCursor {
    50% {
        border-color: transparent;
    }
}

/* Sections */
section {
    padding: var(--section-spacing) 0;
}

/* Service Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 15px;
    transition: transform var(--transition-speed), border-color var(--transition-speed);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
}

.service-icon {
    font-size: 40px;
    color: var(--accent-color);
    margin-bottom: 20px;
}

/* Footer */
.site-footer {
    background-color: #001224;
    padding: 80px 0 30px;
    border-top: 1px solid var(--glass-border);
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
    font-size: 14px;
    color: var(--text-gray);
}

/* Elementor Compatibility */
.elementor-section.elementor-section-boxed>.elementor-container {
    max-width: 1200px;
}

/* Utility to hide/show */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}