/* === Elite Tech Portfolio - AI Lab Command Center === */
:root {
  /* Elite Tech Theme */
  --primary-bg: #0B0F0E;
  --card-bg: #121917;
  --primary-accent: #00E676;
  --secondary-accent: #00C853;
  --border-color: #1A2421;
  --text-primary: #E6F1EC;
  --text-secondary: #9FB8AE;
  --gloss-accent-1: #00E676;
  --gloss-accent-2: #00C853;
  
  /* State Colors */
  --success-color: #00E676;
  --error-color: #FF5252;
  --warning-color: #FFD740;
  
  /* Gradients */
  --primary-gradient: linear-gradient(135deg, #00E676 0%, #00C853 100%);
  --secondary-gradient: linear-gradient(135deg, #00C853 0%, #00E676 100%);
  --gloss-gradient: linear-gradient(135deg, rgba(0, 230, 118, 0.2) 0%, rgba(0, 200, 83, 0.2) 100%);
  --metallic-gradient: linear-gradient(135deg, rgba(0, 230, 118, 0.05) 0%, rgba(0, 200, 83, 0.05) 100%);
  
  /* Glassmorphism */
  --glass-bg: rgba(18, 25, 23, 0.7);
  --glass-border: rgba(26, 36, 33, 0.4);
  --glass-shadow: 0 8px 32px rgba(11, 15, 14, 0.4);
  
  /* Premium Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 24px rgba(0, 230, 118, 0.3);
  --shadow-metallic: 0 8px 32px rgba(0, 230, 118, 0.15);
  
  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --transition-luxury: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Light Mode Variables */
[data-theme="light"] {
  /* Light Mode - Elite Tech Light */
  --primary-bg: #E6F1EC;
  --card-bg: #FFFFFF;
  --primary-accent: #00C853;
  --secondary-accent: #00E676;
  --border-color: #D0E5DD;
  --text-primary: #0B0F0E;
  --text-secondary: #121917;
  --gloss-accent-1: #00E676;
  --gloss-accent-2: #00C853;
  
  /* Light Mode Gradients */
  --primary-gradient: linear-gradient(135deg, #00C853 0%, #00E676 100%);
  --secondary-gradient: linear-gradient(135deg, #00E676 0%, #00C853 100%);
  --gloss-gradient: linear-gradient(135deg, rgba(0, 230, 118, 0.15) 0%, rgba(0, 200, 83, 0.15) 100%);
  --metallic-gradient: linear-gradient(135deg, rgba(0, 200, 83, 0.05) 0%, rgba(0, 230, 118, 0.05) 100%);
  
  /* Light Mode Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(208, 229, 221, 0.4);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  
  /* Light Mode Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 0 24px rgba(0, 200, 83, 0.2);
  --shadow-metallic: 0 8px 32px rgba(0, 200, 83, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--primary-bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: var(--transition-luxury);
  font-weight: 400;
}

/* Terminal/Mono font for code elements */
.mono {
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
}

/* Preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: var(--transition-luxury);
  backdrop-filter: blur(20px);
}

.preloader.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loader {
  position: relative;
  width: 80px;
  height: 80px;
}

.loader-circle {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 3px solid transparent;
  border-top-color: var(--primary-accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  box-shadow: var(--shadow-glow);
}

.loader-circle:nth-child(2) {
  width: 60px;
  height: 60px;
  top: 10px;
  left: 10px;
  border-top-color: var(--secondary-accent);
  animation-delay: 0.2s;
}

.loader-circle:nth-child(3) {
  width: 40px;
  height: 40px;
  top: 20px;
  left: 20px;
  border-top-color: var(--gloss-accent-1);
  animation-delay: 0.4s;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 2rem;
  background: var(--glass-bg);
  backdrop-filter: blur(30px);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition-luxury);
  box-shadow: var(--shadow-sm);
}

.navbar.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(40px);
  box-shadow: var(--shadow-md);
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: var(--shadow-glow);
  transition: var(--transition-smooth);
}

.nav-logo:hover {
  transform: translateY(-2px);
  filter: brightness(1.2);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: var(--transition-smooth);
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-gradient);
  transition: width 0.4s ease;
  border-radius: 1px;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--primary-accent);
  transform: translateY(-1px);
}

.nav-link.active {
  color: var(--primary-accent);
}

.theme-toggle {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 1.2rem;
  transition: var(--transition-smooth);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}

.theme-toggle:hover {
  background: var(--primary-gradient);
  transform: translateY(-2px) scale(1.05);
  box-shadow: var(--shadow-glow);
  border-color: var(--primary-accent);
}

/* Terminal Cursor Animation */
.cursor {
  display: inline-block;
  color: var(--primary-accent);
  animation: blink 1s infinite;
  font-weight: bold;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.terminal-prefix {
  color: var(--primary-accent);
  margin-right: 0.5rem;
}
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0 2rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-gradient);
  opacity: 0.1;
  z-index: -1;
  transform: scale(1.1);
  transition: var(--transition-luxury);
}

.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.particle {
  position: absolute;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  font-weight: bold;
  color: var(--primary-accent);
  animation: float 20s infinite linear;
  opacity: 0.8;
  text-shadow: 0 0 10px var(--primary-accent);
}

@keyframes float {
  0% {
    transform: translateY(100vh) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) translateX(100px);
    opacity: 0;
  }
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  max-width: 1200px;
  z-index: 1;
  text-align: left;
}

.hero-image {
  flex-shrink: 0;
}

.hero-img {
  width: 280px;
  height: 350px;
  border-radius: 20px;
  object-fit: cover;
  border: 3px solid var(--glass-border);
  box-shadow: var(--shadow-lg);
  transition: var(--transition-luxury);
  position: relative;
  overflow: hidden;
  background: var(--card-bg);
}

.hero-img::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--metallic-gradient);
  border-radius: 20px;
  z-index: 1;
  transition: var(--transition-smooth);
}

.hero-img:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow-glow);
  border-color: var(--primary-accent);
}

.hero-img:hover::before {
  background: var(--gloss-gradient);
}

.hero-text {
  flex: 1;
  max-width: 600px;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--text-secondary);
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: flex-start;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease-out 0.6s both;
}

.btn {
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-luxury);
  display: inline-block;
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gloss-gradient);
  transition: var(--transition-smooth);
  border-radius: 50px;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--primary-gradient);
  color: white;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--primary-accent);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-glow);
  filter: brightness(1.1);
}

.btn-secondary {
  background: var(--glass-bg);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
}

.btn-secondary:hover {
  background: var(--glass-border);
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-accent);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Section Styles */
.section {
  padding: 6rem 2rem;
  position: relative;
  background: var(--primary-bg);
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 1rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.2rem;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Card Styles */
.project-card, .certificate-card, .skill-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(20px);
  transition: var(--transition-smooth);
  position: relative;
}

.project-card:hover, .certificate-card:hover, .skill-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-glow);
  border-color: var(--primary-accent);
}

.project-card::before, .certificate-card::before, .skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-gradient);
  opacity: 0;
  transition: var(--transition-smooth);
}

.project-card:hover::before, .certificate-card:hover::before, .skill-card:hover::before {
  opacity: 1;
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-img {
  width: 100%;
  max-width: 300px;
  border-radius: 20px;
  box-shadow: var(--shadow-card);
}

.about-text {
  color: var(--text-secondary);
}

.about-text h3 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.skill-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}

.skill-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-glow);
  border-color: var(--accent);
}

.skill-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.skill-name {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.skill-level {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.progress-bar {
  height: 6px;
  background: var(--glass-border);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--primary-gradient);
  border-radius: 3px;
  width: 0;
  transition: width 2s ease-out;
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-glow);
  border-color: var(--accent);
}

.project-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.project-card:hover .project-image {
  transform: scale(1.1);
}

.project-content {
  padding: 1.5rem;
}

.project-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.project-description {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tag {
  background: var(--accent-gradient);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
}

.project-links {
  display: flex;
  gap: 1rem;
}

.project-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.project-link:hover {
  color: var(--accent-hover);
  transform: translateX(5px);
}

/* Certificates Section */
.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.certificate-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
  cursor: pointer;
}

.certificate-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-glow);
  border-color: var(--accent);
}

.certificate-image-container {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
  background: var(--dark-card);
}

.certificate-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: var(--transition-smooth);
  padding: 10px;
  background: white;
}

.certificate-card:hover .certificate-image {
  transform: scale(1.05);
}

.certificate-content {
  padding: 1.5rem;
}

.certificate-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.certificate-issuer {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.certificate-date {
  color: var(--accent);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.certificate-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

/* Certificate Modal */
.certificate-modal-content {
  max-width: 90vw;
  max-height: 90vh;
  overflow: auto;
}

.certificate-modal-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  background: white;
  padding: 20px;
  border-radius: 10px;
  margin: 0 auto 1.5rem;
  display: block;
}
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--primary-gradient);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
}

.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
}

.timeline-content {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2rem;
  width: 45%;
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}

.timeline-content:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-glow);
}

.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background: var(--accent);
  border-radius: 50%;
  border: 4px solid var(--dark-bg);
  z-index: 1;
}

.timeline-date {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.timeline-title {
  color: var(--text-primary);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.timeline-description {
  color: var(--text-secondary);
}

/* Contact Section */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 800px;
  margin: 0 auto;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-secondary);
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  position: relative;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  color: var(--text-primary);
  font-family: inherit;
  transition: var(--transition-smooth);
  backdrop-filter: blur(10px);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(102, 126, 234, 0.2);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--dark-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  max-width: 800px;
  max-height: 90vh;
  overflow: auto;
  position: relative;
  backdrop-filter: blur(20px);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition-smooth);
  font-size: 1.5rem;
}

.modal-close:hover {
  background: var(--accent);
  color: white;
  transform: rotate(90deg);
}

.modal-body {
  padding: 2rem;
}

.modal-image {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: 10px;
  margin-bottom: 1.5rem;
}

/* Footer */
.footer {
  background: var(--dark-secondary);
  border-top: 1px solid var(--glass-border);
  padding: 3rem 2rem 2rem;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.social-link {
  width: 50px;
  height: 50px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition-smooth);
  font-size: 1.3rem;
}

.social-link:hover {
  background: var(--primary-gradient);
  color: white;
  transform: translateY(-5px) scale(1.1);
}

.footer-text {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    gap: 1rem;
  }
  
  .nav-link {
    font-size: 0.9rem;
  }
  
  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  
  .hero-text {
    max-width: 100%;
  }
  
  .hero-img {
    width: 200px;
    height: 250px;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .timeline::before {
    left: 30px;
  }
  
  .timeline-item {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding-left: 60px;
  }
  
  .timeline-content {
    width: 100%;
  }
  
  .timeline-dot {
    left: 30px;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
  }
  
  .btn {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 4rem 1rem;
  }
  
  .hero-img {
    width: 160px;
    height: 200px;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .certificates-grid {
    grid-template-columns: 1fr;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
  }
}

/* Scroll Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s ease-out;
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s ease-out;
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-gradient);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* Selection */
::selection {
  background: var(--accent);
  color: white;
}
