/* ============================================
   JAYAKUMAR K — PORTFOLIO
   ============================================ */

/* ===== CSS Variables ===== */
:root {
  --bg: #020617;
  --bg-2: #0f172a;
  --card-bg: rgba(17, 24, 39, 0.7);
  --card-border: rgba(139, 92, 246, 0.15);
  --purple: #8b5cf6;
  --purple-glow: #a855f7;
  --purple-dim: #6d28d9;
  --purple-muted: rgba(139, 92, 246, 0.1);
  --text: #f8fafc;
  --text-2: #94a3b8;
  --text-3: #64748b;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --shadow-purple: 0 0 40px rgba(139, 92, 246, 0.15);
  --shadow-card: 0 4px 40px rgba(0, 0, 0, 0.4);
}

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

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

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

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--purple-dim); border-radius: 4px; }

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

/* ===== Section shared styles ===== */
section { padding: 100px 0; }

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

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--purple);
  background: var(--purple-muted);
  border: 1px solid rgba(139, 92, 246, 0.25);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-2);
  max-width: 520px;
  margin: 0 auto;
}

/* ===== Gradient text ===== */
.gradient-text {
  background: linear-gradient(135deg, #8b5cf6 0%, #c084fc 50%, #e879f9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--purple-glow));
  color: white;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.45);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(139, 92, 246, 0.4);
  transform: translateY(-2px);
}

.btn-full { width: 100%; justify-content: center; }

/* ===== Reveal animations ===== */
.reveal-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-up.visible, .reveal-right.visible {
  opacity: 1;
  transform: translate(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(139, 92, 246, 0.1);
  padding: 12px 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin-right: auto;
}

.logo-bracket { color: var(--purple); }

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

.nav-link {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-2);
  transition: var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--purple);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--text);
}

.nav-link:hover::after { width: 100%; }

.nav-cta {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  background: linear-gradient(135deg, var(--purple), var(--purple-glow));
  padding: 9px 20px;
  border-radius: 8px;
  transition: var(--transition);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  cursor: pointer;
  margin-left: auto;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-2);
  border-radius: 2px;
  transition: var(--transition);
}

.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); }

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}

/* Background */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: float-orb 8s ease-in-out infinite;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #6d28d9 0%, transparent 70%);
  top: -100px;
  left: -100px;
  animation-delay: 0s;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #a855f7 0%, transparent 70%);
  top: 30%;
  right: 10%;
  animation-delay: -3s;
  opacity: 0.2;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #7c3aed 0%, transparent 70%);
  bottom: 10%;
  left: 30%;
  animation-delay: -5s;
  opacity: 0.15;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(139, 92, 246, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

@keyframes float-orb {
  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 */
.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-2);
  background: rgba(17, 24, 39, 0.8);
  border: 1px solid rgba(139, 92, 246, 0.2);
  padding: 7px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

.hero-name {
  font-family: var(--font-head);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 16px;
  display: block;
}

/* .name-line { display: flex; } */

.hero-role {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--purple);
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-2);
  line-height: 1.9;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
}

.stat-num {
  display: block;
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
}

/* Hero Image */
.hero-image-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-glow {
  position: absolute;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
  animation: float-orb 6s ease-in-out infinite;
}

.image-frame {
  position: relative;
  z-index: 1;
  width: 280px;
  height: 340px;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(17, 24, 39, 0.9), rgba(9, 15, 30, 0.95));
  border: 1px solid rgba(139, 92, 246, 0.25);
  box-shadow: 0 0 60px rgba(139, 92, 246, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float-image 5s ease-in-out infinite;
  overflow: hidden;
}
.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
  filter: contrast(1.05) saturate(1.05);
}

@keyframes float-image {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.profile-placeholder {
  position: relative;
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-initials {
  font-family: var(--font-head);
  font-size: 3.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #8b5cf6, #e879f9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  z-index: 2;
}
.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top left,
    rgba(139, 92, 246, 0.15),
    transparent 60%
  );
  pointer-events: none;
}

@keyframes spin-ring {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Floating Tags */
.float-tag {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text);
  background: rgba(17, 24, 39, 0.9);
  border: 1px solid rgba(139, 92, 246, 0.3);
  backdrop-filter: blur(10px);
  padding: 8px 14px;
  border-radius: 100px;
  white-space: nowrap;
  animation: float-tag 4s ease-in-out infinite;
}

.tag-icon { font-size: 1rem; }

.tag-1 {
  top: 20px;
  left: -30px;
  animation-delay: 0s;
}

.tag-2 {
  top: 50%;
  right: -30px;
  animation-delay: -1.5s;
}

.tag-3 {
  bottom: 30px;
  left: -20px;
  animation-delay: -3s;
}

@keyframes float-tag {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 1;
}

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

.scroll-indicator span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@keyframes scroll-line {
  0% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.4; transform: scaleY(0.8); }
  100% { opacity: 1; transform: scaleY(1); }
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%);
}

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

.about-lead {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.5;
}

.about-body {
  font-size: 0.97rem;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 16px;
}

.highlight {
  color: var(--purple-glow);
  font-weight: 500;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.tag {
  font-size: 0.8rem;
  color: var(--text-2);
  border: 1px solid rgba(139, 92, 246, 0.2);
  background: var(--purple-muted);
  padding: 5px 12px;
  border-radius: 100px;
  transition: var(--transition);
}

.tag:hover {
  color: var(--purple-glow);
  border-color: var(--purple);
}

.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.info-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.info-card:hover {
  border-color: rgba(139, 92, 246, 0.3);
  transform: translateY(-2px);
  box-shadow: var(--shadow-purple);
}

.info-icon { font-size: 1.4rem; }

.info-content h4 {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 5px;
}

.info-content p {
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.5;
}

/* ============================================
   JOURNEY TIMELINE
   ============================================ */
.journey {
  position: relative;
}

.timeline {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 0;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--purple) 10%, var(--purple) 90%, transparent);
  transform: translateX(-50%);
  opacity: 0.4;
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 48px;
  position: relative;
}

.timeline-item:nth-child(even) .timeline-card {
  grid-column: 3;
  grid-row: 1;
}

.timeline-item:nth-child(even) {
  direction: rtl;
}

.timeline-item:nth-child(even) .timeline-card {
  direction: ltr;
}

.timeline-item:nth-child(odd) .timeline-card {
  grid-column: 1;
}

.timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 2px solid var(--purple);
  margin-top: 6px;
  position: relative;
  z-index: 2;
  transition: var(--transition);
}

.timeline-dot.active {
  background: var(--purple);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

.timeline-dot.highlight {
  background: linear-gradient(135deg, var(--purple), var(--purple-glow));
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.6);
  width: 16px;
  height: 16px;
}

.timeline-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.timeline-card:hover {
  border-color: rgba(139, 92, 246, 0.3);
  transform: translateY(-2px);
}

.timeline-card.active {
  border-color: rgba(139, 92, 246, 0.3);
  background: rgba(139, 92, 246, 0.05);
}

.timeline-card.highlight {
  border-color: rgba(168, 85, 247, 0.4);
  background: rgba(168, 85, 247, 0.06);
}

.timeline-year {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--purple);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 6px;
}

.timeline-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.timeline-place {
  font-size: 0.82rem;
  color: var(--text-3);
  margin-bottom: 10px;
}

.timeline-badge {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--purple-glow);
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.2);
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 10px;
}

.timeline-desc {
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.6;
}

/* ============================================
   SKILLS SECTION
   ============================================ */
.skills {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%);
}

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

.skill-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 24px 20px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: var(--transition);
  cursor: default;
}

.skill-card:hover {
  border-color: rgba(139, 92, 246, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(139, 92, 246, 0.12);
}

.skill-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
}

.skill-icon svg { width: 100%; height: 100%; }
.skill-icon text { font-family: var(--font-head); font-weight: 700; }

.skill-name {
  display: block;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 14px;
}

.skill-bar {
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--purple), var(--purple-glow));
  border-radius: 3px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
/* -----Icon section---- */
.fa-python,.fa-java,.fa-c,.fa-flask,.fa-html5,.fa-css3-alt,.fa-square-js,.fa-debian{
  font-size: 50px;
}
/* ============================================
   PROJECTS SECTION
   ============================================ */
.projects {
  position: relative;
}

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

.project-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px;
  backdrop-filter: blur(10px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(139, 92, 246, 0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}

.project-card:hover {
  border-color: rgba(139, 92, 246, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.35), 0 0 40px rgba(139, 92, 246, 0.08);
}

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

.project-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.project-icon { font-size: 2rem; }

.project-link {
  color: var(--text-3);
  transition: var(--transition);
  padding: 6px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.project-link:hover {
  color: var(--purple-glow);
  border-color: rgba(139, 92, 246, 0.3);
  background: rgba(139, 92, 246, 0.08);
}

.project-title {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.project-desc {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 18px;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--purple-glow);
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  padding: 3px 10px;
  border-radius: 100px;
}

/* ============================================
   SERVICES PREVIEW
   ============================================ */
.services-preview {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.service-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  backdrop-filter: blur(10px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  border-color: rgba(139, 92, 246, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-purple);
}

.service-card.featured {
  border-color: rgba(139, 92, 246, 0.3);
  background: rgba(139, 92, 246, 0.05);
}

.service-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--purple-glow);
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.25);
  padding: 3px 10px;
  border-radius: 100px;
}

.service-icon {
  font-size: 2.2rem;
  margin-bottom: 18px;
}

.service-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.service-desc {
  font-size: 0.87rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 24px;
}

.service-btn {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--purple-glow);
  transition: var(--transition);
}

.service-btn:hover {
  color: var(--purple-glow);
  letter-spacing: 0.02em;
}

.services-cta {
  text-align: center;
}

.services-cta-text {
  font-size: 0.95rem;
  color: var(--text-2);
  margin-bottom: 20px;
}

.services-cta-text strong {
  color: var(--purple-glow);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
  position: relative;
}

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

.contact-subtitle {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
}

.contact-text {
  font-size: 0.92rem;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 32px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(17, 24, 39, 0.5);
  transition: var(--transition);
}

.contact-item:hover {
  border-color: rgba(139, 92, 246, 0.3);
  transform: translateX(4px);
}

.contact-item.whatsapp:hover { border-color: rgba(34, 197, 94, 0.3); }
.contact-item.email:hover { border-color: rgba(139, 92, 246, 0.3); }
.contact-item.linkedin:hover { border-color: rgba(10, 102, 194, 0.4); }

.contact-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(139, 92, 246, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-glow);
  flex-shrink: 0;
}

.contact-item-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

.contact-item-value {
  display: block;
  font-size: 0.85rem;
  color: var(--text);
  font-weight: 500;
}

/* Contact Form */
.contact-form-wrap {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 36px;
  backdrop-filter: blur(10px);
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: var(--transition);
  outline: none;
  resize: none;
  width: 100%;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-3); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(139, 92, 246, 0.5);
  background: rgba(139, 92, 246, 0.04);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.08);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 48px 0 32px;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 36px;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-3);
  margin-top: 10px;
  max-width: 260px;
  line-height: 1.6;
}

.footer-socials {
  display: flex;
  gap: 12px;
  align-items: center;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  transition: var(--transition);
}

.social-link:hover {
  color: var(--purple-glow);
  border-color: rgba(139, 92, 246, 0.3);
  background: rgba(139, 92, 246, 0.08);
  transform: translateY(-2px);
}

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

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

.footer-link {
  font-size: 0.82rem;
  color: var(--purple);
  transition: var(--transition);
}

.footer-link:hover { color: var(--purple-glow); }

/* ============================================
   WHATSAPP FLOAT
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25d366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
  z-index: 999;
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

/* ============================================
   RESPONSIVE
   ============================================ */
/* =========================
   BASE SAFETY
========================= */

* {
  box-sizing: border-box;
}

body.no-scroll {
  overflow: hidden;
}

/* =========================
   DESKTOP NAV DEFAULT
========================= */

.nav-links {
  display: flex;
  gap: 24px;
}

.hamburger {
  display: none;
}

/* =========================
   MOBILE SIDEBAR NAV
   (FIXED VERSION)
========================= */

@media (max-width: 768px) {

  section {
    padding: 70px 0;
  }

  /* Hide desktop nav elements */
  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
    z-index: 1101;
    position: relative;
  }

  /* Sidebar panel */
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: rgba(2, 6, 23, 0.98);
    backdrop-filter: blur(20px);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;

    transform: translateX(-100%);
    transition: transform 0.3s ease;

    z-index: 1100;
  }

  /* Open state */
  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links .nav-link {
    font-size: 1.4rem;
    font-family: var(--font-head);
  }

  /* Overlay behind sidebar */
  .overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: none;
    z-index: 1090;
  }

  .overlay.active {
    display: block;
  }

  /* =========================
     GRIDS (FIXED RESPONSIVE FLOW)
  ========================= */

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

  .about-grid,
  .contact-grid,
  .services-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

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

  /* =========================
     HERO FIX
  ========================= */

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-image-wrap {
    order: -1;
    margin-bottom: 20px;
  }

  .hero-actions,
  .hero-stats {
    justify-content: center;
  }

  .hero-badge {
    display: inline-flex;
  }

  .tag-1,
  .tag-2,
  .tag-3 {
    display: none;
  }

  /* =========================
     TIMELINE FIX (NO !important)
  ========================= */

  .timeline-item {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .timeline-line {
    left: 7px;
  }

  .timeline-item .timeline-card {
    grid-column: auto;
    grid-row: auto;
  }

  /* =========================
     FOOTER
  ========================= */

  .footer-inner {
    flex-direction: column;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* =========================
   TABLET FIX (900px)
========================= */

@media (max-width: 900px) {

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-image-wrap {
    order: -1;
    margin-bottom: 20px;
  }

  .hero-actions,
  .hero-stats {
    justify-content: center;
  }

  .hero-badge {
    display: inline-flex;
  }

  .tag-1,
  .tag-2,
  .tag-3 {
    display: none;
  }

  .about-grid,
  .contact-grid,
  .services-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   SMALL TABLET / LARGE MOBILE
========================= */

@media (max-width: 1024px) {
  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 480px) {

  .hero-name {
    font-size: 2.8rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

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

  .contact-form-wrap {
    padding: 24px;
  }
}