/* ========================================
   CSS Variables / Design Tokens
   ======================================== */
:root {
  /* Brand Colors */
  --blue-light: #85a1b5;
  --blue-mid: #74b6f1;
  --blue-dark: #567b95;
  --blue-darker: #20293a;

  /* System Colors */
  --background: #f5f7f9;
  --foreground: #20293a;
  --card: #ffffff;
  --card-foreground: #20293a;
  --primary: #74b6f1;
  --primary-foreground: #ffffff;
  --secondary: #85a1b5;
  --muted: #f1f5f9;
  --muted-foreground: #64748b;
  --border: #e2e8f0;

  /* Gradients */
  --gradient-highlight: linear-gradient(135deg, #74b6f1 0%, #3864e3 100%);
  --gradient-hero-bg: linear-gradient(180deg, #f5f7f9 0%, #e8f0f5 100%);

  /* Shadows */
  --shadow-button: 0 4px 14px -2px rgba(56, 100, 227, 0.4);
  --shadow-card: 0 4px 24px -4px rgba(32, 41, 58, 0.08);
  --shadow-card-hover: 0 8px 32px -4px rgba(32, 41, 58, 0.12);

  /* Spacing */
  --container-padding: 1.5rem;
  --radius: 0.5rem;
}

@media (min-width: 640px) {
  :root {
    --container-padding: 2rem;
  }
}

@media (min-width: 1024px) {
  :root {
    --container-padding: 4rem;
  }
}

/* ========================================
   Reset & Base Styles
   ======================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ========================================
   Utility Classes
   ======================================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.hidden {
  display: none !important;
}

.text-gradient {
  background: var(--gradient-highlight);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 9999px;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--gradient-highlight);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-button);
}

.btn-primary:hover {
  opacity: 0.9;
  transform: scale(1.05);
}

.btn-secondary {
  background: var(--card);
  color: var(--foreground);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.btn-secondary:hover {
  background: var(--muted);
}

/* ========================================
   Header
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding-right: 13%;
}

@media (min-width: 1024px) {
  .header-inner {
    height: 80px;
  }
}

.logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.025em;
}

.logo-y, .logo-way {
  color: var(--blue-darker);
}

.logo-onder {
  color: var(--blue-mid);
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-desktop a {
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--foreground);
}

.nav-desktop a:hover {
  color: var(--primary);
}

.mobile-menu-btn {
  display: block;
  padding: 0.5rem;
  color: var(--foreground);
  margin-left: 210px !important;
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

.nav-mobile {
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.nav-mobile a {
  display: block;
  padding: 0.5rem 0;
  font-weight: 500;
  color: var(--muted-foreground);
}

.nav-mobile a:first-child {
  color: var(--foreground);
}

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

/* ========================================
   Hero Section
   ======================================== */
.hero {
  padding-top: 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero-bg);
}

@media (min-width: 1024px) {
  .hero {
    padding-top: 96px;
  }
}

.hero .container {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

@media (min-width: 1024px) {
  .hero .container {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .hero-content {
    gap: 1.5rem;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  background: rgba(116, 182, 241, 0.1);
  border: 1px solid rgba(116, 182, 241, 0.2);
  width: fit-content;
}

.badge svg {
  color: var(--primary);
}

.badge span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-title {
  font-size: 1.5rem;
  line-height: 1.1;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 1.875rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 2.25rem;
  }
}

.hero-description {
  font-size: 1.1rem;
  color: var(--muted-foreground);
  max-width: 28rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.5rem;
}

/* Hero Images - Overlapping Layout */
.hero-images-overlap {
  position: relative;
  width: 53%;
  /* Taller container to support portrait (height > width) mockup images */
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 640px) {
  .hero-images-overlap {
    height: 400px;
  }
}

@media (min-width: 1024px) {
  .hero-images-overlap {
    height: 480px;
  }
}

/* Back Image - Abstract (slightly right angle) */
.hero-image-back {
  position: absolute;
  /* Back/right image sits ~1/3 higher than the left/front image */
  right: -29%;
  top: 36%;
  transform: translateY(-50%) rotate(5deg);
  z-index: 1;
}

.hero-image-back img {
  /* Portrait crop: height > width */
  width: 180px;
  height: 270px;
  object-fit: cover;
  border-radius: 0.75rem;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.15));
}
@media (max-width: 480px) {
  .hero-image-front {
    left: 0 !important;
    top: 65% !important;
  }
  .hero-image-back {
    right: -63% !important;
  }

  .hero-images-overlap {
    width: 55% !important;
  }

  .header-inner {
    justify-content: flex-start !important; ;
  }

}

@media (min-width: 640px) {
  .hero-image-back img {
    width: 230px;
    height: 340px;
  }
  .hero-image-front {
    left: 0 !important;
  }
}

@media (min-width: 1024px) {
  .hero-image-back img {
    width: 200px;
    height: 280px;
  }
}

/* Front Image - Phones (slightly left angle, overlapping) */
.hero-image-front {
  position: absolute;
  /* Left/front image is ~1/3 off-canvas and slightly tilted left */
  left: -28%;
  top: 53%;
  transform: translateY(-50%) rotate(-5deg);
  z-index: 2;
}

.hero-image-front img {
  /* Portrait crop: height > width */
  width: 210px;
  height: 310px;
  object-fit: cover;
  border-radius: 1rem;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.2));
}

@media (min-width: 640px) {
  .hero-image-front {
    left: -18%;
  }
  .hero-image-front img {
    width: 230px;
    height: 340px;
  }
}

@media (min-width: 1024px) {
  .hero-image-front {
    left: 23%;
  }
  .hero-image-front img {
    width: 200px;
    height: 293px;
  }
}

.hero-glow {
  position: absolute;
  inset: -30%;
  background: rgba(116, 182, 241, 0.3);
  filter: blur(50px);
  border-radius: 50%;
  z-index: -1;
  animation: glowPulse 3s ease-in-out infinite;
}

.hero-glow-secondary {
  position: absolute;
  inset: -76% -128% -10% -47%;
  background: rgba(56, 100, 227, 0.2);
  filter: blur(40px);
  border-radius: 50%;
  z-index: -1;
}

/* ========================================
   Who We Are Section
   ======================================== */
.who-we-are {
  padding: 4rem 0;
  background: var(--background);
}

@media (min-width: 1024px) {
  .who-we-are {
    padding: 6rem 0;
  }
}

.who-we-are-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .who-we-are-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.who-image-wrapper {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.who-image {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.who-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(32, 41, 58, 0.9), transparent);
}

.who-image-overlay h3 {
  color: var(--primary-foreground);
  font-size: 0.875rem;
  font-weight: 600;
}

.who-image-overlay p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.75rem;
}

.who-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.section-title {
  font-size: 1.25rem;
  line-height: 1.2;
}

@media (min-width: 640px) {
  .section-title {
    font-size: 1.5rem;
  }
}

.who-description {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.who-description p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.7;
}

.quote-box {
  border-left: 4px solid var(--primary);
  padding: 0.75rem 1rem;
  background: var(--muted);
  border-radius: 0 0.5rem 0.5rem 0;
}

.quote-box p {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
}

/* ========================================
   What We Provide Section
   ======================================== */
.what-we-provide {
  padding: 4rem 0;
  background: #eff6ff; /* bg-blue-50 equivalent */
}

@media (min-width: 1024px) {
  .what-we-provide {
    padding: 6rem 0;
  }
}

.section-header {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 3rem;
}

.section-title-center {
  font-size: 1.25rem;
  margin-top: 0.75rem;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .section-title-center {
    font-size: 1.5rem;
  }
}

.section-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.7;
}

.pillars-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .pillars-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pillar-card {
  background: var(--card);
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(226, 232, 240, 0.5);
  transition: box-shadow 0.3s ease;
}

.pillar-card:hover {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.pillar-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: #93c5fd; /* bg-blue-300 equivalent */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.pillar-icon svg {
  color: var(--primary-foreground);
}

.pillar-card h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.pillar-card p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.pillar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  transition: gap 0.3s ease;
}

.pillar-card:hover .pillar-link {
  gap: 0.75rem;
}

/* ========================================
   Contact Section
   ======================================== */
.contact {
  padding: 4rem 0;
  background: var(--background);
}

@media (min-width: 1024px) {
  .contact {
    padding: 6rem 0;
  }
}

.contact-box {
  display: grid;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-card-hover);
}

@media (min-width: 1024px) {
  .contact-box {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-info {
  background: var(--blue-darker);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .contact-info {
    padding: 2.5rem;
  }
}

.contact-info h2 {
  font-size: 1.25rem;
  color: var(--primary-foreground);
}

@media (min-width: 640px) {
  .contact-info h2 {
    font-size: 1.5rem;
  }
}

.contact-description {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
}

.contact-tagline {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
}

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

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.contact-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: rgba(116, 182, 241, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  color: var(--primary);
}

.contact-label {
  display: block;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

.contact-item a,
.contact-item p {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary-foreground);
}

.contact-item a:hover {
  color: var(--primary);
}

.contact-line {
  width: 3rem;
  height: 0.25rem;
  background: var(--gradient-highlight);
  border-radius: 9999px;
}

.contact-form-wrapper {
  background: var(--blue-dark); /* #567b95 */
  padding: 1.5rem;
}

@media (min-width: 1024px) {
  .contact-form-wrapper {
    padding: 2.5rem;
  }
}

.form-row {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 0.375rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--foreground);
  font-family: inherit;
  transition: all 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted-foreground);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(116, 182, 241, 0.2);
}

.form-group textarea {
  resize: none;
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background: var(--blue-dark); /* #567b95 */
  padding: 2.5rem 0;
}

@media (min-width: 1024px) {
  .footer {
    padding: 3.5rem 0;
  }
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

.footer-logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.025em;
}

.footer-logo .logo-y,
.footer-logo .logo-way {
  color: var(--primary-foreground);
}

.footer-logo .logo-onder {
  color: var(--primary);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}

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

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

.footer-info p {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-info a {
  color: rgba(255, 255, 255, 0.6);
}

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

/* ========================================
   Animations
   ======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content {
  animation: fadeInUp 0.6s ease-out;
}

.hero-image-wrapper {
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

@keyframes glowPulse {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.8;
  }
}

.hero-glow {
  animation: glowPulse 3s ease-in-out infinite;
}
