/*
Theme Name: DionWeb
Theme URI: https://dionweb.com
Author: Dion Web Services
Description: Modern theme with dark/light mode toggle
Version: 1.0
*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== CSS VARIABLES - LIGHT MODE (DEFAULT) ===== */
:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-gradient: linear-gradient(135deg, #e8daef, #f5eef8);
  --text-primary: #2c3e50;
  --text-secondary: #666666;
  --primary: #9b59b6;
  --primary-dark: #8e44ad;
  --primary-light: #e8daef;
  --border-color: #eeeeee;
  --card-bg: #ffffff;
  --header-bg: #ffffff;
  --footer-bg: #2c3e50;
  --footer-text: #ffffff;
  --shadow: 0 2px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 10px 30px rgba(155, 89, 182, 0.2);
  --transition-speed: 0.3s;
}

/* ===== DARK MODE OVERRIDES ===== */
[data-theme="dark"] {
  --bg-primary: #0f0f1a;
  --bg-secondary: #1a1a2e;
  --bg-gradient: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --primary: #a569bd;
  --primary-dark: #9b59b6;
  --primary-light: #2d2d4a;
  --border-color: #2d2d4a;
  --card-bg: #1a1a2e;
  --header-bg: #1a1a2e;
  --footer-bg: #0f0f1a;
  --footer-text: #b0b0b0;
  --shadow: 0 2px 20px rgba(0,0,0,0.3);
  --shadow-hover: 0 10px 30px rgba(165, 105, 189, 0.3);
}

/* ===== BASE STYLES ===== */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  overflow-x: hidden;
  background: var(--bg-primary);
  transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
}

body.theme-transitioning * {
  transition: all var(--transition-speed) ease !important;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-dark);
}

/* ===== HEADER ===== */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  background: var(--header-bg);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
  max-width: 1400px;
  margin: 0 auto;
  transition: background-color var(--transition-speed) ease;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Modern Bold Logo - PlanetBot Style */
.gothic-logo {
  font-family: 'Arial Black', 'Impact', 'Helvetica Neue', sans-serif;
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -1px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
  transition: all 0.3s ease;
  position: relative;
}

/* Dark mode logo adjustment */
[data-theme="dark"] .gothic-logo {
  background: linear-gradient(135deg, #c495e8 0%, #a569bd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Navigation */
.main-nav ul {
  display: flex;
  list-style: none;
  gap: 35px;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.3s;
}

.main-nav a:hover {
  color: var(--primary);
}

/* Theme Toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-icon {
  font-size: 16px;
  color: var(--text-secondary);
  user-select: none;
  cursor: pointer;
}

.theme-switch {
  position: relative;
  width: 56px;
  height: 28px;
  background: var(--border-color);
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.3s ease;
  padding: 0;
}

.theme-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 24px;
  height: 24px;
  background: var(--primary);
  border-radius: 50%;
  transition: transform 0.3s ease;
}

[data-theme="dark"] .theme-switch::after {
  transform: translateX(28px);
}

.theme-switch:hover {
  background: var(--primary-light);
}

/* CTA Button */
.cta-btn {
  background: var(--primary);
  color: #fff !important;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cta-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* ===== PAGE HEADER ===== */
.page-header {
  background: var(--bg-gradient);
  padding: 80px 40px;
  text-align: center;
  transition: background 0.3s ease;
}

.page-header h1 {
  font-size: 42px;
  color: var(--text-primary);
  margin-bottom: 15px;
  font-weight: 700;
  transition: color 0.3s ease;
}

/* ===== CONTENT SECTIONS ===== */
.content-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 40px;
}

.content-section h2 {
  font-size: 32px;
  color: var(--text-primary);
  margin-bottom: 30px;
  transition: color 0.3s ease;
}

.content-section p {
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.9;
  margin-bottom: 20px;
  transition: color 0.3s ease;
}

/* ===== CARDS ===== */
.service-card, .pricing-card {
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 20px;
  padding: 50px 40px;
  text-align: center;
  transition: all 0.3s;
}

.service-card:hover, .pricing-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
}

/* ===== PRICING ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 900px;
  margin: 40px auto;
}

.pricing-card h3 {
  font-size: 26px;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.price {
  font-size: 56px;
  color: var(--primary);
  font-weight: 800;
  margin: 25px 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
}

.price span {
  font-size: 18px;
  color: var(--text-secondary);
  font-weight: 400;
}

.pricing-features {
  list-style: none;
  padding: 0;
  text-align: left;
  margin: 35px 0;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-features li {
  padding: 15px 0;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.pricing-features li:before {
  content: "✓";
  color: var(--primary);
  font-weight: 800;
  font-size: 18px;
  min-width: 20px;
}

.select-btn {
  background: var(--primary);
  color: #fff;
  padding: 16px 40px;
  border: none;
  border-radius: 10px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  max-width: 280px;
  margin: 25px auto 0;
  display: block;
  transition: all 0.3s;
}

.select-btn:hover {
  background: var(--primary-dark);
}

/* ===== DOMAIN SEARCH ===== */
.domain-search-section {
  background: var(--bg-gradient);
  padding: 80px 40px;
  text-align: center;
  transition: background 0.3s ease;
}

.domain-search-section h2 {
  font-size: 36px;
  color: var(--text-primary);
  margin-bottom: 15px;
  font-weight: 700;
  transition: color 0.3s ease;
}

.domain-search-section > p {
  color: var(--text-secondary);
  font-size: 18px;
  margin-bottom: 40px;
  transition: color 0.3s ease;
}

.domain-search-box {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  gap: 15px;
  background: var(--card-bg);
  padding: 10px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: background 0.3s ease;
}

.domain-search-box input {
  flex: 1;
  padding: 18px 25px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 17px;
  outline: none;
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.domain-search-box input:focus {
  border-color: var(--primary);
}

.domain-search-box button {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 18px 40px;
  border-radius: 8px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}

.domain-search-box button:hover {
  background: var(--primary-dark);
}

#domainResult {
  margin-top: 30px;
  font-size: 20px;
  min-height: 60px;
}

/* ===== SERVICES GRID ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 40px auto;
}

.service-card {
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 15px;
  padding: 40px;
  text-align: left;
  transition: all 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-icon svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}

.service-card h3 {
  font-size: 24px;
  color: var(--text-primary);
  margin-bottom: 15px;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.8;
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: var(--bg-gradient);
  padding: 60px 40px;
  text-align: center;
  border-radius: 20px;
  max-width: 1000px;
  margin: 60px auto 0;
  transition: background 0.3s ease;
}

.cta-section h2 {
  font-size: 32px;
  color: var(--text-primary);
  margin-bottom: 20px;
  transition: color 0.3s ease;
}

.cta-section p {
  color: var(--text-secondary);
  font-size: 18px;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  transition: color 0.3s ease;
}

.cta-btn-large {
  background: var(--primary);
  color: #fff;
  padding: 18px 50px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  display: inline-block;
  transition: all 0.3s;
}

.cta-btn-large:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* ===== PORTFOLIO ===== */
.portfolio-section {
  max-width: 1200px;
  margin: 60px auto 0;
}

.portfolio-section h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 40px;
  color: var(--text-primary);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.portfolio-item {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  transition: background 0.3s ease;
}

.portfolio-item h4 {
  color: var(--text-primary);
  margin-bottom: 10px;
}

.portfolio-item p {
  color: var(--text-secondary);
  margin-bottom: 15px;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 60px 40px;
  text-align: center;
  width: 100%;
  transition: background 0.3s ease, color 0.3s ease;
}

.site-footer p {
  opacity: 0.8;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  
  .main-nav ul {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .site-header {
    flex-wrap: wrap;
    gap: 20px;
    padding: 15px 20px;
  }
  
  .main-nav ul {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
  }
  
  .theme-toggle {
    order: 2;
  }
  
  .cta-btn {
    order: 4;
    width: 100%;
    justify-content: center;
  }
  
  .gothic-logo {
    font-size: 36px;
  }
}
