/*
Theme Name:  Growider Digital Tech
Theme URI:   https://growider.com
Author:      Growider Digital Tech Pvt Ltd.
Author URI:  https://growider.com
Description: A high-end, ultra-modern digital marketing agency theme built with PHP 8.0+ OOP, Tailwind CSS, glassmorphism UI, and premium micro-animations.
Version:     1.0.1
Requires at least: 6.0
Tested up to:      6.7
Requires PHP:      8.0
License:     GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: growider
*/

/* ==========================================================================
   BASE RESET & CUSTOM UTILITIES
   These supplement Tailwind CDN. They define custom classes (.glass,
   .text-gradient, [data-reveal], etc.) that are not standard Tailwind utilities.
   ========================================================================== */

/* ── CSS Custom Properties ──────────────────────────────────────────────── */
:root {
    --color-violet:  #7C3AED;
    --color-cyan:    #06B6D4;
    --color-dark:    #080B14;
    --color-surface: #0F1422;
    --color-card:    #141928;
    color-scheme: dark;
}

/* ── Base ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background-color: var(--color-dark);
    color: #ffffff;
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, video { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

/* ── Selection ───────────────────────────────────────────────────────────── */
::selection {
    background-color: rgba(124, 58, 237, 0.4);
    color: #fff;
}

/* ── Custom Scrollbar ────────────────────────────────────────────────────── */
::-webkit-scrollbar       { width: 5px; }
::-webkit-scrollbar-track { background: var(--color-dark); }
::-webkit-scrollbar-thumb { background: var(--color-violet); border-radius: 3px; }

/* ── Glassmorphism ───────────────────────────────────────────────────────── */
.glass {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
}

/* ── Gradient Text ───────────────────────────────────────────────────────── */
.text-gradient {
    background: linear-gradient(135deg, #7C3AED 0%, #06B6D4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline;
}

/* ── Display Font Shorthand ──────────────────────────────────────────────── */
.font-display {
    font-family: 'Syne', 'Inter', ui-sans-serif, sans-serif;
}

/* ── Scroll Reveal Animations ────────────────────────────────────────────── */
[data-reveal] {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

[data-reveal="left"]          { transform: translateX(-32px); }
[data-reveal="left"].revealed  { transform: translateX(0); }

[data-reveal="right"]          { transform: translateX(32px); }
[data-reveal="right"].revealed  { transform: translateX(0); }

/* ── Marquee ─────────────────────────────────────────────────────────────── */
@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-marquee { animation: marquee 30s linear infinite; }

/* ── Float (hero card) ───────────────────────────────────────────────────── */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-14px); }
}

.animate-float { animation: float 6s ease-in-out infinite; }

/* ── Pulse slow ──────────────────────────────────────────────────────────── */
.animate-pulse-slow { animation: pulse 6s cubic-bezier(0.4, 0, 0.6, 1) infinite; }

/* ── Nav link underline hover ────────────────────────────────────────────── */
.nav-link { position: relative; }

/* ── Hero grid background ────────────────────────────────────────────────── */
.bg-hero-grid {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M60 0H0v60' fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='1'/%3E%3C/svg%3E");
    background-repeat: repeat;
}

/* ── Glow Shadows ────────────────────────────────────────────────────────── */
.shadow-glow-violet { box-shadow: 0 0 40px rgba(124, 58, 237, 0.4); }
.shadow-glow-cyan   { box-shadow: 0 0 40px rgba(6, 182, 212, 0.4);  }

/* ── Gradient Radial background ──────────────────────────────────────────── */
.bg-gradient-radial {
    background-image: radial-gradient(ellipse at center, var(--tw-gradient-stops, rgba(109,40,217,0.2) 0%, transparent 70%));
}

/* ── Gradient Brand ──────────────────────────────────────────────────────── */
.bg-gradient-brand {
    background: linear-gradient(135deg, #7C3AED 0%, #06B6D4 100%);
}

/* ── Backdrop blur for navbar ────────────────────────────────────────────── */
.backdrop-blur-xl {
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

/* ── Mobile menu background fix ──────────────────────────────────────────────
   Safari drops backdrop-filter if animated. We put it on a pseudo-element. */
.mobile-glass-thick::before,
.mobile-glass-sync::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    transition: backdrop-filter 0.3s ease, background-color 0.3s ease;
}

.mobile-glass-thick,
.mobile-glass-thick::before {
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    background-color: rgba(8, 11, 20, 0.98);
}

.mobile-glass-sync,
.mobile-glass-sync::before {
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    background-color: rgba(8, 11, 20, 0.85);
}

/* ── Hamburger transform helpers ─────────────────────────────────────────── */
.rotate-45     { transform: rotate(45deg); }
.-rotate-45    { transform: rotate(-45deg); }
.translate-y-2 { transform: translateY(8px); }

/* ── Service card filter hidden state ────────────────────────────────────── */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease,
                border-color 0.3s ease, opacity 0.3s ease;
}

/* ── Transition duration 400 ─────────────────────────────────────────────── */
.duration-400 { transition-duration: 400ms; }

/* ── Screen reader only ──────────────────────────────────────────────────── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}
