* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Deep Ocean Theme Colors */
  --glacier: #e8f4f8;
  --frost: #d4e8f0;
  --steel: #b8d4e1;
  --harbor: #7ba7bc;
  --ocean: #4a90a4;
  --tide: #2c5f6f;
  --navy: #1a3f4b;
  --depth: #0d2830;
  --obsidian: #050f13;
  --storm: #5b6e75;
  --slate: #3e4f56;
  --timber: #8b7355;

  /* Semantic Colors */
  --primary: var(--tide);
  --primary-dark: var(--navy);
  --primary-darker: var(--depth);
  --secondary: var(--ocean);
  --accent: var(--timber);
  --light: var(--glacier);
  --light-2: var(--frost);
  --dark: var(--obsidian);
  --text-primary: var(--obsidian);
  --text-secondary: var(--slate);
  --border: var(--steel);
}

body {
  font-family: "Sarabun", sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--light);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navbar */
.navbar {
  background: linear-gradient(135deg, var(--depth) 0%, var(--navy) 100%);
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo {
  height: 60px;
  width: auto;
}

.brand-text h1 {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0;
}

.brand-text p {
  color: var(--frost);
  font-size: 0.9rem;
  margin: 0;
}

.nav-menu {
  display: flex;
  gap: 15px;
  align-items: center;
}

.user-welcome {
  color: white;
  margin-right: 10px;
}

/* Buttons */
.btn {
  padding: 10px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--ocean);
  color: white;
  border-color: var(--ocean);
}

.btn-primary:hover {
  background: var(--tide);
  border-color: var(--tide);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74, 144, 164, 0.4);
}

.btn-outline {
  background: transparent;
  color: white;
  border-color: white;
}

.btn-outline:hover {
  background: white;
  color: var(--primary);
}

.btn-outline-white {
  background: transparent;
  color: white;
  border-color: white;
}

.btn-outline-white:hover {
  background: white;
  color: var(--primary);
}

.btn-large {
  padding: 15px 35px;
  font-size: 1.1rem;
}

/* Hero Section */
.hero {
  background: linear-gradient(
    135deg,
    var(--depth) 0%,
    var(--navy) 50%,
    var(--tide) 100%
  );
  color: white;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
  opacity: 0.3;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 30% 50%,
    rgba(74, 144, 164, 0.2) 0%,
    transparent 50%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--frost);
}

.hero-description {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  line-height: 1.8;
  color: var(--light-2);
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.wave-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 60px;
}

.wave-divider path {
  fill: var(--light);
}

/* Services Section */
.services {
  padding: 80px 0;
  background: var(--light);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: var(--primary-dark);
  margin-bottom: 1rem;
  font-weight: 700;
}

.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 3rem;
}

.service-card {
  background: white;
  padding: 40px 30px;
  border-radius: 10px;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid var(--border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(26, 63, 75, 0.15);
  border-color: var(--ocean);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--ocean) 0%, var(--tide) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
  color: white;
  box-shadow: 0 4px 15px rgba(74, 144, 164, 0.3);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--primary-dark);
}

.service-card p {
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Stats Section */
.stats {
  background: linear-gradient(135deg, var(--navy) 0%, var(--tide) 100%);
  padding: 60px 0;
  color: white;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}

.stat-item {
  text-align: center;
}

.stat-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--frost);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 1.1rem;
  color: var(--frost);
}

/* Contact Section */
.contact {
  padding: 80px 0;
  background: white;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 3rem;
}

.contact-card {
  text-align: center;
  padding: 30px;
  background: var(--light);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.contact-card:hover {
  background: var(--frost);
  transform: translateY(-5px);
}

.contact-card i {
  font-size: 2.5rem;
  color: var(--ocean);
  margin-bottom: 15px;
}

.contact-card h3 {
  font-size: 1.3rem;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.contact-card p {
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Footer */
.footer {
  background: var(--depth);
  color: white;
  padding: 40px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 30px;
}

.footer-section h3 {
  color: var(--frost);
  margin-bottom: 15px;
}

.footer-section p {
  color: var(--steel);
  line-height: 1.8;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: var(--steel);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: var(--ocean);
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--ocean);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid var(--navy);
  padding-top: 20px;
  text-align: center;
  color: var(--steel);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-brand {
    flex-direction: column;
    text-align: center;
  }

  .brand-text h1 {
    font-size: 1.2rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.3rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
}

.btn-submit-modern {
  margin-top: 20px;
  padding: 15px 35px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.btn-submit-modern::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s;
}

.btn-submit-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
  background: linear-gradient(135deg, #5568d3 0%, #6a4193 100%);
}

.btn-submit-modern:hover::before {
  left: 100%;
}

.btn-submit-modern:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(102, 126, 234, 0.4);
}

.btn-submit-modern i {
  font-size: 18px;
  animation: paperplane 2s ease-in-out infinite;
}


@keyframes paperplane {
  0%,
  100% {
    transform: translateX(0) rotate(0deg);
  }
  50% {
    transform: translateX(5px) rotate(-10deg);
  }
}
