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

:root {
  /* Color Palette matching new logo (Steel Blue, Deep Cyan, Bright Electric Blue, Crisp White) */
  --bg-primary: #0b0f19;
  --bg-secondary: #131a2c;
  --accent-cyan: #46b5ff;      /* Bright logo cyan */
  --accent-blue: #0d86ff;      /* Electric code brace blue */
  --accent-slate: #8fa0b5;     /* Metallic steel tone */
  --accent-purple: #1e3b66;    /* Deep structural background blue */
  --text-primary: #ffffff;
  --text-secondary: #9db2c6;
  --glass-bg: rgba(19, 26, 44, 0.45);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: rgba(0, 0, 0, 0.5);
  
  /* Fonts */
  --font-header: 'Space Grotesk', sans-serif;
  --font-body: 'Outfit', sans-serif;
  
  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Background Gradients */
.bg-glows {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.glow-1 {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(70, 181, 255, 0.15) 0%, transparent 70%);
  filter: blur(100px);
}

.glow-2 {
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(13, 134, 255, 0.1) 0%, transparent 70%);
  filter: blur(120px);
}

/* Custom Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  background: rgba(11, 15, 25, 0.7);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-family: var(--font-header);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.logo-img {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  object-fit: cover;
}

.logo-text span {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-slate));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

nav a:hover {
  color: var(--accent-cyan);
  text-shadow: 0 0 8px rgba(70, 181, 255, 0.4);
}

/* Dropdown Navigation Menu */
nav ul li {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(19, 26, 44, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  min-width: 260px;
  padding: 0.75rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition-smooth);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  z-index: 100;
}

nav ul li:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  width: 100%;
}

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1.25rem;
  width: 100%;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.dropdown-menu a:hover {
  background: rgba(70, 181, 255, 0.08);
  color: var(--accent-cyan);
}

/* Page Layout for Sub-Services */
.subpage-hero {
  padding: 10rem 2rem 4rem 2rem;
  text-align: center;
  background: radial-gradient(ellipse at center, rgba(11, 15, 25, 0.8) 0%, rgba(11, 15, 25, 0.98) 100%);
  border-bottom: 1px solid var(--glass-border);
}

.subpage-hero h1 {
  font-family: var(--font-header);
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ffffff 40%, var(--accent-cyan) 80%, var(--accent-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subpage-hero p {
  color: var(--text-secondary);
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
}

.subpage-content {
  padding: 5rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.subpage-body {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 4rem;
}

/* Template Showcase Layout */
.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.template-card {
  padding: 2rem;
  transition: var(--transition-smooth);
}

.template-card h4 {
  font-family: var(--font-header);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--accent-cyan);
}

.template-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Glassmorphic Shell & Utilities */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: 0 8px 32px 0 var(--glass-shadow);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 4rem 2rem;
  background: radial-gradient(ellipse at center, rgba(11, 15, 25, 0.4) 0%, rgba(11, 15, 25, 0.95) 100%), 
              url('../assets/hero_bg.png') no-repeat center center/cover;
}

.hero-content {
  max-width: 1000px;
  text-align: center;
}

.badge {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: rgba(70, 181, 255, 0.08);
  border: 1px solid rgba(70, 181, 255, 0.25);
  color: var(--accent-cyan);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 2rem;
  box-shadow: 0 0 20px rgba(70, 181, 255, 0.1);
}

.hero-content h1 {
  font-family: var(--font-header);
  font-size: 4.25rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 40%, var(--accent-cyan) 80%, var(--accent-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  color: var(--text-secondary);
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 2.5rem auto;
}

.cta-group {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #0b0f19;
  border: none;
  box-shadow: 0 4px 20px rgba(70, 181, 255, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(70, 181, 255, 0.45);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  border-color: var(--accent-cyan);
  background: rgba(70, 181, 255, 0.05);
}

/* Sections */
section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-family: var(--font-header);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.service-card {
  padding: 2.5rem 2rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-slate));
  opacity: 0;
  transition: var(--transition-smooth);
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 240, 255, 0.2);
}

.service-card:hover::before {
  opacity: 1;
}

.icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--accent-cyan);
}

.service-card h3 {
  font-family: var(--font-header);
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Tools Container */
.tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.tool-box {
  padding: 2.5rem;
}

.tool-box h3 {
  font-family: var(--font-header);
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-body);
  transition: var(--transition-smooth);
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.02);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
}

/* SERP Preview Layout */
.serp-preview {
  margin-top: 1.5rem;
  background: #ffffff;
  color: #1a0dab;
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid #dadce0;
}

.serp-title {
  font-family: Arial, sans-serif;
  font-size: 1.25rem;
  line-height: 1.3;
  margin-bottom: 4px;
  word-wrap: break-word;
  color: #1a0dab;
  cursor: pointer;
}

.serp-title:hover {
  text-decoration: underline;
}

.serp-url {
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
  color: #202124;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.serp-desc {
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
  line-height: 1.57;
  color: #4d5156;
  word-wrap: break-word;
}

/* PPC Outputs */
.calc-outputs {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.output-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
}

.output-card.highlight {
  background: rgba(0, 240, 255, 0.05);
  border-color: rgba(0, 240, 255, 0.2);
}

.output-val {
  font-family: var(--font-header);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 0.25rem;
}

.output-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Contact/Inquiry Section */
.contact-container {
  max-width: 650px;
  margin: 0 auto;
  padding: 3rem;
}

.contact-container form button {
  width: 100%;
  margin-top: 1rem;
}

/* Footer styling */
footer {
  border-top: 1px solid var(--glass-border);
  background: var(--bg-secondary);
  padding: 3rem 2rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copyright {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Responsive queries */
@media (max-width: 900px) {
  .tools-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero-content h1 {
    font-size: 2.75rem;
  }
}

@media (max-width: 600px) {
  .nav-container {
    padding: 1rem;
  }
  nav {
    display: none; /* simple hidden for small screens in this layout, can extend to slide-in menu */
  }
  
  .contact-container {
    padding: 1.5rem;
  }
}
