/* ============================================
   AahilArshil Solutions - Premium Website CSS
   ============================================ */

/* ---------- CSS Variables / Design Tokens ---------- */
:root {
  /* Colors - Light Mode */
  --bg-primary: #f8f9fc;
  --bg-secondary: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.65);
  --bg-glass-border: rgba(255, 255, 255, 0.35);
  --text-primary: #1a1a2e;
  --text-secondary: #4a4a6a;
  --text-muted: #7a7a9a;
  --accent-1: #2563eb;
  --accent-2: #06d6a0;
  --accent-gradient: linear-gradient(135deg, #2563eb, #06d6a0);
  --accent-gradient-hover: linear-gradient(135deg, #06d6a0, #2563eb);
  --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  --card-shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.14);
  --border-color: rgba(0, 0, 0, 0.06);
  --nav-bg: rgba(248, 249, 252, 0.85);
  --input-bg: #f0f1f5;
  --input-border: #d0d1d5;
  --skill-bar-bg: #e8e9ed;
  --footer-bg: #111128;
  --footer-text: #b0b0c8;
}

[data-theme="dark"] {
  --bg-primary: #0b0b1a;
  --bg-secondary: #12122a;
  --bg-glass: rgba(18, 18, 42, 0.7);
  --bg-glass-border: rgba(255, 255, 255, 0.08);
  --text-primary: #e8e8f0;
  --text-secondary: #a8a8c8;
  --text-muted: #6a6a8a;
  --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --card-shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.55);
  --border-color: rgba(255, 255, 255, 0.06);
  --nav-bg: rgba(11, 11, 26, 0.9);
  --input-bg: #1a1a35;
  --input-border: #2a2a4a;
  --skill-bar-bg: #1a1a35;
  --footer-bg: #06060f;
  --footer-text: #6a6a8a;
}

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

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

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background-color 0.5s ease, color 0.5s ease;
}

a {
  text-decoration: none;
  color: inherit;
}

ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Animated Background ---------- */
.hero-bg-animation {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  overflow: hidden;
  z-index: 0;
}

.hero-bg-animation .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: orbFloat 8s ease-in-out infinite alternate;
}

.hero-bg-animation .orb:nth-child(1) {
  width: 500px; height: 500px;
  background: var(--accent-1);
  top: -100px; left: -100px;
  animation-duration: 10s;
}

.hero-bg-animation .orb:nth-child(2) {
  width: 400px; height: 400px;
  background: var(--accent-2);
  bottom: -80px; right: -80px;
  animation-duration: 12s;
  animation-delay: 2s;
}

.hero-bg-animation .orb:nth-child(3) {
  width: 300px; height: 300px;
  background: #7c3aed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation-duration: 14s;
  animation-delay: 4s;
}

@keyframes orbFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.1); }
  100% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.4s ease;
}

.navbar.scrolled {
  padding: 10px 0;
  box-shadow: 0 4px 30px rgba(0,0,0,0.1);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.4rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--accent-gradient);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }

/* Theme Toggle */
.theme-toggle {
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  border-radius: 50px;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  color: var(--text-primary);
}

.theme-toggle:hover {
  transform: rotate(30deg) scale(1.1);
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
}

/* Mobile Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}

.hamburger span {
  width: 24px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---------- Section Base ---------- */
section {
  padding: 100px 0;
}

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

.section-badge {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  background: var(--accent-gradient);
  color: #fff;
  margin-bottom: 16px;
}

.section-title {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

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

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 80px;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 50px;
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  backdrop-filter: blur(10px);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 28px;
  animation: fadeInUp 0.8s ease forwards;
}

.hero-badge .dot {
  width: 8px; height: 8px;
  background: var(--accent-2);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.5; }
}

.hero h1 {
  font-size: 4.2rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease 0.2s forwards;
  opacity: 0;
}

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

.hero .tagline {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
  animation: fadeInUp 0.8s ease 0.4s forwards;
  opacity: 0;
}

.hero .subtext {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 550px;
  margin: 0 auto 40px;
  animation: fadeInUp 0.8s ease 0.5s forwards;
  opacity: 0;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.6s forwards;
  opacity: 0;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.5);
}

.btn-secondary {
  background: var(--bg-glass);
  color: var(--text-primary);
  border: 1px solid var(--bg-glass-border);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  border-color: var(--accent-1);
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.15);
}

.btn .arrow {
  transition: transform 0.3s ease;
}

.btn:hover .arrow {
  transform: translateX(4px);
}

/* ---------- About Section ---------- */
.about {
  background: var(--bg-secondary);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.3;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 28px;
  font-size: 1.02rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.stat-card {
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}

.stat-card .stat-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.stat-card .stat-number {
  font-size: 1.6rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-card .stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.about-skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.about-skill-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  transition: all 0.3s ease;
}

.about-skill-item:hover {
  transform: translateY(-3px);
  border-color: var(--accent-1);
  box-shadow: var(--card-shadow-hover);
}

.about-skill-item .skill-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #fff;
  flex-shrink: 0;
}

.about-skill-item .skill-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.about-skill-item .skill-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ---------- Services Section ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  backdrop-filter: blur(16px);
  border-radius: 20px;
  padding: 36px 28px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

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

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(37, 99, 235, 0.2);
}

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

.service-icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 22px;
  color: #fff;
  transition: transform 0.4s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(-5deg);
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ---------- Projects Section ---------- */
.projects {
  background: var(--bg-secondary);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.project-card {
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  backdrop-filter: blur(16px);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s ease;
  position: relative;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-shadow-hover);
}

.project-preview {
  width: 100%;
  height: 200px;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.project-preview .project-icon {
  font-size: 3.5rem;
  color: rgba(255, 255, 255, 0.9);
  z-index: 1;
}

.project-preview::after {
  content: '';
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  top: -50px; right: -50px;
}

.project-preview::before {
  content: '';
  position: absolute;
  width: 150px; height: 150px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  bottom: -30px; left: -30px;
}

.project-card-body {
  padding: 28px;
}

.project-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: var(--accent-gradient);
  color: #fff;
  margin-bottom: 14px;
}

.project-card-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.project-card-body p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 22px;
  line-height: 1.6;
}

.btn-demo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 10px;
  background: var(--accent-gradient);
  color: #fff;
  font-weight: 600;
  font-size: 0.88rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-demo:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.4);
}

/* ---------- Skills Section ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.skill-item {
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  backdrop-filter: blur(16px);
  border-radius: 16px;
  padding: 24px 28px;
  transition: all 0.3s ease;
}

.skill-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}

.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.skill-header .skill-name {
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.skill-header .skill-name .icon {
  font-size: 1.2rem;
}

.skill-header .skill-percent {
  font-weight: 700;
  font-size: 0.9rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.skill-bar {
  width: 100%;
  height: 10px;
  background: var(--skill-bar-bg);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.skill-bar-fill {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: 10px;
  width: 0;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.skill-bar-fill::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,0.3) 50%,
    transparent 100%
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ---------- Contact Section ---------- */
.contact {
  background: var(--bg-secondary);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.contact-info > p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-size: 1rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-item .contact-icon-box {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #fff;
  flex-shrink: 0;
}

.contact-item .contact-text .label {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: block;
}

.contact-item .contact-text .value {
  font-weight: 600;
  font-size: 0.95rem;
}

.contact-item .contact-text a {
  color: var(--accent-1);
  transition: color 0.3s ease;
}

.contact-item .contact-text a:hover {
  color: var(--accent-2);
}

.contact-form-wrapper {
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  backdrop-filter: blur(16px);
  border-radius: 20px;
  padding: 36px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 12px;
  background: var(--accent-gradient);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.4);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--footer-bg);
  padding: 48px 0 28px;
  color: var(--footer-text);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 28px;
}

.footer-logo {
  font-size: 1.3rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--footer-text);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #fff;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 1.1rem;
  color: var(--footer-text);
}

.social-link:hover {
  background: var(--accent-gradient);
  color: #fff;
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  font-size: 0.82rem;
  color: var(--footer-text);
}

/* ---------- WhatsApp FAB ---------- */
.whatsapp-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  cursor: pointer;
  color: #fff;
  font-size: 1.6rem;
  animation: fabBounce 2s infinite;
}

.whatsapp-fab:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.55);
}

@keyframes fabBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ---------- Scroll Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* ---------- Scroll to Top ---------- */
.scroll-top {
  position: fixed;
  bottom: 100px;
  right: 30px;
  z-index: 998;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--accent-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  border: none;
  font-size: 1.1rem;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.5);
}

/* ---------- Loading Screen ---------- */
.loader {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  text-align: center;
}

.loader-spinner {
  width: 48px; height: 48px;
  border: 3px solid var(--border-color);
  border-top: 3px solid var(--accent-1);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loader-text {
  font-weight: 700;
  font-size: 1.1rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .section-title { font-size: 2.2rem; }
  .hero h1 { font-size: 3rem; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 280px; height: 100vh;
    background: var(--bg-secondary);
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    transition: right 0.4s ease;
    box-shadow: -8px 0 30px rgba(0,0,0,0.1);
    z-index: 100;
  }

  .nav-links.open { right: 0; }

  .hamburger { display: flex; }

  .hero h1 { font-size: 2.4rem; letter-spacing: -1px; }
  .hero .tagline { font-size: 1.1rem; }
  .hero .subtext { font-size: 0.95rem; }

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

  .about-skills-grid {
    grid-template-columns: 1fr;
  }

  section { padding: 72px 0; }

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

  .footer-links { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.9rem; }
  .section-title { font-size: 1.7rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .services-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
}

/* ---------- Mobile Nav Overlay ---------- */
.nav-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Particles */
.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--accent-1);
  border-radius: 50%;
  opacity: 0.3;
  animation: particleFloat 6s ease-in-out infinite;
}

@keyframes particleFloat {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0.3; }
  25% { transform: translateY(-60px) translateX(20px); opacity: 0.6; }
  50% { transform: translateY(-120px) translateX(-10px); opacity: 0.2; }
  75% { transform: translateY(-60px) translateX(30px); opacity: 0.5; }
}
