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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(135deg, #0a0a1a 0%, #050816 50%, #0d1b2a 100%);
  background-attachment: fixed;
  color: #f5f5f5;
  line-height: 1.7;
  overflow-x: hidden;
}

/* Animated background particles - Layer 1 */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(3px 3px at 20px 30px, rgba(59, 130, 246, 0.5), transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(234, 179, 8, 0.4), transparent),
    radial-gradient(3px 3px at 50px 160px, rgba(37, 99, 235, 0.5), transparent),
    radial-gradient(2px 2px at 90px 40px, rgba(251, 191, 36, 0.4), transparent),
    radial-gradient(3px 3px at 130px 80px, rgba(59, 130, 246, 0.5), transparent),
    radial-gradient(2px 2px at 160px 120px, rgba(234, 179, 8, 0.4), transparent),
    radial-gradient(2px 2px at 180px 50px, rgba(245, 158, 11, 0.4), transparent),
    radial-gradient(3px 3px at 70px 140px, rgba(96, 165, 250, 0.5), transparent);
  background-size: 200px 200px;
  animation: float-particles 15s linear infinite;
  pointer-events: none;
  z-index: -1;
  opacity: 0.7;
}

/* Animated background - Layer 2 (slower, larger particles) */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(4px 4px at 100px 100px, rgba(59, 130, 246, 0.2), transparent),
    radial-gradient(5px 5px at 300px 200px, rgba(234, 179, 8, 0.15), transparent),
    radial-gradient(4px 4px at 500px 150px, rgba(37, 99, 235, 0.2), transparent);
  background-size: 600px 400px;
  animation: float-particles-slow 30s linear infinite;
  pointer-events: none;
  z-index: -1;
  opacity: 0.5;
}

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

@keyframes float-particles-slow {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-400px) rotate(5deg); }
}

/* ========== NAVIGATION ========== */
.navbar {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  padding: 18px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(5, 8, 22, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar:hover {
  background: rgba(5, 8, 22, 0.95);
}

.nav-name {
  color: white;
  font-size: 24px;
  font-weight: 700;
  background: linear-gradient(135deg, #3b82f6, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-right a {
  margin-left: 30px;
  font-size: 16px;
  font-weight: 500;
  color: #e0e0e0;
  text-decoration: none;
  position: relative;
  transition: all 0.3s ease;
}

.nav-right a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #f59e0b);
  transition: width 0.3s ease;
}

.nav-right a:hover {
  color: #f59e0b;
}

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

/* ========== HERO SECTION ========== */
.hero {
  position: relative;
  padding: 120px 2rem 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: 
    radial-gradient(ellipse at top left, rgba(139, 92, 246, 0.15), transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(0, 229, 255, 0.1), transparent 50%),
    linear-gradient(180deg, #050816 0%, #0a0a1a 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  animation: pulse-bg 8s ease-in-out infinite;
}

@keyframes pulse-bg {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
}

.hero-lab-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  opacity: 0.12;
  pointer-events: none;
  mask-image: linear-gradient(to left, rgba(0,0,0,1) 30%, transparent 100%);
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 30%, transparent 100%);
}

.hero-lab-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2.5rem;
  position: relative;
  z-index: 2;
}

.hero-text {
  flex: 1;
  animation: fadeInUp 1s ease-out;
}

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

.name {
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, #3b82f6 40%, #f59e0b 70%, #fbbf24 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  letter-spacing: -1px;
  animation: name-shimmer 4s ease-in-out infinite;
  text-shadow: 0 0 40px rgba(59, 130, 246, 0.3);
}

@keyframes name-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.slogan {
  font-size: 1.3rem;
  font-style: italic;
  background: linear-gradient(90deg, #60a5fa, #f59e0b, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
  animation: gradient-shift 5s ease infinite;
  background-size: 200% 200%;
}

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

.subtitle {
  font-size: 1.1rem;
  font-weight: 400;
  color: #b0c4de;
  line-height: 2;
  margin-bottom: 1.5rem;
}

.tagline {
  font-size: 1rem;
  color: #94a3b8;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  justify-content: center;
}

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

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

.btn:hover::before {
  left: 100%;
}

.btn.primary {
  background: linear-gradient(135deg, #2563eb, #3b82f6, #f59e0b);
  background-size: 200% 200%;
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
  animation: btn-gradient 3s ease infinite;
}

@keyframes btn-gradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.btn.primary:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 
    0 10px 40px rgba(59, 130, 246, 0.6),
    0 0 30px rgba(245, 158, 11, 0.3);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #e5e7eb;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

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

.hero-links {
  font-size: 0.95rem;
  color: #9ca3af;
}

.hero-links a {
  color: #60a5fa;
  text-decoration: none;
  transition: all 0.3s ease;
}

.hero-links a:hover {
  color: #f59e0b;
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.hero-photo {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  animation: fadeInUp 1s ease-out;
  order: -1;
}

.hero-photo img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  padding: 5px;
  background: linear-gradient(135deg, #3b82f6, #f59e0b, #2563eb, #fbbf24);
  background-size: 300% 300%;
  animation: border-glow 4s ease infinite;
  box-shadow: 
    0 0 30px rgba(59, 130, 246, 0.3),
    0 0 60px rgba(245, 158, 11, 0.2),
    0 25px 50px rgba(0, 0, 0, 0.5);
  transition: all 0.5s ease;
}

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

.hero-photo img:hover {
  transform: scale(1.08) rotate(5deg);
  box-shadow: 
    0 0 50px rgba(59, 130, 246, 0.5),
    0 0 100px rgba(245, 158, 11, 0.4),
    0 30px 60px rgba(0, 0, 0, 0.6);
}

/* ========== SECTIONS ========== */
.section {
  padding: 80px 2rem;
  position: relative;
}

.section-alt {
  background: rgba(11, 16, 32, 0.5);
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title, h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #3b82f6 50%, #f59e0b 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  animation: title-glow 3s ease-in-out infinite;
  position: relative;
}

.section-title::after, h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #f59e0b, #fbbf24);
  margin: 15px auto 0;
  border-radius: 2px;
  animation: line-expand 2s ease-out forwards;
}

@keyframes title-glow {
  0%, 100% { background-position: 0% 50%; filter: brightness(1); }
  50% { background-position: 100% 50%; filter: brightness(1.2); }
}

@keyframes line-expand {
  from { width: 0; opacity: 0; }
  to { width: 80px; opacity: 1; }
}

.section-subtitle {
  text-align: center;
  color: #94a3b8;
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

/* ========== GLASSMORPHISM CARDS ========== */
.grid {
  display: grid;
  gap: 2rem;
}

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

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

.card, .project-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.card::before, .project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  right: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, transparent, #3b82f6, #f59e0b, #fbbf24, transparent);
  transition: left 0.5s ease;
}

.card::after, .project-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, transparent 50%, rgba(245, 158, 11, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.card:hover, .project-card:hover {
  transform: translateY(-15px) rotateX(5deg) scale(1.02);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 
    0 30px 80px rgba(0, 0, 0, 0.5),
    0 0 50px rgba(59, 130, 246, 0.15),
    0 0 100px rgba(245, 158, 11, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.card:hover::before, .project-card:hover::before {
  left: 100%;
}

.card:hover::after, .project-card:hover::after {
  opacity: 1;
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.card-body {
  padding: 1.5rem;
}

.card-body h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: #ffffff;
  font-weight: 600;
}

.card-body p, .card-body ul {
  font-size: 0.95rem;
  color: #b0c4de;
  line-height: 1.8;
}

.card-body ul {
  list-style: none;
  padding-left: 0;
}

.card-body ul li {
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.card-body ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: #f59e0b;
}

/* ========== PROJECT CARDS ENHANCED ========== */
.project-top h3 {
  margin: 0 0 8px 0;
  font-size: 1.2rem;
  color: #fff;
}

.project-meta {
  margin: 0 0 15px 0;
  color: #8b5cf6;
  font-size: 0.9rem;
  font-weight: 500;
}

.project-desc {
  margin: 0 0 18px 0;
  line-height: 1.7;
  color: #b0c4de;
  font-size: 0.95rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.project-tags span {
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 50px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(245, 158, 11, 0.15));
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  font-weight: 500;
  transition: all 0.3s ease;
}

.project-tags span:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(245, 158, 11, 0.3));
  transform: translateY(-2px);
}

.project-actions {
  display: flex;
  gap: 12px;
}

.project-actions .btn {
  padding: 10px 18px;
  font-size: 0.9rem;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e0e0e0;
}

.btn-disabled {
  background: rgba(128, 128, 128, 0.2);
  border: 1px solid rgba(128, 128, 128, 0.3);
  color: rgba(255, 255, 255, 0.4);
  cursor: not-allowed;
  pointer-events: none;
}

/* ========== CONTACT FORM ========== */
.contact-form {
  margin-top: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.25rem;
}

.form-row label {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  color: #e5e7eb;
  font-weight: 500;
}

.form-row input, .form-row textarea {
  padding: 0.9rem 1.2rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  color: #f9fafb;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

/* ========== VIDEO SECTION ========== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.video-card {
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.4s ease;
}

.video-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.3);
}

.video-card iframe {
  width: 100%;
  height: 220px;
  border: none;
}

/* ========== FOOTER ========== */
.footer {
  padding: 50px 2rem;
  text-align: center;
  background: rgba(5, 8, 22, 0.9);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 0;
}

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

.footer-social a, .footer-icon {
  font-size: 32px;
  color: #b0c4de;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-social a:hover, .footer-icon:hover {
  color: #f59e0b;
  transform: translateY(-5px) scale(1.1);
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
}

.footer-text {
  color: #64748b;
  font-size: 0.95rem;
}

/* ========== AI CHATBOT ========== */
#ai-chatbot {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99999;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#ai-chatbot-toggle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #3b82f6, #f59e0b);
  color: #ffffff;
  font-size: 28px;
  cursor: pointer;
  box-shadow: 
    0 8px 30px rgba(59, 130, 246, 0.5),
    0 0 50px rgba(245, 158, 11, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  animation: chatbot-pulse 2.5s ease-in-out infinite;
}

@keyframes chatbot-pulse {
  0%, 100% {
    box-shadow: 
      0 8px 30px rgba(59, 130, 246, 0.5),
      0 0 50px rgba(245, 158, 11, 0.3);
  }
  50% {
    box-shadow: 
      0 8px 40px rgba(59, 130, 246, 0.7),
      0 0 70px rgba(245, 158, 11, 0.5);
  }
}

#ai-chatbot-toggle:hover {
  transform: translateY(-5px) scale(1.1);
  animation: none;
  box-shadow: 
    0 12px 40px rgba(59, 130, 246, 0.6),
    0 0 60px rgba(245, 158, 11, 0.4);
}

#ai-chatbot-window {
  position: absolute;
  bottom: 85px;
  right: 0;
  width: 360px;
  max-height: 500px;
  background: rgba(5, 8, 22, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

#ai-chatbot-window.open {
  display: flex;
  animation: slideUp 0.3s ease-out;
}

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

.ai-chatbot-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 18px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(245, 158, 11, 0.2));
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ai-chatbot-header button {
  border: none;
  background: transparent;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.ai-chatbot-header button:hover {
  opacity: 1;
}

#ai-chatbot-messages {
  padding: 15px;
  max-height: 350px;
  overflow-y: auto;
  background: transparent;
  font-size: 14px;
  color: #e0e0e0;
}

.ai-chatbot-message {
  margin-bottom: 12px;
  line-height: 1.5;
  padding: 12px 15px;
  border-radius: 15px;
  max-width: 85%;
  animation: messageIn 0.3s ease-out;
}

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

.ai-chatbot-bot {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 15px 15px 15px 5px;
}

.ai-chatbot-user {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(251, 191, 36, 0.2));
  border: 1px solid rgba(245, 158, 11, 0.3);
  margin-left: auto;
  border-radius: 15px 15px 5px 15px;
}

.ai-chatbot-typing {
  font-style: italic;
  opacity: 0.7;
}

#ai-chatbot-form {
  display: flex;
  padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.2);
  gap: 10px;
}

#ai-chatbot-input {
  flex: 1;
  border-radius: 25px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 18px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: #e0e0e0;
  outline: none;
  transition: all 0.3s ease;
}

#ai-chatbot-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

#ai-chatbot-input::placeholder {
  color: #666;
}

#ai-chatbot-form button {
  border-radius: 25px;
  border: none;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(135deg, #3b82f6, #f59e0b);
  color: #fff;
  transition: all 0.3s ease;
}

#ai-chatbot-form button:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 20px rgba(59, 130, 246, 0.4);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .navbar {
    padding: 15px 20px;
  }
  
  .nav-right a {
    margin-left: 15px;
    font-size: 14px;
  }
  
  .hero {
    padding: 100px 1.5rem 60px;
  }
  
  .hero-inner {
    flex-direction: column-reverse;
    gap: 2rem;
    text-align: center;
  }
  
  .hero-text {
    flex: 1 1 100%;
  }
  
  .name {
    font-size: 2.5rem;
  }
  
  .slogan {
    font-size: 1.1rem;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-photo {
    flex: 0 0 auto;
  }
  
  .hero-photo img {
    width: 200px;
    height: 200px;
  }
  
  .section-title, h2 {
    font-size: 2rem;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  #ai-chatbot-window {
    width: 95vw;
    right: -10px;
  }
}

@media (max-width: 640px) {
  .projects-grid, .skills-grid, .video-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #050816;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #3b82f6, #f59e0b);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #f59e0b, #3b82f6);
}

/* ========== SELECTION ========== */
::selection {
  background: rgba(59, 130, 246, 0.3);
  color: #fff;
}

/* ========== LINK STYLES ========== */
.link {
  color: #3b82f6;
  text-decoration: none;
  transition: all 0.3s ease;
}

.link:hover {
  color: #f59e0b;
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}
