/* Style rules for exoteka landing page - Modern, Sleek, Professional & High-tech */

/* --- Design Tokens --- */
:root {
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Color Palette (White Theme & High-Tech Blues/Teals) */
  --bg-primary: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.8);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  
  --text-primary: #0f172a; /* Slate 900 */
  --text-secondary: #475569; /* Slate 600 */
  --text-muted: #64748b; /* Slate 500 */
  
  --border-color: rgba(15, 23, 42, 0.06);
  --border-color-hover: rgba(11, 77, 197, 0.15);
  
  /* Accent Colors */
  --accent-blue-start: #00adef;
  --accent-blue-end: #0076a3;
  --accent-green-start: #00b894;
  --accent-green-end: #00d084;
  
  /* Brand color tokens for socials */
  --whatsapp-color: #25d366;
  --instagram-color: #e1306c;
  
  /* Animations */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  position: relative;
  padding: 1.5rem;
}

/* --- Layout Elements --- */

/* Canvas background */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: auto;
}

/* Faint grid overlay */
.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  z-index: -1;
  pointer-events: none;
}

/* Glassmorphic Container */
.main-container {
  width: 100%;
  max-width: 620px;
  padding: 2rem 1rem;
  z-index: 10;
  opacity: 0;
  transform: translateY(20px);
  animation: cardLiftoff 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  
  /* Removed bounding box to let components float directly on background */
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  box-shadow: none;
}

@keyframes cardLiftoff {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Header Section & Logo --- */
.header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.15rem;
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  user-select: none;
  cursor: pointer;
  transition: gap 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-container:hover {
  gap: 0.35rem;
}

/* Exact coloring matching logo image characters */
.logo-letter {
  display: inline-block;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo-container:hover .logo-letter {
  transform: scale(1.05);
}

.letter-e {
  background-image: linear-gradient(135deg, #00adef, #0076a3);
}

.letter-x {
  background-image: linear-gradient(135deg, #0b4dc5, #1d61d6);
  transform: rotate(-2deg);
}

.logo-container:hover .letter-x {
  transform: rotate(2deg) scale(1.08);
}

.letter-o {
  background-image: linear-gradient(135deg, #006fa6, #00a4d6);
}

.letter-t {
  background-image: linear-gradient(135deg, #094488, #0b509d);
}

.letter-e2 {
  background-image: linear-gradient(135deg, #008ee0, #00c2ff);
}

.letter-k {
  background-image: linear-gradient(135deg, #053a80, #0a4f9f);
}

.letter-a {
  background-image: linear-gradient(135deg, #007edf, #00b6f0);
}

.tagline {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.5rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  user-select: none;
  cursor: default;
}

.tagline-char {
  display: inline-block;
  font-weight: 300;
  opacity: 0;
  transform: translateY(8px);
  animation: taglineIntro 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(var(--char-index) * 0.03s);
  transition: 
    font-weight 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
    color 0.3s ease;
  /* Add margin right for letter spacing spacing */
  margin-right: 0.24em;
}

.tagline-char:last-child {
  margin-right: 0;
}

@keyframes taglineIntro {
  0% {
    opacity: 0;
    transform: translateY(8px);
    font-weight: 100;
  }
  50% {
    font-weight: 850;
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    font-weight: 400;
  }
}

/* --- Offerings Section --- */
.offerings-container {
  margin-bottom: 2.2rem;
}

.offerings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.offering-card {
  background-color: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid rgba(15, 23, 42, 0.05);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.02);
  border-radius: 18px;
  padding: 1.25rem;
  cursor: pointer;
  outline: none;
  text-align: left;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.offering-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-blue-start), var(--accent-blue-end));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.offering-card:hover,
.offering-card:focus-visible {
  background-color: var(--bg-card-hover);
  border-color: var(--border-color-hover);
  box-shadow: 
    0 10px 25px -5px rgba(0, 118, 163, 0.05),
    0 8px 16px -6px rgba(0, 118, 163, 0.03);
  transform: translateY(-2px);
}

.offering-card:hover::before,
.offering-card:focus-visible::before {
  opacity: 1;
}

/* Icon Styling */
.card-icon-container {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background-color: rgba(11, 77, 197, 0.05);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.75rem;
  color: var(--accent-blue-end);
  transition: var(--transition-smooth);
}

.offering-card:hover .card-icon-container,
.offering-card:focus-visible .card-icon-container {
  color: #ffffff;
  background-color: var(--accent-blue-end);
  transform: scale(1.05);
}

.card-icon {
  width: 18px;
  height: 18px;
  transition: transform 0.4s ease;
}

.offering-card:hover .card-icon {
  transform: rotate(5deg);
}

.offering-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

/* Expanding description area */
.offering-description-wrapper {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.offering-card:hover .offering-description-wrapper,
.offering-card:focus-visible .offering-description-wrapper,
.offering-card.active .offering-description-wrapper {
  max-height: 100px;
  opacity: 1;
  margin-top: 0.5rem;
}

.offering-description {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

/* --- Call to Action & Footer --- */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-container {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 1.8rem;
}

/* The Green Whatsapp CTA Button */
.quote-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 0.9rem 2.2rem;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent-green-start), var(--accent-green-end));
  color: #ffffff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 184, 148, 0.25);
  transition: var(--transition-smooth);
}

.quote-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    0 12px 28px rgba(0, 184, 148, 0.45),
    0 0 0 4px rgba(0, 208, 132, 0.15);
}

.quote-btn:active {
  transform: translateY(-1px) scale(0.99);
}

.btn-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
}

.btn-icon {
  transition: transform 0.3s ease;
}

.quote-btn:hover .btn-icon {
  transform: scale(1.1) rotate(-8deg);
}

/* Lens flare shine overlay animation on hover */
.btn-shine {
  position: absolute;
  top: 0;
  left: -70%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  z-index: 1;
}

.quote-btn:hover .btn-shine {
  animation: btnShineFlash 0.75s ease forwards;
}

@keyframes btnShineFlash {
  to {
    left: 120%;
  }
}

/* Contact and Social Bar */
.contact-bar {
  width: 100%;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.email-link {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  position: relative;
  transition: var(--transition-fast);
}

.email-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1.5px;
  bottom: -2px;
  left: 50%;
  background-color: var(--accent-blue-end);
  transition: var(--transition-smooth);
  transform: translateX(-50%);
}

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

.email-link:hover::after {
  width: 100%;
}

.divider {
  width: 1px;
  height: 20px;
  background-color: var(--border-color);
}

.socials-container {
  display: flex;
  gap: 0.75rem;
}

/* Social Buttons */
.social-icon-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(15, 23, 42, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.social-icon-btn:hover {
  transform: scale(1.1) translateY(-2px);
  background-color: #ffffff;
}

.social-icon-btn.whatsapp:hover {
  color: var(--whatsapp-color);
  border-color: rgba(37, 211, 102, 0.3);
  box-shadow: 0 6px 12px rgba(37, 211, 102, 0.15);
}

.social-icon-btn.instagram:hover {
  color: var(--instagram-color);
  border-color: rgba(225, 48, 108, 0.3);
  box-shadow: 0 6px 12px rgba(225, 48, 108, 0.15);
}

/* --- Responsive Layout --- */
@media (max-width: 520px) {
  body {
    padding: 1rem;
    align-items: flex-start;
  }
  
  .main-container {
    padding: 2.2rem 1.5rem 1.8rem 1.5rem;
    margin-top: 10vh; /* Lifted up slightly on small mobile devices */
    border-radius: 22px;
  }
  
  .logo-container {
    font-size: 2.8rem;
  }
  
  .tagline {
    font-size: 0.75rem;
  }
  
  .tagline-char {
    margin-right: 0.18em;
  }
  
  .offerings-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .offering-card {
    padding: 1.1rem;
  }
  
  .offering-card:hover .offering-description-wrapper,
  .offering-card:focus-visible .offering-description-wrapper {
    max-height: 120px;
  }
  
  .contact-bar {
    flex-direction: column;
    gap: 1rem;
    padding-top: 1.25rem;
  }
  
  .divider {
    display: none;
  }
}
