/* =====================================================
   CSS Custom Properties (Design Tokens)
   ===================================================== */
:root {
  /* Colors - Dark Theme */
  --bg: #0a0e17;
  --bg-secondary: #0f1724;
  --card: #141b2b;
  --card-hover: #1a2332;
  --text: #e6eef8;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent: #7c3aed;
  --accent-hover: #6d28d9;
  --accent-light: #a78bfa;
  --glass: rgba(255, 255, 255, 0.04);
  --glass-hover: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.12);
  --shadow: rgba(0, 0, 0, 0.3);
  --shadow-strong: rgba(0, 0, 0, 0.6);
  
  /* Spacing */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  
  /* Transitions */
  --transition: 0.28s cubic-bezier(0.2, 0.9, 0.3, 1);
  --transition-fast: 0.15s ease;
}

[data-theme='light'] {
  --bg: #f8fafc;
  --bg-secondary: #ffffff;
  --card: #ffffff;
  --card-hover: #f1f5f9;
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --accent: #6d28d9;
  --accent-hover: #5b21b6;
  --accent-light: #8b5cf6;
  --glass: rgba(0, 0, 0, 0.02);
  --glass-hover: rgba(0, 0, 0, 0.04);
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.12);
  --shadow: rgba(0, 0, 0, 0.1);
  --shadow-strong: rgba(0, 0, 0, 0.2);
}

/* =====================================================
   Base Styles
   ===================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  transition: background 0.3s ease, color 0.3s ease;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-secondary) 100%);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  transition: background 0.3s ease, color 0.3s ease;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* =====================================================
   Header
   ===================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 23, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

[data-theme='light'] .site-header {
  background: rgba(248, 250, 252, 0.8);
}

.header-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

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

.avatar {
  width: 70px;
  height: 70px;
  min-width: 70px;
  min-height: 70px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid var(--border);
  transition: all var(--transition);
  background: var(--glass);
  box-shadow: 0 4px 12px var(--shadow);
}

.avatar:hover {
  transform: scale(1.05);
  border-color: var(--accent);
}

.name {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.role {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
}

.nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition-fast);
  position: relative;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

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

.nav-link.cta {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: white;
}

.nav-link.cta::after {
  display: none;
}

.nav-link.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.3);
}

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

.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
}

/* =====================================================
   Buttons
   ===================================================== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  font-size: 0.95rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(124, 58, 237, 0.4);
}

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

.btn-outline:hover {
  background: var(--glass);
  border-color: var(--accent);
}

.btn-icon {
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.btn-icon:hover {
  background: var(--glass);
}

.btn-full {
  width: 100%;
}

/* =====================================================
   Hero Section
   ===================================================== */
.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
  padding: 5rem 2rem;
  min-height: calc(100vh - 80px);
}

.hero-content {
  animation: fadeInUp 0.8s ease;
  margin-bottom:55px;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--accent-light);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--text), var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
  max-width: 600px;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-light);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-visual {
  animation: fadeInRight 0.8s ease 0.2s both;
}

.profile-card {
  background: linear-gradient(135deg, var(--card), var(--card-hover));
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 60px var(--shadow-strong);
  transition: all var(--transition);
  max-width: 320px;
  transform: rotate(-3deg);
  animation: floatCard 6s ease-in-out infinite;
}

@keyframes floatCard {
  0%, 100% {
    transform: rotate(-3deg) translateY(0px);
  }
  50% {
    transform: rotate(2deg) translateY(-10px);
  }
}

.profile-card:hover {
  transform: rotate(0deg) translateY(-12px) scale(1.02);
  box-shadow: 0 25px 70px var(--shadow-strong);
}

.profile-card img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  object-fit: cover;
  margin-bottom: 1.5rem;
}

.profile-info strong {
  display: block;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.profile-info p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

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

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  transition: all var(--transition-fast);
}

.social-links a:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-3px);
}

/* =====================================================
   Section Styles
   ===================================================== */
section {
  padding: 4rem 2rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 3rem;
  gap: 2rem;
  flex-wrap: wrap;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  margin-top: 1.5rem;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* =====================================================
   Projects Section
   ===================================================== */
.filters {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.filters select {
  padding: 0.65rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filters select:hover {
  border-color: var(--accent);
}

.search-wrapper {
  position: relative;
}

.search-wrapper input {
  padding: 0.65rem 1rem 0.65rem 2.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  min-width: 250px;
  transition: var(--transition-fast);
}

.search-wrapper input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--card-hover);
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.5;
  pointer-events: none;
}

/* =====================================================
   Cards Grid
   ===================================================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: linear-gradient(135deg, var(--card), var(--card-hover));
  padding: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 60px var(--shadow-strong);
  border-color: var(--accent);
}

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

.card .thumb {
  height: 150px;
  overflow: hidden;
  position: relative;
}

.card .thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.3));
}

.card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.card:hover .thumb img {
  transform: scale(1.1);
}

.card h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 1rem 1.25rem 0.35rem;
}

.card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.85rem;
  padding: 0 1.25rem;
  line-height: 1.5;
}

.card .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.25rem;
}

.tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--border);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card .actions {
  display: flex;
  gap: 0.75rem;
  padding: 0 1.5rem 1.5rem;
}

.action {
  flex: 1;
  padding: 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--glass);
  text-align: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--text);
  transition: all var(--transition-fast);
}

.action:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

/* =====================================================
   Skills Section
   ===================================================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.skill-category {
  background: var(--card);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.skill-category:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px var(--shadow);
  border-color: var(--accent);
}

.skill-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.skill-category h4 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.skill-list {
  list-style: none;
  padding: 0;
}

.skill-list li {
  padding: 0.35rem 0;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  transition: var(--transition-fast);
  font-size: 0.9rem;
}

.skill-list li:last-child {
  border-bottom: none;
}

.skill-list li:hover {
  color: var(--accent-light);
  padding-left: 0.5rem;
}

/* =====================================================
   Experience Section
   ===================================================== */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-left: 60px;
  margin-bottom: 3rem;
}

.timeline-marker {
  position: absolute;
  left: 11px;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  border: 4px solid var(--bg);
  z-index: 1;
}

.timeline-content {
  background: var(--card);
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.timeline-content:hover {
  transform: translateX(8px);
  box-shadow: 0 8px 30px var(--shadow);
}

.timeline-date {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--glass);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-light);
  margin-bottom: 0.75rem;
}

.timeline-content h4 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.company {
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.timeline-content p:last-child {
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
  font-size: 0.9rem;
}

.location {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.timeline-items {
  list-style: none;
  padding: 0;
  margin-top: 0.5rem;
}

.timeline-items li {
  color: var(--text-secondary);
  font-size: 0.85rem;
  padding: 0.3rem 0 0.3rem 1.5rem;
  position: relative;
  line-height: 1.4;
}

.timeline-items li:before {
  content: "▸";
  position: absolute;
  left: 0.5rem;
  color: var(--accent);
}

/* =====================================================
   About Section
   ===================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-content p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.about-image img {
  width: 250px;
  height: 350px;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px var(--shadow-strong);
  border: 1px solid var(--border);
  display: block;
  margin: 0 auto;
}

/* =====================================================
   Certifications Section
   ===================================================== */
.certifications-section {
  margin: 4rem 0;
  padding: 2rem 0;
}

.certifications-section .section-title {
  margin-bottom: 2rem;
}

.certifications-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.cert-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all var(--transition);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  flex: 0 1 320px;
  min-width: 280px;
}

.cert-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--shadow);
  border-color: var(--accent);
}

.cert-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px var(--shadow));
}

.cert-img-gmi {
  font-size: 2.5rem;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(30, 144, 255, 0.1), rgba(50, 200, 100, 0.1));
  border-radius: var(--radius-lg);
}

.cert-info {
  flex: 1;
  min-width: 0;
}

.cert-info h4 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.4rem 0;
  color: var(--text);
  line-height: 1.3;
}

.cert-info p {
  color: var(--text-secondary);
  font-size: 0.8rem;
  margin: 0;
  line-height: 1.3;
}

/* =====================================================
   Contact Section
   ===================================================== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  background: var(--card);
  padding: 2.5rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  max-width: 1000px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.contact-method {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-icon {
  font-size: 1.5rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.contact-method h4 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 600;
}

.contact-method a,
.contact-method p {
  color: var(--text-secondary);
  text-decoration: none;
  margin: 0;
  transition: color var(--transition-fast);
}

.contact-method a:hover {
  color: var(--accent-light);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.contact-form input,
.contact-form textarea {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--card);
}

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

/* =====================================================
   Footer
   ===================================================== */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  margin-top: 4rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-info p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-meta {
  font-size: 0.85rem !important;
  color: var(--text-muted) !important;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

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

/* =====================================================
   Modal
   ===================================================== */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 2rem;
}

.modal[aria-hidden='false'] {
  display: flex;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.3s ease;
}

.modal-panel {
  position: relative;
  background: var(--card);
  border-radius: var(--radius-xl);
  padding: 2rem;
  max-width: 900px;
  width: 100%;
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px var(--shadow-strong);
  animation: slideUp 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--glass);
  border: 1px solid var(--border);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  z-index: 1;
}

.modal-close:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: rotate(90deg);
}

/* =====================================================
   Animations
   ===================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.9, 0.3, 1);
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

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

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

/* =====================================================
   Responsive Design
   ===================================================== */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .hero {
    padding: 3rem 2rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-stats {
    gap: 2rem;
  }

  .section-title {
    font-size: 1.75rem;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.25rem;
  }
  
  .skills-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
  }

  .skill-category {
    padding: 1.25rem;
  }
  
  .certifications-container {
    flex-direction: column;
    gap: 1rem;
  }

  .cert-item {
    flex: 1 1 auto;
    width: 100%;
  }

  .timeline::before {
    left: 10px;
  }
  
  .timeline-item {
    padding-left: 45px;
    margin-bottom: 2rem;
  }
  
  .timeline-marker {
    left: 1px;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .contact-wrapper {
    padding: 2rem;
    gap: 2rem;
  }

  .about-image img {
    max-width: 280px;
  }
  
  .modal-panel {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .hero {
    padding: 2rem 1rem;
  }

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

  .hero-ctas {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
    text-align: center;
    padding: 0.75rem 1rem;
  }

  .search-wrapper input {
    min-width: 100%;
    padding: 0.6rem 1rem 0.6rem 2.2rem;
  }

  .filters {
    flex-direction: column;
    width: 100%;
  }

  .filters select {
    width: 100%;
  }

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

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

  .about-grid {
    gap: 2rem;
  }

  .about-image img {
    max-width: 250px;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }

  .contact-methods {
    gap: 1rem;
    margin-top: 1rem;
  }

  .contact-form {
    gap: 1rem;
  }

  .form-group {
    gap: 0.35rem;
  }

  .certifications-container {
    gap: 0.75rem;
  }

  .cert-item {
    padding: 1rem;
    flex-direction: column;
    text-align: center;
  }

  .cert-img {
    width: 64px !important;
    height: 64px !important;
  }
}