/* ============================================
   BASANT JOSHI PORTFOLIO — MAIN STYLES
   ============================================ */

:root {
  --bg-primary:    #f4f8fc;
  --bg-secondary:  #eaf2fa;
  --bg-card:       #ffffff;
  --accent:        #2a85c8;
  --accent-2:      #1a5fa0;
  --accent-3:      #e8a020;
  --text-primary:  #1a2a3a;
  --text-secondary:#4a6a8a;
  --text-muted:    #8aaac4;
  --border:        rgba(42, 133, 200, 0.14);
  --border-hover:  rgba(42, 133, 200, 0.45);
  --gradient:      linear-gradient(135deg, #2a85c8, #1a5fa0);
  --gradient-2:    linear-gradient(135deg, #1a5fa0, #e8a020);
  --shadow-glow:   0 0 40px rgba(42, 133, 200, 0.18);
  --shadow-card:   0 8px 40px rgba(42, 100, 160, 0.10);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

*, *::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);
  overflow-x: hidden;
  /* cursor: default — normal cursor restored */
  line-height: 1.6;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

/* ---- CURSOR: completely removed ---- */
.cursor, .cursor-follower { display: none !important; }

/* ---- LOADER ---- */
.loader {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.6s ease, visibility 0.6s;
}
.loader.hidden { opacity: 0; visibility: hidden; }
.loader-inner { text-align: center; }
.loader-text {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 20px;
}
.loader-bar {
  width: 200px;
  height: 3px;
  background: var(--bg-card);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto;
}
.loader-fill {
  height: 100%;
  background: var(--gradient);
  border-radius: 2px;
  animation: loadProgress 1.8s ease forwards;
}
@keyframes loadProgress { from { width: 0; } to { width: 100%; } }

/* ---- NAVBAR ---- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all var(--transition);
}
.navbar.scrolled {
  background: rgba(244, 248, 252, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 14px 5%;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 30px rgba(42, 100, 160, 0.10);
}
.logo-text {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}
.accent { color: var(--accent); }
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav-link {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: 0.5px;
  position: relative;
  transition: color var(--transition);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--gradient);
  border-radius: 1px;
  transition: width var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--text-primary); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-right { display: flex; align-items: center; gap: 16px; }
.btn-hire {
  padding: 10px 24px;
  background: var(--gradient);
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-body);
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(42, 133, 200, 0.30);
}
.btn-hire:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(42, 133, 200, 0.45);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: all var(--transition);
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 5% 80px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
#particleCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orbFloat 8s ease-in-out infinite;
}
.orb1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(42,133,200,0.13) 0%, transparent 70%);
  top: -100px; right: 10%;
  animation-delay: 0s;
}
.orb2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(26,95,160,0.10) 0%, transparent 70%);
  bottom: -50px; left: 5%;
  animation-delay: -3s;
}
.orb3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(232,160,32,0.08) 0%, transparent 70%);
  top: 40%; left: 40%;
  animation-delay: -6s;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -30px) scale(1.05); }
  66% { transform: translate(-15px, 20px) scale(0.95); }
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  flex: 1;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(42, 133, 200, 0.10);
  border: 1px solid rgba(42, 133, 200, 0.25);
  border-radius: 50px;
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 28px;
  letter-spacing: 0.5px;
}
.tag-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1px;
}
.name-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 20px;
  min-height: 30px;
  font-family: var(--font-display);
}
.cursor-blink {
  animation: blink 1s infinite;
  color: var(--accent);
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.hero-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 480px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--gradient);
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-body);
  transition: all var(--transition);
  box-shadow: 0 4px 25px rgba(42, 133, 200, 0.30);
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 40px rgba(42, 133, 200, 0.50);
}
.btn-primary i { transition: transform var(--transition); }
.btn-primary:hover i { transform: translateX(4px); }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  background: transparent;
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-body);
  border: 1.5px solid var(--border-hover);
  transition: all var(--transition);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(42, 133, 200, 0.07);
  transform: translateY(-3px);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  background: transparent;
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-body);
  border: 1.5px solid var(--border-hover);
  transition: all var(--transition);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.hero-socials {
  display: flex;
  gap: 14px;
}
.social-icon {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(42, 133, 200, 0.07);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-decoration: none;
  transition: all var(--transition);
}
.social-icon:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(42, 133, 200, 0.12);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(42, 133, 200, 0.22);
}

/* ---- HERO IMAGE / PHOTO ---- */
.hero-image {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  margin-left: auto;
  padding-left: 60px;
}
.image-wrapper {
  position: relative;
  width: 360px;
  height: 360px;
}
.image-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid transparent;
}
.ring1 {
  inset: -20px;
  border-color: rgba(42, 133, 200, 0.25);
  animation: ringRotate 12s linear infinite;
}
.ring2 {
  inset: -40px;
  border-color: rgba(26, 95, 160, 0.18);
  border-style: dashed;
  animation: ringRotate 20s linear infinite reverse;
}
@keyframes ringRotate { to { transform: rotate(360deg); } }

/* Real photo display */
.avatar-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(42, 133, 200, 0.25);
  box-shadow: var(--shadow-glow), 0 20px 60px rgba(42,100,160,0.20);
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, #e8f3fb, #d0e8f7);
}
.avatar-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
/* Fallback if image fails */
.avatar-photo.fallback::after {
  content: 'BJ';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.float-badge {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 10px 18px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  box-shadow: var(--shadow-card);
  z-index: 2;
  backdrop-filter: blur(10px);
}
.float-badge i { color: var(--accent); }
.badge1 { bottom: 20px; left: -50px; animation: floatY 3s ease-in-out infinite; }
.badge2 { top: 20px; right: -40px; animation: floatY 3s ease-in-out infinite 1.5s; }
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  z-index: 2;
}
.scroll-line {
  width: 1.5px;
  height: 50px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollAnim 2s ease-in-out infinite;
}
@keyframes scrollAnim {
  0%, 100% { opacity: 1; height: 50px; }
  50% { opacity: 0.3; height: 30px; }
}

/* ---- CONTAINER ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

/* ---- SECTIONS ---- */
section:not(.hero) {
  padding: 100px 0;
}
.section-header {
  text-align: center;
  margin-bottom: 70px;
}
.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 14px;
  position: relative;
}
.section-tag::before, .section-tag::after {
  content: '—';
  margin: 0 8px;
  opacity: 0.5;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}
.section-sub {
  color: var(--text-secondary);
  margin-top: 14px;
  font-size: 1rem;
}

/* ---- ABOUT ---- */
.about { background: var(--bg-secondary); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: center;
}
.about-img-card {
  position: relative;
  width: 300px;
  height: 340px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin: 0 auto;
  box-shadow: var(--shadow-card);
}
.about-real-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: var(--radius);
}
.about-avatar-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e8f3fb, #d6ecf8);
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 800;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-image: var(--gradient);
}
.experience-badge {
  position: absolute;
  bottom: -18px;
  right: -18px;
  background: var(--gradient);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  text-align: center;
  box-shadow: 0 8px 30px rgba(42, 133, 200, 0.35);
  z-index: 2;
}
.exp-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.exp-text {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  white-space: nowrap;
}
.about-heading {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.3;
}
.about-text {
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 16px;
}
.about-text strong { color: var(--text-primary); }
.about-stats {
  display: flex;
  gap: 30px;
  margin: 36px 0;
  align-items: center;
}
.stat-item { text-align: center; }
.stat-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-sym { color: var(--accent); font-size: 1.5rem; font-weight: 700; }
.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.stat-divider {
  width: 1px;
  height: 50px;
  background: var(--border);
}
.about-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; }

/* ---- SKILLS ---- */
.skills { background: var(--bg-primary); }
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.skill-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient);
  opacity: 0;
  transition: opacity var(--transition);
}
.skill-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
}
.skill-card:hover::before { opacity: 0.04; }
.skill-icon {
  font-size: 2.5rem;
  margin-bottom: 14px;
  position: relative;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.skill-card h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 14px;
  position: relative;
}
.skill-bar {
  height: 4px;
  background: rgba(42, 133, 200, 0.12);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 8px;
  position: relative;
}
.skill-fill {
  height: 100%;
  background: var(--gradient);
  border-radius: 2px;
  width: 0;
  transition: width 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.skill-percent {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  position: relative;
}

/* ---- PROJECTS ---- */
.projects { background: var(--bg-secondary); }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 100%;
  margin: 0 auto;
}
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}
.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-8px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}
.project-img {
  height: 150px;
  background: linear-gradient(135deg, #ddeef8, #c8e3f5);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-placeholder {
  font-size: 2.8rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: transform var(--transition);
}
.project-card:hover .project-placeholder { transform: scale(1.1); }
.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(42, 85, 140, 0.80);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  opacity: 0;
  transition: opacity var(--transition);
  backdrop-filter: blur(4px);
}
.project-card:hover .project-overlay { opacity: 1; }
.project-link {
  width: 50px; height: 50px;
  background: var(--gradient);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  text-decoration: none;
  transform: translateY(20px);
  transition: all var(--transition);
}
.project-card:hover .project-link { transform: translateY(0); }
.project-link:last-child { transition-delay: 0.08s; }
.project-link:hover { transform: scale(1.1) !important; }
.project-info { padding: 24px; }
.project-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.project-tags span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(42, 133, 200, 0.10);
  border: 1px solid rgba(42, 133, 200, 0.20);
  padding: 4px 10px;
  border-radius: 50px;
  letter-spacing: 0.3px;
}
.project-info h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
  transition: color var(--transition);
}
.project-card:hover .project-info h3 { color: var(--accent); }
.project-info p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---- CONTACT ---- */
.contact { background: var(--bg-primary); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 60px;
  align-items: start;
}
.contact-info h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 30px;
  color: var(--text-primary);
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}
.contact-icon {
  width: 48px; height: 48px;
  background: rgba(42,133,200,0.10);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: all var(--transition);
}
.contact-item:hover .contact-icon {
  background: rgba(42,133,200,0.18);
  border-color: var(--accent);
  transform: scale(1.05);
}
.contact-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 4px;
}
.contact-value {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition);
  font-size: 0.95rem;
}
.contact-value:hover { color: var(--accent); }
.contact-socials {
  margin-top: 40px;
}
.contact-socials > span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 14px;
}
.social-links { display: flex; gap: 12px; }
.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px;
  box-shadow: var(--shadow-card);
}
.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.form-group input,
.form-group textarea {
  background: #f7fbff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all var(--transition);
  outline: none;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: #edf6ff;
  box-shadow: 0 0 0 3px rgba(42,133,200,0.10);
}
.form-error {
  font-size: 0.78rem;
  color: #ff4d6d;
  display: block;
  min-height: 16px;
}
.btn-submit {
  width: 100%;
  padding: 16px;
  background: var(--gradient);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 25px rgba(42, 133, 200, 0.30);
  margin-top: 6px;
}
.btn-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(42, 133, 200, 0.45);
}
.btn-submit:disabled { opacity: 0.7; cursor: not-allowed; }
.form-success, .form-fail {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  display: none;
  align-items: center;
  gap: 10px;
}
.form-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
}
.form-fail {
  background: rgba(255, 77, 109, 0.1);
  border: 1px solid rgba(255, 77, 109, 0.3);
  color: #ff4d6d;
}
.form-success.show, .form-fail.show { display: flex; }

/* ---- FOOTER ---- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 40px 5%;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
}
.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.heart { color: #ff4d6d; }
.footer-socials {
  display: flex;
  gap: 12px;
}
.footer-socials a {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-decoration: none;
  transition: all var(--transition);
}
.footer-socials a:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ---- BACK TO TOP ---- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px; height: 48px;
  background: var(--gradient);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(42, 133, 200, 0.30);
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover { transform: translateY(-4px); }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .skills-grid { grid-template-columns: repeat(3, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-image { display: none; }
  .hero-content { max-width: 100%; }
  .about-grid { grid-template-columns: 1fr; gap: 50px; }
  .about-image { display: none; }
}
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    height: 100vh;
    width: 260px;
    background: rgba(244, 248, 252, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 1px solid var(--border);
    z-index: 999;
    box-shadow: -8px 0 40px rgba(42,100,160,0.10);
  }
  .nav-links.open { right: 0; }
  .nav-link { font-size: 1.1rem; }
  .hamburger { display: flex; }
  .btn-hire { display: none; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 28px 20px; }
  .contact-form .form-row { grid-template-columns: 1fr; }
  .hero { padding: 100px 5% 60px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .about-stats { gap: 16px; }
  .hero-actions { flex-direction: column; }
  .about-actions { flex-direction: column; }
}