/* ==========================================
   CODEXYRA – ULTIMATE RESPONSIVE STYLES
   MOBILE-FIRST, ZERO HORIZONTAL OVERFLOW
============================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --dark: #0a0c0f;
  --darker: #07090b;
  --light: #f8fafc;
  --gray: #94a3b8;
  --shadow-sm: 0 4px 6px -1px rgba(0,0,0,0.1);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1);
  --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.25);
  --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { 
  width: 100%; max-width: 100%; overflow-x: hidden; 
  position: relative; scroll-behavior: smooth;
}
body {
  font-family: 'Inter', sans-serif;
  background: #fff;
  color: #1e293b;
  padding-top: 70px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ----- NAVBAR (GLASS, FULLY RESPONSIVE) ----- */
.navbar {
  background: rgba(10,12,15,0.98) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 0.6rem 0;
}
.navbar-brand { font-size: 1.5rem; display: flex; align-items: center; gap: 10px; }
.navbar-brand img { border-radius: 8px; width: 36px; height: 36px; object-fit: cover; }
.nav-link {
  color: rgba(255,255,255,0.9) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  position: relative;
}
.nav-link::after {
  content: ''; position: absolute; bottom: 0; left: 50%;
  width: 0; height: 2px; background: var(--primary);
  transition: 0.3s; transform: translateX(-50%); opacity: 0;
}
.nav-link:hover::after, .nav-link.active::after { width: 80%; opacity: 1; }
.nav-link.active { color: #fff !important; font-weight: 700; }

/* ----- HERO (NO OVERFLOW) ----- */
.hero {
  min-height: 85vh;
  background: radial-gradient(circle at 80% 30%, #1e293b, #0f172a);
  display: flex; align-items: center;
  padding: 2rem 0;
}
.hero-badge {
  background: rgba(255,255,255,0.1); backdrop-filter: blur(4px);
  padding: 0.5rem 1.2rem; border-radius: 40px;
  color: #e2e8f0; border: 1px solid rgba(255,255,255,0.2);
  font-size: 0.85rem; letter-spacing: 1px;
}
.hero h1 { font-size: 2.5rem; font-weight: 800; color: white; line-height: 1.2; }
.hero .highlight { background: linear-gradient(135deg, #60a5fa, #a78bfa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 1.1rem; color: #e2e8f0; }
.btn-lg { padding: 0.8rem 1.8rem; font-weight: 600; }

/* ----- SECTION HEADERS ----- */
.section-header h2 { font-size: 2rem; font-weight: 700; }
.title-underline { width: 70px; height: 4px; background: linear-gradient(90deg, #3b82f6, #c084fc); border-radius: 4px; }

/* ----- CARDS (MOBILE OPTIMIZED) ----- */
.card { border: none; border-radius: 24px; transition: var(--transition); background: white; }
.service-card { padding: 1.8rem 1.2rem; box-shadow: var(--shadow-sm); }
.service-icon {
  font-size: 2.2rem; color: var(--primary);
  background: #eef2ff; width: 70px; height: 70px;
  line-height: 70px; border-radius: 20px; transition: var(--transition);
}
.card:hover .service-icon { background: var(--primary); color: white; transform: scale(1.05); }

/* PORTFOLIO CARDS */
.portfolio-card { overflow: hidden; border-radius: 20px; }
.portfolio-card img { height: 240px; object-fit: cover; transition: transform 0.6s; width: 100%; }
.portfolio-card:hover img { transform: scale(1.1); }
.portfolio-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.5rem; opacity: 0; transition: 0.4s; color: white;
}
.portfolio-card:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay h5 { transform: translateY(15px); transition: 0.3s; }
.portfolio-card:hover .portfolio-overlay h5 { transform: translateY(0); }

/* PRICING CARDS */
.pricing-card { padding: 2rem 1.5rem; border-radius: 32px; }
.pricing-card.popular { transform: scale(1.02); border: 2px solid var(--primary); box-shadow: 0 25px 40px -12px #3b82f650; }
.pricing-card.popular::before {
  content: 'MOST POPULAR'; position: absolute; top: -12px; left: 50%;
  transform: translateX(-50%); background: var(--primary); color: white;
  padding: 0.4rem 1.5rem; border-radius: 40px; font-size: 0.75rem; font-weight: 700;
}
.pricing-features li { padding: 0.4rem 0; display: flex; align-items: center; gap: 10px; }

/* CONTACT PAGE */
.contact-card { background: white; border-radius: 40px; padding: 2rem; box-shadow: var(--shadow-xl); }
.contact-detail a { text-decoration: none; color: #1e293b; font-weight: 500; }
.contact-detail a:hover { color: var(--primary); }

/* STUDENT RESOURCES */
.resource-card { border: 1px solid #e2e8f0; transition: var(--transition); }
.resource-card:hover { border-color: var(--primary); transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.btn-link { color: var(--primary); transition: 0.2s; }
.btn-link:hover { gap: 10px; color: var(--primary-dark); }

/* FOOTER */
.footer { background: #0a0c0f; color: #cbd5e1; padding: 3rem 0 1.5rem; }
.footer h5 { color: white; font-weight: 700; margin-bottom: 1.5rem; }
.footer-links a { color: #94a3b8; text-decoration: none; transition: 0.2s; display: inline-flex; align-items: center; }
.footer-links a:hover { color: white; transform: translateX(5px); }
.footer-contact a { color: #94a3b8; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); margin-top: 2rem; padding-top: 1.5rem; }

/* WHATSAPP FLOATING BUTTON */
.whatsapp-btn {
  position: fixed; bottom: 20px; right: 20px;
  background: #25D366; color: white; width: 60px; height: 60px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 2rem; box-shadow: 0 10px 25px rgba(37,211,102,0.4);
  transition: 0.3s; z-index: 9999; text-decoration: none;
}
.whatsapp-btn:hover { transform: scale(1.1); background: #20b859; color: white; }

/* 404 PAGE */
.error-404 { min-height: 70vh; }
.error-404 h1 { font-size: 6rem; font-weight: 800; background: linear-gradient(145deg, #1e293b, #0f172a); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* GLASS UTILITY */
.glass { background: rgba(255,255,255,0.05); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.1); }

/* ===== RESPONSIVE FIXES ===== */
@media (max-width: 576px) {
  body { padding-top: 62px; }
  .navbar-brand { font-size: 1.3rem; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .btn-lg { padding: 0.6rem 1.2rem; font-size: 1rem; }
  .section-header h2 { font-size: 1.8rem; }
  .service-card { padding: 1.5rem 0.8rem; }
  .pricing-card { padding: 1.5rem; }
  .contact-card { padding: 1.5rem; }
  .error-404 h1 { font-size: 4rem; }
  .whatsapp-btn { width: 52px; height: 52px; font-size: 1.8rem; bottom: 15px; right: 15px; }
}
@media (min-width: 577px) and (max-width: 768px) {
  .hero h1 { font-size: 2.3rem; }
}