@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700;800&display=swap');

/* CSS Variables for Premium Light Theme */
:root {
  --bg-primary: #f8fafc; /* Slate 50 */
  --bg-secondary: #ffffff; /* White */
  --bg-card: rgba(255, 255, 255, 0.75);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  --accent-cyan: #0ea5e9; /* Cyan 500 */
  --accent-purple: #7c3aed; /* Violet 600 */
  --accent-gradient: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  --accent-glow: rgba(14, 165, 233, 0.1);
  --text-main: #0f172a; /* Slate 900 */
  --text-muted: #475569; /* Slate 600 */
  --border-color: rgba(15, 23, 42, 0.08);
  --border-hover: rgba(14, 165, 233, 0.3);
  --max-width: 1100px;
  --font-heading: 'Outfit', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-lg: 16px;
  --radius-md: 10px;
}

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

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1; /* Slate 300 */
  border: 2px solid var(--bg-primary);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-purple);
}

/* Background Grid Overlay Effect for Light Theme */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(15, 23, 42, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.012) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: -1;
  pointer-events: none;
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(14, 165, 233, 0.4);
}

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1rem;
  transition: var(--transition);
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-main);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Main Content Area */
main {
  flex: 1;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 3rem 2rem 5rem 2rem;
}

/* Hero Section */
.hero {
  text-align: center;
  margin-bottom: 5rem;
  animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: rgba(14, 165, 233, 0.06);
  border: 1px solid rgba(14, 165, 233, 0.15);
  color: var(--accent-cyan);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem auto;
}

/* Services Grid (Stacked Layout) */
.services-grid {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  margin-top: 2rem;
}

/* Wide Glassmorphic Card Styling for Stacked Services */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem;
  transition: var(--transition);
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: 3.5rem;
  align-items: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08), 0 0 25px var(--accent-glow);
}

.card-info {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
}

.card h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--text-main);
}

.card p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  font-size: 0.85rem;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid var(--border-color);
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Two-column Image layout in Service Card */
.card-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.card-img-wrapper {
  position: relative;
  height: 220px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: #f1f5f9;
  cursor: zoom-in;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.card-img-wrapper:hover .card-img {
  transform: scale(1.05);
}

/* Zoom Hover Overlay */
.zoom-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  pointer-events: none;
}

.card-img-wrapper:hover .zoom-overlay {
  opacity: 1;
}

/* Button Component */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--accent-gradient);
  color: #ffffff;
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.3);
}

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

.btn-secondary:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(14, 165, 233, 0.08);
}

/* Contact Page Layout (Simplified, single column, centered) */
.contact-layout-simple {
  max-width: 650px;
  margin: 2rem auto;
  text-align: center;
}

.contact-layout-simple h1 {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact-layout-simple p {
  color: var(--text-muted);
  font-size: 1.15rem;
  margin-bottom: 3.5rem;
  line-height: 1.7;
}

/* Beautiful Centered Email Box */
.email-box-centered {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 1.25rem 2rem;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.02);
  max-width: 320px;
  margin: 0 auto;
}

.email-box-centered .label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.email-box-centered .label .lang-tc {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.email-box-centered .label .lang-en {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  opacity: 0.85;
}

.email-box-centered .address {
  font-size: 1.15rem;
  font-family: var(--font-heading);
  color: var(--accent-cyan);
  font-weight: 700;
  margin-top: 0.35rem;
}

/* Lightbox Styles for Image Zoom */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.9); /* Dark background for high-contrast presentation */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  max-width: 90%;
  max-height: 85vh;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: scale(0.92);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-overlay.active .lightbox-content {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2.5rem;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #ffffff;
  font-size: 1.75rem;
  cursor: pointer;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.lightbox-close:hover {
  background: #ef4444; /* Clean soft red for close action */
  color: #ffffff;
  transform: rotate(90deg);
}

/* Footer Section */
footer {
  border-top: 1px solid var(--border-color);
  background: #ffffff;
  padding: 2.5rem 2rem;
  margin-top: auto;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-logo-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-purple);
  border-radius: 50%;
}

/* Bilingual Text Styles */
.lang-tc {
  display: block;
}

.lang-en {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-muted);
}

/* Adjustments for specific bilingual containers */
.hero h1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.hero h1 .lang-en {
  font-size: 1.8rem;
  font-weight: 600;
  max-width: 800px;
  background: none;
  -webkit-background-clip: border-box;
  -webkit-text-fill-color: var(--text-muted);
  color: var(--text-muted);
}

.hero p {
  max-width: 800px;
}

.hero p .lang-en {
  font-size: 0.95rem;
  margin-top: 0.5rem;
  opacity: 0.85;
}

.card h2 {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.card h2 .lang-en {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-muted);
}

.card p {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.card p .lang-en {
  font-size: 0.9rem;
  line-height: 1.5;
}

.btn {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.2;
  padding: 0.75rem 2rem;
}

.btn .lang-en {
  font-size: 0.75rem;
  color: inherit;
  opacity: 0.9;
}

.contact-layout-simple h1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.contact-layout-simple h1 .lang-en {
  font-size: 1.5rem;
  font-weight: 700;
  background: none;
  -webkit-background-clip: border-box;
  -webkit-text-fill-color: var(--text-muted);
  color: var(--text-muted);
}

.contact-layout-simple p {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-layout-simple p .lang-en {
  font-size: 0.95rem;
  line-height: 1.5;
}


/* Animations */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 3rem;
  }
  .card {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 2.5rem;
  }
  .card-images {
    gap: 1rem;
  }
  .card-img-wrapper {
    height: 180px;
  }
  .contact-layout-simple h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  body::before {
    background-size: 30px 30px;
  }
  .nav-container {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  .nav-links {
    gap: 1.5rem;
  }
  .hero {
    margin-bottom: 3.5rem;
  }
  .hero h1 {
    font-size: 2.25rem;
  }
  .hero p {
    font-size: 1.05rem;
  }
  .card {
    padding: 1.75rem;
  }
  .card h2 {
    font-size: 1.6rem;
  }
  .card-images {
    grid-template-columns: 1fr; /* Stack images vertically on small mobile */
  }
  .card-img-wrapper {
    height: 200px;
  }
  .email-box-centered {
    padding: 1.5rem;
  }
  .email-box-centered .address {
    font-size: 1.1rem;
  }
  .footer-container {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .lightbox-close {
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
}
