/* css/main.css */

/* ──────────── GLOBAL VARIABLES & THEME ──────────── */
:root {
  --bg-main: #0B0F19;         
  --bg-card: #111827;         
  --bg-hover: #1F2937;        
  --accent-color: #EF4444;    
  --accent-hover: #DC2626;
  --text-main: #F8FAFC;       
  --text-muted: #94A3B8;      
  --border-color: #1E293B;    
  --nav-bg: rgba(11, 15, 25, 0.85);
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --nav-height: 80px;
  
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-hover: 0 20px 40px -10px rgba(239, 68, 68, 0.15);
  
  --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Base Resets & Layout Locks to prevent X-Scroll issues */
* { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

html { 
  scroll-behavior: smooth; 
  scroll-padding-top: var(--nav-height); 
  overflow-x: hidden; 
  max-width: 100vw;
}

body { 
  font-family: 'Inter', sans-serif; 
  font-size: 16px; 
  line-height: 1.6;
  color: var(--text-main); 
  background-color: var(--bg-main); 
  -webkit-font-smoothing: antialiased; 
  overflow-x: hidden; 
  max-width: 100vw;
}

/* Responsive Fluid Typography - Adjusted to prevent mobile overflow */
h1, h2, h3, h4, h5, h6 { 
  font-family: 'Plus Jakarta Sans', sans-serif; 
  color: #FFFFFF; 
  line-height: 1.2; 
}
h1 { font-size: clamp(1.8rem, 8vw, 4.5rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.5rem, 6vw, 2.75rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: clamp(0.75rem, 2vw, 1.25rem); }
h3 { font-size: clamp(1.35rem, 3vw, 2rem); font-weight: 700; }
h4 { font-size: clamp(1.15rem, 2vw, 1.25rem); font-weight: 600; }
h5 { font-size: clamp(1rem, 1.5vw, 1.125rem); font-weight: 600; }

.text-accent { color: var(--accent-color) !important; }

/* Fluid Section Spacing */
.section-padding { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.section-header { margin-bottom: clamp(2rem, 6vw, 4rem); text-align: center; }
.sub-heading {
  font-family: 'Inter', sans-serif; 
  font-size: clamp(0.75rem, 1.5vw, 0.875rem); 
  font-weight: 700;
  text-transform: uppercase; 
  letter-spacing: 0.15em; 
  color: var(--accent-color);
  margin-bottom: clamp(0.5rem, 1.5vw, 0.75rem); 
  display: block;
}
.bg-alt { background-color: rgba(255, 255, 255, 0.02); }

/* ──────────── BUTTONS ──────────── */
.btn-primary {
  background-color: var(--accent-color); 
  border: none; 
  color: #fff !important;
  font-family: 'Plus Jakarta Sans', sans-serif; 
  font-weight: 600; 
  font-size: 0.95rem;
  padding: 0.7rem 1.8rem; 
  border-radius: 50px; 
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
  display: inline-flex; 
  justify-content: center; 
  align-items: center;
  text-align: center;
}
.btn-primary:hover {
  background-color: var(--accent-hover); 
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}
.btn-outline {
  background: transparent; 
  border: 1px solid var(--border-color); 
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', sans-serif; 
  font-weight: 600; 
  font-size: 0.95rem;
  padding: 0.7rem 1.8rem; 
  border-radius: 50px; 
  transition: var(--transition);
  display: inline-flex; 
  justify-content: center; 
  align-items: center;
  text-align: center;
}
.btn-outline:hover { 
  background: var(--bg-hover); 
  border-color: var(--text-muted); 
  color: #fff; 
}

/* ──────────── NAVBAR ──────────── */
#mainNav {
  height: var(--nav-height); 
  background: transparent;
  transition: var(--transition); 
  border-bottom: 1px solid transparent;
}
#mainNav.scrolled {
  background: var(--nav-bg); 
  backdrop-filter: blur(12px); 
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.05); 
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.navbar-brand img { 
  height: 40px; 
  transition: var(--transition); 
}
.nav-link {
  font-family: 'Plus Jakarta Sans', sans-serif; 
  color: rgba(255,255,255,0.8) !important;
  font-weight: 500; 
  font-size: 0.9rem; 
  padding: 0.5rem 0.8rem !important; 
  transition: var(--transition);
}
.nav-link:hover { color: var(--accent-color) !important; }
.navbar-toggler { 
  border: 1px solid rgba(255,255,255,0.1); 
  padding: 0.4rem 0.6rem; 
  border-radius: 8px; 
}
.navbar-toggler-icon { filter: invert(1); }

@media (max-width: 1199px) {
  .navbar-collapse {
    background: var(--bg-card); 
    padding: 1.5rem; 
    border-radius: var(--radius-md);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5); 
    margin-top: 15px; 
    border: 1px solid var(--border-color);
  }
  .nav-link { 
    border-bottom: 1px solid var(--border-color); 
    padding: 1rem 0 !important; 
  }
}

/* ──────────── FOOTER ──────────── */
footer { 
  background-color: #05080f; 
  padding: clamp(4rem, 8vw, 6rem) 0 2rem; 
  border-top: 1px solid var(--border-color); 
}
.footer-logo img { 
  height: clamp(35px, 5vw, 45px); 
  margin-bottom: 1.5rem; 
  filter: brightness(0) invert(1); 
}
.footer-heading { color: #fff; font-size: 1.1rem; font-weight: 600; margin-bottom: 1.5rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a { 
  color: var(--text-muted); 
  text-decoration: none; 
  transition: var(--transition); 
  font-size: 0.9rem; 
}
.footer-links a:hover { color: var(--accent-color); padding-left: 5px; }
.footer-bottom { 
  border-top: 1px solid rgba(255,255,255,0.05); 
  margin-top: clamp(2.5rem, 5vw, 4rem); 
  padding-top: 2rem; 
  display: flex; 
  justify-content: space-between; 
  flex-wrap: wrap; 
  gap: 1rem; 
  font-size: 0.85rem; 
  color: var(--text-muted); 
}

/* ──────────── MOBILE ACTION BAR ──────────── */
.mobile-action-bar {
  display: flex; 
  position: fixed; 
  bottom: 0; 
  left: 0; 
  width: 100%;
  background: rgba(17, 24, 39, 0.95); 
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-color); 
  padding: 0.75rem 1rem; 
  z-index: 1000; 
  gap: 1rem;
  transform: translateY(100%); 
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.mobile-action-bar.visible { transform: translateY(0); }
.mobile-action-btn {
  flex: 1; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  gap: 0.5rem;
  font-family: 'Plus Jakarta Sans', sans-serif; 
  font-weight: 600; 
  font-size: 0.9rem;
  padding: 0.75rem; 
  border-radius: var(--radius-sm); 
  text-decoration: none; 
  border: none;
}
.btn-call { background-color: var(--bg-hover); border: 1px solid var(--border-color); color: #fff; }
.btn-wa { background-color: #25D366; color: #fff; }

@media (min-width: 1200px) { 
  .mobile-action-bar { display: none !important; } 
}

/* ──────────── MOBILE GLOBAL RESPONSIVENESS ──────────── */
@media (max-width: 767px) { 
  body { padding-bottom: 70px; } /* Ensures bottom content isn't hidden by action bar */
  .navbar-brand img { height: 30px; }
  
  /* Make all buttons responsive on mobile */
  .btn-primary, .btn-outline {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    width: 100%;
  }
}