/* ===================== GLOBAL STYLES ===================== */
:root {
  --primary-color: #00d9ff;
  --primary-dark: #0099bb;
  --secondary-color: #7c3aed;
  --background: #0a0e27;
  --surface: #151932;
  --surface-light: #1f2340;
  --text-primary: #e8eef7;
  --text-secondary: #a0aac2;
  --accent: #00d9ff;
  --accent-glow: rgba(0, 217, 255, 0.2);
  --border-color: rgba(0, 217, 255, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--background);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ===================== PARTICLES BACKGROUND ===================== */
#particles-js {
  position: fixed;
  width: 100%;
  height: 100vh;
  top: 0;
  left: 0;
  z-index: 0;
  pointer-events: none;
}

/* ===================== NAVIGATION ===================== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 14, 39, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition);
}

.navbar.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 4px 20px rgba(0, 217, 255, 0.1);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.logo:hover {
  text-shadow: 0 0 20px var(--accent);
}

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

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
}

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

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

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

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 0.4rem;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--accent);
  border-radius: 3px;
  transition: var(--transition);
}

/* ===================== HERO SECTION ===================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 100px;
  z-index: 1;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 217, 255, 0.1) 0%, transparent 70%);
  filter: blur(40px);
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-text {
  animation: fadeInUp 0.8s ease;
}

.profile-img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent);
  margin-bottom: 1.5rem;
  box-shadow: 0 0 30px rgba(0, 217, 255, 0.4), 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.profile-img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 50px rgba(0, 217, 255, 0.6), 0 12px 48px rgba(0, 0, 0, 0.4);
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent) 0%, var(--secondary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  line-height: 1.2;
  text-shadow: 0 0 30px rgba(0, 217, 255, 0.2);
}

.typing-text {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent) 0%, var(--secondary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.8;
}

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

.btn {
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary-dark) 100%);
  color: var(--background);
  box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 40px rgba(0, 217, 255, 0.5);
}

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

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

.social-links-hero {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2rem;
}

.social-links-hero a {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-light);
  color: var(--accent);
  text-decoration: none;
  border: 2px solid var(--border-color);
  transition: var(--transition);
  font-size: 1.3rem;
}

.social-links-hero a:hover {
  border-color: var(--accent);
  background: rgba(0, 217, 255, 0.1);
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
}

/* ===================== SECTION STYLES ===================== */
section {
  position: relative;
  z-index: 1;
  padding: 80px 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 3rem;
  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(135deg, var(--accent) 0%, var(--secondary-color) 100%);
  border-radius: 2px;
}

/* ===================== ABOUT SECTION ===================== */
.about {
  background: linear-gradient(135deg, rgba(0, 217, 255, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

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

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

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

.stat-card {
  background: var(--surface-light);
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid var(--border-color);
  text-align: center;
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(0, 217, 255, 0.2);
}

.stat-card h3 {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.stat-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

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

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

.skill-card {
  background: var(--surface-light);
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.skill-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(0, 217, 255, 0.2);
  transform: translateY(-5px);
}

.skill-card h3 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: var(--accent);
}

.skill-card i {
  font-size: 1.5rem;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.skill-tag {
  background: rgba(0, 217, 255, 0.1);
  color: var(--accent);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  cursor: default;
}

.skill-tag:hover {
  background: var(--accent);
  color: var(--background);
}

/* ===================== EDUCATION SECTION ===================== */
.education {
  background: linear-gradient(135deg, rgba(0, 217, 255, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);
}

.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--secondary-color) 100%);
  transform: translateX(-50%);
}

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

.timeline-item:nth-child(odd) {
  margin-left: 0;
  margin-right: 50%;
  text-align: right;
  padding-right: 3rem;
}

.timeline-item:nth-child(even) {
  margin-left: 50%;
  margin-right: 0;
  text-align: left;
  padding-left: 3rem;
}

.timeline-marker {
  position: absolute;
  width: 15px;
  height: 15px;
  background: var(--accent);
  border: 3px solid var(--background);
  border-radius: 50%;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 0 5px var(--surface-light);
  transition: var(--transition);
}

.timeline-item:hover .timeline-marker {
  width: 20px;
  height: 20px;
  top: 17.5px;
  box-shadow: 0 0 20px rgba(0, 217, 255, 0.5), 0 0 0 5px var(--surface-light);
}

.timeline-content {
  background: var(--surface-light);
  padding: 2rem;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.timeline-content:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(0, 217, 255, 0.2);
}

.timeline-content h3 {
  font-size: 1.3rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.timeline-content .date {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.timeline-content .degree {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.timeline-content .details {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ===================== INTERNSHIP SECTION ===================== */
.internship {
  background: var(--background);
}

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

.experience-card {
  background: var(--surface-light);
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.experience-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 25px rgba(0, 217, 255, 0.2);
  transform: translateY(-8px);
}

.experience-header h3 {
  font-size: 1.2rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.duration {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mentor,
.organization {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.experience-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.experience-details li {
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.6;
}

.experience-details li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 1.2rem;
}

/* ===================== PROJECTS SECTION ===================== */
.projects {
  background: linear-gradient(135deg, rgba(0, 217, 255, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);
}

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

.project-card {
  background: var(--surface-light);
  border-radius: 15px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 30px rgba(0, 217, 255, 0.3);
  transform: translateY(-10px);
}

.project-header {
  padding: 2rem 2rem 1rem;
}

.project-header h3 {
  font-size: 1.2rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.project-date {
  color: var(--text-secondary);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.project-description {
  padding: 0 2rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  flex-grow: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  padding: 1.5rem 2rem;
}

.tag {
  background: rgba(0, 217, 255, 0.1);
  color: var(--accent);
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.tag:hover {
  background: var(--accent);
  color: var(--background);
}

/* ===================== AWARDS SECTION ===================== */
.awards {
  background: var(--background);
}

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

.award-card {
  background: var(--surface-light);
  padding: 3rem 2rem;
  border-radius: 15px;
  border: 1px solid var(--border-color);
  text-align: center;
  transition: var(--transition);
}

.award-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 25px rgba(0, 217, 255, 0.2);
  transform: translateY(-10px);
}

.award-icon {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.award-card h3 {
  font-size: 1.3rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

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

.achievement {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 0 !important;
}

/* ===================== CONTACT SECTION ===================== */
.contact {
  background: linear-gradient(135deg, rgba(0, 217, 255, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);
}

.contact-intro {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.contact-card {
  background: var(--surface-light);
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid var(--border-color);
  text-align: center;
  transition: var(--transition);
}

.contact-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 25px rgba(0, 217, 255, 0.2);
  transform: translateY(-8px);
}

.contact-card i {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.contact-card h3 {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.contact-card a {
  color: var(--accent);
  text-decoration: none;
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  transition: var(--transition);
}

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

.social-links-footer {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.social-links-footer a {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-light);
  color: var(--accent);
  text-decoration: none;
  border: 2px solid var(--border-color);
  transition: var(--transition);
  font-size: 1.3rem;
}

.social-links-footer a:hover {
  border-color: var(--accent);
  background: rgba(0, 217, 255, 0.1);
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
}

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

.footer-content p {
  color: var(--text-secondary);
  margin: 0.5rem 0;
  font-size: 0.95rem;
}

.footer-content i {
  color: #ff6b6b;
  animation: heartbeat 1.5s ease-in-out infinite;
}

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

@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

@keyframes glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(0, 217, 255, 0.6);
  }
}

/* ===================== RESPONSIVE DESIGN ===================== */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .about-content,
  .timeline::before {
    display: none;
  }

  .about-text,
  .about-stats {
    grid-column: unset;
  }

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

  .timeline-item {
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: left !important;
    padding-left: 3rem !important;
    padding-right: 0 !important;
  }

  .timeline-marker {
    left: 0;
  }

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

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

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

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

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

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

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

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

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

  .hero-buttons {
    gap: 0.8rem;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .stat-card {
    padding: 1.5rem;
  }

  .stat-card h3 {
    font-size: 2rem;
  }

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

  .social-links-hero {
    gap: 1rem;
  }

  .social-links-footer {
    gap: 1rem;
  }
}
