/*
Theme Name: ADI Web Studio
Theme URI: https://adiwebstudio.com
Author: ADI Web Studio
Author URI: https://adiwebstudio.com
Description: A modern, dark-theme marketing website for ADI Web Studio — a premium digital agency. Compatible with Elementor for easy drag-and-drop editing. Features animated particle hero, smooth scroll animations, and fully responsive design.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: adi-web-studio
Tags: one-page, dark, portfolio, business, elementor, responsive, animation
*/

/* =================================================================
   IMPORTS
================================================================= */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* =================================================================
   CUSTOM PROPERTIES
================================================================= */
:root {
  --bg-color: #030305;
  --bg-secondary: #0a0a0f;
  --text-primary: #ffffff;
  --text-secondary: #8a8f98;
  --accent-primary: #00f0ff;
  --accent-secondary: #0044ff;
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-border: rgba(255, 255, 255, 0.08);
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
}

html.light-theme {
  --bg-color: #ffffff;
  --bg-secondary: #f4f5f7;
  --text-primary: #030305;
  --text-secondary: #4a4f58;
  --accent-primary: #0044ff;
  --accent-secondary: #00f0ff;
  --card-bg: rgba(0, 0, 0, 0.03);
  --card-border: rgba(0, 0, 0, 0.08);
}

html.light-theme .theme-toggle-btn .sun-icon {
  display: block !important;
}
html.light-theme .theme-toggle-btn .moon-icon {
  display: none !important;
}

html.light-theme .footer {
  background-color: #f4f5f7;
}
html.light-theme .navbar.scrolled {
  background: rgba(255, 255, 255, 0.85);
}
html.light-theme .mobile-menu {
  background: rgba(255, 255, 255, 0.97);
}
html.light-theme .portfolio-overlay {
  background: linear-gradient(to top, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.2) 50%, transparent 100%);
}
html.light-theme .portfolio-title {
  color: var(--text-primary);
}
html.light-theme .btn-secondary {
  color: var(--text-primary);
  border-color: rgba(0,0,0,0.2);
}
html.light-theme .btn-secondary:hover {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.5);
  color: var(--text-primary);
}

/* =================================================================
   RESET & BASE
================================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--font-display); border: none; cursor: pointer; background: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* =================================================================
   UTILITIES
================================================================= */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section { padding: 120px 0; }
.bg-secondary { background-color: var(--bg-secondary); border-top: 1px solid var(--card-border); border-bottom: 1px solid var(--card-border); }
.title-glow { text-shadow: 0 0 40px rgba(0, 240, 255, 0.3); }
.text-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #8a8f98 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.text-gradient-accent {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* =================================================================
   BUTTONS
================================================================= */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 32px; border-radius: 100px;
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  color: #000; font-weight: 700; font-size: 16px; font-family: var(--font-display);
  transition: opacity 0.2s, transform 0.2s; cursor: pointer; border: none;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-2px); color: #000; }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 32px; border-radius: 100px;
  background: transparent; border: 1px solid rgba(255,255,255,0.2);
  color: #fff; font-weight: 600; font-size: 16px; font-family: var(--font-display);
  transition: border-color 0.2s, background 0.2s; cursor: pointer;
}
.btn-secondary:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.05); color: #fff; }

/* =================================================================
   GRID LAYOUTS
================================================================= */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }

/* =================================================================
   GLASS CARD
================================================================= */
.glass-card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: 24px; padding: 40px; backdrop-filter: blur(10px);
  transition: transform 0.3s ease, border-color 0.3s ease; height: 100%;
}
.glass-card:hover { transform: translateY(-5px); border-color: rgba(0, 240, 255, 0.3); }

/* =================================================================
   SCROLL ANIMATIONS
================================================================= */
.adi-animate {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.adi-animate.adi-visible { opacity: 1; transform: translateY(0); }
.adi-animate-delay-1 { transition-delay: 0.1s; }
.adi-animate-delay-2 { transition-delay: 0.2s; }
.adi-animate-delay-3 { transition-delay: 0.3s; }
.adi-animate-delay-4 { transition-delay: 0.4s; }
.adi-animate-delay-5 { transition-delay: 0.5s; }
.adi-animate-delay-6 { transition-delay: 0.6s; }

/* =================================================================
   NAVBAR
================================================================= */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; padding: 24px 0; z-index: 100;
  transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s, padding 0.3s;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(3, 3, 5, 0.85); backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.05); padding: 16px 0;
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo {
  font-family: var(--font-display); font-size: 24px; font-weight: 700;
  letter-spacing: -0.5px; display: flex; align-items: center; gap: 8px; cursor: pointer;
}
.logo:hover { color: #fff; }
.logo-dot {
  width: 8px; height: 8px; background: var(--accent-primary);
  border-radius: 50%; box-shadow: 0 0 10px var(--accent-primary); flex-shrink: 0;
}
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-link {
  font-size: 14px; font-weight: 500; color: var(--text-secondary); transition: color 0.2s;
}
.nav-link:hover { color: #fff; }

/* Hamburger */
.hamburger {
  display: none; align-items: center; justify-content: center;
  width: 40px; height: 40px; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 10px;
  color: #fff; cursor: pointer; transition: background 0.2s; flex-shrink: 0;
}
.hamburger:hover { background: rgba(255,255,255,0.12); }
.hamburger svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.hamburger .icon-close { display: none; }
.hamburger[aria-expanded="true"] .icon-open { display: none; }
.hamburger[aria-expanded="true"] .icon-close { display: block; }

/* Mobile menu */
.mobile-menu {
  display: none; position: fixed; top: 72px; left: 0; right: 0; bottom: 0; z-index: 99;
  background: rgba(3, 3, 5, 0.97); backdrop-filter: blur(24px);
  border-top: 1px solid rgba(255,255,255,0.06); overflow-y: auto;
  opacity: 0; transform: translateY(-10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.mobile-menu.open { opacity: 1; transform: translateY(0); }
.mobile-menu-inner { display: flex; flex-direction: column; padding: 32px 24px; gap: 8px; }
.mobile-nav-link {
  display: block; width: 100%; text-align: left; padding: 18px 0;
  font-family: var(--font-display); font-size: 22px; font-weight: 600;
  color: var(--text-secondary); border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color 0.2s; cursor: pointer;
}
.mobile-nav-link:hover { color: #fff; }
.mobile-cta { margin-top: 24px; width: 100%; justify-content: center; padding: 16px !important; font-size: 16px !important; }

/* =================================================================
   HERO
================================================================= */
.hero {
  position: relative; padding: 140px 0 80px;
  display: flex; align-items: center; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.9; }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 50%, rgba(0, 68, 255, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(0, 240, 255, 0.06) 0%, transparent 60%),
    linear-gradient(to bottom, transparent 50%, var(--bg-color) 100%);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1; width: 100%;
  display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: center;
}
.hero-content { max-width: 640px; }

.badge {
  display: inline-flex; align-items: center; padding: 8px 16px;
  background: rgba(0,240,255,0.1); border: 1px solid rgba(0,240,255,0.2);
  border-radius: 100px; color: var(--accent-primary); font-size: 14px;
  font-weight: 500; margin-bottom: 24px;
}
.hero h1 { font-size: clamp(48px, 6vw, 80px); letter-spacing: -2px; margin-bottom: 24px; }
.hero p {
  font-size: clamp(16px, 2vw, 20px); color: var(--text-secondary);
  margin-bottom: 40px; max-width: 600px;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.hero-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.09);
  border-radius: 100px; font-size: 13px; color: var(--text-secondary);
  transition: border-color 0.2s, color 0.2s;
}
.hero-chip:hover { border-color: rgba(0,240,255,0.3); color: #fff; }
.hero-chip svg { width: 14px; height: 14px; flex-shrink: 0; }

/* Hero stat cards */
.hero-stats-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hero-stat-card {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px; padding: 28px 20px; display: flex; flex-direction: column;
  gap: 6px; backdrop-filter: blur(12px); transition: border-color 0.3s;
}
.hero-stat-card:hover { border-color: rgba(0,240,255,0.25); }
.hero-stat-value {
  font-family: var(--font-display); font-size: 36px; font-weight: 700;
  background: linear-gradient(135deg, #fff 0%, var(--accent-primary) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1;
}
.hero-stat-label { font-size: 13px; color: var(--text-secondary); line-height: 1.3; }

/* =================================================================
   SECTION SHARED
================================================================= */
.section-header { margin-bottom: 64px; max-width: 600px; }
.section-header.center { margin: 0 auto 64px; text-align: center; }
.section-label {
  color: var(--accent-primary); font-family: var(--font-display); font-weight: 600;
  text-transform: uppercase; letter-spacing: 2px; font-size: 14px;
  margin-bottom: 16px; display: block;
}
.section-title { font-size: clamp(32px, 4vw, 48px); letter-spacing: -1px; margin-bottom: 24px; }
.section-desc { color: var(--text-secondary); font-size: 18px; }

/* =================================================================
   SERVICES
================================================================= */
.service-icon {
  width: 48px; height: 48px; background: rgba(0,240,255,0.1); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; color: var(--accent-primary);
  margin-bottom: 24px; transition: transform 0.3s;
}
.service-icon svg { width: 24px; height: 24px; }
.glass-card:hover .service-icon { transform: scale(1.1); }
.service-title { font-size: 24px; margin-bottom: 16px; }
.service-desc { color: var(--text-secondary); }

/* =================================================================
   APPROACH
================================================================= */
.approach-list { display: flex; flex-direction: column; gap: 32px; }
.approach-item { display: flex; gap: 24px; align-items: flex-start; }
.approach-icon {
  background: var(--card-bg); border: 1px solid var(--card-border);
  padding: 16px; border-radius: 16px; color: var(--accent-primary); flex-shrink: 0;
}
.approach-icon svg { width: 24px; height: 24px; }
.approach-content h3 { font-size: 20px; margin-bottom: 8px; }
.approach-content p { color: var(--text-secondary); }
.testimonial-card { padding: 48px; position: relative; z-index: 1; }
.testimonial-glow {
  position: absolute; top: 10%; left: 10%; right: 10%; bottom: 10%;
  background: var(--accent-primary); filter: blur(100px); opacity: 0.1; z-index: 0;
}
.testimonial-quote { font-size: 22px; margin-bottom: 20px; color: var(--accent-primary); }
.testimonial-text { color: var(--text-secondary); font-size: 18px; font-style: italic; margin-bottom: 28px; }
.testimonial-author { font-weight: 600; color: #fff; }
.testimonial-role { color: var(--text-secondary); font-size: 14px; }

/* =================================================================
   PORTFOLIO / WORK
================================================================= */
.portfolio-card { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 4/3; }
.portfolio-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.portfolio-card:hover .portfolio-img { transform: scale(1.05); }
.portfolio-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(3,3,5,0.9) 0%, rgba(3,3,5,0.2) 50%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 32px; opacity: 0.9; transition: opacity 0.3s;
}
.portfolio-card:hover .portfolio-overlay { opacity: 1; }
.portfolio-category {
  color: var(--accent-primary); font-size: 14px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px;
}
.portfolio-title { font-size: 24px; color: #fff; display: flex; justify-content: space-between; align-items: center; }
.portfolio-title svg { width: 20px; height: 20px; flex-shrink: 0; }

/* =================================================================
   PROCESS
================================================================= */
.process-step {
  display: flex; gap: 32px; margin-bottom: 48px; position: relative;
  padding: 32px; background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: 24px; transition: border-color 0.3s;
}
.process-step:hover { border-color: rgba(0,240,255,0.3); }
.process-step:last-child { margin-bottom: 0; }
.process-number {
  font-family: var(--font-display); font-size: 64px; font-weight: 700;
  color: rgba(255,255,255,0.05); line-height: 0.8; position: absolute; top: 24px; right: 24px;
}
.process-title { font-size: 22px; margin-bottom: 12px; color: #fff; }
.process-desc { color: var(--text-secondary); font-size: 16px; }

/* =================================================================
   STATS
================================================================= */
.stat-card {
  text-align: center; padding: 40px 24px;
  background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 24px;
}
.stat-number { font-family: var(--font-display); font-size: 48px; font-weight: 700; color: var(--accent-primary); margin-bottom: 8px; }
.stat-label { color: var(--text-secondary); font-size: 16px; font-weight: 500; }

/* =================================================================
   CTA
================================================================= */
.cta-section { position: relative; overflow: hidden; padding: 160px 0; text-align: center; }
.cta-bg {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 1000px; height: 1000px;
  background: radial-gradient(circle, rgba(0,68,255,0.2) 0%, rgba(3,3,5,0) 70%); z-index: 0;
}
.cta-content { max-width: 700px; margin: 0 auto; position: relative; z-index: 1; }
.cta-icon { width: 48px; height: 48px; color: var(--accent-primary); margin: 0 auto 24px; }
.cta-icon svg { width: 48px; height: 48px; }
.cta-perks { margin-top: 32px; display: flex; justify-content: center; gap: 24px; color: var(--text-secondary); font-size: 14px; flex-wrap: wrap; }
.cta-perk { display: flex; align-items: center; gap: 8px; }
.cta-perk svg { color: var(--accent-primary); width: 16px; height: 16px; flex-shrink: 0; }

/* =================================================================
   FOOTER
================================================================= */
.footer { border-top: 1px solid var(--card-border); padding: 80px 0 40px; background-color: #000; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 48px; margin-bottom: 80px; }
.footer-col h4 { font-size: 18px; margin-bottom: 24px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--text-secondary); transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px; border-top: 1px solid var(--card-border);
  color: var(--text-secondary); font-size: 14px;
}
.footer-socials { display: flex; gap: 16px; }
.footer-socials a { color: var(--text-secondary); transition: color 0.2s; }
.footer-socials a:hover { color: #fff; }

/* =================================================================
   ELEMENTOR OVERRIDES (when Elementor is active)
================================================================= */
.elementor-page .hero-bg { z-index: 0; }
.elementor-section { position: relative; }

/* =================================================================
   RESPONSIVE — Tablet (≤ 992px)
================================================================= */
@media (max-width: 992px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 48px; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* =================================================================
   RESPONSIVE — Mobile (≤ 768px)
================================================================= */
@media (max-width: 768px) {
  /* Nav */
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: block; }

  /* Hero */
  .hero { padding: 110px 0 60px; }
  .hero-content { text-align: center; max-width: 100%; }
  .hero h1 { font-size: clamp(34px, 10vw, 56px) !important; }
  .hero p { font-size: 16px; max-width: 100%; }
  .hero-btns { flex-direction: column; align-items: center; }
  .hero-btns .btn-primary, .hero-btns .btn-secondary { width: 100%; justify-content: center; }
  .badge { margin: 0 auto; }
  .hero-chips { justify-content: center; }
  .hero-stats-panel { grid-template-columns: 1fr 1fr; gap: 12px; }

  /* Sections */
  .section { padding: 72px 0; }
  .section-title { font-size: clamp(26px, 7vw, 40px) !important; }
  .glass-card { padding: 28px 24px; }

  /* Process */
  .process-step { flex-direction: column; gap: 16px; }
  .process-number { position: relative; top: 0; right: 0; margin-bottom: 8px; }

  /* Stats */
  .grid-4 { grid-template-columns: 1fr 1fr; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .footer-socials { justify-content: center; }

  /* CTA */
  .cta-section { padding: 80px 0; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-stats-panel { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
}
