/* Global Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* CSS Variables for Theme */
:root {
  --bg-color: #0b0c10;
  --bg-gradient: linear-gradient(135deg, #0b0c10 0%, #1f2833 100%);
  --surface-color: rgba(31, 40, 51, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);
  --text-primary: #ffffff;
  --text-secondary: #c5c6c7;
  --accent-color: #66fcf1;
  --accent-hover: #45a29e;
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  --transition: all 0.3s ease;
}

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

/* Moving Background Layer */
.moving-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -5; /* Place deep in background */
  background-image: 
    linear-gradient(rgba(11,12,16,0.85), rgba(11,12,16,0.85)),
    url('assets/images/site_bg_pattern_1773385852781.png');
  background-repeat: repeat;
  background-size: 800px 800px;
  animation: bgPan 40s linear infinite;
}

@keyframes bgPan {
  0% { background-position: 0 0; }
  100% { background-position: 800px 800px; }
}

/* Floating Image Animation */
.float-img {
  animation: floatImg 8s ease-in-out infinite;
}

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

/* Pulse Image Animation */
.pulse-img {
  animation: pulseImg 8s ease-in-out infinite alternate;
  transform-origin: center;
}

@keyframes pulseImg {
  0% { transform: scale(1); filter: brightness(1); }
  100% { transform: scale(1.05); filter: brightness(1.2); }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  background: linear-gradient(to right, #ffffff, var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; }
p { margin-bottom: 1.5rem; color: var(--text-secondary); }

a {
  text-decoration: none;
  color: var(--accent-color);
  transition: var(--transition);
}

a:hover { color: var(--accent-hover); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: var(--accent-color);
  color: var(--bg-color);
  box-shadow: 0 0 15px rgba(102, 252, 241, 0.4);
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 25px rgba(102, 252, 241, 0.6);
  transform: translateY(-2px);
  color: var(--bg-color);
}

.btn-secondary {
  background: transparent;
  color: var(--accent-color);
  border: 2px solid var(--accent-color);
}

.btn-secondary:hover {
  background: rgba(102, 252, 241, 0.1);
  transform: translateY(-2px);
}

/* Glassmorphism Classes */
.glass {
  background: var(--surface-color);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem;
}

/* Layout Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(11, 12, 16, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  padding: 1rem 0;
  transition: var(--transition);
}

header.scrolled {
  padding: 0.5rem 0;
  background: rgba(11, 12, 16, 0.95);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span { color: var(--accent-color); }

.site-logo {
  height: 100px;
  width: auto;
  object-fit: contain;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

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

.nav-links li a {
  color: var(--text-primary);
  font-weight: 500;
  position: relative;
}

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

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

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  opacity: 0.6;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(11,12,16,0.3) 0%, rgba(11,12,16,1) 100%);
  z-index: -1;
}

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

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

/* Section Styling */
.section {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header p {
  max-width: 600px;
  margin: 0 auto;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.service-card {
  text-align: left;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-color);
  box-shadow: 0 10px 30px rgba(102, 252, 241, 0.1);
}

.service-icon {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
}

.service-card h3 { margin-bottom: 1rem; }

/* About Section Preview */
.about-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-preview-img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  animation: float 6s ease-in-out infinite;
}

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

/* CTA Sub-Section */
.cta-banner {
  background: linear-gradient(90deg, var(--surface-color), rgba(11,12,16,0.9));
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 4rem 2rem;
  text-align: center;
  margin-top: 4rem;
}

/* Footer */
footer {
  background: #0b0c10;
  border-top: 1px solid var(--glass-border);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: #fff;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.8rem;
}

.footer-col ul li a {
  color: var(--text-secondary);
}

.footer-col ul li a:hover {
  color: var(--accent-color);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .site-logo {
    height: 48px;
  }
  
  header {
    padding: 0.8rem 0;
  }
  
  header.scrolled {
    padding: 0.5rem 0;
  }

  .nav-links {
    position: fixed;
    top: 76px; /* Approx height of header: 48 + 0.8rem*2 ~ 74-76px */
    right: -100%;
    flex-direction: column;
    background: rgba(11, 12, 16, 0.98);
    backdrop-filter: blur(10px);
    width: 100%;
    height: calc(100vh - 76px);
    padding: 2rem;
    transition: var(--transition);
    align-items: center;
    border-top: 1px solid var(--glass-border);
    overflow-y: auto;
  }

  .nav-links.active {
    right: 0;
  }

  .mobile-menu-btn { display: block; }
  
  .about-preview {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .hero-buttons .btn { width: 100%; }
  
  .section {
    padding: 4rem 0;
  }
  
  .hero h1 {
    font-size: 2.25rem;
  }
  
  .footer-grid {
    gap: 1.5rem;
    text-align: center;
  }
}
