/* 
  Ikarus Agency - Premium Redesign 2025 
  Style.css
*/

/* --- 1. VARIABLES & THEME --- */
:root {
  /* Colors */
  --color-bg: #050505;
  --color-surface: #101010;
  --color-surface-hover: #1a1a1a;

  /* Red Theme */
  --color-primary: #ff0050;
  --color-primary-dark: #d60043;
  --color-accent: #ff4000;
  /* Orange-red shift for gradients */

  --color-text-main: #ffffff;
  --color-text-muted: #a1a1aa;
  --color-border: #27272a;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  --gradient-glow: radial-gradient(circle at 50% 50%, rgba(255, 0, 80, 0.25), transparent 70%);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --container-width: 1200px;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;

  /* Components */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-full: 9999px;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 30px rgba(255, 0, 80, 0.4);
}

/* --- 2. 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(--color-bg);
  color: var(--color-text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* --- 3. TYPOGRAPHY --- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-text-main);
}

h1 {
  font-size: clamp(3rem, 5vw, 5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: -0.01em;
  margin-bottom: var(--spacing-md);
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

p {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

/* --- 4. UTILITIES --- */
.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

.section {
  padding: var(--spacing-xl) 0;
  position: relative;
}

.text-center {
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1rem;
}

.btn-primary {
  background: var(--color-primary);
  color: white;
  border: 1px solid var(--color-primary);
  box-shadow: 0 4px 15px rgba(255, 0, 80, 0.4);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 0, 80, 0.5);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-main);
}

.btn-outline:hover {
  border-color: var(--color-text-main);
  background: rgba(255, 255, 255, 0.05);
}

/* --- 5. HEADER & NAV --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  background: rgba(5, 5, 5, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 50px;
  width: auto;
  display: block;
  /* Ensure it renders */
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

/* Ensure CTA inside nav looks good on desktop */
.nav-links .btn {
  margin-left: 1rem;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.nav-links a:hover {
  color: var(--color-text-main);
}

.mobile-menu-btn {
  display: none;
}

/* --- 6. HERO SECTION --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
  /* Offset for fixed nav */
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(-45deg, #050505, #1a050a, #2b000d, #050505);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
}

.hero-background::after {
  content: '';
  position: absolute;
  /* Default center position */
  top: var(--mouse-y, 50%);
  left: var(--mouse-x, 50%);
  transform: translate(-50%, -50%);
  width: 60vw;
  height: 60vh;
  /* Stronger blur and opacity as requested */
  background: radial-gradient(circle, rgba(255, 0, 80, 0.4), transparent 60%);
  filter: blur(100px);
  /* Smooth transition for the movement */
  transition: top 0.05s linear, left 0.05s linear;
  /* Responsive, no lag */
  animation: pulseGlow 8s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes pulseGlow {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0.3;
  }

  100% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.7;
  }
}

.hero-content {
  text-align: center;
  max-width: 800px;
  z-index: 1;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* --- 7. RESPONSIVE --- */
@media (max-width: 768px) {
  .nav-links {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    /* Full width */
    height: 100vh;
    /* Full height */
    background: rgba(5, 5, 5, 0.98);
    backdrop-filter: blur(15px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    padding: 2rem;
    z-index: 999;

    /* Animation definition */
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .nav-links.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
  }

  /* Mobile Links Styling */
  .nav-links a {
    font-size: 2rem;
    font-weight: 700;
  }

  .nav-links .btn {
    margin-left: 0;
    width: 100%;
    max-width: 300px;
    margin-top: 1rem;
  }

  .mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
  }
}

/* --- 7. UTILITIES CONTINUED --- */
.bg-surface {
  background-color: var(--color-surface);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mb-5 {
  margin-bottom: 3rem;
}

/* --- 8. CARDS --- */
.card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-glow);
  background: rgba(255, 255, 255, 0.05);
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--color-text-main);
}

.card p {
  color: var(--color-text-muted);
  font-size: 1rem;
  margin-bottom: 0;
}

/* Stat Cards */
.stat-card h3 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-primary);
}

.stat-card.highlight {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
  border-color: var(--color-primary);
}

/* Service Cards */
.icon-box {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  margin-bottom: 1.5rem;
}

/* --- 9. FAQ / ACCORDION --- */
.accordion {
  max-width: 800px;
  margin: 0 auto;
}

.accordion-item {
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 1rem;
}

.accordion-header {
  width: 100%;
  padding: 1.5rem 0;
  background: none;
  border: none;
  text-align: left;
  color: var(--color-text-main);
  font-size: 1.25rem;
  font-weight: 600;
  font-family: var(--font-heading);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-header::after {
  content: '+';
  font-weight: 400;
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.accordion-item.active .accordion-header::after {
  transform: rotate(45deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: var(--color-text-muted);
}

.accordion-item.active .accordion-body {
  max-height: 200px;
  /* Rough estimate, can be adjusted via JS */
  padding-bottom: 1.5rem;
}

/* --- NEW SECTIONS --- */

/* Process */
.process-card {
  text-align: center;
}

.step-number {
  font-size: 4rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.05);
  /* Subtle background number */
  line-height: 1;
  margin-bottom: -1rem;
  position: relative;
  z-index: 0;
}

.process-card h3 {
  position: relative;
  z-index: 1;
}

/* Testimonials */
.testimonial-card .stars {
  color: #fbbf24;
  /* Gold */
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.client-info {
  margin-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
}

.client-info strong {
  display: block;
  color: var(--color-text-main);
}

.client-info span {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* CTA Banner */
.cta-box {
  background: var(--gradient-primary);
  padding: 4rem 2rem;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 40px rgba(255, 0, 80, 0.3);
  position: relative;
  overflow: hidden;
}

.cta-box h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: white;
}

.cta-box p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.cta-box .btn-primary {
  background: white;
  color: var(--color-primary);
  border-color: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-box .btn-primary:hover {
  background: var(--color-surface);
  color: var(--color-primary);
  transform: translateY(-2px);
}

/* --- 10. FOOTER --- */
footer {
  border-top: 1px solid var(--color-border);
  padding: 5rem 0 2rem;
  background: var(--color-surface);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.footer-links ul li {
  margin-bottom: 0.75rem;
}

.footer-links a:hover {
  color: var(--color-primary);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-links a {
  font-size: 1.5rem;
  color: var(--color-text-muted);
}

.social-links a:hover {
  color: var(--color-white);
  transform: scale(1.1);
}

.copyright {
  text-align: center;
  border-top: 1px solid var(--color-border);
  padding-top: 2rem;
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

/* --- 11. ANIMATION UTILS --- */
[data-aos] {
  opacity: 0;
  transition-property: opacity, transform;
}

[data-aos].aos-animate {
  opacity: 1;
}

@media (max-width: 768px) {
  :root {
    --spacing-xl: 4rem;
    --spacing-md: 1.5rem;
  }

  h1 {
    font-size: 2.5rem !important;
  }

  h2 {
    font-size: 2rem !important;
  }



  .mobile-menu-btn {
    display: block !important;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    position: relative;
    z-index: 1001;
    /* Ensure above the menu */
  }

  .btn {
    padding: 0.8rem 1.5rem;
    /* Less bulky */
    font-size: 0.95rem;
  }

  .card {
    padding: 1.5rem !important;
  }

  .grid-3 {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    margin-top: 2rem !important;
  }

  .hero-content h1 {
    font-size: 2.5rem !important;
  }

  .hero-subtitle {
    font-size: 1rem !important;
  }

  .step-number {
    font-size: 3rem !important;
  }

  .footer-content {
    flex-direction: column !important;
    gap: 2rem !important;
    text-align: center !important;
  }

  .social-links {
    justify-content: center !important;
  }

  .navbar-content {
    padding: 0.5rem 0 !important;
  }
}