/* =========================
   CSS VARIABLES
========================= */
:root {
  --bg: #0a0e1a;
  --bg-alt: #0f1629;
  --card: rgba(20, 28, 52, 0.6);
  --card-solid: #141c34;
  --text: #e6eaf5;
  --muted: #94a3b8;
  --accent: #ff6b35;
  --accent-hover: #ff8c55;
  --border: rgba(255, 255, 255, 0.1);
  --gradient: linear-gradient(135deg, #ff6b35, #f7931e);
}

[data-theme="light"] {
  --bg: #f8fafc;
  --bg-alt: #ffffff;
  --card: rgba(255, 255, 255, 0.85);
  --card-solid: #ffffff;
  --text: #1e293b;
  --muted: #64748b;
  --accent: #ff4d1a;
  --accent-hover: #ff6b35;
  --border: rgba(0, 0, 0, 0.1);
  --gradient: linear-gradient(135deg, #ff4d1a, #ff8c55);
}

/* =========================
   BASE & RESET
========================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  padding-top: 90px;
  transition: background 0.3s ease;
}
a { color: inherit; text-decoration: none; }

/* =========================
   HEADER
========================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 90px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  transition: all 0.3s;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.container { width: 90%; max-width: 1400px; margin: auto; }

/* Brand */
.brand img {
  height: 70px;
  width: auto;
  transition: height 0.3s;
}

/* Navigation - Desktop */
.nav {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav a {
  color: var(--muted);
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s ease;
  position: relative;
}

.nav a:hover { color: var(--accent); }

.nav a::after {
  content: '';
  position: absolute;
  width: 0; height: 2px;
  bottom: -6px; left: 0;
  background: var(--gradient);
  transition: width 0.3s;
}

.nav a:hover::after { width: 100%; }

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

#theme-toggle {
  background: var(--card-solid);
  border: 1px solid var(--border);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 1.3rem;
  cursor: pointer;
  transition: all 0.3s;
}

#theme-toggle:hover {
  background: var(--accent);
  color: #000;
  transform: scale(1.1);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger span {
  width: 26px; height: 3px;
  background: var(--text);
  border-radius: 3px;
  transition: all 0.3s;
}

.hamburger[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(8px, 8px); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

/* =========================
   HERO
========================= */
.hero {
  position: relative;
  padding: 10rem 0 6rem;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(255, 107, 53, 0.15), transparent 50%),
              radial-gradient(circle at 80% 70%, rgba(255, 140, 66, 0.1), transparent 50%);
  animation: pulse 18s infinite alternate;
}

@keyframes pulse {
  from { opacity: 0.7; }
  to { opacity: 1; }
}

.hero h1 {
  font-size: 3.8rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.2rem;
  line-height: 1.1;
}

.hero p {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.cta {
  display: inline-block;
  background: var(--gradient);
  color: white;
  padding: 1rem 2.8rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s;
  box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

.cta:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(255, 107, 53, 0.4);
}

/* =========================
   SECTIONS & ABOUT
========================= */
.section { 
  padding: 7rem 0; 
  text-align: center; 
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section.alt { background: var(--bg-alt); }

.section h2 {
  font-size: 2.8rem;
  margin-bottom: 3.5rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.narrow { 
  max-width: 850px; 
  width: 90%;
  margin: 0 auto; 
}

#about p {
  margin-bottom: 1.5rem;
  font-size: 1.15rem;
  color: var(--text);
  opacity: 0.9;
}

/* Service Cards */
.grid {
  display: grid;
  gap: 2rem;
  width: 100%;
}

.service-card {
  background: var(--card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  padding: 2.8rem 2rem;
  border-radius: 18px;
  text-align: center;
  transition: all 0.4s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.25);
  border-color: var(--accent);
}

.service-card .icon { font-size: 3.5rem; margin-bottom: 1.2rem; }
.service-card h3 { color: var(--accent); font-size: 1.5rem; margin-bottom: 1rem; }

/* =========================
   CONTACT CARD
========================= */
.contact-card {
  background: var(--card-solid);
  border: 1px solid var(--border);
  padding: 3rem;
  border-radius: 18px;
  backdrop-filter: blur(12px);
  margin: 2.5rem auto 0;
  display: inline-block;
  text-align: left;
  min-width: 350px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.contact-card p {
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
  display: flex;
  gap: 0.5rem;
}

.contact-card strong {
  color: var(--accent);
  min-width: 80px;
  display: inline-block;
}

/* =========================
   FOOTER
========================= */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  margin-top: 6rem;
  text-align: left;
}

.footer-grid {
  display: grid;
  gap: 3rem;
  padding: 4rem 1.5rem 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.footer-logo img { height: 50px; width: auto; }
.footer-logo span { font-size: 1.5rem; font-weight: 700; color: var(--text); }
.footer-brand p { color: var(--muted); max-width: 400px; }

.footer-links h4 { color: var(--accent); margin-bottom: 1.2rem; font-size: 1.1rem; }
.footer-links a, .footer-links span {
  display: block;
  color: var(--muted);
  margin-bottom: 0.8rem;
  transition: color 0.3s;
}

.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

/* =========================
   RESPONSIVE DESIGN
========================= */
@media (min-width: 768px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .hero h1 { font-size: 4.8rem; }
  .footer-grid { grid-template-columns: 2.5fr 1fr 1fr; }
}

@media (max-width: 768px) {
  body { padding-top: 70px; }
  .site-header, .header-inner { height: 70px; }
  .brand img { height: 50px; }
  .hero h1 { font-size: 2.5rem; }
  .section h2 { font-size: 2.2rem; }
  .hamburger { display: flex; }

  .nav {
    position: fixed;
    top: 70px; left: 0;
    width: 100%; height: calc(100vh - 70px);
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: start;
    padding-top: 3rem; gap: 2.5rem;
    transform: translateY(-100%);
    opacity: 0; visibility: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(12px);
    z-index: 999;
  }

  .nav.active { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav a { font-size: 1.3rem; font-weight: 600; }
  .nav a::after { display: none; }
  
  .contact-card {
    min-width: 100%;
    padding: 2rem 1.5rem;
  }
}