/* ═══════════════════════════════════════════════════════════
   IT BOY — Main Stylesheet
   Brand Color: #1a56db (Royal Blue from logo)
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

/* ── CSS Variables ── */
:root {
  --brand:        #1a56db;
  --brand-light:  #3b82f6;
  --brand-dark:   #1240a8;
  --brand-glow:   rgba(26, 86, 219, 0.35);

  /* Dark Mode (default) */
  --bg-primary:   #0c0e10;
  --bg-secondary: #111416;
  --bg-card:      #161a1e;
  --bg-card-hover:#1e2329;
  --border:       rgba(255,255,255,0.07);
  --border-brand: rgba(26,86,219,0.3);
  --text-primary: #f0f2f5;
  --text-secondary:#9da8b7;
  --text-muted:   #5c6a7e;
  --shadow:       rgba(0,0,0,0.6);
  --shadow-brand: rgba(26,86,219,0.25);

  --font-display: 'Rajdhani', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  --radius-sm:    6px;
  --radius-md:    12px;
  --radius-lg:    20px;
  --radius-xl:    32px;

  --transition:   0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Mode */
[data-theme="light"] {
  --bg-primary:   #f5f7fa;
  --bg-secondary: #ffffff;
  --bg-card:      #ffffff;
  --bg-card-hover:#f0f4ff;
  --border:       rgba(0,0,0,0.08);
  --border-brand: rgba(26,86,219,0.2);
  --text-primary: #0d1117;
  --text-secondary:#4b5563;
  --text-muted:   #9ca3af;
  --shadow:       rgba(0,0,0,0.1);
  --shadow-brand: rgba(26,86,219,0.15);
}

/* ── Reset ── */
*, *::before, *::after {
  margin: 0; padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
}

/* ── Custom Cursor ── */
#cursor {
  position: fixed; top: 0; left: 0;
  width: 10px; height: 10px;
  background: var(--brand);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%,-50%);
  transition: background 0.2s, transform 0.1s;
}
#cursor-ring {
  position: fixed; top: 0; left: 0;
  width: 36px; height: 36px;
  border: 1px solid rgba(26,86,219,0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%,-50%);
}
body:has(a:hover) #cursor,
body:has(button:hover) #cursor {
  transform: translate(-50%,-50%) scale(2);
  background: var(--brand-light);
}

/* ── Header / Navbar ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 40px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(12,14,16,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), border-color var(--transition);
}

[data-theme="light"] .site-header {
  background: rgba(245,247,250,0.9);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo img {
  height: 42px;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
}
.logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 1px;
}
.logo-text span {
  color: var(--brand);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-menu a {
  display: block;
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.nav-menu a:hover,
.nav-menu a.active {
  color: var(--brand-light);
  background: rgba(26,86,219,0.1);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Theme Toggle */
.theme-toggle {
  width: 48px; height: 26px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 13px;
  cursor: pointer;
  position: relative;
  transition: background var(--transition);
  flex-shrink: 0;
}
.theme-toggle::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 20px; height: 20px;
  background: var(--brand);
  border-radius: 50%;
  transition: transform var(--transition);
}
[data-theme="light"] .theme-toggle {
  background: rgba(26,86,219,0.15);
}
[data-theme="light"] .theme-toggle::after {
  transform: translateX(22px);
}

.nav-cta {
  padding: 9px 20px;
  background: var(--brand);
  color: #fff !important;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition) !important;
  box-shadow: 0 0 20px var(--shadow-brand);
}
.nav-cta:hover {
  background: var(--brand-light) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--shadow-brand) !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  z-index: 999;
  padding: 20px 24px;
  flex-direction: column;
  gap: 4px;
  backdrop-filter: blur(20px);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  display: block;
  padding: 12px 16px;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.mobile-nav a:hover { color: var(--brand-light); background: rgba(26,86,219,0.1); }

/* ── Section Layout ── */
.section {
  padding: 100px 0;
}
.section-sm { padding: 60px 0; }
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}
.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-light);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  width: 24px; height: 2px;
  background: var(--brand);
  border-radius: 1px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 20px;
}
.section-title span { color: var(--brand-light); }

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: background var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-brand);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px var(--shadow-brand);
}

.card-icon {
  width: 56px; height: 56px;
  background: rgba(26,86,219,0.12);
  border: 1px solid var(--border-brand);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  transition: background var(--transition), box-shadow var(--transition);
}
.card:hover .card-icon {
  background: rgba(26,86,219,0.2);
  box-shadow: 0 0 20px var(--brand-glow);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  letter-spacing: 0.3px;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 0 20px var(--shadow-brand);
}
.btn-primary:hover {
  background: var(--brand-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--shadow-brand);
}
.btn-outline {
  background: transparent;
  color: var(--brand-light);
  border: 1px solid var(--border-brand);
}
.btn-outline:hover {
  background: rgba(26,86,219,0.1);
  border-color: var(--brand);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--border-brand);
  background: rgba(255,255,255,0.04);
}

/* ── Page Hero Banner ── */
.page-hero {
  padding: 160px 0 80px;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(26,86,219,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(26,86,219,0.12);
  border: 1px solid var(--border-brand);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-light);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 20px;
}
.page-hero h1 span { color: var(--brand-light); }
.page-hero p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}

/* ── Divider ── */
.divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-light));
  border-radius: 2px;
  margin: 20px 0;
}

/* ── Footer ── */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 80px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 60px;
  padding-bottom: 60px;
}
.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: 16px;
  max-width: 280px;
}
.footer-title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-links a:hover { color: var(--brand-light); }
.footer-links a::before {
  content: '';
  width: 4px; height: 4px;
  background: var(--brand);
  border-radius: 50%;
  flex-shrink: 0;
}
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}
.footer-contact-item .icon {
  font-size: 1rem;
  margin-top: 2px;
  flex-shrink: 0;
}
.footer-contact-item p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.social-icons {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}
.social-icon {
  width: 38px; height: 38px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition);
}
.social-icon:hover {
  background: rgba(26,86,219,0.15);
  border-color: var(--brand);
  color: var(--brand-light);
  transform: translateY(-2px);
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-bottom a { color: var(--brand-light); text-decoration: none; }

/* ── Grid Helpers ── */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }

/* ── Page Transitions ── */
.page-section { display: none; }
.page-section.active { display: block; }

/* ── Animations ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 15px var(--brand-glow); }
  50%       { box-shadow: 0 0 35px var(--brand-glow), 0 0 60px rgba(26,86,219,0.15); }
}

.animate-fade-up { animation: fadeInUp 0.6s ease forwards; }
.animate-fade    { animation: fadeIn 0.6s ease forwards; }
.animate-slide   { animation: slideInLeft 0.6s ease forwards; }

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Gradient Text ── */
.gradient-text {
  background: linear-gradient(135deg, var(--brand-light), #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Badge ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: rgba(26,86,219,0.12);
  border: 1px solid var(--border-brand);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-light);
  letter-spacing: 0.5px;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 768px) {
  .container, .container-wide { padding: 0 20px; }
  .site-header { padding: 0 20px; }
  .nav-menu, .nav-right .nav-cta { display: none; }
  .hamburger { display: flex; }
  .nav-right .theme-toggle { display: flex; }
  .section { padding: 70px 0; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  #cursor, #cursor-ring { display: none; }
  body { cursor: auto; }
  .page-hero { padding: 120px 0 60px; }
}
