/* --- VARIABLES --- */
:root {
  --bg-color: #f8f0fc; /* Light Lilac Background */
  --primary: #c084fc; /* Bright Purple */
  --dark: #4a1d96; /* Deep Purple Text */
  --glass: rgba(255, 255, 255, 0.7);
  --glass-border: 1px solid rgba(255, 255, 255, 0.8);
  --shadow: 0 8px 32px rgba(192, 132, 252, 0.15);
}

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

body {
  font-family: "Outfit", sans-serif;
  background: var(--bg-color);
  color: var(--dark);
  overflow-x: hidden;
  line-height: 1.6;
}

/* --- BACKGROUND BLOBS --- */
.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  opacity: 0.6;
}
.blob-1 {
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: #e9d5ff;
}
.blob-2 {
  bottom: -10%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  background: #fad0c4;
}

/* --- NAVIGATION --- */
.glass-nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 900px;
  height: 60px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  border: var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.5rem;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.logo {
  font-family: "Playfair Display", serif;
  font-weight: bold;
  font-size: 1.4rem;
}
.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-links a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  font-size: 0.95rem;
}
.btn-talk {
  background: var(--dark);
  color: white;
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.9rem;
}

/* --- HERO SECTION --- */
.hero-section {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 80px;
}

.hero-content {
  max-width: 800px;
  padding: 1rem;
}
.pill {
  background: rgba(255, 255, 255, 0.5);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  border: 1px solid #fff;
  display: inline-block;
  margin-bottom: 1rem;
}
h1 {
  font-family: "Playfair Display", serif;
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}
.gradient-text {
  background: linear-gradient(90deg, #c084fc, #f472b6);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
  font-weight: 700;
}
.hero-buttons {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* --- BUTTONS --- */
.btn-primary {
  background: var(--dark);
  color: white;
  padding: 1rem 2rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 5px 15px rgba(74, 29, 150, 0.2);
  transition: transform 0.2s;
}
.btn-secondary {
  background: white;
  color: var(--dark);
  padding: 1rem 2rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid #fff;
  transition: transform 0.2s;
}
.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-3px);
}

/* --- BENTO GRID LAYOUT --- */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}
.section-title {
  text-align: center;
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: var(--glass-border);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

/* Specific Card Layouts */
.profile-card {
  grid-column: span 1;
  text-align: center;
}
.profile-img {
  width: 180px;
  height: 180px;
  border-radius: 40%;
  object-fit: cover;
  border: 3px solid white;
  margin-bottom: 1rem;
}

.story-card {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.tech-card {
  grid-column: span 1.5;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.tags span {
  background: white;
  padding: 5px 10px;
  border-radius: 10px;
  font-size: 0.8rem;
}

/* --- SERVICES SECTION  --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.service-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: white;
  width: 60px;
  height: 60px;
  line-height: 60px;
  border-radius: 50%;
  margin: 0 auto 1rem auto;
  box-shadow: 0 5px 15px rgba(192, 132, 252, 0.2);
}

/* --- TESTIMONIALS SECTION --- */
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.testimonial-card {
  background: white;
  font-style: italic;
  border-left: 4px solid var(--primary);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.client-info {
  margin-top: 1rem;
  display: block;
  font-style: normal;
  font-size: 0.9rem;
}
.client-info span {
  display: block;
  color: var(--primary);
  font-size: 0.8rem;
}

/* --- PROJECTS GRID  --- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.project-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: var(--dark);
  box-shadow: var(--shadow);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  display: block;
}
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(192, 132, 252, 0.25);
}

.project-image {
  height: 220px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.screenshot {
  width: 85%;
  height: 85%;
  object-fit: cover;
  object-position: top;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-card:hover .screenshot {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.project-info {
  padding: 1.5rem;
}
.mini-tags span {
  font-size: 0.75rem;
  color: #666;
  background: #f0f0f0;
  padding: 2px 8px;
  border-radius: 5px;
  margin-right: 5px;
}

/* --- FOOTER --- */
footer {
  padding: 4rem 1rem;
  text-align: center;
}
.footer-glass {
  max-width: 600px;
  margin: 0 auto;
  padding: 3rem;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 30px;
}
.big-btn {
  display: inline-block;
  margin: 2rem 0;
}
.socials {
  margin-bottom: 1.5rem;
}
.socials a {
  margin: 0 10px;
  color: var(--dark);
  font-weight: bold;
  text-decoration: none;
}

.footer-credit {
  font-size: 0.85rem;
  color: #888;
  letter-spacing: 0.5px;
}

.footer-credit a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.footer-credit a:hover {
  color: var(--primary); /* Changes to your signature purple on hover */
}

/* --- VIDEO PITCH SECTION --- */
.video-container {
  max-width: 800px;
  margin: 0 auto 4rem auto;
  padding: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.video-wrapper {
  width: 100%;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(74, 29, 150, 0.15);
  background: black;
}

video {
  width: 100%;
  height: auto;
  display: block;
}

/* --- METRICS SECTION --- */
.metrics-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 1.5rem;
  margin-top: 2rem;
  width: 100%;
}

.metric-card {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  padding: 2rem 1rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.metric-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.4);
  border-color: #c084fc;
  box-shadow: 0 15px 40px rgba(192, 132, 252, 0.3);
}

.metric-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.metric-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #4a1d96, #c084fc);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.2rem;
}

.metric-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #555;
}

/* --- BLOG MODAL (FIXED & RESPONSIVE) --- */
.modal-overlay {
  width: 100% !important;
  height: 100% !important;
  position: fixed !important;
  inset: 0;
  z-index: 10000 !important;
  display: grid !important;
  justify-content: center;
  align-items: center;
  background: rgba(74, 29, 150, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Animation State: Visible (Active) */
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #ffffff;
  width: 90%;
  max-width: 700px;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: 24px;
  margin: auto !important;
  padding: 2.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  position: relative;

  /* Entry Animation */
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-content {
  transform: translateY(0) scale(1);
}

/* --- MODAL TYPOGRAPHY --- */
#modal-title {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  color: var(--dark);
  margin-top: 0;
  line-height: 1.3;
}

#modal-date {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #888;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-left: 3px solid var(--primary);
  padding-left: 10px;
}

#modal-body {
  font-size: 1rem;
  line-height: 1.8;
  color: #4a4a4a;
}

#modal-body p {
  margin-bottom: 1rem;
}

/* Close Button (The 'X') */
.close-modal {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 2rem;
  color: #ccc;
  cursor: pointer;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
  line-height: 1;
}

.close-modal:hover {
  color: var(--dark);
  transform: rotate(90deg);
}

/* --- PREMIUM "READ STORY" LINK --- */
.read-link {
  display: inline-flex;
  align-items: center;
  margin-top: 1rem;

  /* Typography */
  text-decoration: none;
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 1px;

  position: relative;
  transition: color 0.3s ease;
}

/* The Arrow Animation */
.read-link::after {
  content: "→";
  font-size: 1.2rem;
  margin-left: 8px;
  transition: transform 0.3s ease;
  display: inline-block;
}

.read-link:hover {
  color: var(--primary);
}

.read-link:hover::after {
  transform: translateX(6px);
}

/* --- MOBILE TWEAKS --- */
@media (max-width: 600px) {
  .modal-content {
    padding: 1.5rem;
    width: 95%;
  }
  #modal-title {
    font-size: 1.5rem;
  }
}

/* RESPONSIVE: Stack on mobile */
@media (max-width: 900px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 600px) {
  .metrics-grid {
    grid-template-columns: 1fr !important;
  }
}

/* --- MOBILE MENU SYSTEM --- */

.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  z-index: 2001;
}

.hamburger .bar {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--dark);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 2000;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;

  /* Slide Animation Setup */
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Active State: Menu Slides Down */
.mobile-menu.active {
  transform: translateY(0);
}

/* Links inside the menu */
.mobile-link {
  font-family: "Playfair Display", serif;
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--dark);
  text-decoration: none;
  transition: color 0.3s;
}

.mobile-link:hover {
  color: var(--primary);
}

/* --- HAMBURGER ANIMATION (Turns into X) --- */
.hamburger.active .bar:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* --- RESPONSIVE MOBILE  --- */
@media (max-width: 768px) {
  .glass-nav {
    width: 95%;
    padding: 0 1rem;
  }
  .nav-links {
    display: none;
  }
  h1 {
    font-size: 2.2rem;
  }

  .bento-grid {
    display: flex;
    flex-direction: column;
  }
  .tech-card {
    grid-column: span 1;
  }

  .hero-buttons {
    flex-direction: column;
  }
  .btn-primary,
  .btn-secondary {
    width: 100%;
    display: block;
  }
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .hamburger {
    display: flex;
  }
  .nav-links {
    display: none;
  }

  .glass-nav .btn-talk {
    display: none;
  }
}
