/* =======================================
   RESET & BASE STYLES
======================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Light Theme */
  --primary-color: #0078ff;
  --primary-dark: #0056cc;
  --secondary-color: #6c757d;
  --accent-color: #ff6b6b;
  --background-color: #ffffff;
  --surface-color: #f8f9fa;
  --text-primary: #333333;
  --text-secondary: #666666;
  --text-muted: #888888;
  --border-color: #e9ecef;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
  --gradient-primary: linear-gradient(135deg, #0078ff 0%, #3e7186 100%);
  --gradient-hero: linear-gradient(135deg, #667eea 0%, #00b7ff 100%);
}

[data-theme="dark"] {
  --primary-color: #4dabf7;
  --primary-dark: #339af0;
  --secondary-color: #adb5bd;
  --accent-color: #ff8787;
  --background-color: #0f172a;
  --surface-color: #1e293b;
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border-color: #334155;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.35);
  --gradient-primary: linear-gradient(135deg, #4dabf7 0%, #74c0fc 100%);
  --gradient-hero: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
}

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--background-color);
  color: var(--text-primary);
  line-height: 1.6;
  transition: all 0.3s ease;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* =======================================
   LOADING SCREEN
======================================= */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--background-color);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loading-content {
  text-align: center;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid var(--border-color);
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* =======================================
   NAVIGATION
======================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .navbar {
  background: rgba(15, 23, 42, 0.95);
}

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

.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

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

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

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

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

.theme-toggle,
.menu-toggle {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.theme-toggle:hover,
.menu-toggle:hover {
  background: var(--surface-color);
}

.menu-toggle {
  display: none;
}

/* =======================================
   HERO SECTION - DIPERBAIKI AGAR ENAK DILIHAT
======================================= */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  color: white;
  position: relative;
  overflow: hidden;
  padding: 80px 0 40px;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.25);
}

/* Decorative background elements */
.hero::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.05) 0%,
    transparent 70%
  );
  border-radius: 50%;
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-30px, 20px) scale(1.1);
  }
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* =======================================
   HERO CONTENT - TEKS LEBIH RAPI
======================================= */
.hero-content {
  min-width: 0;
  word-wrap: break-word;
}

/* Badge kecil di atas nama */
.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.3rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: 3.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.15;
  letter-spacing: -1px;
  word-break: break-word;
}

/* Nama dengan efek lebih elegan */
.name-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #ffd700 60%, #ff6b6b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  letter-spacing: 1px;
  display: inline-block;
  text-shadow: none;
}

/* Nama dengan efek glow lembut */
.name-glow {
  color: #ffffff;
  font-weight: 800;
  text-shadow:
    0 0 30px rgba(255, 215, 0, 0.2),
    0 0 60px rgba(255, 215, 0, 0.1);
  letter-spacing: 1.5px;
  display: inline-block;
}

/* Garis bawah dekoratif untuk nama */
.underline-decoration {
  position: relative;
  display: inline-block;
}

.underline-decoration::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #ffd700, #ff6b6b, #ffd700);
  background-size: 200% 100%;
  border-radius: 4px;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Subtitle dengan icon */
.hero-subtitle {
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.hero-subtitle .subtitle-icon {
  display: inline-block;
  font-size: 1.2rem;
}

.typing-text {
  color: #ffd700;
  font-weight: 600;
}

.typing-cursor {
  animation: blink 1s infinite;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

/* Deskripsi dengan line height lebih baik */
.hero-description {
  font-size: 1.05rem;
  margin-bottom: 2rem;
  opacity: 0.92;
  line-height: 1.8;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.9);
}

/* Button dengan efek lebih baik */
.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 2.2rem;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: white;
  color: var(--primary-color);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.4);
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

.btn-primary:hover::after {
  left: 100%;
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(5px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.6);
}

/* Social icons lebih menarik */
.hero-social {
  display: flex;
  gap: 0.8rem;
}

.hero-social a {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1.1rem;
}

.hero-social a:hover {
  background: var(--primary-color);
  transform: translateY(-5px) scale(1.05);
  border-color: var(--primary-color);
  box-shadow: 0 8px 25px rgba(0, 120, 255, 0.3);
}

/* =======================================
   PROFILE PHOTO - LEBIH ELEGAN
======================================= */
.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-photo {
  width: 400px;
  height: 533px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 0 0 4px rgba(255, 255, 255, 0.2);
  transition: all 0.4s ease;
  position: relative;
  object-fit: cover;
  background: var(--surface-color);
}

/* Efek glow di sekitar foto */
.profile-photo::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #ffd700, #ff6b6b, #667eea, #ffd700);
  background-size: 300% 300%;
  border-radius: 26px;
  z-index: -1;
  animation: glowBorder 4s ease-in-out infinite;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.profile-photo:hover::before {
  opacity: 1;
}

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

.profile-photo:hover {
  transform: scale(1.03) translateY(-5px);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.4),
    0 0 0 4px rgba(255, 255, 255, 0.4);
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.profile-photo:hover img {
  transform: scale(1.05);
}

/* Decorative ring di sekitar foto */
.profile-photo .photo-ring {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 30px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  animation: ringPulse 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes ringPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.2;
  }
}

/* =======================================
   RESPONSIVE - HERO SECTION
======================================= */

/* Tablet */
@media (max-width: 992px) {
  .hero-container {
    gap: 2.5rem;
  }

  .hero-title {
    font-size: 3rem;
  }

  .profile-photo {
    width: 350px;
    height: 467px;
  }

  .hero-description {
    max-width: 100%;
  }
}

/* Mobile Large */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    background: var(--background-color);
    flex-direction: column;
    padding: 1.5rem 2rem;
    box-shadow: var(--shadow);
    border-top: 1px solid var(--border-color);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
    padding: 0 1.2rem;
  }

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

  .hero-title {
    font-size: 2.8rem;
    letter-spacing: -0.5px;
  }

  .hero-title .name-gradient,
  .hero-title .name-glow {
    font-size: 2.8rem;
  }

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

  .hero-description {
    font-size: 0.95rem;
    margin: 0 auto 1.5rem;
    max-width: 100%;
  }

  .hero-actions {
    justify-content: center;
  }

  .btn {
    padding: 0.7rem 1.8rem;
    font-size: 0.9rem;
  }

  .profile-photo {
    width: 300px;
    height: 400px;
  }

  .hero-social {
    justify-content: center;
  }

  .hero::after {
    display: none;
  }
}

/* Mobile Small */
@media (max-width: 480px) {
  .hero-container {
    padding: 0 1rem;
    gap: 1.5rem;
  }

  .hero {
    padding: 60px 0 20px;
  }

  .hero-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.8rem;
  }

  .hero-title {
    font-size: 2rem;
    letter-spacing: -0.3px;
  }

  .hero-title .name-gradient,
  .hero-title .name-glow {
    font-size: 2rem;
    letter-spacing: 0.5px;
  }

  .underline-decoration::after {
    bottom: -4px;
    height: 3px;
  }

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

  .hero-description {
    font-size: 0.85rem;
    line-height: 1.7;
  }

  .hero-actions {
    flex-direction: column;
    gap: 0.6rem;
  }

  .btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.85rem;
    justify-content: center;
    width: 100%;
  }

  .profile-photo {
    width: 240px;
    height: 320px;
    border-radius: 18px;
  }

  .profile-photo::before {
    border-radius: 20px;
  }

  .hero-social a {
    width: 38px;
    height: 38px;
    font-size: 0.9rem;
  }

  .hero::after {
    display: none;
  }
}

/* Extra Small */
@media (max-width: 360px) {
  .hero-title {
    font-size: 1.7rem;
  }

  .hero-title .name-gradient,
  .hero-title .name-glow {
    font-size: 1.7rem;
  }

  .profile-photo {
    width: 200px;
    height: 267px;
  }

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

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

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

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

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

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-text h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  text-align: center;
}

.about-text p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  line-height: 1.8;
  text-align: center;
}

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

.stat {
  text-align: center;
}

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

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

.about-skills {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.skill-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.skill-item span {
  font-weight: 500;
  color: var(--text-primary);
}

.skill-bar {
  height: 8px;
  background: var(--border-color);
  border-radius: 10px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 10px;
  width: 0;
  transition: width 1.5s ease;
}

/* =======================================
   EXPERIENCE TIMELINE
======================================= */
#experience {
  background: var(--surface-color);
}

.timeline {
  position: relative;
  max-width: 750px;
  margin: 0 auto;
  padding-left: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.3rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: var(--border-color);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-year {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  margin-left: 0.1rem;
}

.timeline-dot {
  position: absolute;
  left: -1.75rem;
  top: 2.05rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary-color);
  box-shadow: 0 0 0 4px var(--surface-color);
}

.timeline-card {
  background: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 1.75rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.timeline-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(102, 126, 234, 0.3);
}

.timeline-tag {
  display: block;
  width: fit-content;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  line-height: 1.6;
  text-align: left;
  margin-left: 0;
  margin-right: auto;
  margin-bottom: 1.1rem;
}

.tag-education {
  background: rgba(102, 126, 234, 0.12);
  color: var(--primary-color);
}

.tag-work {
  background: rgba(255, 107, 107, 0.12);
  color: var(--accent-color);
}

.timeline-card h3 {
  font-size: 1.15rem;
  color: var(--text-primary);
  text-align: left;
  margin-left: 0;
  margin-right: auto;
  margin-bottom: 0.3rem;
}

.timeline-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  text-align: left;
  margin-bottom: 1.1rem;
}

.timeline-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  text-align: left;
  margin-bottom: 1.1rem;
}

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

.timeline-skills span {
  background: var(--surface-color);
  color: var(--text-primary);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
  border: 1px solid var(--border-color);
}

/* =======================================
   SKILLS SECTION
======================================= */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.skill-card {
  background: var(--background-color);
  padding: 2.5rem 2rem;
  border-radius: 24px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.6s ease forwards;
}

.skill-card:nth-child(1) {
  animation-delay: 0.1s;
}
.skill-card:nth-child(2) {
  animation-delay: 0.2s;
}
.skill-card:nth-child(3) {
  animation-delay: 0.3s;
}
.skill-card:nth-child(4) {
  animation-delay: 0.4s;
}

.skill-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.skill-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: rgba(102, 126, 234, 0.3);
}

.skill-card:hover::before {
  transform: scaleX(1);
}

.skill-header {
  margin-bottom: 2rem;
}

.skill-header h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.skill-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 0.8;
}

.skill-icons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 0;
}

.icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 0.75rem;
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    var(--surface-color) 0%,
    rgba(255, 255, 255, 0.1) 100%
  );
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.icon-item::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.6s ease;
}

.icon-item:hover::before {
  left: 100%;
}

.icon-item:hover {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    rgba(102, 126, 234, 0.9) 100%
  );
  transform: translateY(-2px);
  border-color: rgba(102, 126, 234, 0.3);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
}

.icon-item:hover img {
  filter: brightness(0) invert(1);
  transform: scale(1.15) rotate(5deg);
}

.icon-item:hover span {
  color: white;
  transform: translateY(-1px);
}

.icon-item img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  filter: grayscale(0.2) opacity(0.8);
}

.icon-item span {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  letter-spacing: -0.01em;
}

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

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

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

.project-card {
  background: var(--background-color);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

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

.project-image {
  width: 100%;
  height: 200px;
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

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

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

.project-link {
  width: 45px;
  height: 45px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

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

.project-content {
  padding: 1.5rem;
}

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

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

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

.project-tech span {
  background: var(--surface-color);
  color: var(--text-primary);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid var(--border-color);
}

/* =======================================
   CONTACT SECTION
======================================= */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

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

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--surface-color);
  border-radius: 15px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.contact-item:hover {
  transform: translateX(10px);
  border-color: var(--primary-color);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  flex-shrink: 0;
}

.contact-details h4 {
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.contact-details a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-details a:hover {
  color: var(--primary-color);
}

.contact-form {
  background: var(--surface-color);
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid var(--border-color);
}

.form-group {
  position: relative;
  margin-bottom: 2rem;
}

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

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

.form-group label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  pointer-events: none;
  background: var(--background-color);
  padding: 0 0.5rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
  top: -0.5rem;
  left: 0.5rem;
  font-size: 0.8rem;
  color: var(--primary-color);
}

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

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-text h3 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

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

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  width: 45px;
  height: 45px;
  background: var(--background-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.footer-social a:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
}

/* =======================================
   RESPONSIVE DESIGN - TABLET & MOBILE
======================================= */
@media (max-width: 768px) {
  .nav-container {
    padding: 0.8rem 1rem;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-stats {
    justify-content: center;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

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

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

  .skill-card {
    padding: 1.5rem 1rem;
  }

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

  .timeline {
    padding-left: 1.5rem;
  }

  .timeline-dot {
    left: -1.3rem;
  }

  .timeline-card {
    padding: 1.25rem;
  }
}

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

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

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

  .skill-card {
    padding: 1.2rem 0.8rem;
    border-radius: 16px;
  }

  .skill-icons {
    gap: 0.6rem;
  }

  .icon-item {
    padding: 0.8rem 0.4rem;
  }

  .icon-item img {
    width: 28px;
    height: 28px;
  }

  .icon-item span {
    font-size: 0.7rem;
  }

  .contact-form {
    padding: 1.2rem;
  }

  .hero-social a {
    width: 38px;
    height: 38px;
    font-size: 0.9rem;
  }
}

/* Dark mode */
[data-theme="dark"] .skill-card {
  background: linear-gradient(
    135deg,
    var(--background-color) 0%,
    rgba(30, 41, 59, 0.5) 100%
  );
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .skill-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .icon-item {
  background: linear-gradient(
    135deg,
    rgba(30, 41, 59, 0.6) 0%,
    rgba(51, 65, 85, 0.3) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .icon-item img {
  filter: grayscale(0.2) brightness(0.9) opacity(0.8);
}

[data-theme="dark"] .skill-card:hover .icon-item img {
  filter: grayscale(0) brightness(1) opacity(1);
}
