/* ===================================================================
   Shrikrishna K — Portfolio Website Stylesheet
   -------------------------------------------------------------------
   This file is organized into clear sections so anyone can find and
   customize the look of the site. Each section has a comment header
   explaining what it controls.

   TABLE OF CONTENTS
   1.  Google Fonts Import
   2.  CSS Custom Properties (Color & Spacing Variables) — EDIT COLORS HERE
   3.  Global Reset & Base Styles
   4.  Typography
   5.  Layout Helpers (container, sections, grid)
   6.  Buttons
   7.  Navigation Bar (sticky header + mobile hamburger)
   8.  Hero Section (with typing effect)
   9.  Section Headers
   10. Services / Feature Cards
   11. Portfolio Grid & Filter Tabs
   12. Stats Counter
   13. Testimonials
   14. About Page (bio, skills, timeline)
   15. Pricing / Packages
   16. Contact Form
   17. Footer
   18. Toast / Notification
   19. Modal (project details)
   20. Animations & Micro-interactions
   21. Responsive Breakpoints
   22. Light Theme Overrides
=================================================================== */

/* 1. GOOGLE FONTS — Inter for body, Plus Jakarta Sans for headings */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

/* 2. CSS CUSTOM PROPERTIES — CHANGE COLORS, FONTS, AND SPACING HERE
   These variables let you re-theme the entire site from one place.
   --accent is the electric blue used throughout the site. */
:root {
  /* Brand / accent colors */
  --accent: #00d2ff;
  --accent-2: #0070f3;
  --accent-glow: rgba(0, 210, 255, 0.35);
  --accent-gradient: linear-gradient(135deg, #00d2ff, #0070f3);

  /* Neutral / surface colors (dark theme is default) */
  --bg: #0a0e17;
  --bg-elevated: #111827;
  --bg-card: #151c2c;
  --bg-card-hover: #1a2336;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(0, 210, 255, 0.4);

  /* Text colors */
  --text: #e6edf3;
  --text-muted: #8b949e;
  --text-heading: #f0f6fc;

  /* Status colors */
  --success: #2ea043;
  --warning: #d29922;
  --error: #f85149;

  /* Typography */
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Plus Jakarta Sans', 'Inter', sans-serif;

  /* Spacing scale (8px system) */
  --space-1: 0.5rem;   /* 8px */
  --space-2: 1rem;     /* 16px */
  --space-3: 1.5rem;   /* 24px */
  --space-4: 2rem;     /* 32px */
  --space-5: 3rem;     /* 48px */
  --space-6: 4rem;     /* 64px */
  --space-7: 6rem;     /* 96px */

  /* Layout */
  --container-max: 1200px;
  --radius: 12px;
  --radius-lg: 20px;
  --nav-height: 72px;

  /* Transitions */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 3. GLOBAL RESET & BASE STYLES */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Decorative background glow */
body::before {
  content: '';
  position: fixed;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  opacity: 0.15;
  z-index: -1;
  pointer-events: none;
}

img {
  max-width: 100%;
  display: block;
}

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

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

ul {
  list-style: none;
}

/* 4. TYPOGRAPHY */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-heading);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.125rem; }

p { margin-bottom: var(--space-1); }

.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.text-center { text-align: center; }

/* 5. LAYOUT HELPERS */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-2);
}

.section {
  padding: var(--space-7) 0;
}

.section--alt {
  background-color: var(--bg-elevated);
}

.grid {
  display: grid;
  gap: var(--space-3);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* 6. BUTTONS
   Use .btn, .btn-primary, .btn-outline, .btn-ghost */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #001020;
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
  color: #001020;
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  background: rgba(0, 210, 255, 0.08);
  color: var(--accent);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: none;
}

.btn-ghost:hover {
  color: var(--text);
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1.1rem;
}

/* 7. NAVIGATION BAR */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(10, 14, 23, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: background var(--transition), border-color var(--transition);
}

.nav__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-2);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo — change the text in HTML to rebrand */
.nav__logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.02em;
}

.nav__logo span {
  color: var(--accent);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav__link {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  position: relative;
  transition: color var(--transition);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav__link:hover,
.nav__link.active {
  color: var(--text);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

/* Theme toggle button */
.nav__theme-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}

.nav__theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.nav__theme-toggle svg {
  width: 20px;
  height: 20px;
}

/* Hamburger button (hidden on desktop) */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.nav__hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav__hamburger.open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.nav__hamburger.open span:nth-child(2) {
  opacity: 0;
}
.nav__hamburger.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Mobile overlay menu */
.nav__overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
  z-index: 999;
}

.nav__overlay.open {
  opacity: 1;
  visibility: visible;
}

.nav__overlay .nav__link {
  font-size: 1.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
}

/* 8. HERO SECTION */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: var(--nav-height);
  overflow: hidden;
}

.hero__content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(0, 210, 255, 0.1);
  border: 1px solid rgba(0, 210, 255, 0.25);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: var(--space-3);
}

.hero__badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}

.hero__title {
  margin-bottom: var(--space-2);
}

.hero__title .accent-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Typing effect container */
.hero__typing {
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: var(--space-3);
  min-height: 2.5em;
}

.hero__typing .cursor {
  display: inline-block;
  width: 3px;
  height: 1.2em;
  background: var(--accent);
  margin-left: 4px;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

.hero__desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto var(--space-4);
}

.hero__cta {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  flex-wrap: wrap;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: var(--space-3);
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}

/* 9. SECTION HEADERS */
.section-header {
  text-align: center;
  margin-bottom: var(--space-6);
}

.section-header__eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: var(--space-1);
}

.section-header__title {
  margin-bottom: var(--space-1);
}

.section-header__desc {
  color: var(--text-muted);
  max-width: 550px;
  margin: 0 auto;
}

/* 10. SERVICES / FEATURE CARDS */
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.service-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: rgba(0, 210, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-2);
  color: var(--accent);
}

.service-card__icon svg {
  width: 28px;
  height: 28px;
}

.service-card__title {
  margin-bottom: var(--space-1);
}

.service-card__desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: var(--space-2);
}

.service-card__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.service-card__list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.service-card__list li::before {
  content: '→';
  color: var(--accent);
  font-weight: 700;
}

/* 11. PORTFOLIO GRID & FILTER TABS */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: var(--space-5);
}

.filter-tab {
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-tab:hover {
  border-color: var(--border-hover);
  color: var(--text);
}

.filter-tab.active {
  background: var(--accent-gradient);
  color: #001020;
  border-color: transparent;
  font-weight: 600;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-3);
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.project-card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.project-card__body {
  padding: var(--space-3);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-card__title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.project-card__desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: var(--space-2);
  flex: 1;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: var(--space-2);
}

.tag {
  padding: 0.25rem 0.7rem;
  background: rgba(0, 210, 255, 0.08);
  border: 1px solid rgba(0, 210, 255, 0.2);
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 500;
}

.project-card__links {
  display: flex;
  gap: var(--space-2);
  align-items: center;
}

.project-card__links a {
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap var(--transition);
}

.project-card__links a:hover {
  gap: 0.6rem;
}

/* 12. STATS COUNTER */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-3);
}

.stat {
  text-align: center;
  padding: var(--space-4) var(--space-2);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition);
}

.stat:hover {
  border-color: var(--border-hover);
}

.stat__number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.stat__label {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* 13. TESTIMONIALS */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-3);
}

.testimonial {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  transition: all var(--transition);
}

.testimonial:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.testimonial__quote {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: var(--space-3);
  position: relative;
}

.testimonial__quote::before {
  content: '"';
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--accent);
  opacity: 0.2;
  position: absolute;
  top: -1.5rem;
  left: -0.5rem;
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  color: #001020;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.testimonial__name {
  font-weight: 600;
  color: var(--text-heading);
}

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

/* 14. ABOUT PAGE */
.about-hero {
  padding-top: calc(var(--nav-height) + var(--space-5));
  padding-bottom: var(--space-5);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-5);
  align-items: start;
}

.about__photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 1;
  background: var(--bg-card);
}

.about__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__bio p {
  margin-bottom: var(--space-2);
  color: var(--text-muted);
  font-size: 1.05rem;
}

.about__bio strong {
  color: var(--text);
}

/* Skills grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-2);
}

.skill {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-2) var(--space-3);
  transition: border-color var(--transition);
}

.skill:hover {
  border-color: var(--border-hover);
}

.skill__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.skill__name {
  font-weight: 600;
  font-size: 0.95rem;
}

.skill__pct {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
}

.skill__bar {
  height: 6px;
  background: var(--bg-elevated);
  border-radius: 3px;
  overflow: hidden;
}

.skill__fill {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: 3px;
  width: 0;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline__item {
  position: relative;
  padding-left: 60px;
  padding-bottom: var(--space-4);
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__dot {
  position: absolute;
  left: 13px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-gradient);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent);
}

.timeline__date {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.timeline__title {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.timeline__org {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.timeline__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* 15. PRICING / PACKAGES */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-3);
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
  position: relative;
}

.pricing-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.pricing-card--featured {
  border-color: var(--accent);
  box-shadow: 0 0 30px rgba(0, 210, 255, 0.12);
}

.pricing-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-gradient);
  color: #001020;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 1rem;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-card__name {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.pricing-card__desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: var(--space-2);
}

.pricing-card__price {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: var(--space-2);
}

.pricing-card__price span {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

.pricing-card__features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: var(--space-3);
  flex: 1;
}

.pricing-card__features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pricing-card__features li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

.pricing-card .btn {
  width: 100%;
}

/* 16. CONTACT FORM */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-5);
  align-items: start;
}

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.contact-info__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: rgba(0, 210, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-info__icon svg {
  width: 24px;
  height: 24px;
}

.contact-info__label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.contact-info__value {
  font-weight: 600;
  color: var(--text-heading);
}

.contact-info__value a {
  color: var(--text-heading);
}

.contact-info__value a:hover {
  color: var(--accent);
}

/* Form */
.form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}

.form__group {
  margin-bottom: var(--space-2);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}

.form__label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.form__input,
.form__textarea,
.form__select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition);
}

.form__input:focus,
.form__textarea:focus,
.form__select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form__input.error,
.form__textarea.error {
  border-color: var(--error);
}

.form__error {
  display: none;
  font-size: 0.8rem;
  color: var(--error);
  margin-top: 0.35rem;
}

.form__error.show {
  display: block;
}

.form__textarea {
  resize: vertical;
  min-height: 140px;
}

.form__btn {
  width: 100%;
  margin-top: var(--space-1);
}

/* 17. FOOTER */
.footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: var(--space-5) 0 var(--space-3);
}

.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.footer__brand {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: var(--space-1);
}

.footer__brand span {
  color: var(--accent);
}

.footer__desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 300px;
}

.footer__col-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-heading);
  margin-bottom: var(--space-2);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer__links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

.footer__social {
  display: flex;
  gap: var(--space-1);
  margin-top: var(--space-2);
}

.footer__social a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition);
}

.footer__social a:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.footer__social svg {
  width: 20px;
  height: 20px;
}

.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: var(--space-3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-1);
}

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

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

.footer__credit a {
  color: var(--accent);
}

/* 18. TOAST / NOTIFICATION */
.toast {
  position: fixed;
  bottom: var(--space-3);
  right: var(--space-3);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-2) var(--space-3);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  z-index: 2000;
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 380px;
}

.toast.show {
  transform: translateX(0);
}

.toast--success {
  border-color: var(--success);
}

.toast--success .toast__icon {
  color: var(--success);
}

.toast--error {
  border-color: var(--error);
}

.toast--error .toast__icon {
  color: var(--error);
}

.toast__icon {
  flex-shrink: 0;
}

.toast__icon svg {
  width: 24px;
  height: 24px;
}

.toast__text {
  font-size: 0.9rem;
  color: var(--text);
}

/* 19. MODAL (project details) */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
  z-index: 3000;
}

.modal.open {
  opacity: 1;
  visibility: visible;
}

.modal__content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: var(--space-4);
  transform: scale(0.95);
  transition: transform var(--transition);
}

.modal.open .modal__content {
  transform: scale(1);
}

.modal__close {
  float: right;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--transition);
}

.modal__close:hover {
  color: var(--error);
  border-color: var(--error);
}

.modal__image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: var(--space-2);
}

.modal__title {
  margin-bottom: 0.5rem;
}

.modal__desc {
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}

.modal__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: var(--space-3);
}

.modal__links {
  display: flex;
  gap: var(--space-2);
}

/* 20. ANIMATIONS & MICRO-INTERACTIONS */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes scroll-line {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Reveal-on-scroll: add class .reveal to any element */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 21. RESPONSIVE BREAKPOINTS */
@media (max-width: 968px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .about__photo {
    max-width: 350px;
    margin: 0 auto;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer__top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  /* Show hamburger, hide desktop nav links */
  .nav__links {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  /* Keep theme toggle visible on mobile */
  .nav__inner {
    gap: var(--space-2);
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .form__row {
    grid-template-columns: 1fr;
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .hero__cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__cta .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
  }
}

/* 22. LIGHT THEME OVERRIDES
   When <body> has class "light", these variables override the dark theme.
   Change these colors to customize the light mode. */
body.light {
  --bg: #f6f8fc;
  --bg-elevated: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f0f4fa;
  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 112, 243, 0.3);

  --text: #3b4252;
  --text-muted: #6b7280;
  --text-heading: #1a202c;

  --accent: #0070f3;
  --accent-2: #0058c5;
  --accent-glow: rgba(0, 112, 243, 0.2);
  --accent-gradient: linear-gradient(135deg, #00d2ff, #0070f3);
}

body.light .nav {
  background: rgba(246, 248, 252, 0.8);
}

body.light .nav__hamburger span {
  background: #1a202c;
}

body.light .nav__overlay {
  background: var(--bg);
}

body.light .toast {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
