/* ===== Variables ===== */
:root {
  --primary-color: #1A8292;
  --primary-dark: #14697a;
  --accent-color: #D08529;
  --accent-dark: #b8741f;
  --secondary-color: #64748b;
  --text-color: #0A2D2F;
  --text-light: #5a7274;
  --bg-color: #ffffff;
  --bg-secondary: #f4f9f9;
  --border-color: #d4e4e6;
  --success-color: #10b981;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1200px;
  --header-height: 90px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== Container ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
}

.logo-img {
  height: 75px;
  width: auto;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-color);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-menu a {
  color: var(--text-color);
  font-weight: 500;
  padding: 8px 0;
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.2s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-color);
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--text-color);
  left: 0;
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

/* ===== Hero Section ===== */
.hero {
  padding: 160px 0 100px;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-color) 100%);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 60px;
  align-items: center;
}

.hero-text h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero-text .tagline {
  font-size: 1.5rem;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 16px;
}

.hero-text .description {
  font-size: 1.125rem;
  color: var(--text-light);
  margin-bottom: 32px;
  max-width: 560px;
}

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

.hero-image {
  text-align: center;
}

.hero-image img {
  width: 280px;
  height: 280px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--bg-color);
  box-shadow: 0 20px 40px rgba(10, 45, 47, 0.15);
}

.hero-image img.hero-logo-mark {
  object-fit: contain;
  border: none;
  box-shadow: none;
  border-radius: 0;
  padding: 20px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: white;
}

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--border-color);
  color: var(--text-color);
}

/* ===== Section Styles ===== */
section {
  padding: 80px 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-align: center;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-light);
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
}

/* ===== Services Section ===== */
.services {
  background: var(--bg-secondary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 32px;
}

.service-card {
  background: var(--bg-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.service-card {
  border-top: 4px solid var(--primary-color);
}

.service-card:nth-child(1) { border-top-color: #1A8292; }
.service-card:nth-child(2) { border-top-color: #D08529; }
.service-card:nth-child(3) { border-top-color: #0A2D2F; }
.service-card:nth-child(4) { border-top-color: #14697a; }
.service-card:nth-child(5) { border-top-color: #D08529; }
.service-card:nth-child(6) { border-top-color: #1A8292; }
.service-card:nth-child(7) { border-top-color: #0A2D2F; }

.service-card-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card-content h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.service-card-content h3 a {
  color: var(--text-color);
}

.service-card-content h3 a:hover {
  color: var(--primary-color);
}

.service-card-content p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 16px;
  flex: 1;
}

.service-price {
  display: inline-block;
  padding: 4px 12px;
  background: var(--bg-secondary);
  color: var(--accent-color);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 20px;
}

/* ===== About Preview Section ===== */
.about-preview {
  background: var(--bg-color);
}

.about-preview-content {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 60px;
  align-items: center;
}

.about-preview-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(10, 45, 47, 0.12);
}

.about-preview-text h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.about-preview-text p {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.about-preview-text .btn {
  margin-top: 16px;
}

/* ===== Skill Tags ===== */
.skill-tag {
  display: inline-block;
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 25px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.skill-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26, 130, 146, 0.3);
}

/* ===== About Section ===== */
.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
}

.about-text h2 {
  font-size: 1.75rem;
  margin-bottom: 24px;
}

.about-text p {
  color: var(--text-light);
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.education {
  margin-top: 32px;
}

.education h3 {
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.education-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--text-light);
}

.education-item i {
  color: var(--primary-color);
}

/* ===== Contact Section ===== */
.contact {
  background: var(--bg-secondary);
}

.contact-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact-content p {
  font-size: 1.125rem;
  color: var(--text-light);
  margin-bottom: 32px;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 24px;
  background: var(--bg-color);
  border-radius: 8px;
  color: var(--text-color);
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.contact-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  color: var(--primary-color);
}

.contact-link i {
  font-size: 1.25rem;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--text-color);
  color: white;
  padding: 60px 0 24px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-info h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.footer-info p {
  color: rgba(255, 255, 255, 0.7);
}

.footer-info .location {
  margin-top: 8px;
}

.footer-info .location i {
  margin-right: 8px;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  font-size: 1.25rem;
  transition: all 0.2s ease;
}

.footer-social a:hover {
  background: var(--primary-color);
  transform: translateY(-2px);
}

.footer-bottom {
  padding-top: 24px;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

/* ===== Service Detail Page ===== */
.service-detail {
  padding-top: 120px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-light);
  margin-bottom: 32px;
}

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

.service-header {
  margin-bottom: 32px;
  text-align: center;
}

.service-icon-large {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.service-icon-large i {
  font-size: 2rem;
  color: white;
}

.service-header h1 {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.service-tagline {
  font-size: 1.25rem;
  color: var(--text-light);
}

.service-image {
  margin-bottom: 32px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.service-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-bottom: 48px;
  padding: 24px;
  background: var(--bg-secondary);
  border-radius: 12px;
  justify-content: center;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-light);
  font-weight: 500;
}

.meta-item i {
  color: var(--primary-color);
}

.service-content {
  max-width: 800px;
}

.service-content h2 {
  font-size: 1.5rem;
  margin: 32px 0 16px;
  color: var(--text-color);
}

.service-content h3 {
  font-size: 1.25rem;
  margin: 24px 0 12px;
  color: var(--primary-color);
}

.service-content p {
  color: var(--text-light);
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.service-content ul,
.service-content ol {
  margin-left: 24px;
  margin-bottom: 16px;
}

.service-content li {
  margin-bottom: 8px;
  color: var(--text-light);
}

.service-content blockquote {
  border-left: 4px solid var(--accent-color);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--bg-secondary);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--text-light);
}

.service-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}

.service-content th,
.service-content td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.service-content th {
  background: var(--bg-secondary);
  font-weight: 600;
  color: var(--text-color);
}

.service-content td {
  color: var(--text-light);
}

.service-cta {
  margin-top: 60px;
  padding: 40px;
  background: var(--bg-secondary);
  border-radius: 12px;
  text-align: center;
}

.service-cta h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.service-cta p {
  color: var(--text-light);
  margin-bottom: 24px;
}

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

/* ===== Contact Form ===== */
.contact-form-wrapper {
  max-width: 600px;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-color);
}

.form-group input,
.form-group textarea {
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: var(--font-family);
  font-size: 1rem;
  color: var(--text-color);
  background: var(--bg-color);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(26, 130, 146, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--border-color);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* ===== Page Content ===== */
.page-content {
  padding-top: 120px;
  min-height: 60vh;
}

.page-title {
  font-size: 2.5rem;
  margin-bottom: 32px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-color);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border-color);
    display: none;
  }

  .nav-menu.active {
    display: flex;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-image {
    order: -1;
  }

  .hero-image img {
    width: 200px;
    height: 200px;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text .description {
    max-width: none;
  }

  .hero-buttons {
    justify-content: center;
  }

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

  .about-preview-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-preview-image {
    max-width: 300px;
    margin: 0 auto;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

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

  .contact-links {
    flex-direction: column;
  }

  .service-meta {
    flex-direction: column;
  }

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