/* ===== ROOT VARIABLES ===== */
:root {
  --primary: #667eea;
  --primary-dark: #5568d3;
  --secondary: #764ba2;
  --accent: #00f2fe;
  --text-dark: #1a1a2e;
  --text-light: #eee;
  --text-muted: #999;
  --bg-light: #f8f9ff;
  --bg-dark: #0f0f1e;
  --border: #e0e0e0;
  --border-dark: #2a2a3e;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
}

body.dark-mode {
  --text-dark: #eee;
  --text-light: #1a1a2e;
  --bg-light: #0f0f1e;
  --bg-dark: #1a1a2e;
  --border: #2a2a3e;
  --border-dark: #e0e0e0;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* ===== GLOBAL STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

body.dark-mode .navbar {
  background: rgba(15, 15, 30, 0.95);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10;
}

.logo-icon {
  width: 35px;
  height: 35px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 0.3s ease;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* ===== THEME TOGGLE SWITCH ===== */
.theme-toggle-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.05);
  padding: 6px 12px;
  border-radius: 20px;
}

body.dark-mode .theme-toggle-wrapper {
  background: rgba(255, 255, 255, 0.1);
}

.theme-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.theme-toggle {
  position: relative;
  width: 50px;
  height: 26px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  border-radius: 13px;
  cursor: pointer;
  transition: var(--transition);
  padding: 2px;
  display: flex;
  align-items: center;
}

.theme-toggle::before {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  background: white;
  border-radius: 50%;
  transition: left 0.3s ease;
  left: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle.active::before {
  left: 26px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  gap: 5px;
  z-index: 10;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(10px, 10px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* ===== FLOATING SHORTCUTS ===== */
.floating-shortcuts {
  position: fixed;
  bottom: 30px;
  left: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 999;
  animation: slideInLeft 0.5s ease;
}

.shortcut-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.shortcut-btn:hover {
  transform: scale(1.15);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

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

/* ===== INFO BANNER SECTION ===== */
.info-banner {
  background: linear-gradient(135deg, var(--bg-light) 0%, #f5f7ff 100%);
  padding: 40px 0;
  margin-top: 70px;
}

body.dark-mode .info-banner {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #1f1f35 100%);
}

.info-card-main {
  background: white;
  border-radius: 15px;
  padding: 30px;
  display: flex;
  align-items: center;
  gap: 30px;
  box-shadow: var(--shadow);
  max-width: 900px;
  margin: 0 auto;
}

body.dark-mode .info-card-main {
  background: var(--bg-dark);
  border: 1px solid var(--border-dark);
}

.info-avatar {
  width: 80px;
  height: 80px;
  min-width: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--primary));
  background-size: 200% 200%;
  animation: avatarGradient 4s ease infinite;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.35);
}

.avatar-icon {
  animation: avatarPulse 2.5s ease-in-out infinite;
}

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

@keyframes avatarPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

.info-details h2 {
  font-size: 1.8rem;
  margin-bottom: 5px;
}

.info-role {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.info-status {
  background: rgba(245, 87, 108, 0.1);
  color: #f5576c;
  padding: 8px 15px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.status-flip-wrap {
  display: inline-block;
}

.status-flip-text {
  display: inline-block;
}

.status-flip-wrap::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 0.9em;
  margin-left: 3px;
  vertical-align: -2px;
  background: currentColor;
  animation: status-caret-blink 0.8s steps(1) infinite;
}

@keyframes status-caret-blink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

.info-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.info-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 5px;
}

.info-link:hover {
  color: var(--secondary);
  transform: translateX(5px);
}

/* ===== HERO SECTION ===== */
.hero {
  padding: 80px 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-light) 0%, #f5f7ff 100%);
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" /></filter></defs><rect width="1200" height="600" fill="%23f8f9ff" /><circle cx="200" cy="150" r="300" fill="%23667eea" opacity="0.08" /><circle cx="1000" cy="450" r="350" fill="%23764ba2" opacity="0.06" /></svg>');
  background-attachment: fixed;
  background-size: cover;
  position: relative;
  overflow: hidden;
}

body.dark-mode .hero {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #1f1f35 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -50%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(118, 75, 162, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
  max-width: 1200px;
  width: 100%;
  padding: 0 20px;
}

.hero-text h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease;
}

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

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  font-weight: 600;
  animation: fadeInUp 0.8s ease 0.1s both;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.8;
  max-width: 500px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-cta {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
  animation: fadeInUp 0.8s ease 0.3s both;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 30px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

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

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

.hero-socials {
  display: flex;
  gap: 20px;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.social-link {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--bg-light);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  text-decoration: none;
  transition: var(--transition);
}

body.dark-mode .social-link {
  background: var(--bg-dark);
  border-color: var(--border-dark);
}

.social-link:hover {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border-color: transparent;
  transform: translateY(-5px);
}

.hero-visual {
  position: relative;
  height: 400px;
  animation: fadeInRight 0.8s ease;
}

.floating-card {
  position: absolute;
  width: 120px;
  height: 120px;
  background: white;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: var(--shadow-lg);
  animation: float 3s ease-in-out infinite;
  cursor: pointer;
  transition: var(--transition);
}

body.dark-mode .floating-card {
  background: var(--bg-dark);
  border: 1px solid var(--border-dark);
}

.floating-card:hover {
  transform: scale(1.05);
}

.floating-card .card-icon {
  font-size: 2rem;
}

.floating-card p {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  text-align: center;
}

.card-1 { top: 0; left: 0; animation-delay: 0s; }
.card-2 { top: 50px; right: 20px; animation-delay: 0.5s; }
.card-3 { bottom: 40px; left: 40px; animation-delay: 1s; }
.card-4 { bottom: 10px; right: 0; animation-delay: 1.5s; }

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

/* ===== SECTIONS COMMON ===== */
section {
  padding: 100px 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== ABOUT SECTION ===== */
.about {
  background: var(--bg-light);
}

body.dark-mode .about {
  background: var(--bg-dark);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-text p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.8;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.highlight-item {
  background: white;
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

body.dark-mode .highlight-item {
  background: var(--bg-dark);
  border: 1px solid var(--border-dark);
}

.highlight-item:hover {
  transform: translateY(-5px);
}

.highlight-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.highlight-label {
  display: block;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
}

.about-info {
  display: grid;
  gap: 20px;
}

.info-card {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

body.dark-mode .info-card {
  background: var(--bg-dark);
  border: 1px solid var(--border-dark);
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.info-card h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.info-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.text-muted {
  color: var(--text-muted) !important;
}

.specializations, .certifications {
  list-style: none;
  display: grid;
  gap: 10px;
}

.specializations li::before, .certifications li::before {
  content: '';
  color: var(--primary);
  font-weight: 700;
  margin-right: 10px;
}

/* ===== SKILLS SECTION ===== */
.skills {
  background: linear-gradient(135deg, #f5f7ff 0%, #fff 100%);
}

body.dark-mode .skills {
  background: linear-gradient(135deg, #1f1f35 0%, #2a2a3e 100%);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.skill-category {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

body.dark-mode .skill-category {
  background: var(--bg-dark);
  border: 1px solid var(--border-dark);
}

.skill-category:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.skill-category-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-dark);
}

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

.skill-tag {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  color: var(--primary);
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
}

.skill-tag:hover {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  transform: scale(1.05);
}

/* ===== PROJECTS SECTION ===== */
.projects {
  background: var(--bg-light);
}

body.dark-mode .projects {
  background: var(--bg-dark);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.project-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
  /* transition: transform 0.3s ease, box-shadow 0.3s ease; */
}
/*
.project-card:hover{
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}
*/
body.dark-mode .project-card {
  background: var(--bg-dark);
  border: 1px solid var(--border-dark);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.project-image {
  height: 200px;
  position: relative;
  overflow: hidden;
  background-color: var(--bg-light);
}

/* Featured project card (Ardana) */
.project-card-featured {
  border: 2px solid var(--primary);
}

.project-ribbon {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  background: rgba(0, 0, 0, 0.55);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  letter-spacing: 0.02em;
}


.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateX(100%);
  transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1);
  z-index: 0;
  will-change: transform;
}

.carousel-slide.active {
  transform: translateX(0);
  z-index: 1;
}

.carousel-slide.no-transition {
  transition: none !important;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.45);
  color: white;
  font-size: 1.3rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, background 0.3s ease;
  z-index: 5;
}

.project-image:hover .carousel-arrow,
.project-image.show-controls .carousel-arrow {
  opacity: 1;
  pointer-events: auto;
}

.carousel-arrow:hover {
  background: rgba(0, 0, 0, 0.75);
}

.carousel-arrow.prev {
  left: 10px;
}

.carousel-arrow.next {
  right: 10px;
}

.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 5;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: var(--transition);
}

.carousel-dot:hover {
  background: rgba(255, 255, 255, 0.85);
}

.carousel-dot.active {
  background: white;
  transform: scale(1.3);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  z-index: 2;
}

.project-card:hover .project-overlay,
.project-image.show-controls .project-overlay {
  opacity: 1;
  pointer-events: auto;
}

.project-link {
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 10px 20px;
  border: 2px solid white;
  border-radius: 6px;
  transition: var(--transition);
  background: none;
  cursor: pointer;
}

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

.project-content {
  padding: 25px;
}

.project-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.project-description {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 15px;
  line-height: 1.6;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tech-badge {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
  color: var(--primary);
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 600;
}

.project-links {
  display: flex;
  gap: 10px;
}

.project-btn {
  flex: 1;
  padding: 10px 15px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  font-size: 0.95rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.project-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

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

.btn-outline:hover {
  background: var(--primary);
  color: white;
  box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

/* ===== PROJECT MODAL ===== */
.project-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.project-modal.active {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 15px;
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.3s ease;
}

body.dark-mode .modal-content {
  background: var(--bg-dark);
  border: 1px solid var(--border-dark);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text-dark);
  z-index: 10;
  transition: var(--transition);
}

.modal-close:hover {
  transform: rotate(90deg);
}

.modal-body {
  padding: 40px;
}

.modal-body h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.modal-body p {
  margin-bottom: 15px;
  line-height: 1.8;
  color: var(--text-muted);
}

.modal-body a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
}

.modal-body ul {
  margin: 20px 0;
  padding-left: 20px;
}

.modal-body li {
  margin-bottom: 10px;
  color: var(--text-muted);
}

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

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

/* ===== EXPERIENCE SECTION ===== */
.experience {
  background: linear-gradient(135deg, #f5f7ff 0%, #fff 100%);
}

body.dark-mode .experience {
  background: linear-gradient(135deg, #1f1f35 0%, #2a2a3e 100%);
}

.experience-timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.experience-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
}

.timeline-item {
  margin-bottom: 40px;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.timeline-item:nth-child(odd) {
  direction: rtl;
}

.timeline-item:nth-child(odd) .timeline-content {
  direction: ltr;
}

.timeline-marker {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  width: 15px;
  height: 15px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  border: 4px solid var(--bg-light);
  z-index: 1;
}

body.dark-mode .timeline-marker {
  border-color: var(--bg-dark);
}

.timeline-content {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

body.dark-mode .timeline-content {
  background: var(--bg-dark);
  border: 1px solid var(--border-dark);
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.timeline-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--text-dark);
}

.timeline-role {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.timeline-date {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.timeline-description {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== CONTACT SECTION ===== */
.contact {
  background: var(--bg-light);
}

.certifications-section {
  background: var(--bg-light);
}

body.dark-mode .certifications-section {
  background: var(--bg-dark);
}

body.dark-mode .contact {
  background: var(--bg-dark);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-top: 60px;
}

.contact-info {
  display: grid;
  gap: 25px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: white;
  padding: 24px 28px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
}

body.dark-mode .contact-item {
  background: var(--bg-dark);
  border-color: var(--border-dark);
}

.contact-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.contact-icon {
  width: 54px;
  height: 54px;
  min-width: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.35);
  transition: var(--transition);
}

.contact-item:hover .contact-icon {
  transform: scale(1.08) rotate(-4deg);
}

.contact-item-text {
  min-width: 0;
}

.contact-item-text h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-dark);
}

.contact-item-text span {
  display: block;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  word-break: break-word;
  transition: var(--transition);
}

.contact-item:hover .contact-item-text span {
  color: var(--secondary);
}

.contact-form {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

body.dark-mode .contact-form {
  background: var(--bg-dark);
  border: 1px solid var(--border-dark);
}

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  transition: var(--transition);
  background: var(--bg-light);
  color: var(--text-dark);
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea {
  background: var(--bg-dark);
  border-color: var(--border-dark);
  color: var(--text-dark);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.contact-form button {
  width: 100%;
  margin-top: 10px;
}

.form-note {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 15px;
  text-align: center;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--text-dark);
  color: white;
  padding: 30px 0;
  text-align: center;
}

body.dark-mode .footer {
  background: #000;
}

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

.footer-socials {
  display: flex;
  gap: 20px;
}

.footer-socials a {
  color: white;
  text-decoration: none;
  transition: var(--transition);
}

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

/* ===== ANIMATIONS ===== */
@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);
  }
}

/* ===== TABLET RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .hero-visual {
    display: none;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .experience-timeline::before {
    left: 10px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    direction: ltr !important;
  }

  .timeline-item .timeline-content {
    direction: ltr !important;
  }

  .timeline-marker {
    left: 0;
    transform: translateX(-7.5px);
  }

  .timeline-content {
    margin-left: 40px;
  }

  section {
    padding: 80px 0;
  }
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow);
    gap: 10px;
  }

  body.dark-mode .nav-menu {
    background: var(--bg-dark);
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .floating-shortcuts {
    bottom: 20px;
    left: 20px;
  }

  .shortcut-btn {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }

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

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

  .hero-description {
    font-size: 0.95rem;
  }

  .hero-cta {
    flex-direction: column;
  }

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

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

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

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

  .info-card-main {
    flex-direction: column;
    text-align: center;
  }

  .info-quick-links {
    justify-content: center;
  }

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

  .contact-form {
    padding: 30px 20px;
  }

  .modal-body {
    padding: 30px 20px;
  }

  .modal-body h2 {
    font-size: 1.5rem;
  }

  .section-title::after {
    width: 50px;
  }

  section {
    padding: 60px 0;
  }

  .hero {
    padding: 60px 0;
    min-height: auto;
  }

  .theme-label {
    display: none;
  }
}

/* ===== SMALL MOBILE RESPONSIVE ===== */
@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .nav-container {
    padding: 0 15px;
  }

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

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

  .hero-cta {
    gap: 10px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 1.6rem;
    margin-bottom: 30px;
  }

  .project-card {
    margin-bottom: 20px;
  }

  .project-image {
    height: 150px;
  }

  .floating-shortcuts {
    flex-direction: row;
    bottom: 10px;
    left: 10px;
    gap: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px;
    border-radius: 50px;
    box-shadow: var(--shadow);
  }

  .shortcut-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .info-card-main {
    padding: 20px;
  }

  .info-avatar {
    font-size: 2.5rem;
  }

  .info-quick-links {
    flex-direction: column;
  }

  .info-link {
    font-size: 0.85rem;
  }

  .modal-body {
    padding: 20px;
  }

  .hero {
    padding: 40px 0;
  }

  section {
    padding: 40px 0;
  }

  .skill-tags {
    gap: 8px;
  }

  .skill-tag {
    font-size: 0.8rem;
    padding: 6px 12px;
  }
}