

/* --- CSS Variables --- */
:root {
  --bg-primary: #0a0f1e;
  --bg-secondary: #0f1629;
  --bg-card: #131c36;
  --bg-sidebar: #080c18;
  --text-primary: #e8eaf0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-purple: #2563eb;
  --accent-purple-light: #60a5fa;
  --accent-gold: #f59e0b;
  --accent-gold-light: #fbbf24;
  --gradient-purple: linear-gradient(135deg, #2563eb 0%, #60a5fa 100%);
  --gradient-gold: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  --gradient-hero: linear-gradient(135deg, #0a0f1e 0%, #0f1a3d 50%, #0a0f1e 100%);
  --sidebar-width: 260px;
  --border-color: rgba(37, 99, 235, 0.15);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.4);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 20px;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

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

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--accent-purple);
  border-radius: 3px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  letter-spacing: 0.3px;
}

.btn-primary {
  background: var(--gradient-purple);
  color: #fff;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--accent-purple);
}
.btn-outline:hover {
  background: var(--accent-purple);
  color: #fff;
  transform: translateY(-2px);
}

/* ===================================================
   SIDEBAR
   =================================================== */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  overflow-y: auto;
}

.sidebar-header {
  padding: 40px 24px 24px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-avatar {
  width: 90px;
  height: 90px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.4);
  overflow: hidden;
}

.sidebar-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.sidebar-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.sidebar-title {
  font-size: 0.8rem;
  color: var(--accent-purple-light);
  font-weight: 400;
}

.sidebar-socials {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.sidebar-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-purple-light);
  font-size: 0.9rem;
}
.sidebar-socials a:hover {
  background: var(--accent-purple);
  color: #fff;
  transform: translateY(-2px);
}

.sidebar-nav {
  list-style: none;
  padding: 20px 0;
  flex: 1;
}

.sidebar-nav li {
  margin: 2px 12px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.nav-link i {
  width: 20px;
  text-align: center;
  font-size: 0.95rem;
}

.nav-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background: var(--accent-purple);
  transform: scaleY(0);
  transition: var(--transition);
  border-radius: 0 2px 2px 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: rgba(37, 99, 235, 0.1);
}

.nav-link.active::before {
  transform: scaleY(1);
}

.nav-link.active {
  color: var(--accent-purple-light);
}

/* --- Mobile Nav Toggle --- */
.mobile-nav-toggle {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1100;
  width: 44px;
  height: 44px;
  border: none;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-shadow: var(--shadow);
}

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

.mobile-nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.mobile-nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.mobile-nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===================================================
   MAIN CONTENT
   =================================================== */
.main-content {
  margin-left: var(--sidebar-width);
}

/* ===================================================
   HERO SECTION
   =================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background: var(--gradient-hero);
  overflow: hidden;
  padding: 40px 24px;
}

#heroParticles {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-code {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Ctext x='10' y='20' fill='%237c3aed' font-size='11' font-family='monospace'%3E%7B%7D%3C/text%3E%3Ctext x='50' y='45' fill='%237c3aed' font-size='11' font-family='monospace'%3E%3C/%3E%3C/text%3E%3Ctext x='20' y='70' fill='%237c3aed' font-size='11' font-family='monospace'%3E()%3C/text%3E%3Ctext x='60' y='90' fill='%237c3aed' font-size='11' font-family='monospace'%3E%3D%3E%3C/text%3E%3C/svg%3E");
  background-size: 120px;
  animation: bgScroll 30s linear infinite;
}

@keyframes bgScroll {
  0% { transform: translateY(0); }
  100% { transform: translateY(-120px); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
}

.tag {
  padding: 6px 18px;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-purple-light);
  transition: var(--transition);
}

.tag:hover {
  background: rgba(37, 99, 235, 0.3);
  transform: translateY(-2px);
}

.hero-greeting {
  display: block;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--accent-gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.hero-name {
  display: block;
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(135deg, #fff 0%, var(--accent-purple-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-typing-wrapper {
  margin-top: 16px;
  min-height: 36px;
}

.hero-subtitle {
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--text-secondary);
}

.typing-cursor {
  font-size: 1.3rem;
  color: var(--accent-purple);
  animation: blink 0.8s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-description {
  margin-top: 20px;
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 36px;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
  animation: float 2s ease-in-out infinite;
}

.mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.mouse-wheel {
  width: 3px;
  height: 8px;
  background: var(--accent-purple);
  border-radius: 2px;
  animation: scrollWheel 1.5s ease-in-out infinite;
}

@keyframes scrollWheel {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(8px); }
}

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

/* ===================================================
   SECTIONS - COMMON
   =================================================== */
.section {
  padding: 100px 0;
  position: relative;
}

.section:nth-child(even) {
  background: var(--bg-secondary);
}

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

.section-subtitle {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* ===================================================
   ABOUT SECTION
   =================================================== */
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-purple);
}

.stat-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--gradient-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #1a1040;
}

.stat-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.stat-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.about-text {
  max-width: 750px;
  margin: 0 auto;
  text-align: center;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.8;
}

.about-text strong {
  color: var(--accent-purple-light);
}

.about-text .btn {
  margin-top: 16px;
}

/* ===================================================
   SKILLS SECTION
   =================================================== */
.skills-grouped {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 48px;
}

.skill-group {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.skill-group-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.skill-group-title i {
  color: var(--accent-purple-light);
  font-size: 0.9rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tags span {
  font-size: 0.82rem;
  padding: 6px 14px;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 50px;
  color: var(--accent-purple-light);
  font-weight: 500;
  transition: var(--transition);
}

.skill-tags span:hover {
  background: rgba(37, 99, 235, 0.2);
  border-color: var(--accent-purple);
  transform: translateY(-2px);
}

/* ===================================================
   EXPERIENCE / TIMELINE
   =================================================== */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 0;
}

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

.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding: 0 40px 48px 0;
  position: relative;
  width: 50%;
}

.timeline-item.right {
  justify-content: flex-start;
  padding: 0 0 48px 40px;
  align-self: flex-end;
  margin-left: 50%;
}

.timeline-dot {
  position: absolute;
  right: -21px;
  top: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gradient-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.85rem;
  z-index: 2;
  box-shadow: 0 0 16px rgba(37, 99, 235, 0.4);
}

.timeline-item.right .timeline-dot {
  left: -21px;
  right: auto;
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
  width: 100%;
}

.timeline-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--accent-purple);
}

.timeline-date {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.12);
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 12px;
}

.timeline-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.timeline-card h4 {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--accent-purple-light);
  margin-bottom: 12px;
}

.timeline-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.timeline-card ul {
  margin: 0;
  padding-left: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.timeline-card ul li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(37, 99, 235, 0.2);
  color: var(--accent-purple-light);
  padding: 2px 10px;
  border-radius: 50px;
  vertical-align: middle;
  margin-left: 6px;
}

/* ===================================================
   PORTFOLIO SECTION
   =================================================== */
.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 32px;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: 50px;
  border: 1px solid rgba(37, 99, 235, 0.25);
  background: rgba(37, 99, 235, 0.08);
  color: var(--text-secondary);
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  background: rgba(37, 99, 235, 0.18);
  border-color: var(--accent-purple);
  color: var(--text-primary);
}

.filter-btn.active {
  background: var(--gradient-purple);
  border-color: var(--accent-purple);
  color: #fff;
  box-shadow: 0 2px 12px rgba(37, 99, 235, 0.3);
}

#filterGrid {
  display: none;
}

#filterGrid.active {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

@media (max-width: 768px) {
  #filterGrid.active {
    grid-template-columns: 1fr;
  }
}

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

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-purple);
}

.project-thumb {
  height: 200px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-secondary), var(--accent, #2563eb));
}

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

.project-card:hover .project-thumb img {
  transform: scale(1.05);
}

.project-thumb-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.3);
  background: linear-gradient(135deg, rgba(10, 15, 30, 0.6), rgba(37, 99, 235, 0.15));
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 30, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

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

.project-link {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  transform: scale(0.8);
  transition: var(--transition);
}

.project-card:hover .project-link {
  transform: scale(1);
}

.project-info {
  padding: 20px;
}

.project-info h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.project-tags span {
  font-size: 0.72rem;
  padding: 3px 10px;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 50px;
  color: var(--accent-purple-light);
  font-weight: 500;
}

.project-info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.portfolio-more {
  display: none;
  margin-top: 28px;
}

.portfolio-more.open,
.portfolio-more.filter-open {
  display: block;
}

.portfolio-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 32px auto 0;
  padding: 12px 28px;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: 50px;
  color: var(--accent-purple-light);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.portfolio-toggle:hover {
  background: rgba(37, 99, 235, 0.2);
  border-color: var(--accent-purple);
  transform: translateY(-2px);
}

.portfolio-toggle i {
  transition: transform 0.3s ease;
}

.portfolio-toggle.open i {
  transform: rotate(180deg);
}

/* ===================================================
   CERTIFICATIONS SECTION
   =================================================== */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  text-decoration: none;
  display: block;
}

.cert-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-purple);
}

.cert-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #fff;
  position: relative;
}

.cert-image img {
  width: 100%;
  height: 100%;
  border: none;
  object-fit: contain;
}

.cert-info {
  padding: 16px 20px;
}

.cert-info h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.cert-issuer {
  font-size: 0.8rem;
  color: var(--accent-purple-light);
  font-weight: 500;
}

/* ===================================================
   CONTACT SECTION
   =================================================== */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
  transition: var(--transition);
  display: block;
}

.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-purple);
}

.contact-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--gradient-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #1a1040;
}

.contact-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.contact-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* --- Contact Form --- */
.contact-form {
  max-width: 700px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

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

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

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

/* ===================================================
   FOOTER
   =================================================== */
.footer {
  background: var(--bg-sidebar);
  border-top: 1px solid var(--border-color);
  padding: 32px 0;
  text-align: center;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}

.footer-socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-purple-light);
  font-size: 1rem;
  transition: var(--transition);
}

.footer-socials a:hover {
  background: var(--accent-purple);
  color: #fff;
  transform: translateY(-3px);
}

.footer p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===================================================
   ANIMATIONS
   =================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 1024px) {
  .skills-grouped {
    gap: 20px 32px;
  }
  .certs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.4s ease;
  }
  .sidebar.open {
    transform: translateX(0);
  }

  .mobile-nav-toggle {
    display: flex;
  }

  .main-content {
    margin-left: 0;
  }

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

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .about-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

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

  /* Timeline responsive */
  .timeline::before {
    left: 20px;
  }

  .timeline-item,
  .timeline-item.right {
    width: 100%;
    margin-left: 0;
    padding: 0 0 40px 60px;
    justify-content: flex-start;
  }

  .timeline-dot,
  .timeline-item.right .timeline-dot {
    left: 0;
    right: auto;
  }

  .portfolio-filters {
    gap: 6px;
  }

  .filter-btn {
    padding: 6px 14px;
    font-size: 0.75rem;
  }

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

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

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 70px 0;
  }
}

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

  .hero-tags {
    gap: 6px;
  }

  .tag {
    font-size: 0.72rem;
    padding: 4px 12px;
  }

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

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