/* =========================================================================
   Horizon Guyana Inc. - Modern Premium Stylesheet 
   
   Structure Overview:
   1. CSS Variables (Theming / Colors)
   2. Global Styles (Reset, Body, Typography)
   3. Navbar (Header & Navigation)
   4. Hero Sections (Page Banners)
   5. Components (Buttons, Containers, Cards)
   6. Forms (Contact Sections)
   7. Footer
   8. Responsiveness (Media Queries)
   ========================================================================= */

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

:root {
  /* Default Dark Mode */
  --bg-color: #0d1117;
  --bg-secondary: #161b22;
  --bg-glass: rgba(22, 27, 34, 0.7);
  --text-main: #c9d1d9;
  --text-primary: #f0f6fc;
  --text-muted: #8b949e;
  
  --accent-cyan: #1bc6e6;
  --accent-gold: #facc15;
  --accent-glow: rgba(27, 198, 230, 0.3);
  
  --border-color: rgba(240, 246, 252, 0.1);
  --shadow-sm: 0 4px 6px rgba(0,0,0,0.3);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.5);
  
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --font-heading: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
}

[data-theme="light"] {
  --bg-color: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --text-main: #334155;
  --text-primary: #0f172a;
  --text-muted: #64748b;
  
  --accent-cyan: #0284c7;
  --accent-gold: #d97706;
  --accent-glow: rgba(2, 132, 199, 0.15);
  
  --border-color: rgba(15, 23, 42, 0.1);
  --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
}

/* ================== GLOBAL STYLES ================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  transition: var(--transition-smooth);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
  margin-bottom: 1rem;
}

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

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

/* ================== NAVBAR (HEADER) ================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 15px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-smooth);
}

.navbar .logo a {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
  padding: 8px 16px;
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background: transparent;
  z-index: 1;
}

.navbar .logo a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-gold));
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
  border-radius: 12px;
}

.navbar .logo a:hover {
  color: var(--text-primary);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 25px var(--accent-glow);
}

.navbar .logo a:hover::before {
  opacity: 0.1;
}

.navbar .logo a::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s ease;
  z-index: 1;
}

.navbar .logo a:hover::after {
  left: 150%;
}

.navbar .logo a i { 
  color: var(--accent-cyan); 
  font-size: 2.2rem;
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 0 8px var(--accent-glow));
}

.navbar .logo a:hover i {
  transform: rotate(360deg) scale(1.15);
  color: var(--accent-gold);
  filter: drop-shadow(0 0 15px rgba(250, 204, 21, 0.6));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 15px; /* Reduced gap to account for link padding */
}

.nav-links a {
  position: relative;
  color: var(--text-main);
  font-weight: 600;
  font-size: 1rem;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 1;
}

.nav-links a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(27, 198, 230, 0.1), rgba(250, 204, 21, 0.05));
  border-radius: 8px;
  z-index: -1;
  transform: scale(0.8) translateY(10px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-links a:hover::before, .nav-links a.active::before {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-cyan);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: translateX(-50%);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--accent-cyan);
}

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

.nav-links a:hover, .nav-links a.active {
  color: var(--text-primary);
  transform: translateY(-2px);
  text-shadow: 0 0 8px rgba(240, 246, 252, 0.3);
}

.theme-toggle {
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.2rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.theme-toggle:hover {
  transform: rotate(15deg) scale(1.1);
  box-shadow: 0 0 15px var(--accent-glow);
}

/* ================== SHARED HERO ================== */
.hero {
  position: relative;
  padding: 120px 40px;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #fff; /* Alway white text on image backgrounds */
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

.hero::before {
  content: "";
  position: absolute;
  top:0; left:0; right:0; bottom:0;
  background: linear-gradient(135deg, rgba(13, 17, 23, 0.9) 0%, rgba(27, 198, 230, 0.2) 100%);
  z-index: 1;
}

.hero > * {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 20px;
  letter-spacing: -1px;
  color: #fff;
}

.hero p {
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto 40px;
  color: rgba(255,255,255,0.85);
}

/* Inside Page Heroes */
.page-hero {
  padding: 80px 20px;
  background-color: var(--bg-secondary);
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.page-hero h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.page-hero p {
  color: var(--text-muted);
  font-size: 1.2rem;
}

/* ================== BUTTONS ================== */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent-cyan);
  color: #0f172a;
  padding: 14px 30px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: 0 4px 15px var(--accent-glow);
  transition: var(--transition-smooth);
  border: none;
  cursor: pointer;
}

.cta-btn:hover {
  background: var(--accent-gold);
  transform: translateY(-3px);
  color: #fff;
  box-shadow: 0 8px 25px rgba(250, 204, 21, 0.4);
}

/* ================== CONTAINERS & SECTIONS ================== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 40px;
}

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

section.about-section h2 { font-size: 2.5rem; }

/* ================== SERVICE CARDS (GRID) ================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.service-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--accent-cyan);
}

.service-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
}

.rav4-aesthetic {
  filter: brightness(0.85) contrast(1.1) saturate(1.1);
  box-shadow: 0 5px 20px rgba(0,0,0,0.4);
  background-color: var(--bg-primary);
}

.service-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-content h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

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

.service-content p {
  color: var(--text-muted);
  margin-bottom: 25px;
  flex-grow: 1;
}

.service-link {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}
.service-link i { font-size: 0.9em; transition: transform 0.3s; }
.service-card:hover .service-link i { transform: translateX(5px); }


/* ================== SERVICE DETAIL ================== */
.service-detail {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 20px;
}

.service-detail h2 {
  font-size: 2.5rem;
  color: var(--accent-cyan);
  margin-bottom: 20px;
}

.service-detail p {
  font-size: 1.15rem;
  margin-bottom: 30px;
}

.service-detail ul {
  list-style: none;
  margin-bottom: 40px;
}

.service-detail ul li {
  padding: 15px 0;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid var(--border-color);
}

.service-detail ul li:last-child {
  border-bottom: none;
}

.service-detail ul li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--accent-cyan);
}

/* ================== CONTACT FORM ================== */
.contact-wrapper {
  max-width: 700px;
  margin: 0 auto;
  background: var(--bg-secondary);
  padding: 50px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
}

.contact-wrapper h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 15px;
}

.contact-wrapper > p {
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-muted);
}

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

form label {
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: -10px;
}

form input, form textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition-smooth);
}

form input:focus, form textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* ================== FOOTER ================== */
.modern-footer {
  background: #0d1117; /* Keep dark even in light mode for contrast */
  color: #c9d1d9;
  padding: 80px 40px 30px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  max-width: 1280px;
  margin: 0 auto;
}

.footer-section h3 {
  color: #fff;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-section h3::after {
  content: '';
  display: block;
  flex-grow: 1;
  height: 1px;
  background: rgba(255,255,255,0.1);
}

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

.footer-section ul li {
  margin: 12px 0;
}

.footer-section ul li a, .footer-section p {
  color: #8b949e;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-section ul li a i { width: 20px; text-align: center; }
.footer-section ul li a:hover { color: var(--accent-cyan); }

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  color: #fff;
  font-size: 1.2rem;
  transition: var(--transition-smooth);
}

.social-icons a:hover {
  background: var(--accent-cyan);
  transform: translateY(-3px);
  color: #000;
}

.footer-bottom {
  text-align: center;
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #6e7681;
  font-size: 0.9rem;
}

/* ================== RESPONSIVENESS ================== */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 5px;
  transition: var(--transition-smooth);
}

.mobile-menu-btn:hover {
  color: var(--accent-cyan);
}

@media (max-width: 768px) {
  .hero h1 { font-size: 2.5rem; }
  .navbar { 
    padding: 15px 20px; 
    flex-wrap: wrap; 
  }
  .logo { order: 1; }
  .nav-actions { 
    order: 2; 
  }
  .mobile-menu-btn { 
    display: block; 
  }
  
  .nav-links { 
    order: 3;
    width: 100%;
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  
  .nav-links.active {
    max-height: 400px;
    padding-top: 15px;
  }

  .nav-links a {
    width: 100%;
    margin-bottom: 5px;
    text-align: center;
    border-radius: 4px;
    padding: 12px;
  }
  
  .nav-links a::after, .nav-links a::before {
    display: none !important; /* Hide desktop hover effects */
  }
  
  .nav-links a:hover, .nav-links a.active {
    background: rgba(27, 198, 230, 0.1);
    transform: none;
  }
  
  section.about-section { grid-template-columns: 1fr; }
}