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

:root {
  --primary: #0097b2;
  --primary-dark: #007a91;
  --primary-light: #00b4d8;
  --accent: #6c5ce7;
  --gradient: linear-gradient(135deg, #0097b2, #6c5ce7);
  --gradient-hero: linear-gradient(135deg, #0a1628 0%, #0d2137 30%, #0c2a4a 60%, #0a1628 100%);
  --text: #1a1a2e;
  --text-secondary: #6b7280;
  --bg: #ffffff;
  --bg-light: #f8fafc;
  --bg-dark: #0a1628;
  --card-bg: #ffffff;
  --card-border: #e5e7eb;
  --radius: 16px;
  --radius-sm: 8px;
  --radius-lg: 24px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.1);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: #0097b2;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 10px 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 48px;
  transition: var(--transition);
}

.navbar.scrolled .nav-logo img {
  height: 40px;
}

.nav-actions {
  display: flex;
  gap: 8px;
}

.lang-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.lang-btn:hover,
.lang-btn.active {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 50%, rgba(0, 151, 178, 0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 50%, rgba(108, 92, 231, 0.12) 0%, transparent 60%);
  animation: heroPulse 8s ease-in-out infinite alternate;
}

@keyframes heroPulse {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-2%, 2%) scale(1.05); }
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.03)"/></svg>') repeat;
  background-size: 30px 30px;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 24px;
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-badge {
  display: inline-block;
  background: rgba(0, 151, 178, 0.2);
  border: 1px solid rgba(0, 151, 178, 0.4);
  color: var(--primary-light);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(40px, 8vw, 80px);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

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

.hero-subtitle {
  font-size: clamp(16px, 2.5vw, 20px);
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  background: var(--gradient);
  color: #fff;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 151, 178, 0.4);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: #fff;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: var(--transition);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.scroll-indicator {
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  position: relative;
}

.scroll-indicator::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 2px;
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50% { transform: translateX(-50%) translateY(12px); opacity: 0.3; }
}

/* ===== Section Common ===== */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-badge {
  display: inline-block;
  background: rgba(0, 151, 178, 0.1);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-title.light {
  color: #fff;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 48px;
}

.section-subtitle.light {
  color: rgba(255, 255, 255, 0.7);
}

/* ===== Products ===== */
.products {
  padding: 120px 0;
  background: var(--bg-light);
  text-align: center;
}

.products .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 16px;
}

.product-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: left;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
}

.product-card.animate-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.product-card:nth-child(2).animate-in {
  transition-delay: 0.15s;
}

.product-card:nth-child(3).animate-in {
  transition-delay: 0.3s;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.product-whilego::before {
  background: linear-gradient(90deg, #38707a, #4ecdc4);
}

.product-fallio::before {
  background: linear-gradient(90deg, #6c5ce7, #a29bfe);
}

.product-photloc::before {
  background: linear-gradient(90deg, #BB7ED8, #FFBD59);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.product-card.animate-in:hover {
  transform: translateY(-6px);
}

.product-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.product-whilego .product-icon {
  background: rgba(56, 112, 122, 0.1);
  color: #38707a;
}

.product-fallio .product-icon {
  background: rgba(108, 92, 231, 0.1);
  color: #6c5ce7;
}

.product-photloc .product-icon {
  background: rgba(187, 126, 216, 0.1);
  color: #BB7ED8;
}

.product-name {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 4px;
}

.product-tagline {
  font-size: 15px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 12px;
}

.product-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.product-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  background: var(--bg-light);
  color: var(--text);
  border: 1px solid var(--card-border);
  transition: var(--transition);
}

.product-link:hover {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

/* ===== Services ===== */
.services {
  padding: 120px 0;
  text-align: center;
}

.services .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 16px;
}

.service-card {
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  background: var(--bg-light);
  border: 1px solid var(--card-border);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(20px);
}

.service-card.animate-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-card:nth-child(2).animate-in {
  transition-delay: 0.15s;
}

.service-card:nth-child(3).animate-in {
  transition-delay: 0.3s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.service-card.animate-in:hover {
  transform: translateY(-4px);
}

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
  margin: 0 auto 20px;
}

.service-card h4 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.service-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== Contact ===== */
.contact {
  padding: 120px 0;
  background: var(--gradient-hero);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(0, 151, 178, 0.15) 0%, transparent 70%);
}

.contact .section-container {
  position: relative;
  z-index: 1;
}

.contact .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.btn-primary.btn-light {
  background: #fff;
  color: var(--text);
  font-size: 16px;
}

.btn-primary.btn-light:hover {
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.3);
}

/* ===== Footer ===== */
.footer {
  background: #060e1a;
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 32px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
  height: 40px;
  margin-bottom: 12px;
  opacity: 0.9;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.7;
  max-width: 300px;
}

.footer-links h5 {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  padding: 4px 0;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #fff;
}

.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 16px;
  transition: var(--transition);
}

.footer-socials a:hover {
  background: var(--primary);
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

/* ===== Scroll Animations ===== */
.section-badge,
.section-title {
  opacity: 0;
  transform: translateY(15px);
}

.section-badge.animate-in,
.section-title.animate-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .products-grid,
  .services-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  .products,
  .services,
  .contact {
    padding: 80px 0;
  }

  .product-card,
  .service-card {
    padding: 32px 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .nav-logo img {
    height: 36px;
  }

  .navbar.scrolled .nav-logo img {
    height: 32px;
  }

  .lang-btn {
    padding: 5px 10px;
    font-size: 12px;
  }
}
