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

:root {
  /* Primary Colors - Tech Theme: Cyber Blue with Neon Accents */
  --primary: #00d4ff;
  --secondary: #7c3aed;
  --accent: #ff6b6b;
  --neon-green: #39ff14;
  
  /* Gradients - Enhanced Tech Feel */
  --gradient-1: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
  --gradient-2: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  --gradient-3: linear-gradient(135deg, #39ff14 0%, #00ff88 100%);
  --gradient-4: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  
  /* Text Colors */
  --text-primary: #1a202c;
  --text-secondary: #4a5568;
  --text-light: #718096;
  
  /* Background Colors */
  --bg-primary: #f8fafc;
  --bg-secondary: #edf2f7;
  --bg-dark: #0f172a;
  
  /* Border & Shadow */
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px rgba(0,0,0,0.15);
  --neon-glow: 0 0 20px rgba(0, 212, 255, 0.5);
  
  /* Fonts */
  --font-primary: 'Inter', sans-serif;
  --font-code: 'Fira Code', monospace;
  
  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-primary);
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ===================================
   PRELOADER
   =================================== */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-dark);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  transition: opacity 0.5s, visibility 0.5s;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

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

.loader {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(0, 212, 255, 0.2);
  border-top: 5px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

.preloader-content p {
  color: #fff;
  font-size: 16px;
  letter-spacing: 2px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===================================
   CUSTOM CURSOR
   =================================== */
.cursor-dot,
.cursor-outline {
  pointer-events: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 9999;
  transition: transform 0.15s ease-out;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  box-shadow: var(--neon-glow);
}

.cursor-outline {
  width: 40px;
  height: 40px;
  border: 2px solid var(--primary);
  opacity: 0.5;
  transition: all 0.15s ease-out;
}

@media (max-width: 768px) {
  .cursor-dot,
  .cursor-outline {
    display: none;
  }
}

/* ===================================
   NAVIGATION
   =================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(248, 250, 252, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}

.nav-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}

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

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  position: relative;
  transition: var(--transition);
}

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

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

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

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  transition: var(--transition);
}

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

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

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

@media (max-width: 1024px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    background: rgba(248, 250, 252, 0.98);
    flex-direction: column;
    padding: 40px 30px;
    box-shadow: var(--shadow-lg);
    transition: left 0.4s ease;
  }

  .nav-menu.active {
    left: 0;
  }

  .hamburger {
    display: flex;
  }
}

/* ===================================
   HERO SECTION
   =================================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 120px 0 40px; /* Reduced bottom padding */
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.gradient-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.3;
  animation: float 20s infinite ease-in-out;
}

.blob-1 {
  width: 400px;
  height: 400px;
  background: var(--gradient-1);
  top: 10%;
  right: 10%;
}

.blob-2 {
  width: 500px;
  height: 500px;
  background: var(--gradient-3);
  bottom: 10%;
  left: 10%;
  animation-delay: -5s;
}

.blob-3 {
  width: 350px;
  height: 350px;
  background: var(--gradient-2);
  top: 50%;
  left: 50%;
  animation-delay: -10s;
}

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

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px; /* Reduced gap */
  align-items: center;
}

.hero-greeting {
  font-size: 20px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 10px;
}

.hero-title {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 15px;
}

.gradient-text {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 28px;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-description {
  font-size: 18px;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 30px;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 16px;
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 212, 255, 0.5), var(--neon-glow);
}

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

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

.hero-social {
  display: flex;
  gap: 15px;
}

.hero-social a {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border-radius: 50%;
  color: var(--text-primary);
  transition: var(--transition);
  font-size: 20px;
}

.hero-social a:hover {
  background: var(--gradient-1);
  color: white;
  transform: translateY(-3px) rotate(360deg);
}

.hero-image {
  position: relative;
}

.image-wrapper {
  position: relative;
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
}

.image-wrapper img {
  width: 100%;
  border-radius: 30px;
  box-shadow: var(--shadow-xl);
  position: relative;
  z-index: 1;
}

.image-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: var(--gradient-1);
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.3;
  z-index: 0;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  animation: bounce 2s infinite;
}

.mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--primary);
  border-radius: 15px;
  position: relative;
  margin: 0 auto 10px;
}

.wheel {
  width: 4px;
  height: 8px;
  background: var(--primary);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll 1.5s infinite;
}

@keyframes scroll {
  0% {
    opacity: 1;
    top: 8px;
  }
  100% {
    opacity: 0;
    top: 20px;
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}

@media (max-width: 968px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-title {
    font-size: 42px;
  }

  .hero-subtitle {
    font-size: 22px;
  }

  .hero-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

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

  .hero-image {
    order: -1;
  }
}

/* ===================================
   SECTION STYLES - Reduced Padding
   =================================== */
.section {
  padding: 60px 0; /* Reduced from 100px */
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 40px; /* Reduced from 60px */
}

.section-tag {
  display: inline-block;
  color: var(--primary);
  font-family: var(--font-code);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
}

.section-title {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.section-description {
  font-size: 18px;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

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

.about-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px; /* Reduced */
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  max-width: 400px;
  border-radius: 20px;
  box-shadow: var(--shadow-xl);
}

.about-shape {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--primary);
  border-radius: 20px;
  z-index: -1;
}

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

.about-text strong {
  color: var(--primary);
  font-weight: 600;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px; /* Reduced */
  margin-top: 40px;
}

.stat-item {
  text-align: center;
  padding: 20px 15px; /* Reduced */
  background: white;
  border-radius: 15px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

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

.stat-number {
  font-size: 36px;
  font-weight: 800;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-light);
  font-weight: 500;
}

@media (max-width: 968px) {
  .about-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-image img {
    margin: 0 auto;
  }

  .about-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===================================
   EDUCATION TIMELINE
   =================================== */
.education-section {
  background: white;
}

.education-timeline {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.education-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 100%;
  background: var(--gradient-1);
}

.timeline-item {
  position: relative;
  margin-bottom: 30px; /* Reduced */
  display: flex;
  justify-content: center;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: auto;
  padding-left: 60px;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-right: auto;
  padding-right: 60px;
  text-align: right;
}

.timeline-marker {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background: white;
  border: 4px solid var(--primary);
  border-radius: 50%;
  z-index: 1;
  box-shadow: var(--neon-glow);
}

.timeline-content {
  width: 45%;
  background: white;
  padding: 25px; /* Reduced */
  border-radius: 15px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

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

.timeline-year {
  display: inline-block;
  background: var(--gradient-1);
  color: white;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 15px;
}

.timeline-content h3 {
  font-size: 22px;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.timeline-content h4 {
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 8px;
  font-weight: 600;
}

.timeline-content p {
  color: var(--text-light);
  margin-bottom: 15px;
}

.timeline-details {
  list-style: none;
  padding-left: 0;
}

.timeline-details li {
  padding: 8px 0;
  color: var(--text-secondary);
  position: relative;
  padding-left: 25px;
}

.timeline-details li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

@media (max-width: 768px) {
  .education-timeline::before {
    left: 20px;
  }

  .timeline-item {
    justify-content: flex-start;
  }

  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    width: calc(100% - 60px);
    margin-left: 60px;
    padding: 20px;
    text-align: left;
  }

  .timeline-marker {
    left: 20px;
  }
}

/* ===================================
   EXPERIENCE SECTION
   =================================== */
.experience-section {
  background: var(--bg-secondary);
}

.experience-grid {
  display: grid;
  gap: 30px; /* Reduced */
  max-width: 1000px;
  margin: 0 auto;
}

.experience-card {
  background: white;
  border-radius: 20px;
  padding: 30px; /* Reduced */
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border-left: 5px solid var(--primary);
}

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

.experience-header {
  display: flex;
  gap: 25px;
  margin-bottom: 20px; /* Reduced */
}

.company-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 12px;
  background: var(--bg-secondary);
  padding: 10px;
}

.experience-info h3 {
  font-size: 24px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.experience-info h4 {
  font-size: 18px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 12px;
}

.experience-duration,
.experience-location {
  display: block;
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 5px;
}

.experience-duration i,
.experience-location i {
  margin-right: 8px;
  color: var(--primary);
}

.experience-responsibilities {
  list-style: none;
  padding-left: 0;
  margin: 20px 0; /* Reduced */
}

.experience-responsibilities li {
  padding: 10px 0;
  padding-left: 30px;
  position: relative;
  color: var(--text-secondary);
  line-height: 1.7;
}

.experience-responsibilities li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
  font-size: 18px;
}

.experience-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px; /* Reduced */
}

.experience-tags span {
  background: var(--bg-secondary);
  color: var(--primary);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

.btn-certificate {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 12px 24px;
  background: var(--gradient-1);
  color: white;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.btn-certificate:hover {
  transform: translateX(5px);
  box-shadow: 0 5px 15px rgba(0, 212, 255, 0.4);
}

/* ===================================
   PROJECTS SECTION
   =================================== */
   /* new */
.project-image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 8px;
  position: relative;
}
.project-image-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}
.projects-section {
  background: white;
}

.projects-category {
  margin-bottom: 50px; /* Reduced */
}

.category-title {
  font-size: 28px;
  color: var(--text-primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.category-title i {
  color: var(--primary);
}

.category-description {
  color: var(--text-light);
  margin-bottom: 30px; /* Reduced */
  font-size: 16px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 25px; /* Reduced */
}

.academic-grid {
  grid-template-columns: repeat(3, 1fr); /* Force 3 columns for academic */
}

.project-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative;
}

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

.project-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--gradient-2);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  z-index: 2;
}

.project-image {
  position: relative;
  overflow: hidden;
  height: 200px; /* Reduced height */
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.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: var(--transition);
}

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

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

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

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

.project-content {
  padding: 25px; /* Reduced */
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.project-type,
.project-role {
  background: var(--bg-secondary);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 500;
  margin: 0 2px 2px 0;
}

.project-controller {
   background: var(--bg-secondary);
  padding: 4px 10px;
  border-radius: 15px;
  font-size: 13px;
  font-weight: 600;
  color:#FF0000;

}

.project-content h3 {
  font-size: 22px;
  color: var(--text-primary);
  margin-bottom: 15px;
}

.project-content p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

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

.project-tech span {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

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

/* ===================================
   SKILLS SECTION
   =================================== */
.skills-section {
  background: var(--bg-secondary);
}

.skills-categories {
  display: grid;
  gap: 30px; /* Reduced */
}

.skills-category {
  background: white;
  padding: 30px; /* Reduced */
  border-radius: 20px;
  box-shadow: var(--shadow-md);
}

.skills-category h3 {
  font-size: 24px;
  color: var(--text-primary);
  margin-bottom: 25px; /* Reduced */
  display: flex;
  align-items: center;
  gap: 15px;
}

.skills-category h3 i {
  color: var(--primary);
  font-size: 28px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 20px; /* Reduced */
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px; /* Reduced */
  background: var(--bg-secondary);
  border-radius: 15px;
  transition: var(--transition);
  cursor: pointer;
}

.skill-item:hover {
  transform: translateY(-5px) rotate(5deg);
  background: var(--gradient-1);
  box-shadow: var(--neon-glow);
}

.skill-item:hover span {
  color: white;
}

.skill-item:hover img {
  filter: brightness(0) invert(1);
}

.skill-item img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  transition: var(--transition);
}

.skill-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  background: var(--gradient-1);
  color: white;
  border-radius: 10px;
}

.skill-icon.esp32 { background: var(--gradient-3); }
.skill-icon.stm32 { background: var(--gradient-2); }
.skill-icon.nrf { background: var(--gradient-4); }
.skill-icon.azure { background: linear-gradient(135deg, #0078D4 0%, #50E6FF 100%); }

.skill-item span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  transition: var(--transition);
}

@media (max-width: 768px) {
  .skills-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }
}

/* ===================================
   CERTIFICATES SECTION
   =================================== */
.certificates-section {
  background: white;
}

.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px; /* Reduced */
}

.certificate-card {
  background: white;
  padding: 30px; /* Reduced */
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: var(--transition);
  border: 2px solid transparent;
}

.certificate-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
  box-shadow: var(--neon-glow);
}

.certificate-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: var(--gradient-1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 35px;
  color: white;
}

.certificate-card:nth-child(2) .certificate-icon {
  background: var(--gradient-2);
}

.certificate-card:nth-child(3) .certificate-icon {
  background: var(--gradient-3);
}

.certificate-card:nth-child(4) .certificate-icon {
  background: var(--gradient-4);
}

.certificate-card h3 {
  font-size: 20px;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.certificate-issuer {
  color: var(--primary);
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 8px;
}

.certificate-date {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 15px;
}

.certificate-description {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 15px;
  margin-bottom: 20px;
}

.btn-view-cert {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--bg-secondary);
  color: var(--primary);
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
  border: 2px solid var(--primary);
}

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

/* ===================================
   TESTIMONIALS SECTION
   =================================== */
/* Testimonials Section Styles - Updated for Dark Theme and Smooth Sliding */
.testimonials-section {
  background: var(--bg-secondary);
  padding: 60px 0; /* Consistent with other sections */
}

.testimonials-slider {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  overflow: hidden; /* Hide overflow for sliding effect */
  border-radius: 20px; /* Optional: Rounded container */
  box-shadow: var(--shadow-lg); /* Subtle shadow for depth */
}

.testimonial-track {
  display: flex;
  width: 500%; /* 5 cards * 100% = 500% for full width */
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Smooth easing */
}

.testimonial-card {
  width: 20%; /* Each card 20% of track (100%/5) */
  background: var(--bg-primary);
  color: var(--text-primary);
  padding: 40px 30px; /* Increased padding for better spacing */
  border-radius: 20px;
  box-shadow: var(--shadow-md); /* Individual card shadow */
  position: relative;
  flex-shrink: 0; /* Prevent shrinking */
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Ensure full height utilization */
  min-height: 400px; /* Fixed min-height to prevent jumping */
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}

.testimonial-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--primary); /* Thicker border for dark theme */
  flex-shrink: 0;
  box-shadow: var(--neon-glow); /* Neon effect */
}

.testimonial-info h4 {
  font-size: 20px;
  color: var(--text-primary);
  margin-bottom: 5px;
  font-weight: 600;
}

.testimonial-info p {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 10px;
}

.testimonial-rating {
  display: flex;
  gap: 2px;
  margin-top: auto; /* Push to bottom if needed */
}

.testimonial-rating i {
  color: #fbbf24;
  font-size: 16px;
}

.testimonial-text {
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 20px;
  flex-grow: 1; /* Allow text to expand */
}

.testimonial-quote {
  position: absolute;
  bottom: 15px;
  right: 20px;
  font-size: 60px; /* Slightly smaller for better fit */
  color: var(--border-color);
  z-index: 0;
  opacity: 0.1;
}

.testimonial-controls {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.testimonial-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: var(--bg-secondary);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 18px;
}

.testimonial-btn:hover {
  background: var(--primary);
  color: var(--bg-primary);
  transform: scale(1.1);
  box-shadow: var(--neon-glow);
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 25px;
}

.testimonial-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border-color);
  cursor: pointer;
  transition: var(--transition);
  opacity: 0.6;
}

.testimonial-dot.active {
  background: var(--primary);
  width: 35px;
  border-radius: 10px;
  opacity: 1;
  box-shadow: var(--neon-glow);
}

/* Ensure no empty space - Fix for sliding */
.testimonials-slider::after {
  content: '';
  display: block;
  clear: both;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .testimonials-slider {
    max-width: 100%;
    margin: 0 10px;
  }
  
  .testimonial-track {
    width: 500%;
  }
  
  .testimonial-card {
    width: 20%;
    padding: 25px 20px;
    min-height: 350px;
  }
  
  .testimonial-header {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  
  .testimonial-avatar {
    width: 60px;
    height: 60px;
  }
  
  .testimonial-text {
    font-size: 16px;
  }
  
  .testimonial-quote {
    font-size: 50px;
    bottom: 10px;
    right: 15px;
  }
}

@media (max-width: 480px) {
  .testimonial-card {
    min-height: 320px;
  }
}

/* ===================================
   GALLERY SECTION
   =================================== */
.gallery-section {
  background: white;
}

.gallery-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 40px; /* Reduced */
}

.filter-btn {
  padding: 10px 25px;
  border: 2px solid var(--primary);
  background: white;
  color: var(--primary);
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  color: white;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px; /* Reduced */
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  height: 250px; /* Reduced */
}

.gallery-item.hidden {
  display: none;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 25px;
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h3 {
  color: white;
  font-size: 20px;
  margin-bottom: 8px;
}

.gallery-overlay p {
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  margin-bottom: 15px;
}

.gallery-view-btn {
  width: 40px;
  height: 40px;
  background: white;
  border: none;
  border-radius: 50%;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  align-self: flex-start;
}

.gallery-view-btn:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.1);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
}

.lightbox.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content {
  max-width: 90%;
  max-height: 80%;
  object-fit: contain;
  border-radius: 10px;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10001;
}

.lightbox-close:hover {
  color: var(--primary);
}

.lightbox-caption {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  text-align: center;
  font-size: 18px;
  background: rgba(0, 0, 0, 0.7);
  padding: 15px 30px;
  border-radius: 10px;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  padding: 20px;
  font-size: 30px;
  cursor: pointer;
  border-radius: 5px;
  transition: var(--transition);
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--primary);
}

.lightbox-prev {
  left: 30px;
}

.lightbox-next {
  right: 30px;
}

/* ===================================
   SOCIETIES SECTION - 2 Columns 1 Row
   =================================== */
.societies-section {
  background: var(--bg-secondary);
}

.societies-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columns */
  gap: 30px; /* Reduced */
  max-width: 1000px;
  margin: 0 auto;
}

.society-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

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

.society-image {
  height: 200px; /* Reduced */
  overflow: hidden;
}

.society-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.society-content {
  padding: 25px; /* Reduced */
}

.society-content h3 {
  font-size: 26px;
  color: var(--text-primary);
  margin-bottom: 15px;
}

.society-role,
.society-duration {
  display: block;
  margin-bottom: 10px;
  color: var(--primary);
  font-weight: 600;
  font-size: 15px;
}

.society-role i,
.society-duration i {
  margin-right: 8px;
}

.society-description {
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 15px 0; /* Reduced */
  font-size: 16px;
}

.society-responsibilities {
  list-style: none;
  padding-left: 0;
  margin: 15px 0; /* Reduced */
}

.society-responsibilities li {
  padding: 8px 0; /* Reduced */
  padding-left: 30px;
  position: relative;
  color: var(--text-secondary);
  line-height: 1.7;
}

.society-responsibilities li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-size: 24px;
  line-height: 1.3;
}

.society-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px; /* Reduced */
}

.society-tags span {
  background: var(--bg-secondary);
  color: var(--primary);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

@media (max-width: 768px) {
  .societies-grid {
    grid-template-columns: 1fr;
  }
}

/* ===================================
   CONTACT SECTION
   =================================== */
.contact-section {
  background: white;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px; /* Reduced */
  align-items: start;
}

.contact-info h3 {
  font-size: 32px;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.contact-info > p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 30px; /* Reduced */
  font-size: 17px;
}

.contact-details {
  margin-bottom: 30px; /* Reduced */
}

.contact-item {
  display: flex;
  gap: 20px;
  margin-bottom: 25px; /* Reduced */
}

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

.contact-text h4 {
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 5px;
}

.contact-text a,
.contact-text p {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

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

.contact-social h4 {
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  width: 50px;
  height: 50px;
  background: var(--bg-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: 22px;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--gradient-1);
  color: white;
  transform: translateY(-5px);
}

.contact-form {
  background: var(--bg-secondary);
  padding: 30px; /* Reduced */
  border-radius: 20px;
  box-shadow: var(--shadow-md);
}

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

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
  font-size: 15px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  font-family: var(--font-primary);
  font-size: 15px;
  color: var(--text-primary);
  background: white;
  transition: var(--transition);
}

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

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

.contact-form .btn-primary {
  width: 100%;
  justify-content: center;
  margin-top: 10px;
}

@media (max-width: 968px) {
  .contact-content {
    grid-template-columns: 1fr;
  }
}

/* ===================================
   FOOTER
   =================================== */
.footer {
  background: var(--bg-dark);
  color: white;
  padding: 50px 0 20px; /* Reduced */
  position: relative;
  overflow: hidden;
}

.footer-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.footer-blob {
  position: absolute;
  width: 600px;
  height: 600px;
  background: var(--gradient-1);
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.2;
  top: -200px;
  right: -200px;
  animation: float 15s infinite ease-in-out;
}

.footer-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.footer-quote h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 30px; /* Reduced */
  font-style: italic;
}

.footer-avatar {
  margin: 30px 0; /* Reduced */
}

.footer-avatar img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 5px solid var(--primary);
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.5);
}

.footer-bottom {
  margin-top: 30px; /* Reduced */
  padding-top: 20px; /* Reduced */
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
}

.footer-bottom i {
  color: #ff6b6b;
  animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  10%, 30% { transform: scale(1.1); }
  20%, 40% { transform: scale(1); }
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--gradient-1);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 212, 255, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 212, 255, 0.6);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 768px) {
  .section {
    padding: 40px 0; /* Further reduced */
  }

  .section-title {
    font-size: 32px;
  }

  .hero-title {
    font-size: 36px;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

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

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

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

  .hero-subtitle {
    font-size: 20px;
  }

  .btn {
    padding: 12px 24px;
    font-size: 14px;
  }

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

  .footer-quote h2 {
    font-size: 24px;
  }
}

/* ===================================
   ANIMATIONS - Subtle Tech Theme
   =================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 5px rgba(0, 212, 255, 0.5); }
  50% { box-shadow: 0 0 20px rgba(0, 212, 255, 0.8); }
}

/* Apply subtle glow to key elements */
.project-card:hover,
.skill-item:hover,
.certificate-card:hover {
  animation: pulse-glow 2s infinite;
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Print styles */
@media print {
  .navbar,
  .hamburger,
  .back-to-top,
  .scroll-indicator,
  .hero-buttons,
  .hero-social {
    display: none !important;
  }

  body {
    background: black;
  }

  .section {
    page-break-inside: avoid;
  }
}

/* ===================================
   SERVICES SECTION
   =================================== */
.services-section {
  background: var(--bg-secondary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.service-card {
  background: white;
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  text-align: center;
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.hire-card {
  border-top: 5px solid var(--primary);
}

.mentorship-card {
  border-top: 5px solid var(--neon-green);
}

.service-icon {
  width: 70px;
  height: 70px;
  background: var(--bg-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 25px;
  transition: var(--transition);
}

.hire-card .service-icon {
  color: var(--primary);
}

.mentorship-card .service-icon {
  color: var(--neon-green);
}

.service-card:hover .service-icon {
  transform: rotateY(180deg);
  background: var(--gradient-1);
  color: white;
}

.mentorship-card:hover .service-icon {
  background: var(--gradient-3);
}

.service-card h3 {
  font-size: 24px;
  color: var(--text-primary);
  margin-bottom: 15px;
}

.service-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 25px;
  font-size: 16px;
}

.service-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
  text-align: left;
  width: 100%;
}

.service-list li {
  padding: 8px 0;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-list li i {
  color: var(--primary);
  font-size: 14px;
}

.mentorship-card .service-list li i {
  color: var(--neon-green);
}

.service-btn {
  margin-top: auto;
  width: 100%;
  justify-content: center;
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* Project Buttons within Card */
.project-buttons {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
}

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

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