/* ===== CSS VARIABLES FOR THEMING ===== */
:root[data-theme="dark"] {
  --primary: #3b82f6;
  --primary-rgb: 59, 130, 246;
  --primary-dark: #2563eb;
  --background: #000000;
  --surface: #0a0a0a;
  --surface-hover: #1a1a1a;
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --border: #27272a;
  --success: #22c55e;
  --error: #ef4444;
  --star-color: #fbbf24;
  --scrollspy-bg: rgba(10, 10, 10, 0.8);
  --scrollspy-border: rgba(255, 255, 255, 0.1);
}

:root[data-theme="light"] {
  --primary: #2563eb;
  --primary-rgb: 37, 99, 235;
  --primary-dark: #1d4ed8;
  --background: #ffffff;
  --surface: #f8fafc;
  --surface-hover: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --border: #e2e8f0;
  --success: #22c55e;
  --error: #ef4444;
  --star-color: #fbbf24;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  background-color: var(--background);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 16px;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--surface);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== NAVBAR WITH DOWNLOAD RESUME BUTTON ===== */
.navbar {
  position: sticky;
  top: 0;
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.3s ease;
}

[data-theme="light"] .navbar {
  background-color: rgba(255, 255, 255, 0.95);
}

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

.navbar-brand {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
}

.navbar-brand::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.navbar-brand:hover::after {
  width: 100%;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Download Resume Button */
.resume-btn {
  background: var(--primary);
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.resume-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.theme-toggle {
  width: 60px;
  height: 30px;
  background-color: var(--surface-hover);
  border-radius: 15px;
  border: 1px solid var(--border);
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  border-color: var(--primary);
  transform: scale(1.05);
}

.theme-toggle-slider {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background-color: var(--primary);
  border-radius: 50%;
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

[data-theme="dark"] .theme-toggle-slider {
  transform: translateX(30px);
}

.social-icons {
  display: flex;
  gap: 0.5rem;
}

.social-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: var(--text-secondary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  position: relative;
}

.social-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 6px;
  background: var(--primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.social-icon:hover::before {
  opacity: 0.1;
}

.social-icon:hover {
  color: var(--primary);
  transform: translateY(-3px) scale(1.1);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

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

/* ===== HERO SECTION WITH VALUE STATEMENT ===== */
.hero {
  padding: 8rem 0 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 800px;
  height: 800px;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.15) 0%,
    transparent 70%
  );
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-greeting {
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

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

.hero-name {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.4s forwards;
  position: relative;
  display: inline-block;
}

.hero-name::after {
  content: "";
  position: absolute;
  inset: -10px;
  background: inherit;
  filter: blur(20px);
  opacity: 0.3;
  z-index: -1;
}

/* Value Statement - Professional Tagline */
.hero-value-statement {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.5s forwards;
  font-weight: 400;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  min-height: 2rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.6s forwards;
}

.typewriter {
  border-right: 2px solid var(--primary);
  animation: blink 0.7s infinite;
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.8s forwards;
}

.btn {
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-family: "Inter", sans-serif;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: inline-block;
}

.btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:active::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border);
}

.btn-secondary:hover {
  background-color: var(--surface-hover);
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* ===== SECTION HEADERS WITH ICONS ===== */
section {
  padding: 5rem 0;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.section-icon {
  font-size: 2.5rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}

.section-content {
  color: var(--text-secondary);
  line-height: 1.8;
}

.section-content p {
  margin-bottom: 1.5rem;
}

/* ===== CAREER TIMELINE ===== */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 3rem auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  position: relative;
}

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

.timeline-content {
  width: 45%;
  background: var(--surface);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
  border-color: var(--primary);
}

.timeline-date {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.timeline-content h3 {
  margin-bottom: 0.5rem;
}
.timeline-content h5 {
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.timeline-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: var(--primary);
  border-radius: 50%;
  border: 3px solid var(--background);
}

/* ===== TOOLS & TECHNOLOGIES WITH LOGOS ===== */
.tech-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  margin-top: 3rem;
}

.tech-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.tech-logo:hover {
  transform: translateY(-5px);
}

.tech-logo-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 2rem;
  transition: all 0.3s ease;
}

.tech-logo:hover .tech-logo-icon {
  border-color: var(--primary);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.tech-logo-name {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ===== SKILLS WITH PROGRESS BARS ===== */
.skills-category {
  margin-bottom: 3rem;
}

.skills-category h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.skill-item {
  background: rgba(10, 10, 10, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

[data-theme="light"] .skill-item {
  background: rgba(248, 250, 252, 0.8);
}

.skill-item::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 1px;
  background: linear-gradient(135deg, var(--primary), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.skill-item:hover::before {
  opacity: 1;
}

.skill-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.3);
}

.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 0.75rem;
}

.skill-item a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.skill-item a:hover {
  text-decoration: underline;
  transform: translateX(3px);
  display: inline-block;
}

.skill-rating {
  display: flex;
  gap: 2px;
}

.star {
  color: var(--border);
  font-size: 16px;
  transition: all 0.3s ease;
}

.star.filled {
  color: var(--star-color);
}

.skill-item:hover .star.filled {
  animation: starBounce 0.5s ease;
}

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

.skill-progress-bar {
  width: 100%;
  height: 6px;
  background: var(--surface);
  border-radius: 3px;
  margin-top: 0.75rem;
  overflow: hidden;
}

.skill-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #8b5cf6);
  border-radius: 3px;
  width: 0;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-item.animate .skill-progress-fill {
  width: var(--progress);
}

.skill-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  transition: all 0.3s ease;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-size: 4rem;
  color: var(--primary);
  opacity: 0.2;
  line-height: 1;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(59, 130, 246, 0.2);
  border-color: var(--primary);
}

.testimonial-text {
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  font-weight: 600;
  color: var(--text-primary);
}

.testimonial-role {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ===== CERTIFICATES ===== */
.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.certificate-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-30px);
  opacity: 0;
}

.certificate-item.visible {
  transform: translateX(0);
  opacity: 1;
}

.certificate-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(59, 130, 246, 0.25);
  border-color: var(--primary);
}

.certificate-item a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  display: block;
  margin-bottom: 0.5rem;
}

.certificate-item a:hover {
  text-decoration: underline;
}

.certificate-issuer {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ===== PROJECTS WITH ENHANCED CARDS ===== */
/* .projects-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
            gap: 3rem;
        } */

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

/* Add media query for mobile devices */
@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
  }
}

.project-card {
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  perspective: 1000px;
}

[data-theme="light"] .project-card {
  background: rgba(248, 250, 252, 0.9);
}

.project-card:hover {
  transform: translateY(-12px) scale(1.02);
  border-color: var(--primary);
  box-shadow: 0 25px 50px rgba(59, 130, 246, 0.3);
}

.project-image {
  width: 100%;
  height: 200px;
  object-fit: fill;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-image {
  transform: scale(1.1);
}

.project-content {
  padding: 2rem;
}

.project-badge {
  display: inline-block;
  background-color: var(--surface-hover);
  color: var(--text-secondary);
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-content h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

/* Outcome-focused impact statements */
.project-impact {
  background: rgba(59, 130, 246, 0.1);
  border-left: 3px solid var(--primary);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border-radius: 4px;
}

.project-impact-text {
  color: var(--primary);
  font-weight: 500;
  font-size: 0.95rem;
}

.project-content p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tag {
  background-color: var(--surface-hover);
  color: var(--text-secondary);
  padding: 0.375rem 0.875rem;
  border-radius: 20px;
  font-size: 0.875rem;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.tag:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  animation: pulse 1s ease infinite;
}

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

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

.project-link {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.project-link::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.project-link:active::before {
  width: 300px;
  height: 300px;
}

.project-link.primary {
  background-color: var(--primary);
  color: white;
}

.project-link.primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
}

.project-link.secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.project-link.secondary:hover {
  background-color: var(--surface-hover);
  border-color: var(--primary);
  transform: translateY(-3px);
}

/* ===== BLOG CARDS ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.blog-card {
  background-color: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  display: block;
}

.blog-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.25);
}

.blog-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  transition: transform 0.6s ease;
}

.blog-card:hover .blog-image {
  transform: scale(1.1) rotate(2deg);
}

.blog-content {
  padding: 1.5rem;
}

.blog-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.blog-date {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.blog-cta {
  color: var(--primary);
  font-weight: 500;
}

/* ===== CONTACT SECTION - LET'S WORK TOGETHER ===== */
.contact-content {
  max-width: 600px;
  margin: 0 auto;
}

.contact-intro {
  text-align: center;
  margin-bottom: 3rem;
}

.contact-intro h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.contact-intro p {
  color: var(--text-secondary);
}

.contact-info {
  text-align: center;
  margin-bottom: 1rem;
}

.contact-info a {
  color: var(--primary);
  text-decoration: none;
  font-size: 1.25rem;
  transition: all 0.3s ease;
}

.contact-info a:hover {
  text-shadow: 0 0 20px var(--primary);
}

.contact-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.contact-social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-social-link:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.2);
}

.contact-form {
  background: rgba(10, 10, 10, 0.5);
  backdrop-filter: blur(20px);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--border);
}

[data-theme="light"] .contact-form {
  background: rgba(248, 250, 252, 0.9);
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.875rem;
  border-radius: 8px;
  border: 2px solid var(--border);
  background-color: var(--background);
  color: var(--text-primary);
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1),
    0 0 20px rgba(59, 130, 246, 0.3);
  transform: translateY(-2px);
}

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

.form-success {
  background-color: var(--success);
  color: white;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 1.5rem;
  display: none;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-success.show {
  display: block;
}

.form-error {
  color: var(--error);
  font-size: 0.875rem;
  margin-top: 0.5rem;
  display: none;
}

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

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.back-to-top.show {
  display: flex;
}

.back-to-top:hover {
  transform: translateY(-5px) rotate(360deg);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.6);
}

/* ===== FOOTER ===== */
footer {
  background-color: var(--surface);
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  margin-top: 6rem;
  text-align: center;
}

.footer-content {
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.footer-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

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

.footer-links a:hover::after {
  width: 100%;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .navbar-right {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    flex-direction: column;
    display: none;
  }

  .navbar-right.active {
    display: flex;
  }

  .hero-greeting {
    font-size: 2rem;
  }

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

  .hero-value-statement {
    font-size: 1.1rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .section-title {
    font-size: 2rem;
  }

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

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    flex-direction: column !important;
    align-items: flex-start;
    padding-left: 50px;
  }

  .timeline-content {
    width: 100%;
  }

  .timeline-dot {
    left: 20px;
  }

  .back-to-top {
    bottom: 1rem;
    right: 1rem;
  }

  .contact-social {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .hero-greeting {
    font-size: 1.75rem;
  }

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

  .hero-value-statement {
    font-size: 1rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
  }
}
/* ===== SCROLLSPY NAVIGATION ===== */
.scrollspy-nav {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    background: transparent;
    padding: 1rem 0.5rem;
    transition: opacity 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.scrollspy-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}

.scrollspy-nav ul::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
}

[data-theme="light"] .scrollspy-nav ul::before {
    background: rgba(0, 0, 0, 0.1);
}

.scrollspy-nav .scrollspy-link {
    display: block;
    padding: 1rem 0 1rem 2rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
    opacity: 0.7;
}

.scrollspy-nav .scrollspy-link::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    transition: all 0.3s ease;
}

.scrollspy-nav .scrollspy-link:hover {
    color: var(--text-primary);
    opacity: 1;
}

.scrollspy-nav .scrollspy-link:hover::before {
    background: var(--text-primary);
    box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.3);
}

.scrollspy-nav .scrollspy-link.active {
    color: var(--primary);
    font-weight: 600;
    opacity: 1;
}

.scrollspy-nav .scrollspy-link.active::before {
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary);
    width: 12px;
    height: 12px;
}

@media (max-width: 768px) {
    .scrollspy-nav {
        display: none;
    }
}

