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

:root {
  --bg-primary: #1e2225;
  --bg-secondary: #131618;
  --text-main: #f5f7f8;
  --text-muted: #9eabb5;
  --teal-accent: #02c39a;
  --teal-glow: #00f5d4;
  --blue-accent: #028090;
  --dark-accent: #4a4a4a;
  --font-family: 'Plus Jakarta Sans', sans-serif;
  --card-border: rgba(0, 245, 212, 0.15);
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-secondary);
  background-image: radial-gradient(circle at 70% 30%, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

/* Repeating Hexagonal/Honeycomb Mesh Background */
.hex-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  opacity: 0.05;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='98' viewBox='0 0 56 98'%3E%3Cpath d='M28 0 L56 16.16 L56 48.49 L28 64.65 L0 48.49 L0 16.16 Z M28 98 L56 81.84 L56 49.51 L28 33.35 L0 49.51 L0 81.84 Z' fill='none' stroke='%2300f5d4' stroke-width='1.5'/%3E%3C/svg%3E");
  mask-image: linear-gradient(to right, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 100%);
  z-index: 1;
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 2;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 0 8px rgba(0, 245, 212, 0.3));
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #ffffff;
  line-height: 1.1;
}

.logo-subtitle {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  color: var(--text-muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--teal-glow);
}

.nav-btn {
  background: linear-gradient(135deg, var(--blue-accent) 0%, var(--teal-accent) 100%);
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(2, 195, 154, 0.2);
  transition: all 0.3s ease;
}

.nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 245, 212, 0.4);
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 60px 0 100px 0;
  gap: 60px;
}

.hero-graphic {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.main-illustration {
  width: 100%;
  max-width: 480px;
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
  animation: float 6s infinite ease-in-out;
}

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

.hero-content {
  flex: 1.1;
  padding-left: 20px;
}

.hero-title {
  font-size: 58px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  color: #ffffff;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 540px;
  font-weight: 400;
}

.hero-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--blue-accent) 0%, var(--teal-accent) 100%);
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 16px 36px;
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(2, 195, 154, 0.3);
  transition: all 0.3s ease;
}

.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 245, 212, 0.5);
}

/* Services Grid & Glassmorphism Cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding-bottom: 120px;
}

.card {
  position: relative;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Card Glow Outline */
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.1), rgba(0, 245, 212, 0.05));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--card-border);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 245, 212, 0.15);
}

.card-glow {
  position: absolute;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(0, 245, 212, 0.12) 0%, rgba(0,0,0,0) 70%);
  top: -75px;
  right: -75px;
  pointer-events: none;
  transition: all 0.5s ease;
}

.card:hover .card-glow {
  transform: scale(1.5);
  background: radial-gradient(circle, rgba(0, 245, 212, 0.2) 0%, rgba(0,0,0,0) 70%);
}

.card-content {
  padding: 40px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-icon-wrapper {
  margin-bottom: 28px;
  display: inline-flex;
}

.card-icon {
  width: 52px;
  height: 52px;
  filter: drop-shadow(0 0 8px rgba(0, 245, 212, 0.4));
}

.card-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #ffffff;
  margin-bottom: 16px;
  line-height: 1.3;
}

.card-description {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

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

.socials {
  display: flex;
  gap: 20px;
}

.social-icon {
  color: var(--text-muted);
  transition: color 0.3s ease, transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-icon:hover {
  color: var(--teal-glow);
  transform: translateY(-2px);
}

.footer-links {
  display: flex;
  gap: 30px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.3s ease;
}

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

/* Mobile & Tablet Responsiveness */
@media (max-width: 1024px) {
  .hero {
    flex-direction: column-reverse;
    text-align: center;
    gap: 40px;
  }
  
  .hero-content {
    padding-left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-title {
    font-size: 48px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .card-content {
    padding: 30px;
  }
}

@media (max-width: 768px) {
  .header {
    flex-direction: column;
    gap: 20px;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }

  .hero-title {
    font-size: 38px;
  }

  .container {
    padding: 0 20px;
  }

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