/* ==========================================================================
   iA Tech - Design System & Modern Styles
   ========================================================================== */

:root {
  --primary-blue: #0033a0;
  --primary-dark: #070d19;
  --bg-dark: #0b132b;
  --bg-card: rgba(15, 23, 42, 0.75);
  --cyan-accent: #00a3e0;
  --cyan-bright: #38bdf8;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-light: rgba(255, 255, 255, 0.1);
  --border-glow: rgba(0, 163, 224, 0.4);
  --font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  background: radial-gradient(circle at 50% 0%, #1c2d5a 0%, #0b132b 70%);
}

/* Background Ambient Glow Effects */
.ambient-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 1000px;
  background: 
    radial-gradient(circle at 20% 20%, rgba(0, 163, 224, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 30%, rgba(0, 51, 160, 0.2) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* Header & Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(11, 19, 43, 0.85);
  border-bottom: 1px solid var(--border-light);
  padding: 0.85rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo-box {
  background: #ffffff;
  padding: 6px 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.nav-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--cyan-bright);
}

.badge-status {
  background: rgba(0, 163, 224, 0.15);
  color: var(--cyan-bright);
  border: 1px solid rgba(0, 163, 224, 0.3);
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background-color: var(--cyan-bright);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--cyan-bright);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
  100% { opacity: 1; transform: scale(1); }
}

/* Hero Section */
.hero {
  padding-top: 9rem;
  padding-bottom: 5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Logo Presentation Card - White Background to match logo.png */
.hero-logo-wrapper {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 163, 224, 0.25);
  margin-bottom: 2.5rem;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  animation: float 6s ease-in-out infinite;
  border: 4px solid rgba(255, 255, 255, 0.9);
}

.hero-logo-img {
  width: 240px;
  height: 240px;
  max-width: 100%;
  object-fit: contain;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, var(--cyan-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  max-width: 900px;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 750px;
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 0.85rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-blue), var(--cyan-accent));
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(0, 163, 224, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 163, 224, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-light);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--cyan-accent);
  color: var(--cyan-bright);
}

/* Migration Announcement Bar */
.migration-notice {
  margin: 3rem 0;
  background: linear-gradient(90deg, rgba(0, 51, 160, 0.2), rgba(0, 163, 224, 0.2));
  border: 1px solid rgba(0, 163, 224, 0.3);
  border-radius: 16px;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  backdrop-filter: blur(10px);
}

.notice-icon {
  font-size: 1.8rem;
  color: var(--cyan-bright);
  flex-shrink: 0;
}

.notice-text h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.2rem;
}

.notice-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Section Header */
.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-tag {
  color: var(--cyan-bright);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #ffffff;
}

/* About / Highlight Cards */
.grid-about {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card-about {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 2rem;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.card-about:hover {
  border-color: var(--border-glow);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.about-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(0, 163, 224, 0.15);
  color: var(--cyan-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.card-about h3 {
  font-size: 1.25rem;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.card-about p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Products Section */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(12px);
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue), var(--cyan-accent));
  opacity: 0.7;
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-glow);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 163, 224, 0.2);
}

.product-card:hover::before {
  opacity: 1;
  height: 6px;
}

.product-badge {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  color: var(--cyan-bright);
}

.product-badge.hardware {
  background: rgba(234, 179, 8, 0.15);
  color: #facc15;
}

.product-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.product-description {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.product-status {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #22c55e;
}

/* Contact Section (Email Obfuscation UI) */
.contact-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(11, 19, 43, 0.95));
  border: 1px solid var(--border-glow);
  border-radius: 24px;
  padding: 3rem 2rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(16px);
}

.contact-icon {
  font-size: 2.5rem;
  color: var(--cyan-bright);
  margin-bottom: 1rem;
}

.contact-title {
  font-size: 1.8rem;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.contact-text {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1rem;
}

.email-obfuscated-container {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  padding: 0.75rem 1.25rem;
  border-radius: 14px;
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: center;
}

.email-display {
  font-family: monospace;
  font-size: 1.05rem;
  color: var(--cyan-bright);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.btn-copy {
  background: var(--cyan-accent);
  color: #ffffff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-copy:hover {
  background: #008cc2;
}

/* Toast alert for copy notification */
.toast-copied {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--cyan-accent);
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 1000;
}

.toast-copied.show {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
footer {
  border-top: 1px solid var(--border-light);
  padding: 2.5rem 0;
  margin-top: 4rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-logo {
  background: #ffffff;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 1rem;
}

.footer-logo img {
  height: 28px;
  width: auto;
  vertical-align: middle;
}

/* Responsive Media Queries */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-logo-img {
    width: 170px;
    height: 170px;
  }

  .nav-links {
    display: none; /* simple mobile view */
  }

  .migration-notice {
    flex-direction: column;
    text-align: center;
  }

  .email-obfuscated-container {
    flex-direction: column;
  }
}
