/* ============================================
   PORTFOLIO - styles.css
   Modern Animated Personal Portfolio
   ============================================ */

/* === Google Font Import === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* === CSS Variables / Theme === */
:root {
  --background: #F7F8F0;
  --foreground: #1a2a3a;
  --card: #ffffff;
  --card-foreground: #1a2a3a;
  --primary: #088395;
  --primary-foreground: #ffffff;
  --secondary: #7AB2B2;
  --secondary-foreground: #1a2a3a;
  --muted: #e8ede0;
  --muted-foreground: #5a6a7a;
  --accent: #088395;
  --accent-foreground: #ffffff;
  --destructive: #e53e3e;
  --border: #d4dcc8;
  --input: #d4dcc8;
  --ring: #088395;
  --heading: #355872;
  --glow: #088395;
  --glass: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(255, 255, 255, 0.3);
  --radius: 0.75rem;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

.dark {
  --background: #0a1a24;
  --foreground: #F3F4F4;
  --card: #0d2333;
  --card-foreground: #F3F4F4;
  --primary: #5F9598;
  --primary-foreground: #ffffff;
  --secondary: #1D546D;
  --secondary-foreground: #F3F4F4;
  --muted: #112e42;
  --muted-foreground: #8aa0b0;
  --accent: #5F9598;
  --accent-foreground: #ffffff;
  --destructive: #e53e3e;
  --border: #1a3a50;
  --input: #1a3a50;
  --ring: #5F9598;
  --heading: #F3F4F4;
  --glow: #5F9598;
  --glass: rgba(13, 35, 51, 0.7);
  --glass-border: rgba(95, 149, 152, 0.2);
}

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

*, *::before, *::after {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

ul, ol {
  list-style: none;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

input, textarea {
  font-family: inherit;
  font-size: inherit;
}

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

/* ============================================
   ANIMATIONS / KEYFRAMES
   ============================================ */

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

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



@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 5px var(--glow), 0 0 10px var(--glow); }
  50% { box-shadow: 0 0 15px var(--glow), 0 0 30px var(--glow); }
}

@keyframes earthRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

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

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes particleFloat {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.3; }
  25% { transform: translate(10px, -20px) scale(1.1); opacity: 0.6; }
  50% { transform: translate(-5px, -40px) scale(0.9); opacity: 0.4; }
  75% { transform: translate(15px, -20px) scale(1.05); opacity: 0.5; }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-8px); }
  60% { transform: translateY(-4px); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

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

/* ============================================
   UTILITY CLASSES
   ============================================ */

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-card {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
}

.mesh-bg {
  background-image:
    radial-gradient(at 40% 20%, var(--primary) 0px, transparent 50%),
    radial-gradient(at 80% 0%, var(--secondary) 0px, transparent 50%),
    radial-gradient(at 0% 50%, var(--primary) 0px, transparent 50%);
  opacity: 0.07;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  z-index: 9999;
  transition: width 0.1s linear;
}

/* Ripple button */
.ripple {
  position: relative;
  overflow: hidden;
}
.ripple::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--ripple-x, 50%) var(--ripple-y, 50%), rgba(255,255,255,0.3) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}
.ripple:hover::after {
  opacity: 1;
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Section */
.section {
  position: relative;
  padding: 6rem 0;
}

/* Section header */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--heading);
  margin-bottom: 0.75rem;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
}

.section-header .underline-bar {
  width: 4rem;
  height: 4px;
  background: var(--primary);
  border-radius: 9999px;
  margin: 1rem auto 0;
}

/* ============================================
   CURSOR GLOW
   ============================================ */
/* Cursor glow styles removed — feature disabled. */

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.3s ease;
  padding: 1rem 0;
}

.navbar.scrolled {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.navbar .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}

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

.navbar .logo .earth-icon {
  display: inline-block;
  color: var(--primary);
  animation: spin 8s linear infinite;
  font-size: 1.5rem;
  line-height: 1;
}

.navbar .logo span.logo-text {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--heading);
}

.navbar .nav-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: var(--muted);
  color: var(--foreground);
  transition: all 0.3s ease;
}

.nav-btn:hover {
  background: var(--primary);
  color: var(--primary-foreground);
}

/* SVG icons in buttons */
.nav-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* ============================================
  FULLSCREEN OVERLAY MENU
   ============================================ */
.overlay-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: all 0.5s ease;
}

.overlay-menu.open {
  visibility: visible;
  opacity: 1;
}

.overlay-backdrop {
  position: absolute;
  inset: 0;
  background: var(--background);
  opacity: 0.92;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.overlay-nav-links {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.overlay-nav-links a {
  font-size: 2rem;
  font-weight: 700;
  color: var(--foreground);
  transition: all 0.3s ease;
  transform: translateY(20px);
  opacity: 0;
}

.overlay-menu.open .overlay-nav-links a {
  transform: translateY(0);
  opacity: 1;
}

.overlay-nav-links a:nth-child(1) { transition-delay: 0ms; }
.overlay-nav-links a:nth-child(2) { transition-delay: 80ms; }
.overlay-nav-links a:nth-child(3) { transition-delay: 160ms; }
.overlay-nav-links a:nth-child(4) { transition-delay: 240ms; }
.overlay-nav-links a:nth-child(5) { transition-delay: 320ms; }
.overlay-nav-links a:nth-child(6) { transition-delay: 400ms; }
.overlay-nav-links a:nth-child(7) { transition-delay: 480ms; }

.overlay-nav-links a:hover {
  color: var(--primary);
}

/* Floating icons in overlay */
.floating-icons {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.4;
}

.floating-icon {
  position: absolute;
  border-radius: 50%;
  background: rgba(var(--primary), 0.1);
  backdrop-filter: blur(4px);
  padding: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  background-color: color-mix(in srgb, var(--primary) 15%, transparent);
}

/* Position and animation helpers for overlay floating icons (moved from inline styles) */
.floating-icon.pos1{left:12%;top:18%;animation:particleFloat 4s ease-in-out infinite;animation-delay:0s}
.floating-icon.pos2{left:23%;top:31%;animation:particleFloat 4.5s ease-in-out infinite;animation-delay:0.3s}
.floating-icon.pos3{left:34%;top:58%;animation:particleFloat 5s ease-in-out infinite;animation-delay:0.6s}
.floating-icon.pos4{left:45%;top:22%;animation:particleFloat 5.5s ease-in-out infinite;animation-delay:0.9s}
.floating-icon.pos5{left:56%;top:70%;animation:particleFloat 6s ease-in-out infinite;animation-delay:1.2s}
.floating-icon.pos6{left:67%;top:40%;animation:particleFloat 6.5s ease-in-out infinite;animation-delay:1.5s}
.floating-icon.pos7{left:78%;top:25%;animation:particleFloat 7s ease-in-out infinite;animation-delay:1.8s}
.floating-icon.pos8{left:89%;top:55%;animation:particleFloat 7.5s ease-in-out infinite;animation-delay:2.1s}

/* Ensure initial visibility for theme/menu icons (previously inline styles) */
#sunIcon{display:none}
#closeIcon{display:none}

/* Orbiting icons removed — styles cleaned */

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 5rem;
}

.hero .hero-bg {
  position: absolute;
  inset: 0;
}

.hero .particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero .particle {
  position: absolute;
  border-radius: 50%;
  background-color: color-mix(in srgb, var(--primary) 20%, transparent);
}

.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  width: 100%;
}

.hero-text {
  flex: 1;
  text-align: center;
}

.hero-text h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--heading);
  margin-bottom: 1rem;
}

.hero-text .typewriter-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  font-size: 1.25rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  font-family: var(--font-mono);
}

.typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 1.75rem;
  background-color: var(--primary);
  margin-left: 2px;
  animation: blink 1.06s step-end infinite;
}

.hero-text .description {
  max-width: 32rem;
  margin: 0 auto 2rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease;
}

.btn-primary:hover {
  transform: scale(1.05);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--primary-foreground);
  transform: scale(1.05);
}

/* Profile area */
.hero-profile {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Orbit container and icon styles removed (icons moved out) */

.profile-image-wrapper {
  position: relative;
  z-index: 10;
  width: 14rem;
  height: 14rem;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid color-mix(in srgb, var(--primary) 30%, transparent);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: glowPulse 3s ease-in-out infinite;
}

.profile-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: var(--muted-foreground);
  animation: bounce 2s ease-in-out infinite;
}

.scroll-indicator span {
  font-size: 0.75rem;
}

/* ============================================
   SKILLS SECTION
   ============================================ */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.skill-card {
  padding: 1.5rem;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
}

.skill-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.skill-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 0 15px color-mix(in srgb, var(--primary) 10%, transparent);
}

.skill-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.skill-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--primary);
}

.skill-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.skill-card-header h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--heading);
}

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

.skill-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.skill-item-header .skill-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
}

.skill-item-header .skill-percent {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.progress-bar {
  height: 0.5rem;
  border-radius: 9999px;
  background: var(--muted);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 9999px;
  background: var(--primary);
  width: 0%;
  transition: width 1s ease-out;
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  background: var(--muted);
  color: var(--muted-foreground);
  transition: all 0.3s ease;
}

.filter-btn:hover {
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--primary);
}

.filter-btn.active {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 10px 15px -3px color-mix(in srgb, var(--primary) 20%, transparent);
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.project-card {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(30px) scale(0.95);
}

.project-card.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.project-accent-bar {
  height: 4px;
  width: 100%;
}

.project-glow {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.project-body {
  padding: 1.5rem;
}

.project-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.project-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 0.5rem;
}

.project-body > p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tech-badge {
  padding: 0.25rem 0.625rem;
  border-radius: 0.375rem;
  background: var(--muted);
  color: var(--muted-foreground);
  font-size: 0.75rem;
  font-weight: 500;
}

.project-links {
  display: flex;
  gap: 0.75rem;
}

.project-links a {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: transform 0.2s ease;
}

.project-links a:hover {
  transform: scale(1.05);
}

.project-links .link-demo {
  background: var(--primary);
  color: var(--primary-foreground);
}

.project-links .link-github {
  background: var(--card);
  color: var(--card-foreground);
  border: 1px solid var(--border);
}

.project-links a svg {
  width: 1rem;
  height: 1rem;
}

/* ============================================
   COURSES SECTION (TIMELINE)
   ============================================ */
.timeline {
  position: relative;
  max-width: 48rem;
  margin: 0 auto;
}

.timeline-line {
  position: absolute;
  left: 2rem;
  top: 0;
  height: 100%;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
  padding-left: 5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-dot {
  position: absolute;
  left: 1.4rem;
  top: 0.75rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: var(--background);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.timeline-dot-inner {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--primary);
}

.timeline-card {
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.timeline-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px color-mix(in srgb, var(--primary) 10%, transparent);
}

.timeline-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.timeline-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--primary);
}

.timeline-card-icon svg {
  width: 1rem;
  height: 1rem;
}

.timeline-card-header h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--heading);
}

.timeline-card > p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

/* ============================================
   EDUCATION SECTION
   ============================================ */
.education-list {
  max-width: 48rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.education-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateX(-30px);
}

.education-card.visible {
  opacity: 1;
  transform: translateX(0);
}

.education-card:nth-child(even) {
  transform: translateX(30px);
}

.education-card:nth-child(even).visible {
  transform: translateX(0);
}

.education-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px color-mix(in srgb, var(--primary) 10%, transparent);
}

.education-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--primary);
  flex-shrink: 0;
}

.education-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.education-info h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--heading);
}

.education-info .school {
  font-size: 1rem;
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

.education-info .field {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
}

.education-info .period {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--primary);
}

.education-info .period svg {
  width: 1rem;
  height: 1rem;
}

/* ============================================
   INTERESTS SECTION
   ============================================ */
.interests-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.interest-card {
  width: 10rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px) scale(0.9);
}

.interest-card.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.interest-card:hover {
  transform: translateY(-8px) rotate(2deg);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.interest-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.interest-icon svg {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
  transition: box-shadow 0.3s ease;
}

.interest-icon svg {
  width: 1.75rem;
  height: 1.75rem;
}

/* Move inline background-color/color for interest icons into explicit utility classes */
.interest-icon.color-e8952c { background-color: #E8952C15; color: #E8952C; }
.interest-icon.color-3178c6 { background-color: #3178C615; color: #3178C6; }
.interest-icon.color-47a248 { background-color: #47A24815; color: #47A248; }
.interest-icon.color-e53e3e { background-color: #E53E3E15; color: #E53E3E; }
.interest-icon.color-8b5cf6 { background-color: #8B5CF615; color: #8B5CF6; }

.interest-card h3 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--heading);
}

.interest-card p {
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--muted-foreground);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-link-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateX(-30px);
}

.contact-link-card.visible {
  opacity: 1;
  transform: translateX(0);
}

.contact-link-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.contact-link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  flex-shrink: 0;
  transition: box-shadow 0.3s ease;
}

.contact-link-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Contact link icon colors moved from inline styles */
.contact-link-icon.contact-color-email{background-color:#E8952C15;color:#E8952C}
.contact-link-icon.contact-color-linkedin{background-color:#0A66C215;color:#0A66C2}
.contact-link-icon.contact-color-github{background-color:#8896A815;color:#8896A8}
.contact-link-icon.contact-color-phone{background-color:#47A24815;color:#47A248}

.contact-link-info .contact-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
}

.contact-link-info .contact-value {
  font-weight: 600;
  color: var(--heading);
}

/* Contact form */
.contact-form-wrapper {
  padding: 2rem;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}

.contact-form-wrapper.visible {
  opacity: 1;
  transform: translateX(0);
}

.success-message {
  display: none;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 0.5rem;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.success-message.show {
  display: flex;
}

.success-message svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 0.375rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: var(--background);
  color: var(--foreground);
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  font-size: 0.875rem;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent);
}

.form-group input.error,
.form-group textarea.error {
  border-color: var(--destructive);
}

.form-group textarea {
  resize: none;
  min-height: 8rem;
}

.form-error {
  display: none;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--destructive);
  margin-top: 0.25rem;
}

.form-error.show {
  display: flex;
}

.form-error svg {
  width: 0.75rem;
  height: 0.75rem;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease;
}

.btn-submit:hover {
  transform: scale(1.03);
}

.btn-submit svg {
  width: 1rem;
  height: 1rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  border-top: 1px solid var(--border);
  background: var(--card);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-brand p:first-child {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--heading);
}

.footer-brand p:last-child {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: var(--muted);
  color: var(--muted-foreground);
  transition: all 0.3s ease;
}

.footer-socials a:hover {
  background: var(--primary);
  color: var(--primary-foreground);
}

.footer-socials a svg {
  width: 1.25rem;
  height: 1.25rem;
}

.footer-copyright {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(1rem);
  pointer-events: none;
}

.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  animation: glowPulse 2s ease-in-out infinite;
}

.back-to-top:hover {
  transform: scale(1.1);
}

.back-to-top svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (min-width: 640px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (min-width: 768px) {
  .hero-text h1 {
    font-size: 3.75rem;
  }

  .hero-text .typewriter-line {
    font-size: 1.5rem;
  }

  .profile-image-wrapper {
    width: 18rem;
    height: 18rem;
  }

  /* orbit container sizing removed for calm hero */

  .section-header h2 {
    font-size: 3rem;
  }

  .overlay-nav-links a {
    font-size: 2.5rem;
  }

  /* Timeline desktop layout */
  .timeline-line {
    left: 50%;
    transform: translateX(-50%);
  }

  .timeline-item {
    padding-left: 0;
    width: 45%;
  }

  .timeline-item:nth-child(odd) {
    margin-left: auto;
    padding-left: 3rem;
  }

  .timeline-item:nth-child(even) {
    margin-right: auto;
    padding-right: 3rem;
    text-align: right;
  }

  .timeline-item:nth-child(even) .timeline-card-header {
    flex-direction: row-reverse;
  }

  .timeline-dot {
    left: auto;
  }

  .timeline-item:nth-child(odd) .timeline-dot {
    left: -0.625rem;
  }

  .timeline-item:nth-child(even) .timeline-dot {
    right: -0.625rem;
    left: auto;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .hero-content {
    flex-direction: row;
    gap: 4rem;
  }

  .hero-text {
    text-align: left;
  }

  .hero-text h1 {
    font-size: 4.25rem;
  }

  .hero-text .typewriter-line {
    justify-content: flex-start;
  }

  .hero-text .description {
    margin-left: 0;
  }

  .hero-buttons {
    justify-content: flex-start;
  }

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

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

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

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Project status / progress bar (reuses skills visual language) */
.project-status {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.project-status .progress-track {
  flex: 1 1 auto;
  height: 10px;
  background: linear-gradient(180deg, rgba(0,0,0,0.04), rgba(0,0,0,0.02));
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(16,32,41,0.03);
}

.project-status .progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 999px;
  transition: width 700ms cubic-bezier(.2,.9,.2,1);
  will-change: width, opacity;
}

/* Label */
.project-status .progress-label {
  flex: 0 0 auto;
  white-space:nowrap;
  font-weight:600;
  color:var(--heading);
}

/* Completed state hint (no layout shift) */
.project-status.completed .progress-label {
  color: var(--primary);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .project-status .progress-fill { transition: none; }
}
