/* =========================================================================
   .webs Business Solutions - Core Stylesheet
   Theme: Modern Dark with Vibrant Green Accents and Glassmorphism
   ========================================================================= */

:root {
    /* Color Palette derived from logo */
    --color-primary: #00FF00;
    /* Vibrant Green */
    --color-primary-glow: rgba(0, 255, 0, 0.4);
    --color-primary-dark: #00cc00;

    --color-bg-dark: #0a0a0a;
    --color-bg-card: rgba(30, 30, 30, 0.6);

    --color-text-main: #ffffff;
    --color-text-muted: #a0a0a0;
    --color-text-dark: #2B2B2B;
    /* Dark Grey from logo */

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-blur: blur(16px);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Layout */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    --container-width: 1200px;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* =========================================
   Reset & Base Styles
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.dark-theme {
    background-color: var(--color-bg-dark);
    color: var(--color-text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background gradient effect */
body.dark-theme::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% 0%, rgba(0, 255, 0, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(43, 43, 43, 0.5) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

a {
    color: var(--color-text-main);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* =========================================
   Typography & Utilities
   ========================================= */
.text-center {
    text-align: center;
}

.text-muted {
    color: var(--color-text-muted);
}

.text-sm {
    font-size: 0.875rem;
}

.mt-1 {
    margin-top: var(--spacing-sm);
}

.mt-2 {
    margin-top: var(--spacing-md);
}

.mb-1 {
    margin-bottom: var(--spacing-sm);
}

.mb-2 {
    margin-bottom: var(--spacing-md);
}

.highlight {
    color: var(--color-primary);
    text-shadow: 0 0 20px var(--color-primary-glow);
    display: inline-block;
}

/* =========================================
   Glassmorphism Components
   ========================================= */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-md);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 255, 0, 0.1);
    border-color: rgba(0, 255, 0, 0.2);
}

/* =========================================
   Buttons
   ========================================= */
.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-align: center;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, #00cc00 100%);
    color: var(--color-bg-dark);
    box-shadow: 0 4px 15px rgba(0, 255, 0, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #00ff33 0%, var(--color-primary-dark) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 255, 0, 0.5), 0 0 15px rgba(0, 255, 0, 0.3);
    color: var(--color-bg-dark);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-main);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-bg-dark);
    box-shadow: 0 0 15px var(--color-primary-glow);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    letter-spacing: 0.5px;
    font-weight: 700;
}

/* =========================================
   Navigation
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--color-text-main);
    display: flex;
    align-items: flex-end;
    line-height: 1;
}

.logo .dot {
    color: var(--color-text-dark);
    /* Using dark grey for the dot as per logo style, although on dark bg it might need to be green */
    color: var(--color-primary);
    /* Actually, green dot looks better on dark theme */
    font-size: 3.5rem;
    line-height: 0.8;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    position: relative;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transition-normal);
}

.nav-links a:not(.btn):hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--color-primary);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-text-main);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: all var(--transition-fast);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--color-text-main);
    left: 0;
    transition: all var(--transition-fast);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

/* Mobile Menu Open State */
.menu-toggle.open .hamburger {
    background-color: transparent;
}

.menu-toggle.open .hamburger::before {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.open .hamburger::after {
    transform: translateY(-8px) rotate(-45deg);
}

/* =========================================
   Layout Grids
   ========================================= */
.section {
    padding: var(--spacing-xl) 0;
}

.grid {
    display: grid;
    gap: var(--spacing-md);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 5rem;
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: stretch;
    width: 100%;
    padding: 3.5rem;
    border-radius: var(--border-radius-lg);
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.95) 0%, rgba(5, 5, 5, 0.95) 100%);
    border: 1px solid rgba(0, 255, 0, 0.15);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.5s ease, border-color 0.5s ease;
    animation: float-subtle 6s ease-in-out infinite;
}

@keyframes float-subtle {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.hero-grid:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(0, 255, 0, 0.15), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 255, 0, 0.4);
    animation-play-state: paused;
}

.hero-text {
    max-width: 650px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.badge {
    display: inline-block;
    padding: 0.15rem 0.8rem;
    background: rgba(0, 255, 0, 0.1);
    color: var(--color-primary);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    align-self: flex-start;
}

.hero-title {
    font-size: 3.8rem;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    transition: text-shadow 0.4s ease;
}

.hero-grid:hover .hero-title .highlight {
    text-shadow: 0 0 30px var(--color-primary-glow);
}

.hero-description {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* =========================================
   Hero Carousel
   ========================================= */
.hero-carousel {
    padding: 0;
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--border-radius-md);
}

.carousel-container {
    overflow: hidden;
    width: 100%;
    flex-grow: 1;
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    align-items: stretch;
    height: 100%;
}

.carousel-slide {
    flex: 0 0 100%;
    min-width: 100%;
    width: 100%;
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    opacity: 0.8;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s ease;
}

.carousel-slide:hover .slide-bg {
    transform: scale(1.05);
    opacity: 1;
}

.slide-overlay {
    position: relative;
    z-index: 1;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 255, 0, 0.15) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 3rem 2rem 4rem 2rem;
    flex-grow: 1;
    transition: background 0.5s ease;
}

.carousel-slide:hover .slide-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 255, 0, 0.25) 60%, transparent 100%);
}

.slide-overlay h3,
.slide-overlay a {
    transition: transform 0.4s ease, text-shadow 0.4s ease;
}

.carousel-slide:hover .slide-overlay h3 {
    transform: translateY(-5px);
    text-shadow: 0 8px 15px rgba(0, 0, 0, 1);
}

.carousel-slide:hover .slide-overlay a {
    transform: translateY(-3px);
}

.slide-overlay h3 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 2.2rem;
    font-weight: 700;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.9);
    word-break: break-word;
    /* Prevents long text from pushing layout off-screen */
}

.carousel-controls {
    position: absolute;
    bottom: 1rem;
    left: 0;
    width: 100%;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.carousel-btn {
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
}

.carousel-btn:hover {
    background: var(--color-primary);
    color: var(--color-bg-dark);
    box-shadow: 0 0 15px var(--color-primary-glow);
}

.carousel-indicators {
    display: flex;
    gap: 8px;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.indicator.active {
    background: var(--color-primary);
    transform: scale(1.2);
    box-shadow: 0 0 10px var(--color-primary-glow);
}

/* Background Blobs for specific pages */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.5;
    animation: float 20s infinite alternate;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: rgba(0, 255, 0, 0.15);
    top: 10%;
    right: 5%;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: rgba(43, 43, 43, 0.8);
    bottom: -10%;
    left: -5%;
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-50px, 50px) scale(1.1);
    }

    100% {
        transform: translate(50px, -50px) scale(0.9);
    }
}

/* =========================================
   Service Highlights (Home)
   ========================================= */
.section-header {
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-size: 3rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.service-card {
    text-align: center;
    padding: 2.5rem 2rem;
}

.icon-box {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: rgba(0, 255, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border: 1px solid rgba(0, 255, 0, 0.2);
    transition: all var(--transition-normal);
}

.service-card:hover .icon-box {
    background: var(--color-primary);
    color: var(--color-bg-dark);
    box-shadow: 0 0 20px var(--color-primary-glow);
    transform: scale(1.1);
}

.read-more {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.875rem;
}

.read-more:hover {
    color: #fff;
}

/* =========================================
   CTA Section
   ========================================= */
.cta-section {
    position: relative;
    padding: var(--spacing-xl) 0;
}

.cta-content {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.8) 0%, rgba(10, 10, 10, 0.9) 100%);
    border: 1px solid rgba(0, 255, 0, 0.3);
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.cta-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(0, 255, 0, 0.1) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
}

.cta-content h2,
.cta-content p,
.cta-content a {
    position: relative;
    z-index: 1;
}

/* =========================================
   Footer
   ========================================= */
.footer {
    background: #050505;
    border-top: 1px solid var(--glass-border);
    padding-top: var(--spacing-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.footer h4 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--color-text-muted);
}

.footer-links a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: 1px solid var(--glass-border);
}

.social-icon:hover {
    background: var(--color-primary);
    color: var(--color-bg-dark);
    border-color: var(--color-primary);
}

.footer-bottom {
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

/* =========================================
   Floating WhatsApp Button
   ========================================= */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.wa-icon {
    width: 35px;
    height: 35px;
    fill: currentColor;
}

/* =========================================
   Animations
   ========================================= */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   Responsive Design
   ========================================= */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-grid {
        grid-template-columns: 1.5fr 1fr;
        gap: 2rem;
        padding: 2rem;
    }

    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .logo {
        font-size: 1.8rem;
    }

    .logo .dot {
        font-size: 2.5rem;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: rgba(15, 15, 15, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        transition: right var(--transition-normal);
        border-left: 1px solid var(--glass-border);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        right: 0;
    }

    .hero {
        text-align: center;
    }

    .hero-grid {
        text-align: left;
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1.5rem;
    }

    .hero-content {
        justify-content: center;
    }

    .hero-text {
        padding: 2rem;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}