/* =============================================
   ADITYA MHASKE PORTFOLIO – GLOBAL DESIGN SYSTEM
   Electric Indigo + Cyan on Deep Dark
   ============================================= */

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

/* === CSS TOKENS === */
:root {
  --bg-primary:    #06060f;
  --bg-secondary:  #0d0d1f;
  --bg-card:       #10101e;
  --bg-glass:      rgba(255,255,255,0.04);
  --border-glass:  rgba(255,255,255,0.08);

  --indigo:        #6366f1;
  --indigo-light:  #818cf8;
  --indigo-dark:   #4338ca;
  --cyan:          #22d3ee;
  --cyan-light:    #67e8f9;
  --purple:        #a855f7;

  --grad-primary:  linear-gradient(135deg, #6366f1 0%, #22d3ee 100%);
  --grad-hero:     linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #22d3ee 100%);
  --grad-card:     linear-gradient(135deg, rgba(99,102,241,0.15) 0%, rgba(34,211,238,0.08) 100%);

  --text-primary:  #f0f0ff;
  --text-secondary:#a0a0c0;
  --text-muted:    #6060a0;

  --font-head:     'Space Grotesk', sans-serif;
  --font-body:     'Inter', sans-serif;

  --radius-sm:     8px;
  --radius-md:     14px;
  --radius-lg:     20px;
  --radius-xl:     32px;

  --shadow-glow:   0 0 40px rgba(99,102,241,0.25);
  --shadow-card:   0 4px 32px rgba(0,0,0,0.5);
  --shadow-cyan:   0 0 30px rgba(34,211,238,0.2);

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

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--indigo); border-radius: 3px; }

/* =============================================
   NAVIGATION
   ============================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 2rem;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(6, 6, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
  background: rgba(6, 6, 15, 0.95);
}

.nav-brand {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  position: relative;
  transition: var(--transition);
  letter-spacing: 0.01em;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: var(--bg-glass);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%;
  transform: translateX(-50%);
  width: 20px; height: 2px;
  background: var(--grad-primary);
  border-radius: 2px;
}

.nav-cta {
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1.25rem !important;
  background: var(--grad-primary) !important;
  color: white !important;
  border-radius: var(--radius-sm) !important;
  -webkit-text-fill-color: white !important;
}
.nav-cta:hover { opacity: 0.9; transform: translateY(-1px); }

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

.nav-mobile {
  display: none;
  position: fixed;
  top: 70px; left: 0; right: 0;
  background: rgba(6,6,15,0.97);
  border-bottom: 1px solid var(--border-glass);
  padding: 1.5rem;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 999;
  backdrop-filter: blur(20px);
}
.nav-mobile a {
  font-size: 1rem;
  font-weight: 500;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  display: block;
  transition: var(--transition);
}
.nav-mobile a:hover, .nav-mobile a.active {
  color: var(--text-primary);
  background: var(--bg-glass);
}
.nav-mobile.open { display: flex; }

/* =============================================
   PAGE HERO (Shared page banner)
   ============================================= */
.page-hero {
  padding: 140px 2rem 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(99,102,241,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 1rem;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-hero p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto;
}

/* =============================================
   SECTION LAYOUT
   ============================================= */
.section {
  padding: 80px 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

/* =============================================
   CARDS
   ============================================= */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-card);
  opacity: 0;
  transition: var(--transition);
  border-radius: inherit;
}

.card:hover {
  border-color: rgba(99,102,241,0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.card:hover::before { opacity: 1; }

.card > * { position: relative; z-index: 1; }

/* =============================================
   BADGES / TAGS
   ============================================= */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid;
  transition: var(--transition);
  cursor: default;
}

.badge-indigo {
  color: var(--indigo-light);
  border-color: rgba(99,102,241,0.3);
  background: rgba(99,102,241,0.1);
}

.badge-cyan {
  color: var(--cyan);
  border-color: rgba(34,211,238,0.3);
  background: rgba(34,211,238,0.1);
}

.badge-purple {
  color: #d8b4fe;
  border-color: rgba(168,85,247,0.3);
  background: rgba(168,85,247,0.1);
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--grad-primary);
  color: white;
  box-shadow: 0 4px 20px rgba(99,102,241,0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99,102,241,0.5);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
}
.btn-outline:hover {
  border-color: var(--indigo);
  background: rgba(99,102,241,0.1);
  transform: translateY(-2px);
}

/* =============================================
   GRADIENT TEXT UTILITY
   ============================================= */
.grad-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.grad-text-hero {
  background: var(--grad-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-glass);
  padding: 60px 2rem 30px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  align-items: start;
}

.footer-brand h3 {
  font-size: 1.5rem;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 340px;
}

.footer-contact h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1rem;
}

.footer-contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}
.footer-contact-email:hover { color: var(--indigo-light); }

.footer-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-social-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  background: var(--bg-glass);
  transition: var(--transition);
}
.footer-social-links a:hover {
  color: var(--text-primary);
  border-color: rgba(99,102,241,0.4);
  background: rgba(99,102,241,0.1);
  transform: translateY(-2px);
}

.footer-divider {
  height: 1px;
  background: var(--border-glass);
  margin-bottom: 1.5rem;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}
.footer-bottom-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: var(--transition);
}
.footer-bottom-links a:hover { color: var(--indigo-light); }

/* =============================================
   SCROLL ANIMATIONS
   ============================================= */
.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; }

/* =============================================
   GLOW DOTS DECORATION
   ============================================= */
.glow-dot {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  opacity: 0.4;
}
.glow-dot-1 { width: 400px; height: 400px; background: var(--indigo); top: -100px; right: -100px; }
.glow-dot-2 { width: 300px; height: 300px; background: var(--cyan); bottom: -80px; left: -80px; }
.glow-dot-3 { width: 250px; height: 250px; background: var(--purple); top: 50%; left: 50%; transform: translate(-50%,-50%); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .page-hero { padding: 110px 1.25rem 60px; }

  .section { padding: 60px 1.25rem; }

  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-bottom-links { justify-content: center; }
}

@media (max-width: 480px) {
  .footer-social-links a span { display: none; }
}

/* =========================================
   SCROLL TO TOP / BOTTOM BUTTON
   ========================================= */
.scroll-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--indigo-light);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 999;
  transition: all 0.3s ease;
  border: none;
  opacity: 0.8;
}

.scroll-btn:hover {
  transform: translateY(-3px);
  opacity: 1;
  box-shadow: 0 6px 16px rgba(118, 75, 162, 0.4);
}
