* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #667eea;
  --secondary: #764ba2;
  --accent: #f093fb;
  --dark: #1a1a2e;
  --light: #f8f9fa;
  --white: #ffffff;
  --text: #2c3e50;
  --text-light: #7f8c8d;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 15px 50px rgba(0, 0, 0, 0.2);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ==================== NAVBAR ==================== */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  padding: 0.1rem 0;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.3rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo i {
  -webkit-text-fill-color: var(--primary);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 0.3rem;
  z-index: 1001;
  width: 30px;
  height: 30px;
  justify-content: center;
  align-items: center;
  padding: 0.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.hamburger::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 50%;
}

.hamburger:hover::before {
  opacity: 0.1;
}

.hamburger:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.hamburger span {
  width: 20px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative;
  transform-origin: center;
  display: block !important;
}

.hamburger span:nth-child(1) {
  transform: translateY(-6px);
}

.hamburger span:nth-child(2) {
  transform: scaleX(1);
}

.hamburger span:nth-child(3) {
  transform: translateY(6px);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
  width: 15px;
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
  width: 15px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::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-links a:hover::after {
  width: 100%;
}

/* ==================== HERO SECTION ==================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem 2rem;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--secondary) 50%,
    var(--accent) 100%
  );
  background-size: 400% 400%;
  animation: gradientShift 8s ease infinite;
  position: relative;
  overflow: hidden;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.stars {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  top: 0;
  left: 0;
}

.stars::before {
  content: "";
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  box-shadow:
    50px 50px 0 -2px rgba(255, 255, 255, 0.8),
    100px 150px 0 -2px rgba(255, 255, 255, 0.6),
    200px 80px 0 -2px rgba(255, 255, 255, 0.7),
    300px 200px 0 -2px rgba(255, 255, 255, 0.5),
    400px 120px 0 -2px rgba(255, 255, 255, 0.8),
    500px 250px 0 -2px rgba(255, 255, 255, 0.6),
    600px 100px 0 -2px rgba(255, 255, 255, 0.7),
    700px 180px 0 -2px rgba(255, 255, 255, 0.5),
    800px 220px 0 -2px rgba(255, 255, 255, 0.8),
    900px 150px 0 -2px rgba(255, 255, 255, 0.6),
    1000px 200px 0 -2px rgba(255, 255, 255, 0.7),
    100px 400px 0 -2px rgba(255, 255, 255, 0.5),
    300px 500px 0 -2px rgba(255, 255, 255, 0.8),
    500px 450px 0 -2px rgba(255, 255, 255, 0.6),
    700px 400px 0 -2px rgba(255, 255, 255, 0.7),
    900px 500px 0 -2px rgba(255, 255, 255, 0.5);
  animation: twinkle 5s infinite;
}

/* Unique floating geometric shapes */
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  animation: geometricFloat 10s ease-in-out infinite;
}

@keyframes geometricFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-20px) rotate(120deg);
  }
  66% {
    transform: translateY(10px) rotate(240deg);
  }
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

.hero-content {
  position: relative;
  z-index: 10;
  animation: slideUp 1s ease-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
}

.profile-image-wrapper {
  position: relative;
  margin-bottom: 2rem;
  animation: imageEntrance 1.5s ease-out;
}

@keyframes imageEntrance {
  0% {
    opacity: 0;
    transform: scale(0.5) rotate(-180deg);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1) rotate(-90deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

.hero-img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 5px solid white;
  object-fit: cover;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  animation: float 3s ease-in-out infinite, imageGlow 4s ease-in-out infinite;
  transition: transform 0.3s ease;
}

.hero-img:hover {
  transform: scale(1.05) rotate(5deg);
}

@keyframes imageGlow {
  0%, 100% {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 255, 255, 0.1);
  }
  50% {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 40px rgba(255, 255, 255, 0.3);
  }
}

.glow {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse 2s ease-in-out infinite, rotateGlow 8s linear infinite;
}

@keyframes rotateGlow {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
  }
}

.hero-title {
  font-size: 4rem;
  color: white;
  margin-bottom: 0.5rem;
  font-weight: 800;
  animation: textReveal 1s ease-out, textGlow 3s ease-in-out infinite;
  background: linear-gradient(45deg, #fff, rgba(255, 255, 255, 0.8), #fff);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes textReveal {
  0% {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes textGlow {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.typing-text {
  font-size: 1.8rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 1rem;
  animation: slideUp 0.8s ease-out 0.2s both, typingPulse 2s ease-in-out infinite;
  font-weight: 600;
  position: relative;
}

@keyframes typingPulse {
  0%, 100% {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  }
  50% {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 30px rgba(255, 255, 255, 0.6);
  }
}

.typing-text::after {
  content: "|";
  animation: blink 1s infinite;
  color: rgba(255, 255, 255, 0.8);
}

@keyframes blink {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0;
  }
}

.hero-description {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto 2rem;
  animation: slideUp 0.8s ease-out 0.4s both, fadeInUp 1s ease-out 0.6s both;
  line-height: 1.6;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  animation: slideUp 0.8s ease-out 0.6s both, buttonBounce 2s ease-in-out infinite;
}

@keyframes buttonBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.btn {
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition:
    width 0.6s,
    height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: white;
  color: var(--primary);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: white;
  color: var(--primary);
  transform: translateY(-3px);
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

.scroll-indicator {
  animation: slideUp 0.8s ease-out 0.8s both;
}

.scroll-arrow {
  animation: bounce 2s infinite;
  color: white;
  font-size: 1.5rem;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes iconBounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) scale(1);
  }
  40% {
    transform: translateY(-8px) scale(1.1);
  }
  60% {
    transform: translateY(-4px) scale(1.05);
  }
}

/* ==================== SECTION STYLES ==================== */
section {
  padding: 5rem 2rem;
}

.section-title {
  font-size: 2.8rem;
  color: var(--text);
  margin-bottom: 1rem;
  text-align: center;
  position: relative;
  display: inline-block;
  width: 100%;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

.section-description {
  text-align: center;
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* ==================== ABOUT SECTION ==================== */
.about {
  background: var(--light);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 3rem;
}

.about-img-wrapper {
  position: relative;
}

.about-img {
  width: 100%;
  max-width: 350px;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.stat {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: var(--shadow);
}

.stat h3 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stat p {
  color: var(--text-light);
  font-size: 0.9rem;
}

.about-text p {
  margin-bottom: 1.5rem;
  color: var(--text);
  line-height: 1.8;
  font-size: 1.05rem;
}

.about-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.about-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  background: white;
  color: var(--primary);
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.about-link:hover {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  transform: translateY(-3px);
}

/* ==================== SKILLS SECTION ==================== */
.skills {
  background: white;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.skill-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.95));
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow:
    0 8px 32px rgba(102, 126, 234, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(102, 126, 234, 0.08);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 20px 20px 0 0;
}

.skill-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow:
    0 20px 40px rgba(102, 126, 234, 0.15),
    0 8px 16px rgba(0, 0, 0, 0.1);
  border-color: rgba(102, 126, 234, 0.2);
}

.skill-card:hover .skill-category-icon {
  animation: iconBounce 0.6s ease;
}

.skill-card h3 {
  color: var(--primary);
  margin-bottom: 2rem;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 700;
  position: relative;
}

.skill-card h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

.skill-category-icon {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 12px;
  font-size: 1.6rem;
  color: white;
  box-shadow:
    0 4px 15px rgba(102, 126, 234, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.skill-category-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255,255,255,0.1), transparent);
  border-radius: 12px;
}

.skill-category-icon:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow:
    0 6px 20px rgba(102, 126, 234, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.skill-items {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
  background: linear-gradient(135deg, rgba(255,255,255,0.5), rgba(255,255,255,0.8));
  border: 1px solid rgba(102, 126, 234, 0.08);
  backdrop-filter: blur(10px);
  margin: 0.3rem 0;
}

.skill-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 12px 0 0 12px;
  transition: width 0.3s ease;
  z-index: 1;
}

.skill-item:hover {
  transform: translateX(8px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.15);
  border-color: rgba(102, 126, 234, 0.2);
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(147, 51, 234, 0.05));
}

.skill-item:hover::before {
  width: 4px;
}

.skill-item:hover .skill-name {
  color: var(--primary);
  font-weight: 600;
}

.skill-logo {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(147, 51, 234, 0.15));
  border: 2px solid transparent;
  background-clip: padding-box;
  position: relative;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow:
    0 4px 15px rgba(102, 126, 234, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.skill-logo::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 10px;
}

.skill-logo::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.4s ease;
}

.skill-logo:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow:
    0 8px 25px rgba(102, 126, 234, 0.25),
    0 0 30px rgba(147, 51, 234, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border-color: var(--primary);
}

.skill-logo:hover::before {
  opacity: 0.1;
}

.skill-logo:hover::after {
  width: 100px;
  height: 100px;
}

.skill-logo i,
.skill-logo .fa-solid,
.skill-logo .fa-brands {
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.skill-logo:hover i,
.skill-logo:hover .fa-solid,
.skill-logo:hover .fa-brands {
  transform: scale(1.1);
  color: var(--primary);
}

.skill-name {
  flex: 1;
  color: var(--text);
  font-weight: 500;
}

.skill-level {
  display: flex;
  gap: 4px;
  position: relative;
}

.level-bar {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e5e7eb, #d1d5db);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

.level-bar.active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow:
    0 2px 8px rgba(102, 126, 234, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  animation: levelPulse 2s ease-in-out infinite;
}

@keyframes levelPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow:
      0 2px 8px rgba(102, 126, 234, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
  50% {
    transform: scale(1.2);
    box-shadow:
      0 4px 12px rgba(102, 126, 234, 0.5),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }
}

/* ==================== PROJECTS SECTION ==================== */
.projects {
  background: linear-gradient(135deg, var(--light) 0%, white 100%);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.project-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  min-height: 450px;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.project-card.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  color: var(--text-light);
  font-size: 1.1rem;
}

.project-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-card:hover .project-image {
  transform: scale(1.05);
}

.project-content {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-content h3 {
  color: var(--primary);
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.project-description {
  color: var(--text);
  margin-bottom: 1.2rem;
  line-height: 1.6;
  flex: 1;
}

.project-tags {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  flex-shrink: 0;
}

.tag {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.project-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: auto;
  flex-shrink: 0;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.project-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

/* ==================== CONTACT SECTION ==================== */
.contact {
  background: white;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
  align-items: start;
}

.contact-form {
  background: var(--light);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.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);
  background: white;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .btn {
  width: 100%;
  justify-content: center;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-card {
  background: linear-gradient(135deg, var(--light) 0%, white 100%);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid rgba(102, 126, 234, 0.1);
}

.info-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

.info-card i {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.info-card h3 {
  color: var(--text);
  margin-bottom: 0.8rem;
}

.info-card a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.info-card a:hover {
  color: var(--secondary);
}

/* ==================== FOOTER ==================== */
.footer {
  background: var(--dark);
  color: white;
  padding: 3rem 0 1rem;
  width: 100%;
  margin: 0;
  position: relative;
}

.footer .container {
  padding: 0 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  width: 100%;
}

.footer-section {
  width: 100%;
}

.footer-section h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--primary);
}

.footer-social {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(102, 126, 234, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.footer-bottom {
  text-align: center;
  padding: 1.5rem 1rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  line-height: 1.5;
  width: 100%;
  margin: 0;
}

.footer-bottom p {
  margin: 0;
  word-wrap: break-word;
  max-width: 100%;
}

.footer-bottom i {
  color: #e74c3c;
  animation: heartBeat 2s ease-in-out infinite;
}

@keyframes heartBeat {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* ==================== TOAST NOTIFICATION ==================== */
.toast {
  position: fixed;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  transition: bottom 0.3s ease;
  min-width: 300px;
  text-align: center;
}

.toast.show {
  bottom: 2rem;
}

.toast.success {
  border-left: 4px solid #27ae60;
  color: #27ae60;
}

.toast.error {
  border-left: 4px solid #e74c3c;
  color: #e74c3c;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1200px) {
  .container {
    padding: 0 1.5rem;
  }
  
  .hero-title {
    font-size: 3.5rem;
  }
  
  .hero-description {
    max-width: 500px;
  }
}

@media (max-width: 1024px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .section-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .navbar .container {
    justify-content: space-between;
  }

  .hamburger {
    display: flex !important;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(147, 51, 234, 0.2));
    border: 2px solid rgba(102, 126, 234, 0.3);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
  }

  .hamburger:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(147, 51, 234, 0.3));
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.3);
  }

  .nav-links {
    position: fixed;
    left: -100%;
    top: 0;
    flex-direction: column;
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,255,255,0.98));
    width: 280px;
    height: 100vh;
    text-align: left;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 5px 0 30px rgba(0,0,0,0.1);
    padding: 3rem 0 1.5rem;
    gap: 0;
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255,255,255,0.2);
    z-index: 999;
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(59,130,246,0.05), rgba(147,51,234,0.05));
    z-index: -1;
  }

  .nav-links li {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.3s ease;
    margin: 0.5rem 0;
  }

  .nav-links.active li:nth-child(1) { animation: slideInLeft 0.4s ease 0.1s forwards; }
  .nav-links.active li:nth-child(2) { animation: slideInLeft 0.4s ease 0.2s forwards; }
  .nav-links.active li:nth-child(3) { animation: slideInLeft 0.4s ease 0.3s forwards; }
  .nav-links.active li:nth-child(4) { animation: slideInLeft 0.4s ease 0.4s forwards; }
  .nav-links.active li:nth-child(5) { animation: slideInLeft 0.4s ease 0.5s forwards; }

  .nav-links a {
    display: flex;
    align-items: center;
    padding: 0.8rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    gap: 1rem;
    border-left: 3px solid transparent;
  }

  .nav-links a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s ease;
    z-index: -1;
  }

  .nav-links a:hover::before {
    width: 100%;
  }

  .nav-links a:hover {
    color: white;
    transform: translateX(10px);
    border-left-color: var(--primary);
  }

  .nav-links a i {
    font-size: 1.2rem;
    color: var(--primary);
    transition: transform 0.3s ease;
  }

  .nav-links a:hover i {
    transform: scale(1.2) rotate(10deg);
  }

  /* Mobile menu overlay */
  .nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
  }

  .nav-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .hero {
    padding: 1rem 1rem;
    min-height: 90vh;
    text-align: center;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .profile-image-wrapper {
    margin-bottom: 1rem;
  }

  .hero-img {
    width: 120px;
    height: 120px;
  }

  .glow {
    width: 140px;
    height: 140px;
  }

  .hero-title {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
  }

  .typing-text {
    font-size: 1.1rem;
    margin: 0.5rem 0;
  }

  .hero-description {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    max-width: 90%;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    width: 100%;
    max-width: 300px;
  }

  .btn {
    width: 100%;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }

  .scroll-indicator {
    margin-top: 1rem;
  }

  .scroll-arrow {
    font-size: 1.2rem;
  }

  section {
    padding: 3rem 1rem;
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }

  .section-description {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .skills-grid,
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .skill-card,
  .project-card {
    padding: 1.5rem;
  }

  .skill-card h3 {
    font-size: 1.2rem;
  }

  .project-content h3 {
    font-size: 1.2rem;
  }

  .project-card {
    min-height: 400px;
  }

  .project-image {
    height: 200px;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .contact-info {
    gap: 1rem;
  }

  .info-card {
    padding: 1.5rem;
  }

  .footer .container {
    padding: 0 1rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-social {
    justify-content: center;
  }

  .about-img {
    max-width: 100%;
    margin-bottom: 1rem;
  }

  .about-stats {
    margin-top: 1.5rem;
  }

  .stat {
    padding: 1rem;
  }

  .stat h3 {
    font-size: 1.8rem;
  }

  .toast {
    min-width: 90%;
    padding: 1rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .logo {
    font-size: 1.2rem;
  }

  .hamburger {
    width: 28px;
    height: 28px;
  }

  .hamburger span {
    width: 18px;
  }

  .nav-links {
    width: 260px;
    padding: 2.5rem 0 1.5rem;
  }

  .nav-links a {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    gap: 0.8rem;
  }

  .nav-links a i {
    font-size: 1.1rem;
  }

  .hero {
    padding: 0.5rem 1rem;
    min-height: 85vh;
  }

  .hero-content {
    gap: 1rem;
  }

  .profile-image-wrapper {
    margin-bottom: 1.5rem;
  }

  .hero-img {
    width: 100px;
    height: 100px;
  }

  .glow {
    width: 120px;
    height: 120px;
  }

  .hero-title {
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
  }

  .typing-text {
    font-size: 1rem;
    margin: 0.3rem 0;
  }

  .hero-description {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }

  .cta-buttons {
    gap: 0.7rem;
    margin-bottom: 1rem;
    max-width: 280px;
  }

  .btn {
    padding: 0.7rem 1.2rem;
    font-size: 0.95rem;
  }
    margin-bottom: 1rem;
    max-width: 280px;
  }

  .btn {
    padding: 0.7rem 1.2rem;
    font-size: 0.95rem;
  }

  .hamburger {
    width: 26px;
    height: 26px;
  }

  .hamburger span {
    width: 16px;
  }

  .nav-links {
    width: 240px;
    padding: 2rem 0 1.5rem;
  }

  .nav-links a {
    padding: 0.7rem 1.2rem;
    font-size: 0.95rem;
    gap: 0.7rem;
  }

  .nav-links a i {
    font-size: 1rem;
  }

  .logo {
    font-size: 1.1rem;
  }

  .hero-img {
    width: 120px;
    height: 120px;
  }

  .glow {
    width: 140px;
    height: 140px;
  }

  .btn {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .section-description {
    font-size: 0.95rem;
  }

  .skill-item {
    padding: 0.6rem 0.8rem;
    gap: 0.8rem;
    font-size: 0.9rem;
  }

  .skill-logo {
    width: 42px;
    height: 42px;
    font-size: 1.5rem;
  }

  .skill-name {
    font-size: 0.9rem;
  }

  .project-links {
    flex-direction: column;
    gap: 0.8rem;
  }

  .project-link {
    width: 100%;
    justify-content: center;
    padding: 0.7rem 1.5rem;
    font-size: 0.95rem;
  }

  .tag {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
  }

  .project-card {
    min-height: 350px;
  }

  .project-image {
    height: 180px;
  }

  .about-stats {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .stat {
    padding: 0.8rem;
    text-align: center;
  }

  .stat h3 {
    font-size: 1.5rem;
  }

  .stat p {
    font-size: 0.85rem;
  }

  .about-text p {
    font-size: 1rem;
    line-height: 1.7;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 0.7rem;
    font-size: 0.95rem;
  }

  .info-card h3 {
    font-size: 1rem;
  }

  .info-card a {
    font-size: 0.9rem;
  }

  .skill-card {
    padding: 1.5rem;
  }

  .skill-item {
    padding: 0.5rem 0.6rem;
    gap: 0.6rem;
    font-size: 0.85rem;
  }

  .skill-logo {
    width: 38px;
    height: 38px;
    font-size: 1.3rem;
  }

  .skill-name {
    font-size: 0.85rem;
  }

  .skill-category-icon {
    width: 40px;
    height: 40px;
    font-size: 1.4rem;
  }

  .footer-section h3 {
    font-size: 1.1rem;
  }

  .footer-section p {
    font-size: 0.9rem;
  }

  .footer-bottom {
    padding: 1rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 360px) {
  .hero {
    padding: 0.5rem;
    min-height: 80vh;
  }

  .hero-content {
    gap: 0.8rem;
  }

  .profile-image-wrapper {
    margin-bottom: 1rem;
  }

  .hero-img {
    width: 80px;
    height: 80px;
  }

  .glow {
    width: 100px;
    height: 100px;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .typing-text {
    font-size: 0.9rem;
  }

  .hero-description {
    font-size: 0.85rem;
  }

  .cta-buttons {
    max-width: 250px;
  }

  .btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .skill-card,
  .project-card,
  .info-card {
    padding: 1rem;
  }

  .project-card {
    min-height: 320px;
  }

  .project-image {
    height: 160px;
  }

  .footer-bottom {
    padding: 0.8rem 1rem 0.5rem;
    font-size: 0.75rem;
  }
}

/* SCROLL ANIMATION */

.section {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease;
}

.section.show {
  opacity: 1;
  transform: translateY(0);
}
/* PROJECT CARD 3D EFFECT */

.project-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}
.momo-signature-regular {
  font-family: "Momo Signature", cursive;
  font-weight: 400;
  font-style: normal;
}

/* Mobile animation optimization */



@media (max-width:768px){

*{
animation-duration:1.5s !important;
animation-timing-function:ease;
}

}



@media (max-width:768px){

.nav-links{
position:fixed;
top:70px;
left:-100%;
width:100%;
height:calc(100vh - 70px);
background:white;
flex-direction:column;
align-items:center;
justify-content:center;
transition:0.3s;
}

.nav-links.active{
left:0;
}

}

/* universal animation smooth */

*{
animation-timing-function:cubic-bezier(.25,.8,.25,1);
}

/* ONLY contact form e apply hobe */
.contact-form {
  background: #ffffff;
  padding: 40px;
  border-radius: 20px;
  width: 350px;
  margin: 50px auto;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Inputs */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px;
  margin: 8px 0;
  border-radius: 8px;
  border: 1px solid #ccc;
  outline: none;
  transition: 0.3s;
}

/* Focus */
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #4facfe;
  box-shadow: 0 0 6px rgba(79,172,254,0.4);
}

/* Button */
.contact-form button {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  border: none;
  border-radius: 30px;
  background: linear-gradient(45deg, #4facfe, #00f2fe);
  color: white;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

/* Hover */
.contact-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Click */
.contact-form button:active {
  transform: scale(0.97);
}
.hidden {
  display: none;
}