/* 
  Aether Digital Consulting - Stylesheet
  Custom premium styling with glassmorphism, responsive bento grids, and micro-animations.
*/

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

:root {
  /* Color Palette */
  --bg-dark: #090d16;
  --bg-card: rgba(17, 24, 39, 0.6);
  --bg-card-hover: rgba(30, 41, 59, 0.8);
  
  --primary: #6366f1; /* Indigo */
  --primary-glow: rgba(99, 102, 241, 0.15);
  --secondary: #06b6d4; /* Cyan */
  --secondary-glow: rgba(6, 182, 212, 0.15);
  --accent: #d946ef; /* Fuchsia */
  
  --text-primary: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.16);
  
  /* Fonts */
  --font-header: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

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

/* Background Gradients/Glows */
.glow-bg {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
}

.glow-top-left {
  top: -10%;
  left: -10%;
  background: var(--primary);
  animation: float-glow 15s infinite alternate ease-in-out;
}

.glow-bottom-right {
  bottom: 10%;
  right: -10%;
  background: var(--secondary);
  animation: float-glow 20s infinite alternate-reverse ease-in-out;
}

.glow-center {
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--accent);
  width: 400px;
  height: 400px;
  opacity: 0.15;
}

@keyframes float-glow {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(80px, 50px) scale(1.2);
  }
}

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(9, 13, 22, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: 1.25rem 2rem;
  transition: var(--transition-smooth);
}

.header-scrolled {
  padding: 0.85rem 2rem;
  background: rgba(9, 13, 22, 0.85);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

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

.logo {
  font-family: var(--font-header);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-primary);
}

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

.logo-dot {
  width: 8px;
  height: 8px;
  background-color: var(--secondary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--secondary);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-fast);
  position: relative;
}

nav a:hover, nav a.active {
  color: var(--text-primary);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: var(--transition-fast);
}

nav a:hover::after, nav a.active::after {
  width: 100%;
}

.cta-btn {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border: none;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-family: var(--font-header);
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px var(--primary-glow);
  text-decoration: none;
  font-size: 0.9rem;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  margin: 5px 0;
  transition: var(--transition-fast);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 4rem 2rem;
  position: relative;
  text-align: center;
}

.hero-content {
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-tag {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 0.5rem 1.25rem;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 2rem;
  backdrop-filter: blur(5px);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-tag::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--secondary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--secondary);
}

.hero h1 {
  font-family: var(--font-header);
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 1.5rem;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--text-primary) 30%, #a5b4fc 70%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 650px;
  margin-bottom: 2.5rem;
}

.hero-btns {
  display: flex;
  gap: 1rem;
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  font-family: var(--font-header);
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.hero-btn-large {
  padding: 0.85rem 2rem;
  font-size: 1rem;
}

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

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

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

.section-header p {
  color: var(--text-muted);
  max-width: 550px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* Grid Layout for Services (Bento Style) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 3rem 2.25rem;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(800px circle at var(--x, 0px) var(--y, 0px), rgba(99, 102, 241, 0.08), transparent 40%);
  z-index: 1;
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-8px);
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

.service-icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--secondary);
  transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
  background: var(--primary-glow);
  color: var(--primary);
  border-color: rgba(99, 102, 241, 0.3);
}

.service-card h3 {
  font-family: var(--font-header);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Portfolio Section */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.portfolio-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  aspect-ratio: 16/10;
  cursor: pointer;
  background-color: rgba(17, 24, 39, 0.9);
}

.portfolio-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.portfolio-img-placeholder svg {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  color: var(--secondary);
  transition: var(--transition-smooth);
}

.portfolio-card:hover .portfolio-img-placeholder {
  transform: scale(1.05);
}

.portfolio-card:hover .portfolio-img-placeholder svg {
  color: var(--primary);
  transform: translateY(-5px);
}

.portfolio-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  background: linear-gradient(0deg, rgba(9, 13, 22, 0.95) 0%, rgba(9, 13, 22, 0.5) 70%, transparent 100%);
  border-top: 1px solid var(--border-color);
  transform: translateY(20px);
  opacity: 0;
  transition: var(--transition-smooth);
  z-index: 2;
}

.portfolio-card:hover .portfolio-info {
  transform: translateY(0);
  opacity: 1;
}

.portfolio-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}

.portfolio-info h3 {
  font-family: var(--font-header);
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}

.portfolio-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h3 {
  font-family: var(--font-header);
  font-size: 1.8rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text-primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
}

.stat-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  border-radius: 12px;
}

.stat-number {
  font-family: var(--font-header);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.feature-item {
  display: flex;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  border-radius: 12px;
  align-items: flex-start;
  transition: var(--transition-smooth);
}

.feature-item:hover {
  border-color: var(--border-hover);
  transform: translateX(5px);
}

.feature-icon {
  font-size: 1.25rem;
  color: var(--primary);
  margin-top: 0.2rem;
}

.feature-text h4 {
  font-family: var(--font-header);
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.feature-text p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
}

/* Contact Section */
.contact-container {
  display: grid;
  grid-template-columns: 4fr 5fr;
  gap: 4rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info h3 {
  font-family: var(--font-header);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-detail-item {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.detail-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
}

.detail-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.detail-text span {
  font-size: 1rem;
  font-weight: 500;
}

/* Contact Form */
.contact-form {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

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

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 15px var(--primary-glow);
}

.contact-form .cta-btn {
  padding: 0.85rem;
  font-size: 1rem;
  margin-top: 1rem;
}

/* Form Success Overlay */
.form-success-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-dark);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
  z-index: 10;
}

.form-success-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--secondary-glow);
  color: var(--secondary);
  border: 1px solid rgba(6, 182, 212, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 20px var(--secondary-glow);
}

.form-success-overlay h3 {
  font-family: var(--font-header);
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.form-success-overlay p {
  color: var(--text-muted);
  max-width: 320px;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-color);
  padding: 4rem 2rem 2rem 2rem;
  background: rgba(9, 13, 22, 0.5);
}

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

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-info p {
  color: var(--text-dim);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-dim);
  font-size: 0.85rem;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--text-primary);
}

/* Media Queries */
@media (max-width: 968px) {
  nav ul {
    display: none; /* Mobile menu toggled by js */
  }
  
  .menu-toggle {
    display: block;
  }
  
  .hero h1 {
    font-size: 3rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 2.25rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-btns {
    flex-direction: column;
    width: 100%;
  }
  
  .secondary-btn, .cta-btn {
    text-align: center;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
}

/* Mobile Active Menu Styling */
nav.mobile-active ul {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border-color);
  padding: 2rem;
  gap: 1.5rem;
  align-items: flex-start;
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

nav.mobile-active a {
  font-size: 1.1rem;
}
