/* ========================================
   Agentic SDLC Microsite – Accenture x HDI
   Design: Refined Tech Editorial
   ======================================== */

:root {
  --purple-deep: #460073;
  --purple-primary: #A100FF;
  --purple-mid: #7500C0;
  --purple-light: #E6DCFF;
  --purple-wash: #F4EFFE;
  --lavender: #DCAFFF;
  --black: #0A0A0A;
  --grey-900: #1a1a1a;
  --grey-600: #6b6b6b;
  --grey-300: #c8c8c8;
  --grey-100: #f2f2f2;
  --white: #ffffff;

  --font-display: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--white);
  color: var(--grey-900);
  overflow-x: hidden;
}

/* Scroll reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Section label pill */
.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--purple-primary);
  border: 1px solid var(--purple-primary);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.section-label--light {
  color: var(--lavender);
  border-color: rgba(220, 175, 255, 0.4);
}

/* ===================== */
/* Navbar                */
/* ===================== */
.navbar {
  display: flex;
  align-items: center;
  padding: 0 2rem;
  height: 64px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.burger-icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.burger-icon span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: all 0.3s var(--ease-out-expo);
}

.burger-icon.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger-icon.active span:nth-child(2) {
  opacity: 0;
}

.burger-icon.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.company-icon {
  margin: 0 auto;
}

.company-icon img {
  height: 32px;
  display: block;
}

.menu {
  list-style: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100vh;
  background: var(--white);
  padding: 100px 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  box-shadow: 4px 0 30px rgba(0, 0, 0, 0.08);
  transform: translateX(-100%);
  transition: transform 0.4s var(--ease-out-expo);
  z-index: 999;
}

.menu.active {
  transform: translateX(0);
}

.menu li {
  border-bottom: 1px solid var(--grey-100);
}

.menu li a {
  display: block;
  text-decoration: none;
  color: var(--grey-900);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  padding: 1.2rem 0;
  transition: color 0.2s;
}

.menu li a:hover {
  color: var(--purple-primary);
}

/* ===================== */
/* Hero Section          */
/* ===================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 0;
  overflow: hidden;
  background: var(--purple-deep);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(161, 0, 255, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse 50% 80% at 20% 80%, rgba(117, 0, 192, 0.2) 0%, transparent 50%),
    linear-gradient(170deg, #460073 0%, #1a0033 40%, #0d001a 100%);
  z-index: 1;
}

/* Subtle grain texture */
.hero-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.5;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 0 8% 10%;
  max-width: 900px;
}

.hero-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lavender);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.3s forwards;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(56px, 10vw, 120px);
  line-height: 0.95;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeInUp 1s var(--ease-out-expo) 0.5s forwards;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  max-width: 560px;
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.7s forwards;
}

.hero-line {
  width: 60px;
  height: 3px;
  background: var(--purple-primary);
  margin-top: 3rem;
  opacity: 0;
  animation: fadeInUp 0.6s var(--ease-out-expo) 0.9s forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===================== */
/* CAL Intro Section     */
/* ===================== */
.cal-intro {
  background-color: var(--white);
  padding: 8% 8%;
}

.cal-intro-inner {
  display: flex;
  align-items: stretch;
  gap: 6%;
  max-width: 1200px;
  margin: 0 auto;
}

.cal-intro-image {
  flex: 0 0 200px;
}

.cal-intro-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.image-placeholder {
  width: 100%;
  height: 380px;
  background: linear-gradient(135deg, var(--purple-wash) 0%, var(--purple-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--purple-mid);
  border: 1.5px dashed var(--lavender);
  border-radius: 8px;
  padding: 1.5rem;
}

.cal-intro-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cal-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -0.01em;
  margin-bottom: 0.25rem;
}

.cal-role {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--purple-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.cal-divider {
  width: 40px;
  height: 2px;
  background: var(--purple-light);
  margin-bottom: 1.5rem;
}

.cal-message {
  font-size: 17px;
  line-height: 1.75;
  color: var(--grey-600);
  padding-left: 1.5rem;
  border-left: 3px solid var(--purple-light);
  margin-bottom: 1rem;
}

.cal-message:last-child {
  margin-bottom: 0;
}

.cal-outcomes {
  list-style: none;
  padding-left: 1.5rem;
  border-left: 3px solid var(--purple-light);
  margin-bottom: 1rem;
}

.cal-outcomes li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--grey-600);
  padding: 0.4rem 0;
  padding-left: 1rem;
  position: relative;
}

.cal-outcomes li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 6px;
  height: 6px;
  background: var(--purple-primary);
  border-radius: 50%;
}

.cal-outcomes li strong {
  color: var(--grey-900);
}

/* ===================== */
/* Why Accenture Section */
/* ===================== */
.why-accenture {
  background: var(--purple-deep);
  color: var(--white);
  padding: 8%;
  position: relative;
  overflow: hidden;
}

/* Decorative element */
.why-accenture::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(161, 0, 255, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.why-inner {
  max-width: none;
  position: relative;
  z-index: 1;
}

.why-accenture h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.why-intro {
  font-size: 18px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 300;
  max-width: 720px;
  margin-bottom: 2.5rem;
}

/* Layout: Carousel + Architecture image side by side */
.why-layout {
  display: flex;
  gap: 2.5rem;
  align-items: stretch;
}

/* Carousel */
.why-carousel {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.why-slides {
  display: flex;
  transition: transform 0.5s var(--ease-out-expo);
}

.why-slide {
  min-width: 100%;
  display: flex;
  align-items: stretch;
}

.why-slide-visual {
  flex: 0 0 38%;
  min-height: 360px;
  position: relative;
  overflow: hidden;
}

/* Slide visual SVGs */
.why-visual-svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 88%;
  height: 88%;
}

/* Slide 1: From Local to Enterprise */
.why-visual-1 {
  background: linear-gradient(145deg, #2d0050 0%, #1a002e 100%);
}

/* Slide 2: Agents Across the SDLC */
.why-visual-2 {
  background: linear-gradient(145deg, #1a002e 0%, #300055 100%);
}

/* Slide 3: Managed Context Layer */
.why-visual-3 {
  background: linear-gradient(145deg, #300055 0%, #1a002e 100%);
}

/* Slide 4: Proven at Scale */
.why-visual-4 {
  background: linear-gradient(145deg, #2d0050 0%, #1a002e 100%);
}

/* Slide content */
.why-slide-content {
  flex: 1;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.why-slide-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 42px;
  color: var(--purple-primary);
  opacity: 0.35;
  line-height: 1;
  display: block;
  margin-bottom: 1rem;
}

.why-slide-content h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  margin-bottom: 1rem;
  color: var(--white);
}

.why-slide-content p {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 300;
}

.why-slide-content p strong {
  font-weight: 600;
  color: rgba(255, 255, 255, 1);
}

/* Navigation */
.why-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.why-prev,
.why-next {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
}

.why-prev:hover,
.why-next:hover {
  background: rgba(161, 0, 255, 0.25);
  border-color: rgba(161, 0, 255, 0.4);
}

.why-counter {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  min-width: 3rem;
  text-align: center;
}

/* Architecture image beside carousel */
.why-image {
  flex: 0 0 340px;
  display: flex;
  align-items: center;
}

.why-image-frame {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.3),
    0 0 80px rgba(161, 0, 255, 0.08);
}

.why-image-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 11px 11px 0 0;
}

.why-image-caption {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
}

/* ===================== */
/* Video Section         */
/* ===================== */
.video-section {
  background-color: var(--grey-100);
  padding: 8%;
}

.video-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.video-section h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.02em;
  margin-bottom: 3rem;
  color: var(--grey-900);
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.video-item {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
}

.video-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(70, 0, 115, 0.1);
}

.video-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
}

.video-embed iframe,
.video-embed video {
  width: 100%;
  height: 100%;
  border: none;
  object-fit: cover;
  background: #000;
}

.video-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a0033 0%, var(--purple-deep) 50%, var(--purple-mid) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  padding: 1rem;
}

.play-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(161, 0, 255, 0.3);
  border: 2px solid rgba(161, 0, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--white);
  transition: background 0.3s, transform 0.3s;
}

.video-item:hover .play-icon {
  background: rgba(161, 0, 255, 0.5);
  transform: scale(1.08);
}

.video-meta {
  display: flex;
  gap: 1.2rem;
  padding: 1.5rem 2rem;
  align-items: flex-start;
}

.video-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 36px;
  color: var(--purple-light);
  line-height: 1;
  flex-shrink: 0;
}

.video-meta h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 0.4rem;
  color: var(--grey-900);
}

.video-meta p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--grey-600);
}

/* ===================== */
/* Kontakt Section       */
/* ===================== */
.kontakt-section {
  background-color: var(--white);
  padding: 8%;
}

.kontakt-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.kontakt-section h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.02em;
  margin-bottom: 3rem;
  color: var(--grey-900);
}

.kontakt-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.kontakt-card {
  padding: 2.5rem 2rem;
  border: 1px solid var(--grey-100);
  border-radius: 12px;
  transition: all 0.35s var(--ease-out-expo);
  position: relative;
}

.kontakt-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--purple-primary), var(--lavender));
  border-radius: 12px 12px 0 0;
  opacity: 0;
  transition: opacity 0.3s;
}

.kontakt-card:hover {
  border-color: var(--purple-light);
  box-shadow: 0 8px 32px rgba(70, 0, 115, 0.08);
}

.kontakt-card:hover::before {
  opacity: 1;
}

.kontakt-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--purple-wash);
  color: var(--purple-primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.kontakt-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.5rem;
}

.kontakt-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 0.3rem;
}

.kontakt-role {
  font-size: 13px;
  color: var(--grey-600);
  margin-bottom: 1.2rem;
  line-height: 1.4;
}

.kontakt-card a {
  color: var(--purple-primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.kontakt-card a:hover {
  color: var(--purple-deep);
}

/* ===================== */
/* Footer                */
/* ===================== */
.footer {
  background: var(--black);
  padding: 3rem 8%;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  height: 24px;
  filter: brightness(0) invert(1);
  opacity: 0.5;
}

.footer p {
  color: rgba(255, 255, 255, 0.35);
  font-size: 13px;
}

/* ===================== */
/* Tablet Responsive     */
/* ===================== */
@media (max-width: 1100px) {
  .why-layout {
    flex-direction: column;
    gap: 2rem;
  }

  .why-carousel {
    flex: 0 0 auto;
    width: 100%;
  }

  .why-image {
    flex: 0 0 auto;
    justify-content: center;
  }

  .why-image-frame {
    max-width: 480px;
  }

  .why-slide-visual {
    flex: 0 0 30%;
    min-height: 200px;
  }
}

@media (max-width: 900px) {
  .why-slide {
    flex-direction: column;
  }

  .why-slide-visual {
    flex: 0 0 auto;
    min-height: 180px;
  }

  .why-slide-content {
    padding: 2rem;
  }
}

/* ===================== */
/* Mobile Responsive     */
/* ===================== */
@media (max-width: 767px) {
  .hero {
    min-height: 85vh;
  }

  .hero-content {
    padding: 0 6% 15%;
  }

  .hero h1 {
    font-size: 52px;
  }

  .cal-intro {
    padding: 12% 6%;
  }

  .cal-intro-inner {
    flex-direction: column;
    gap: 2.5rem;
  }

  .cal-intro-image {
    flex: 0 0 auto;
    max-width: 260px;
  }

  .image-placeholder {
    height: 300px;
  }

  .why-accenture {
    padding: 12% 6%;
  }

  .why-slide-content {
    padding: 1.5rem;
  }

  .video-section {
    padding: 12% 6%;
  }

  .video-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .kontakt-section {
    padding: 12% 6%;
  }

  .kontakt-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .menu {
    width: 100%;
  }
}

/* ===================== */
/* Desktop               */
/* ===================== */
@media (min-width: 768px) {
  .hero {
    min-height: 100vh;
  }
}
