/* Developer Portfolio Design System - Terminal Dark */

/* ===== CSS VARIABLES FOR THEME SYSTEM ===== */
:root, [data-theme="dark"] {
  --bg-primary: #0A0A0A;
  --bg-secondary: #1A1A1A;
  --bg-tertiary: #2A2A2A;
  --surface: #1F1F1F;
  --surface-hover: #2D2D2D;
  
  --text-primary: #FFFFFF;
  --text-secondary: #E5E7EB;
  --text-tertiary: #9CA3AF;
  --text-muted: #6B7280;
  --text-inverse: #000000;
  
  --accent-primary: #E879F9;
  --accent-secondary: #10B981;
  --accent-tertiary: #3B82F6;
  --accent-warning: #F59E0B;
  --accent-error: #EF4444;
  
  --border-primary: #374151;
  --border-secondary: #4B5563;
  --border-tertiary: #6B7280;
  --border-accent: #E879F9;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 20px rgba(232, 121, 249, 0.3);
  --shadow-glow-green: 0 0 20px rgba(16, 185, 129, 0.3);
  
  /* Typography */
  --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', 'Monaco', monospace;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  --font-display: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Dark Theme Fonts - Terminal Aesthetic */
  --font-header: var(--font-mono);
  --font-body: var(--font-mono);
  --font-ui: var(--font-mono);
}

/* ===== BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-primary);
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-tertiary) 100%);
  transition: all 0.3s ease-out;
  position: relative;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

/* ===== LOADING SCREEN ===== */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out;
}

.loading-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loading-content {
  text-align: center;
  animation: fadeIn 1s ease-out;
}

.loading-logo {
  width: 100px;
  height: 100px;
  margin: 0 auto 2rem;
  background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2s ease-in-out infinite;
  box-shadow: var(--shadow-glow);
}

.loading-text {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-inverse);
  font-family: var(--font-mono);
}

.loading-bar {
  width: 200px;
  height: 4px;
  background: var(--surface);
  border-radius: 2px;
  margin: 2rem auto;
  overflow: hidden;
}

.loading-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 2px;
  animation: loadingProgress 2s ease-in-out infinite;
}

.loading-message {
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  margin-top: 1rem;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes loadingProgress {
  0% {
    width: 0%;
    transform: translateX(-100%);
  }
  50% {
    width: 100%;
    transform: translateX(0%);
  }
  100% {
    width: 0%;
    transform: translateX(100%);
  }
}

/* ===== PARTICLE BACKGROUND ===== */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--accent-primary);
  border-radius: 50%;
  opacity: 0.3;
  animation: particleFloat 20s infinite linear;
}

.particle:nth-child(1) {
  left: 10%;
  animation-delay: 0s;
  animation-duration: 15s;
}

.particle:nth-child(2) {
  left: 20%;
  animation-delay: 2s;
  animation-duration: 18s;
  background: var(--accent-secondary);
}

.particle:nth-child(3) {
  left: 30%;
  animation-delay: 4s;
  animation-duration: 22s;
}

.particle:nth-child(4) {
  left: 40%;
  animation-delay: 6s;
  animation-duration: 16s;
  background: var(--accent-tertiary);
}

.particle:nth-child(5) {
  left: 50%;
  animation-delay: 8s;
  animation-duration: 20s;
}

.particle:nth-child(6) {
  left: 60%;
  animation-delay: 10s;
  animation-duration: 17s;
  background: var(--accent-secondary);
}

.particle:nth-child(7) {
  left: 70%;
  animation-delay: 12s;
  animation-duration: 19s;
}

.particle:nth-child(8) {
  left: 80%;
  animation-delay: 14s;
  animation-duration: 21s;
  background: var(--accent-tertiary);
}

.particle:nth-child(9) {
  left: 90%;
  animation-delay: 16s;
  animation-duration: 23s;
}

.particle:nth-child(10) {
  left: 15%;
  animation-delay: 18s;
  animation-duration: 24s;
  background: var(--accent-secondary);
}

@keyframes particleFloat {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.3;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    transform: translateY(-100vh) rotate(360deg);
    opacity: 0;
  }
}

/* ===== BACKGROUND SHAPES ===== */
.background-shapes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -2;
  overflow: hidden;
}

.background-shapes::before,
.background-shapes::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
  opacity: 0.03;
  animation: shapeFloat 25s infinite linear;
}

.background-shapes::before {
  top: 20%;
  left: -150px;
  animation-delay: 0s;
}

.background-shapes::after {
  bottom: 20%;
  right: -150px;
  animation-delay: 12s;
  animation-direction: reverse;
}

@keyframes shapeFloat {
  0% {
    transform: translateX(0) rotate(0deg);
  }
  100% {
    transform: translateX(100vw) rotate(360deg);
  }
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-header);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.875rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-secondary);
}

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-primary);
  z-index: 1000;
  transition: all 0.3s ease-out;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand h2 {
  font-family: var(--font-header);
  color: var(--accent-primary);
  font-size: 1.5rem;
  font-weight: 700;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  font-family: var(--font-ui);
  color: var(--text-tertiary);
  font-size: 1rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-primary);
  background: rgba(232, 121, 249, 0.1);
}

/* Mobile Menu Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  padding: 120px 0;
  display: flex;
  align-items: center;
  position: relative;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  transition: gap 0.3s ease, grid-template-columns 0.3s ease;
  overflow: hidden;
}

.hero-content {
  transition: text-align 0.3s ease;
}
 
.hero-content h1 {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
  transition: font-size 0.3s ease, line-height 0.3s ease;
}

.hero-content .highlight {
  color: var(--accent-primary);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-family: var(--font-ui);
  transition: font-size 0.3s ease;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  transition: flex-direction 0.3s ease, align-items 0.3s ease;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.profile-image {
  width: 300px;
  height: 300px;
  border-radius: 20px;
  object-fit: cover;
  border: 3px solid var(--accent-primary);
  box-shadow: var(--shadow-glow);
  transition: all 0.3s ease, width 0.3s ease, height 0.3s ease;
  animation: float 6s ease-in-out infinite;
}

.profile-image:hover {
  transform: scale(1.05) translateY(-5px);
  box-shadow: 0 20px 40px rgba(232, 121, 249, 0.4);
}

/* ===== BUTTONS ===== */
.btn,
.btn--primary,
.btn--secondary,
.btn--outline,
.btn--download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-ui);
  cursor: pointer;
  transition: all 0.3s ease-out;
  border: none;
  text-decoration: none;
}

.btn-primary,
.btn--primary {
  background: var(--accent-primary);
  color: var(--text-inverse);
}

.btn-primary:hover,
.btn--primary:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: var(--shadow-glow);
}

.btn-secondary,
.btn--secondary,
.btn--outline {
  background: transparent;
  color: var(--accent-primary);
  border: 2px solid var(--accent-primary);
  padding: 10px 22px;
}

.btn-secondary:hover,
.btn--secondary:hover,
.btn--outline:hover {
  background: var(--accent-primary);
  color: var(--text-inverse);
}

.btn--download {
  background: var(--accent-secondary);
  color: #FFFFFF;
}

.btn--download:hover {
  background: #0D9568;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-green);
}

/* ===== SECTIONS ===== */
section {
  padding: 80px 0;
  background: transparent; /* Sections will inherit the body's gradient */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

section:not(.hero) {
}
 
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  box-sizing: border-box;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-family: var(--font-header);
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== ABOUT SECTION ===== */
.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-text {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* ===== SKILLS SECTION ===== */
.skills {
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

@media (max-width: 1200px) {
  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }
}

.skill-category {
  background: var(--surface);
  border: 1px solid var(--border-primary);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.skill-category:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-accent);
}

.category-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-family: var(--font-header);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.category-title i {
  color: var(--accent-primary);
}

.category-description {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  padding: 0.5rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font-ui);
  transition: all 0.3s ease;
  border: 1px solid var(--border-secondary);
}

.skill-badge:hover {
  background: var(--accent-primary);
  color: var(--text-inverse);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.skill-badge i {
  font-size: 1rem;
  color: var(--accent-primary);
}

.skill-badge:hover i {
  color: var(--text-inverse);
}

.skill-item {
  background: var(--surface);
  border: 1px solid var(--border-secondary);
  border-radius: 8px;
  padding: 1.5rem 1rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.skill-item:hover {
  transform: scale(1.05);
  background: var(--surface-hover);
  box-shadow: var(--shadow-md);
}

.skill-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.skill-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-ui);
}

/* ===== EXPERIENCE SECTION ===== */
.experience {
}

.experience-content {
  max-width: 900px;
  margin: 0 auto;
}

.experience-item {
  background: var(--surface);
  border: 1px solid var(--border-primary);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.experience-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-accent);
}

.experience-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.experience-icon {
  background: var(--accent-primary);
  color: var(--text-inverse);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.experience-info {
  flex: 1;
}

.experience-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-family: var(--font-header);
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.experience-company {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: 0.25rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.experience-duration {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  margin: 0;
}

.achievements-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.achievements-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.achievements-list li:before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-weight: bold;
}

/* ===== PROJECTS SECTION ===== */
.projects {
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  margin-top: 3rem;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border-primary);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
  border-color: var(--border-accent);
}

.project-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  font-family: var(--font-header);
}

.project-description {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tech-tag {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font-ui);
  border: 1px solid var(--border-secondary);
  transition: all 0.3s ease;
}

.tech-tag:hover {
  background: var(--accent-primary);
  color: var(--text-inverse);
  transform: translateY(-1px);
}

/* ===== CERTIFICATIONS SECTION ===== */
.certifications {
  position: relative;
}

.certifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  width: 100%;
  max-width: 1000px;
  margin: 3rem auto;
  padding: 0 20px;
}

.cert-badge {
  background: var(--surface);
  border: 1px solid var(--border-primary);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 140px;
  width: 100%;
  box-sizing: border-box;
}

.cert-badge:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-accent);
}

.cert-badge i {
  font-size: 2.5rem;
  color: var(--accent-primary);
}

.cert-badge span {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-header);
}

.cert-badge small {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-family: var(--font-ui);
  font-weight: 500;
  text-align: center;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  line-height: 1.3;
}

.certifications-action {
  text-align: center;
  margin-top: 2rem;
}

.project-links {
  display: flex;
  gap: 1rem;
}

/* Case Study Button */
.case-study-btn {
  background: var(--accent-tertiary);
  color: var(--text-inverse);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  font-family: var(--font-ui);
  position: relative;
  z-index: 10; /* Ensure buttons are above overlays */
  pointer-events: auto; /* Ensure buttons are clickable */
  cursor: pointer; /* Ensure pointer cursor */
}

.case-study-btn:hover {
  background: var(--accent-primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  opacity: 1;
}

.modal-content {
  position: relative;
  background: var(--bg-primary);
  margin: 5% auto;
  padding: 2rem;
  width: 90%;
  max-width: 800px;
  max-height: 80vh;
  overflow-y: auto;
  border-radius: 12px;
  box-shadow: var(--shadow-2xl);
  transform: translateY(-50px);
  transition: transform 0.3s ease;
}

.modal.show .modal-content {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-primary);
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-header);
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.modal-body {
  color: var(--text-secondary);
  line-height: 1.6;
}

.modal-body h3 {
  color: var(--text-primary);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.modal-body h3:first-child {
  margin-top: 0;
}

.modal-body ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.modal-body li {
  margin-bottom: 0.5rem;
}

/* ===== CONTACT SECTION ===== */
.contact {
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  max-width: 1100px;
  margin: 3rem auto 0;
}

.contact-form {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-ui);
}

.form-input,
.form-textarea {
  padding: 12px 16px;
  border: 2px solid var(--border-primary);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* ===== SOCIAL LINKS ===== */
.social-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-link {
    color: #fff;
    font-size: 20px;
    transition: color 0.3s ease;
}

.social-link:hover {
  color: var(--accent-secondary);
  transform: translateY(-2px);
}

/* ===== FOOTER STYLES ===== */
.footer {
  border-top: 1px solid var(--border-primary);
  padding: 3rem 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.footer-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-family: var(--font-ui);
}

/* ===== RESPONSIVE DESIGN ===== */

/* Desktop/Laptop - Preserve original styles */
@media (min-width: 1025px) {
  .hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    text-align: left;
  }
  
  .hero-container {
    grid-template-columns: 1fr 1fr;
    text-align: left;
    gap: 4rem;
  }
  
  .hero-content {
    text-align: left;
  }
  
  .typing-container {
    justify-content: flex-start;
  }
  
  .typing-text {
    font-size: 1.5rem;
  }
  
  .hero-buttons {
    flex-direction: row;
    justify-content: flex-start;
  }
  
  .certifications-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
  }
  
  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  }
}

@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  
  .hero-content h1 {
    font-size: 3rem;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .certifications-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
  }
}

/* Tablet specific styles */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
  }
  
  .typing-text {
    font-size: 1.2rem;
    line-height: 1.4;
  }
  
  .certifications-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.25rem;
    padding: 0 15px;
  }
  
  .cert-badge {
    padding: 1.75rem 1.25rem;
  }
  
  /* Education section for tablets */
  .education-item {
    flex-direction: row;
    text-align: left;
    gap: 1.5rem;
    padding: 1.75rem;
  }
  
  .education-icon {
    width: 55px;
    height: 55px;
    font-size: 1.375rem;
  }
  
  .education-header {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    gap: 1rem;
  }
  
  .education-degree {
    font-size: 1.2rem;
  }
  
  .education-institution {
    text-align: left;
  }
  
  .education-location {
    text-align: left;
  }
  
  .education-details {
    text-align: left;
  }
  
  /* Experience section for tablets */
  .experience-item {
    flex-direction: row;
    text-align: left;
    gap: 1.5rem;
    padding: 1.75rem;
  }
  
  .experience-header {
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
    text-align: left;
  }
  
  .experience-icon {
    width: 55px;
    height: 55px;
    font-size: 1.375rem;
  }
  
  .experience-info {
    text-align: left;
  }
  
  .experience-title {
    font-size: 1.2rem;
    text-align: left;
  }
  
  .experience-company {
    text-align: left;
  }
  
  .experience-duration {
    text-align: left;
  }
  
  .experience-description {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
  
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--bg-primary);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 2rem;
    padding: 3rem 0;
    transition: left 0.3s ease;
    border-top: 1px solid var(--border-primary);
    box-shadow: var(--shadow-lg);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .hero-container {
    padding: 0 20px;
    gap: 1.5rem;
    grid-template-columns: 1fr;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
  }
  
  .hero-content {
    text-align: center;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    padding: 0 10px;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
    margin: 0 auto 1rem auto;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
    text-align: center;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.5;
    margin: 0 auto 1.5rem auto;
    padding: 0 5px;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
  }
  
  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
    box-sizing: border-box;
    text-align: center;
  }
  
  .typing-container {
    justify-content: center;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    padding: 0 10px;
    box-sizing: border-box;
    height: 50px;
    margin: 0.75rem 0;
  }
  
  .typing-text {
    font-size: 1rem;
    text-align: center;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    line-height: 1.4;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .skill-category {
    padding: 1.5rem;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .certifications-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    padding: 0 10px;
  }
  
  .cert-badge {
    padding: 1.5rem 1rem;
    min-height: 120px;
  }
  
  .cert-badge span {
    font-size: 1.1rem;
  }
  
  .cert-badge small {
    font-size: 0.8rem;
    text-align: center;
    line-height: 1.3;
  }
  
  .theme-toggle {
    top: 16px;
    right: 16px;
  }
  
  .hero {
    padding: 100px 0 60px 0;
    min-height: auto;
  }
  
  section {
    padding: 60px 0;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .section-subtitle {
    font-size: 1.1rem;
  }
  
  /* Experience section mobile styles */
  .experience-content {
    padding: 0 10px;
  }
  
  .experience-item {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .experience-header {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
  }
  
  .experience-icon {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
    align-self: center;
  }
  
  .experience-info {
    text-align: center;
    width: 100%;
  }
  
  .experience-title {
    font-size: 1.125rem;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  .experience-company {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    text-align: center;
  }
  
  .experience-duration {
    font-size: 0.875rem;
    text-align: center;
    margin-bottom: 0;
  }
  
  .experience-description {
    text-align: left;
    width: 100%;
  }
  
  .achievements-list {
    text-align: left;
  }
  
  .achievements-list li {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.875rem;
    padding-left: 1.25rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  
  .hero-container {
    padding: 0 16px;
    gap: 1rem;
  }
  
  .hero-content {
    padding: 0 8px;
  }
  
  .hero-content h1 {
    font-size: 2rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    padding: 0 5px;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    line-height: 1.5;
    padding: 0 8px;
  }
  
  .typing-container {
    padding: 0 8px;
    height: 45px;
    margin: 0.5rem 0;
  }
  
  .typing-text {
    font-size: 0.95rem;
    line-height: 1.3;
  }
  
  .hero-buttons {
    padding: 0 8px;
  }
  
  .hero-buttons .btn {
    max-width: 260px;
  }
  
  .profile-image {
    width: 250px;
    height: 250px;
  }
  
  .project-card {
    padding: 1.5rem;
  }
  
  .skill-category {
    padding: 1rem;
  }
  
  .skills-tags {
    gap: 0.375rem;
  }
  
  .skill-badge {
    padding: 0.375rem 0.625rem;
    font-size: 0.8rem;
  }
  
  .certifications-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding: 0 5px;
  }
  
  .cert-badge {
    padding: 1.25rem 0.75rem;
    min-height: 110px;
  }
  
  .cert-badge i {
    font-size: 2rem;
  }
  
  .cert-badge span {
    font-size: 1rem;
  }
  
  .cert-badge small {
    font-size: 0.75rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .nav-container {
    padding: 0 16px;
  }
  
  /* Education section for very small screens */
  .education-item {
    padding: 1.25rem;
    margin-bottom: 1.25rem;
  }
  
  .education-icon {
    width: 45px;
    height: 45px;
    font-size: 1.125rem;
  }
  
  .education-degree {
    font-size: 1rem;
    line-height: 1.25;
  }
  
  .education-year {
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
  }
  
  .education-institution {
    font-size: 0.95rem;
  }
  
  .education-location {
    font-size: 0.8rem;
  }
  
  .education-details {
    font-size: 0.9rem;
    line-height: 1.5;
  }
  
  .highlight-tag {
    font-size: 0.75rem;
    padding: 0.4rem 0.6rem;
  }
  
  /* Experience section for very small screens */
  .experience-item {
    padding: 1.25rem;
    margin-bottom: 1.25rem;
  }
  
  .experience-icon {
    width: 45px;
    height: 45px;
    font-size: 1.125rem;
  }
  
  .experience-title {
    font-size: 1rem;
    line-height: 1.25;
  }
  
  .experience-company {
    font-size: 0.95rem;
  }
  
  .experience-duration {
    font-size: 0.8rem;
  }
  
  .achievements-list li {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    padding-left: 1rem;
  }
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* ===== TEXT ROTATION ANIMATION ===== */
.typing-container {
  height: 60px;
  margin: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  opacity: 1 !important;
  visibility: visible !important;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.typing-text {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent-secondary);
  font-family: var(--font-mono);
  min-height: 1.5rem;
  line-height: 1.5rem;
  display: inline-block;
  opacity: 1 !important;
  visibility: visible !important;
  transition: opacity 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 768px) {
  .typing-text {
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    text-overflow: unset;
  }
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}


/* ===== ENHANCED ANIMATIONS ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@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);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 5px currentColor;
  }
  50% {
    box-shadow: 0 0 20px currentColor;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* Animation utilities */
.animate-fade-in {
  animation: fadeIn 0.8s ease-out forwards;
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.animate-slide-in-left {
  animation: slideInLeft 0.8s ease-out forwards;
  opacity: 1 !important;
  transform: translateX(0) !important;
}

.animate-slide-in-right {
  animation: slideInRight 0.8s ease-out forwards;
  opacity: 1 !important;
  transform: translateX(0) !important;
}

.animate-slide-in-up {
  animation: slideInUp 0.8s ease-out forwards;
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* Elements ready for animation */
.animation-ready {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Ensure case study buttons remain clickable even when parent has animation-ready */
.animation-ready .case-study-btn {
  opacity: 1 !important;
  pointer-events: auto !important;
  position: relative;
  z-index: 10;
  transform: none !important;
}

.animation-ready.animate-fade-in,
.animation-ready.animate-slide-in-left,
.animation-ready.animate-slide-in-right,
.animation-ready.animate-slide-in-up {
  opacity: 1;
  transform: translateY(0) translateX(0);
}

/* Ensure essential elements are visible by default */
.hero-content,
.navbar,
.section-header {
  opacity: 1;
  transform: none;
}

/* Fallback for elements that should be visible */
.hero-content * {
  opacity: 1;
}

.typing-container {
  opacity: 1;
}

/* ===== RIPPLE EFFECT ===== */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  pointer-events: none;
  transform: scale(0);
  animation: rippleEffect 0.6s linear;
  z-index: 1;
}

@keyframes rippleEffect {
  to {
    transform: scale(2);
    opacity: 0;
  }
}

/* ===== ENHANCED HOVER EFFECTS ===== */
.skill-badge {
  position: relative;
  overflow: hidden;
}

.skill-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s;
}

.skill-badge:hover::before {
  left: 100%;
}

.project-card {
  position: relative;
  overflow: hidden;
}

.project-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent, rgba(232, 121, 249, 0.05), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none; /* Allow clicks to pass through */
  z-index: 1; /* Keep it above the background but below buttons */
}

.project-card:hover::after {
  opacity: 1;
}

/* Enhanced button animations */
.btn, .case-study-btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover, .case-study-btn:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Enhanced cert badge animations */
.cert-badge {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cert-badge:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 15px 30px rgba(232, 121, 249, 0.2);
}

/* Skill category enhanced hover */
.skill-category {
  transition: all 0.4s ease;
  background: var(--surface);
  backdrop-filter: blur(10px);
}

.skill-category:hover {
  transform: translateY(-8px) scale(1.02);
  background: rgba(31, 31, 31, 0.8);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* ===== FOCUS STATES FOR ACCESSIBILITY ===== */
button:focus,
a:focus,
input:focus,
textarea:focus {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

/* Ensure proper contrast in both themes */
[data-theme="dark"] {
  color-scheme: dark;
}

[data-theme="light"] {
  color-scheme: light;
}

/* ===== ADDITIONAL PROJECT STYLES ===== */
.project-header {
  margin-bottom: 1.5rem;
}

.project-subtitle {
  font-size: 1rem;
  color: var(--text-tertiary);
  margin-top: 0.5rem;
  font-style: italic;
}

.project-highlights {
  list-style: none;
  padding: 0;
  margin: 0;
}

.project-highlights li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.project-highlights li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-secondary);
  font-weight: bold;
}

.project-actions {
  margin-top: 1.5rem;
  position: relative;
  z-index: 5; /* Ensure actions container is above overlay */
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials-section {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border-primary);
}

.testimonials-title {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2rem;
  font-family: var(--font-header);
  display:  flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.testimonials-title i {
  color: var(--accent-primary);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin: 2rem auto 0;
  max-width: 800px;
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border-primary);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.testimonial-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-accent);
}

.testimonial-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.testimonial-icon {
  background: var(--accent-secondary);
  color: var(--text-inverse);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.testimonial-info {
  flex: 1;
}

.testimonial-author {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  font-family: var(--font-header);
}

.testimonial-title {
  font-size: 0.9rem;
  color: var(--accent-primary);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.testimonial-company,
.testimonial-date {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  margin: 0;
}

.testimonial-content {
  margin-bottom: 1.5rem;
}

.testimonial-content p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
  font-style: italic;
}

.testimonial-content p:last-child {
  margin-bottom: 0;
}

.testimonial-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-tertiary);
  color: var(--accent-secondary);
  padding: 0.5rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid var(--accent-secondary);
}

.testimonial-badge i {
  color: var(--accent-secondary);
}

/* Mobile Responsiveness for Testimonials */
@media (max-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .testimonials-title {
    font-size: 1.5rem;
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Mobile Responsiveness for Footer */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}


/* ===== EDUCATION SECTION ===== */
.education {
}

.education-timeline {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.education-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border-primary);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.education-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-accent);
}

.education-icon {
  background: var(--accent-tertiary);
  color: var(--text-inverse);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.education-content {
  flex: 1;
}

.education-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.education-degree {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  font-family: var(--font-header);
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.education-year {
  background: var(--accent-primary);
  color: var(--text-inverse);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-ui);
}

.education-institution {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin: 0.5rem 0 0.25rem 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.education-location {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  margin: 0 0 1rem 0;
  font-style: italic;
}

.education-details {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.education-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.highlight-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  padding: 0.4rem 0.75rem;
  border-radius: 16px;
  font-size: 0.8rem;
  font-weight: 500;
  font-family: var(--font-ui);
  border: 1px solid var(--border-secondary);
  transition: all 0.3s ease;
}

.highlight-tag:hover {
  background: var(--accent-tertiary);
  color: var(--text-inverse);
  transform: translateY(-1px);
}

.highlight-tag i {
  font-size: 0.9rem;
  color: var(--accent-tertiary);
}

.highlight-tag:hover i {
  color: var(--text-inverse);
}



.contact-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border-primary);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.contact-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-accent);
}

.contact-icon {
  background: var(--accent-primary);
  color: var(--text-inverse);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-details h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.25rem 0;
  font-family: var(--font-header);
}

.contact-details p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Mobile Responsiveness for Education and Contact */
@media (max-width: 768px) {
  .education-timeline {
    padding: 0 10px;
  }
  
  .education-item {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .education-icon {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
    align-self: center;
  }
  
  .education-content {
    width: 100%;
  }
  
  .education-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    align-items: center;
  }
  
  .education-degree {
    font-size: 1.125rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
  }
  
  .education-year {
    align-self: center;
    margin-bottom: 0.5rem;
  }
  
  .education-institution {
    font-size: 1rem;
    margin: 0.75rem 0 0.5rem 0;
    text-align: center;
  }
  
  .education-location {
    text-align: center;
    margin-bottom: 1rem;
  }
  
  .education-details {
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }
  
  .education-highlights {
    justify-content: center;
    gap: 0.75rem;
  }
  
  .highlight-tag {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
  }
  
  .contact-info {
    grid-template-columns: 1fr;
  }
  
  .contact-item {
    flex-direction: column;
    text-align: center;
  }
}




.contact-form {
  background: var(--surface);
  border: 1px solid var(--border-primary);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.contact-form:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--border-accent);
}

.form-group {
  margin-bottom: 1.5rem;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper i {
  position: absolute;
  left: 1rem;
  color: var(--text-tertiary);
  font-size: 1rem;
  z-index: 2;
  transition: color 0.3s ease;
}

.form-control {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  border: 2px solid var(--border-primary);
  border-radius: 8px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.3s ease;
  resize: vertical;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

[data-theme="dark"] .form-control:focus {
  box-shadow: 0 0 0 3px rgba(232, 121, 249, 0.1);
}

.form-control:focus + i,
.input-wrapper:focus-within i {
  color: var(--accent-primary);
}

.form-control::placeholder {
  color: var(--text-muted);
  font-size: 0.95rem;
}

textarea.form-control {
  min-height: 120px;
  line-height: 1.5;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.btn--full-width {
  width: 100%;
  justify-content: center;
  margin-top: 1rem;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
}

/* Contact Layout Adjustments */
.contact-info {
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 0;
}

.contact-item {
  padding: 1.25rem;
}

/* Mobile Responsiveness for Contact Form */
@media (max-width: 1024px) {
  .contact-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .contact-info {
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .contact-content {
    gap: 2rem;
  }
  
  .contact-form {
    padding: 2rem;
  }
  
  .contact-info {
    grid-template-columns: 1fr;
  }
  
  .contact-item {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  
  .form-control {
    padding: 0.875rem 0.875rem 0.875rem 2.75rem;
  }
  
  .input-wrapper i {
    left: 0.875rem;
  }
}

@media (max-width: 480px) {
  .contact-form {
    padding: 1.5rem;
  }
}


.footer-social {
  display: flex;
  gap: 1.5rem;
}

.social-link {
  color: var(--text-tertiary);
  font-size: 1.25rem;
  transition: all 0.3s ease;
}

.social-link:hover {
  color: var(--accent-primary);
  transform: translateY(-2px);
}

/* Mobile Responsiveness for Footer Social Links */
@media (max-width: 768px) {
  .footer-social {
    margin-top: 1rem;
  }
}

.case-study-section {
  margin-bottom: 2rem;
}

.case-study-section h3 {
  font-size: 1.5rem;
  color: var(--accent-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-primary);
}

.case-study-section h4 {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.case-study-section p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.case-study-section ul {
  list-style: none;
  padding-left: 0;
}

.case-study-section ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.case-study-section ul li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent-secondary);
  font-weight: bold;
}

.case-study-section table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  font-family: var(--font-ui);
  border: 1px solid var(--border-primary);
}

.case-study-section th,
.case-study-section td {
  padding: 0.75rem 1rem;
  text-align: left;
  border: 1px solid var(--border-primary);
}

.case-study-section th {
  background: var(--surface);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1rem;
}

.case-study-section td {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.case-study-section tbody tr:hover {
  background: var(--surface-hover);
}

.case-study-section strong {
  color: var(--text-primary);
  font-weight: 600;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}