/* ============================================================
   ARYA — FRONTEND PORTFOLIO
   style.css
   ============================================================ */

/* ── CSS VARIABLES ─────────────────────────────────────────── */
:root {
  --primary:        #4f46e5;
  --primary-light:  #7c3aed;
  --primary-glow:   rgba(79, 70, 229, 0.25);
  --accent:         #06b6d4;
  --bg:             #f8f7ff;
  --bg-alt:         #f0efff;
  --surface:        #ffffff;
  --surface-2:      #f4f3ff;
  --border:         rgba(79, 70, 229, 0.12);
  --text-primary:   #0f0d2e;
  --text-secondary: #4a4870;
  --text-muted:     #8b88ae;
  --shadow-sm:      0 2px 12px rgba(79,70,229,.08);
  --shadow-md:      0 8px 32px rgba(79,70,229,.14);
  --shadow-lg:      0 20px 60px rgba(79,70,229,.18);
  --radius:         16px;
  --radius-sm:      10px;
  --transition:     0.3s cubic-bezier(0.4,0,0.2,1);
  --font-main:      'Poppins', sans-serif;
  --font-mono:      'Space Mono', monospace;
  --nav-h:          72px;
}

[data-theme="dark"] {
  --bg:             #0b0a1a;
  --bg-alt:         #110f2a;
  --surface:        #16142e;
  --surface-2:      #1d1b38;
  --border:         rgba(124,58,237,.18);
  --text-primary:   #f0eeff;
  --text-secondary: #a9a5cc;
  --text-muted:     #6a6890;
  --shadow-sm:      0 2px 12px rgba(0,0,0,.4);
  --shadow-md:      0 8px 32px rgba(0,0,0,.5);
  --shadow-lg:      0 20px 60px rgba(0,0,0,.6);
  --primary-glow:   rgba(124,58,237,.3);
}

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

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

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

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

::selection {
  background: var(--primary);
  color: #fff;
}

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

/* ── PRELOADER ────────────────────────────────────────────── */
#preloader {
  position: fixed; inset: 0;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s, visibility 0.5s;
}
#preloader.hidden { opacity: 0; visibility: hidden; }

.preloader-inner { text-align: center; }

.pl-ring {
  width: 52px; height: 52px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 12px;
}

.pl-text {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

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

/* ── NAVBAR ──────────────────────────────────────────────── */
#mainNav {
  height: var(--nav-h);
  background: transparent;
  transition: background 0.4s, box-shadow 0.4s, backdrop-filter 0.4s;
  z-index: 1000;
}

#mainNav.scrolled {
  background: rgba(248,247,255,0.85);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
}
[data-theme="dark"] #mainNav.scrolled {
  background: rgba(11,10,26,0.85);
}

.navbar-brand {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary) !important;
  letter-spacing: -0.02em;
}
.brand-bracket {
  color: var(--primary);
  font-size: 1.1em;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary) !important;
  padding: 0.4rem 0.75rem !important;
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 50%; right: 50%;
  height: 2px;
  background: var(--primary);
  border-radius: 99px;
  transition: var(--transition);
}
.nav-link:hover,
.nav-link.active {
  color: var(--primary) !important;
}
.nav-link.active::after,
.nav-link:hover::after {
  left: 0.75rem; right: 0.75rem;
}

/* Custom toggler */
.navbar-toggler {
  border: none;
  background: none;
  padding: 4px;
  display: flex; flex-direction: column; gap: 5px;
}
.navbar-toggler:focus { box-shadow: none; }
.toggler-icon {
  display: block;
  width: 24px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* Theme toggle */
.theme-toggle {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition);
}
.theme-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: rotate(20deg);
}

/* ── SECTION COMMONS ─────────────────────────────────────── */
.section-pad { padding: 100px 0; }

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
}

.highlight {
  color: var(--primary);
  position: relative;
  display: inline-block;
}
.highlight::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 99px;
  opacity: 0.25;
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn-primary-custom {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 0.7rem 1.6rem;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px var(--primary-glow);
}
.btn-primary-custom:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px var(--primary-glow);
  color: #fff;
}

.btn-outline-custom {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 12px;
  padding: 0.65rem 1.6rem;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}
.btn-outline-custom:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 32px var(--primary-glow);
}

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

.hero-bg-noise {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(ellipse 80% 60% at 20% 30%, rgba(79,70,229,.06) 0%, transparent 70%),
    radial-gradient(ellipse 60% 80% at 80% 80%, rgba(6,182,212,.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  animation: float 8s ease-in-out infinite alternate;
}
.hero-orb--1 {
  width: 400px; height: 400px;
  background: rgba(79,70,229,.12);
  top: -100px; right: -100px;
  animation-delay: 0s;
}
.hero-orb--2 {
  width: 300px; height: 300px;
  background: rgba(6,182,212,.10);
  bottom: 50px; left: -80px;
  animation-delay: 2s;
}
.hero-orb--3 {
  width: 200px; height: 200px;
  background: rgba(124,58,237,.08);
  top: 40%; left: 40%;
  animation-delay: 4s;
}

@keyframes float {
  from { transform: translateY(0) scale(1); }
  to   { transform: translateY(-40px) scale(1.05); }
}

.hero-content { z-index: 1; }

.hero-greeting {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  animation: slideUp 0.8s ease both;
  animation-delay: 0.2s;
}

.hero-name {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  animation: slideUp 0.8s ease both;
  animation-delay: 0.3s;
}

.hero-typed-wrap {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1.25rem;
  min-height: 2rem;
  animation: slideUp 0.8s ease both;
  animation-delay: 0.4s;
}

#typed-output { color: var(--primary); }

.typed-cursor {
  animation: blink 0.8s step-end infinite;
  color: var(--primary);
  font-weight: 300;
}
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:0; } }

.hero-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: 2rem;
  animation: slideUp 0.8s ease both;
  animation-delay: 0.5s;
}

.hero-cta { animation: slideUp 0.8s ease both; animation-delay: 0.6s; }

.hero-social {
  animation: slideUp 0.8s ease both;
  animation-delay: 0.7s;
}
.hero-social a {
  width: 40px; height: 40px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: var(--text-secondary);
  transition: var(--transition);
}
.hero-social a:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-3px);
  background: var(--surface-2);
}

/* Hero Avatar */
.hero-avatar-wrap { position: relative; }

.hero-avatar {
  width: 280px; height: 280px;
  position: relative;
  margin: 0 auto;
}

.avatar-blob {
  position: absolute; inset: 0;
  animation: morphBlob 8s ease-in-out infinite;
}
.avatar-blob svg {
  width: 100%; height: 100%;
}
.avatar-blob path {
  fill: linear-gradient(135deg, var(--primary), var(--accent));
  fill: var(--primary);
  opacity: 0.12;
}
[data-theme="dark"] .avatar-blob path { opacity: 0.2; }

@keyframes morphBlob {
  0%,100% { transform: scale(1) rotate(0deg); }
  50%  { transform: scale(1.05) rotate(10deg); }
}

.avatar-image {
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.avatar-initials {
  font-size: 5rem;
  font-weight: 900;
  color: rgba(255,255,255,0.9);
  font-family: var(--font-mono);
  line-height: 1;
}

.avatar-badge {
  position: absolute;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 0.45rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
  white-space: nowrap;
  display: flex; align-items: center; gap: 0.4rem;
  animation: badgePop 0.6s ease both;
}
.avatar-badge i { color: var(--primary); }
.badge-top { top: 10px; right: -20px; animation-delay: 0.9s; }
.badge-bottom { bottom: 20px; left: -20px; animation-delay: 1.1s; }

@keyframes badgePop {
  from { opacity:0; transform: scale(0.7); }
  to   { opacity:1; transform: scale(1); }
}

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

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px; left: 50%; transform: translateX(-50%);
  width: 28px; height: 44px;
  border: 2px solid var(--border);
  border-radius: 99px;
  display: flex; justify-content: center; padding-top: 6px;
}
.scroll-indicator span {
  width: 4px; height: 8px;
  background: var(--primary);
  border-radius: 99px;
  animation: scrollDot 2s ease infinite;
}
@keyframes scrollDot {
  0%   { opacity:1; transform: translateY(0); }
  100% { opacity:0; transform: translateY(16px); }
}

/* ── ABOUT SECTION ───────────────────────────────────────── */
.about-img-wrap {
  position: relative;
  display: flex; justify-content: center;
}
.about-img-frame {
  width: 320px; height: 380px;
  border-radius: 32px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  padding: 4px;
  position: relative;
}
.about-img-inner {
  width: 100%; height: 100%;
  border-radius: 30px;
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.about-initials {
  font-size: 8rem;
  font-weight: 900;
  font-family: var(--font-mono);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.about-stats {
  position: absolute;
  bottom: -20px;
  left: 50%; transform: translateX(-50%);
  display: flex; gap: 0.5rem;
}
.stat-pill {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 0.5rem 0.85rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}
.stat-pill strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}
.stat-pill span { font-size: 0.72rem; color: var(--text-muted); }

.about-text {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 0.97rem;
}

.about-strengths {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  margin-top: 1.5rem;
}
.strength-tag {
  display: flex; align-items: center; gap: 0.4rem;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: var(--transition);
}
.strength-tag i { color: var(--primary); font-size: 0.75rem; }
.strength-tag:hover {
  border-color: var(--primary);
  background: rgba(79,70,229,.07);
}

/* ── SKILLS SECTION ──────────────────────────────────────── */
.skills-section { background: var(--bg-alt); }

.skills-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  height: 100%;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.skills-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.skills-card-header {
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 1.75rem;
}
.skills-card-header h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
}
.skills-card-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.skill-list { display: flex; flex-direction: column; gap: 1.25rem; }

.skill-info {
  display: flex; justify-content: space-between;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}
.skill-pct { color: var(--primary); font-family: var(--font-mono); font-size: 0.8rem; }

.skill-bar {
  height: 7px;
  background: var(--bg-alt);
  border-radius: 99px;
  overflow: hidden;
}
.skill-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 99px;
  transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
}

.tech-pills-wrap { padding: 1.5rem; }
.tech-pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 99px;
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0.3rem;
  cursor: default;
  transition: var(--transition);
}
.tech-pill i { color: var(--primary); font-size: 1em; }
.tech-pill:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 4px 16px var(--primary-glow);
}
.tech-pill:hover i { color: #fff; }

/* ── PROJECTS SECTION ────────────────────────────────────── */
.project-filters { display: flex; justify-content: center; gap: 0.5rem; flex-wrap: wrap; }

.filter-btn {
  background: var(--surface);
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  border-radius: 99px;
  padding: 0.45rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-main);
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 16px var(--primary-glow);
}

.project-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  display: flex; flex-direction: column;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.project-img {
  height: 200px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.project-img-icon {
  font-size: 3.5rem;
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
}

.project-overlay {
  position: absolute; inset: 0;
  background: rgba(10,8,30,0.75);
  display: flex; align-items: center; justify-content: center; gap: 0.75rem;
  opacity: 0;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}
.project-card:hover .project-overlay { opacity: 1; }
.project-card:hover .project-img-icon { transform: scale(1.1); opacity: 0.4; }

.ov-btn {
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.4);
  color: #fff;
  border-radius: 10px;
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  transition: var(--transition);
  display: flex; align-items: center; gap: 0.4rem;
}
.ov-btn:hover {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}

.project-body { padding: 1.35rem; flex: 1; display: flex; flex-direction: column; }

.project-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.project-desc {
  font-size: 0.87rem;
  color: var(--text-muted);
  flex: 1;
  margin-bottom: 1rem;
}
.project-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.project-tags span {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--primary);
}

.project-item {
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.project-item.hidden {
  display: none;
}

/* ── SERVICES SECTION ────────────────────────────────────── */
.services-section { background: var(--bg-alt); }

.service-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  height: 100%;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transition: var(--transition);
  transform-origin: center;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, rgba(79,70,229,.12), rgba(6,182,212,.12));
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  color: var(--primary);
  margin: 0 auto 1.25rem;
  transition: var(--transition);
}
.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  transform: rotateY(180deg);
}

.service-card h5 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.service-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

/* ── RESUME SECTION ──────────────────────────────────────── */
.resume-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  position: relative;
  overflow: hidden;
}
.resume-section::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.resume-section .section-label,
.resume-section .section-title,
.resume-section .section-sub { color: rgba(255,255,255,0.85) !important; }
.resume-section .section-title { color: #fff !important; }
.resume-section .highlight { color: #fff; }
.resume-section .highlight::after { background: rgba(255,255,255,0.3); }

.resume-card {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  max-width: 540px;
  display: flex; align-items: center; gap: 1.25rem;
  box-shadow: 0 8px 32px rgba(0,0,0,.2);
}
.resume-icon {
  font-size: 2rem;
  color: #fff;
  flex-shrink: 0;
}
.resume-details h5 {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  margin: 0 0 0.2rem;
}
.resume-details span {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
}

/* ── TESTIMONIALS ────────────────────────────────────────── */
.swiper { padding-bottom: 3rem !important; }

.testimonial-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 2.25rem;
  margin: 0.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--primary);
}

.testi-quote {
  font-size: 2rem;
  color: var(--primary);
  opacity: 0.3;
  margin-bottom: 1rem;
}

.testi-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.testi-author { display: flex; align-items: center; gap: 0.9rem; }

.testi-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.testi-author h6 {
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0 0 0.15rem;
}
.testi-author span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.swiper-pagination-bullet { background: var(--primary); }
.swiper-pagination-bullet-active { background: var(--primary); width: 20px; border-radius: 99px; }

/* ── CONTACT SECTION ─────────────────────────────────────── */
.contact-section { background: var(--bg-alt); }

.contact-info-box {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.contact-info-item {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.contact-info-item:last-of-type { border-bottom: none; }

.ci-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, rgba(79,70,229,.1), rgba(6,182,212,.1));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-info-item h6 {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.2rem;
}
.contact-info-item a,
.contact-info-item span {
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 500;
}
.contact-info-item a:hover { color: var(--primary); }

.contact-social {
  display: flex; gap: 0.6rem;
}
.contact-social a {
  width: 40px; height: 40px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: var(--transition);
}
.contact-social a:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(79,70,229,.07);
  transform: translateY(-2px);
}

/* Form */
.contact-form {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.form-group {
  display: flex; flex-direction: column; gap: 0.4rem;
}
.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.form-group input,
.form-group textarea {
  background: var(--bg-alt);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-family: var(--font-main);
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: var(--transition);
  outline: none;
  resize: none;
  width: 100%;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 4px var(--primary-glow);
}
.form-group input.error,
.form-group textarea.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 4px rgba(239,68,68,.15);
}

.err-msg {
  font-size: 0.78rem;
  color: #ef4444;
  min-height: 1em;
}

.form-success {
  background: rgba(16,185,129,.1);
  border: 1.5px solid rgba(16,185,129,.3);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
  color: #059669;
  font-weight: 600;
  display: flex; align-items: center;
}

/* ── FOOTER ──────────────────────────────────────────────── */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}
.footer-copy i { color: #ef4444; }
.footer-social {
  display: flex; gap: 0.6rem;
}
.footer-social a {
  width: 36px; height: 36px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: var(--transition);
}
.footer-social a:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

/* ── BACK TO TOP ─────────────────────────────────────────── */
#backToTop {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  box-shadow: 0 4px 20px var(--primary-glow);
  opacity: 0; visibility: hidden;
  transition: var(--transition);
  z-index: 900;
}
#backToTop.visible { opacity: 1; visibility: visible; }
#backToTop:hover { transform: translateY(-4px); box-shadow: 0 8px 28px var(--primary-glow); }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 991px) {
  .navbar-collapse {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-top: 0.75rem;
    box-shadow: var(--shadow-md);
  }
  .nav-link::after { display: none; }
  .theme-toggle { margin-top: 0.5rem; }
  .about-stats {
    position: static;
    transform: none;
    margin-top: 1.5rem;
    justify-content: center;
  }
  .about-img-frame { width: 280px; height: 320px; }
  .about-initials { font-size: 6rem; }
  .badge-top { right: -10px; }
  .badge-bottom { left: -10px; }
}

@media (max-width: 767px) {
  .section-pad { padding: 72px 0; }
  .hero-avatar { width: 220px; height: 220px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .resume-card { flex-direction: column; text-align: center; }
  .resume-card .btn-primary-custom { margin: 0; }
}

@media (max-width: 480px) {
  .hero-name { font-size: 2.2rem; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn-primary-custom,
  .hero-cta .btn-outline-custom { width: 100%; justify-content: center; }
}
