/* CSS Variables */
:root {
  --primary-color: #000000;
  --secondary-color: #333333;
  --accent-color: #666666;
  --bg-light: #ffffff;
  --bg-gray: #f4f4f4;
  --bg-dark: #1a1a1a;
  --text-dark: #111111;
  --text-light: #ffffff;
  --text-gray: #666666;
  --border-color: #e0e0e0;
  --font-main: 'Inter', sans-serif;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
  --radius-sm: 4px;
  --radius-md: 8px;
  --transition: all 0.3s ease;
}

/* Reset & Base Styles - NO Universal Selector */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  box-sizing: inherit;
}

div, section, header, footer, article, nav, ul, li, a, p, h1, h2, h3, h4, h5, h6, input, button, span, img {
  box-sizing: inherit;
}

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

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

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

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* Typography */
.text-center { text-align: center; }
.text-uppercase { text-transform: uppercase; }
.font-bold { font-weight: 700; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}
.section-subtitle {
  font-size: 1.1rem;
  color: var(--accent-color);
  margin-bottom: 3rem;
}

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Page Loader */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-light);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-content {
  text-align: center;
}

.loader-brand {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--bg-gray);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Top Advertisement */
.top-ad-bar {
  background-color: var(--bg-gray);
  color: var(--text-gray);
  padding: 10px 0;
  text-align: center;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border-color);
}

/* Header */
.main-header {
  background-color: var(--bg-light);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-color);
  letter-spacing: -0.5px;
}

.nav-menu {
  display: flex;
  gap: 30px;
}

.nav-link {
  font-weight: 500;
  color: var(--text-dark);
}

.nav-link:hover {
  color: var(--accent-color);
}

.header-cta {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: var(--transition);
}

.header-cta:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
}

/* Hamburger */
.hamburger-btn {
  display: none;
  font-size: 1.5rem;
  color: var(--primary-color);
}

/* Mobile Menu */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  right: -100%;
  width: 75%;
  height: 100%;
  background-color: var(--bg-light);
  z-index: 1000;
  box-shadow: -2px 0 10px rgba(0,0,0,0.1);
  transition: right 0.3s ease;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.mobile-menu-overlay.active {
  right: 0;
}

.close-menu-btn {
  align-self: flex-end;
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.mobile-nav-link {
  font-size: 1.2rem;
  margin-bottom: 15px;
  font-weight: 600;
  display: block;
}

/* Hero Section */
.hero-section {
  padding: 80px 0;
  background-color: var(--bg-gray);
  overflow: hidden;
}

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

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--text-gray);
  margin-bottom: 2rem;
}

.btn-primary {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 15px 35px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.hero-image img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease;
}

.hero-image img:hover {
  transform: scale(1.02);
}

/* About Us Section */
.about-section {
  padding: 80px 0;
  background-color: var(--bg-light);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.about-text p {
  font-size: 1.1rem;
  color: var(--text-gray);
  margin-bottom: 1.5rem;
}

.about-image img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

/* Why Us Section */
.why-us-section {
  padding: 80px 0;
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.why-us-section .section-title {
  color: var(--text-light);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.feature-card {
  background-color: rgba(255,255,255,0.05);
  padding: 30px;
  border-radius: var(--radius-md);
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.1);
}

.feature-card:hover {
  background-color: rgba(255,255,255,0.1);
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-text {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
}

/* Testimonials */
.testimonials-section {
  padding: 80px 0;
  background-color: var(--bg-gray);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background-color: var(--bg-light);
  padding: 30px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.stars {
  color: #FFC107;
  margin-bottom: 1rem;
}

.review-text {
  font-style: italic;
  color: var(--text-gray);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.reviewer-name {
  font-weight: 700;
  color: var(--text-dark);
}

/* FAQ Section */
.faq-section {
  padding: 80px 0;
  background-color: var(--bg-light);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 10px;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.faq-question:hover {
  background-color: var(--bg-gray);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 20px;
}

.faq-answer p {
  padding-bottom: 20px;
  color: var(--text-gray);
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

/* Footer */
.main-footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 60px 0 20px;
}

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

.footer-col h4 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
}

.footer-links a:hover {
  color: var(--text-light);
  padding-left: 5px;
}

.contact-info p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 10px;
}

.footer-ad-notice {
  background-color: rgba(255,255,255,0.05);
  padding: 15px;
  margin-bottom: 30px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  border-radius: var(--radius-sm);
}

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

/* Cookie Popup */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--bg-light);
  padding: 25px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-width: 400px;
  z-index: 999;
  transform: translateY(150%);
  transition: transform 0.5s ease;
  border: 1px solid var(--border-color);
}

.cookie-popup.show {
  transform: translateY(0);
}

.cookie-content h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.cookie-content p {
  font-size: 0.9rem;
  color: var(--text-gray);
  margin-bottom: 20px;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
}

.btn-accept {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.btn-reject {
  background-color: transparent;
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: var(--bg-light);
  padding: 40px;
  border-radius: var(--radius-md);
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 1.5rem;
  color: var(--text-gray);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-grid, .about-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-grid {
    gap: 20px;
  }
  
  .hero-image {
    order: -1;
  }
  
  .nav-menu, .header-cta {
    display: none;
  }
  
  .hamburger-btn {
    display: block;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
}
