/* General Styles */
:root {
  --primary-color: #FF6B6B;
  --secondary-color: #6f42c1;
  --accent-color: #4D96FF;
  --text-dark: #333;
  --text-light: #fff;
  --bg-light: #FAF9F6;
  --bg-dark: #3D3C42;
  --bg_alternate: #FFFFFF;
  --border-color: #e9ecef;
  --font-primary: 'Poppins', sans-serif;
  --font-secondary: 'Open Sans', sans-serif;
  --button-radius: 12px;
  --card-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-secondary);
  line-height: 1.7;
  color: var(--text-dark);
  background-color: var(--bg-light);
  transition: background-color 0.3s ease, color 0.3s ease;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
a { text-decoration: none; color: var(--primary-color); transition: color 0.3s ease; }
a:hover { color: var(--accent-color); }
img { max-width: 100%; height: auto; display: block; border-radius: 8px; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
}
h1 { font-size: 3.5rem; } h2 { font-size: 2.5rem; margin-top: 40px; } h3 { font-size: 1.8rem; }
p { margin-bottom: 15px; }
.btn {
  display: inline-block; padding: 12px 25px; border-radius: var(--button-radius);
  font-weight: 600; transition: all 0.3s ease; box-shadow: var(--card-shadow); border: none;
  cursor: pointer; font-size: 1em;
}
.btn-primary { background-color: var(--primary-color); color: var(--text-light); }
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-2px); }
.btn-secondary { background-color: var(--secondary-color); color: var(--text-light); }
.btn-secondary:hover { filter: brightness(1.1); transform: translateY(-2px); }

/* Header */
.main-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: rgba(255,255,255,0.97); backdrop-filter: blur(10px);
  box-shadow: 0 2px 15px rgba(0,0,0,0.08); padding: 0 20px;
}
.main-header .navbar { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; padding: 15px 0; }
.main-header .navbar-brand { font-family: var(--font-primary); font-size: 1.8em; font-weight: 700; color: var(--primary-color); }
.main-header .nav-links { list-style: none; display: flex; align-items: center; gap: 5px; }
.main-header .nav-links li a {
  padding: 8px 16px; border-radius: 8px; font-weight: 500; font-size: 0.95em;
  color: var(--text-dark); transition: all 0.2s ease;
}
.main-header .nav-links li a:hover,
.main-header .nav-links li a.active { background: var(--bg-light); color: var(--primary-color); }

/* Hero */
.hero-section, .page-hero {
  display: flex; align-items: center; justify-content: center;
  min-height: 400px; padding: 120px 20px 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--text-light); text-align: center; position: relative;
}
.split-hero { min-height: 80vh; }
.hero-content { position: relative; z-index: 2; max-width: 800px; }
.hero-content h1 { color: var(--text-light); font-size: clamp(2.2rem, 5vw, 3.5rem); margin-bottom: 20px; }
.hero-content p { font-size: 1.2em; opacity: 0.9; margin-bottom: 30px; }
.hero-image {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover; background-position: center; opacity: 0.15;
}
.page-hero { min-height: 250px; padding-top: 100px; }
.page-hero h1 { color: var(--text-light); }

/* Sections */
.section { padding: 80px 0; }
.section.bg-light { background-color: var(--bg_alternate); }
.section-image { border-radius: 12px; margin: 20px 0; max-width: 500px; }
.content-flex { display: flex; gap: 40px; align-items: flex-start; flex-wrap: wrap; }
.content-flex p { flex: 1; min-width: 300px; line-height: 1.8; }
.content-flex.reverse { flex-direction: row-reverse; }

/* Services List */
.services-list { display: grid; gap: 30px; }
.service-item { background: #fff; padding: 30px; border-radius: 12px; box-shadow: var(--card-shadow); }
.service-item h3 { color: var(--primary-color); margin-bottom: 10px; font-size: 1.4rem; }
.service-item p { color: #555; margin-bottom: 0; }

/* Contact */
.contact-info h3 { color: var(--primary-color); margin-bottom: 15px; }
.contact-details { background: #fff; padding: 30px; border-radius: 12px; box-shadow: var(--card-shadow); margin-top: 20px; }
.contact-details p { margin-bottom: 10px; }
.contact-form { background: var(--bg_alternate); padding: 50px; border-radius: 16px; }

/* Legal */
.legal-content { max-width: 800px; }
.legal-content h3 { color: var(--primary-color); margin-top: 30px; margin-bottom: 10px; font-size: 1.3rem; }
.legal-content p { line-height: 1.8; color: #555; }

/* Footer */
.main-footer {
  background: var(--bg-dark); color: rgba(255,255,255,0.8); padding: 40px 0;
  margin-top: 60px;
}
.footer-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.footer-links { list-style: none; display: flex; gap: 20px; }
.footer-links a { color: rgba(255,255,255,0.7); font-size: 0.9em; }
.footer-links a:hover { color: #fff; }

/* Main content wrapper */
.main-content-wrapper { padding-top: 70px; min-height: calc(100vh - 200px); }

/* Loading Screen */
.loading-screen { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #fff; z-index: 9999; display: flex; align-items: center; justify-content: center; transition: opacity 0.5s ease; }
.loading-screen:not(.active) { opacity: 0; pointer-events: none; }
.spinner { width: 40px; height: 40px; border: 4px solid #e9ecef; border-top-color: var(--primary-color); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Section animations */
.section { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.section.visible { opacity: 1; transform: translateY(0); }
.hero-section, .page-hero { opacity: 1; transform: none; }
.hero-section.loaded, .page-hero.loaded { animation: fadeInUp 0.8s ease; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Responsive */
@media (max-width: 768px) {
  h1 { font-size: 2.8rem; } h2 { font-size: 2rem; }
  .hero-content { padding: 15px; }
  .hero-content p { font-size: 1.1rem; }
  .hero-section, .page-hero { height: auto; min-height: 350px; }
  .section { padding: 60px 0; }
  .contact-form { padding: 40px; }
  .content-flex { flex-direction: column; }
  .footer-content { flex-direction: column; text-align: center; }
  .main-header .nav-links { display: none; }
}
@media (max-width: 576px) {
  .main-header .navbar-brand { font-size: 1.5em; }
  h1 { font-size: 2.2rem; } h2 { font-size: 1.8rem; }
  .btn { padding: 10px 20px; font-size: 0.9em; }
  .section { padding: 40px 0; }
  .contact-form { padding: 25px; }
  .page-hero { min-height: 200px; padding-top: 80px; }
}