/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* html {
  --s: 200px;
  --c1: #291e29;
  --c2: #2f2c30;
  --c3: #2d272f;
  
  background:
    repeating-conic-gradient(from 30deg,#0000 0 120deg,var(--c3) 0 50%) 
     calc(var(--s)/2) calc(var(--s)*tan(30deg)/2),
    repeating-conic-gradient(from 30deg,var(--c1) 0 60deg,var(--c2) 0 120deg,var(--c3) 0 50%);
  background-size: var(--s) calc(var(--s)*tan(30deg));
} */

:root {
  /* Colors */
  --primary-color: #6366f1;
  --secondary-color: #8b5cf6;
  --accent-color: #ec4899;
  --bg-dark: #0a0a0f;
  --bg-darker: #050508;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --border-color: #1f1f2e;
  --card-bg: #13131a;

  /* Gradients */
  --gradient-1: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --gradient-2: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Roboto",
    sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Background Effects */
.bg-effect {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-gradient-1 {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(99, 102, 241, 0.15) 0%,
    transparent 70%
  );
  top: -300px;
  right: -200px;
  border-radius: 50%;
  filter: blur(80px);
  animation: float 20s ease-in-out infinite;
}

.bg-gradient-2 {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(139, 92, 246, 0.12) 0%,
    transparent 70%
  );
  bottom: -200px;
  left: -100px;
  border-radius: 50%;
  filter: blur(80px);
  animation: float 25s ease-in-out infinite reverse;
}

.bg-gradient-3 {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(236, 72, 153, 0.1) 0%,
    transparent 70%
  );
  top: 40%;
  right: 10%;
  border-radius: 50%;
  filter: blur(100px);
  animation: float 30s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    transform: translate(30px, -30px) rotate(120deg);
  }
  66% {
    transform: translate(-20px, 20px) rotate(240deg);
  }
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  background: rgba(10, 10, 15, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

.logo {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  cursor: pointer;
}

.banff {
  filter: drop-shadow(0 0 10px var(--primary-color)) brightness(0.85);
  max-width: 90%;
  height: auto;
  border-radius: 15%;
  transition: transform var(--transition-normal);
}

.banff:hover {
  filter: drop-shadow(0 0 10px turquoise) brightness(0.85);
  transform: scale(1.03);
}

.album,
.movie {
  max-width: 90%;
  height: auto;
  /* border: 1px solid var(--primary-color); */
  filter: drop-shadow(0 0 10px var(--primary-color));
  border-radius: 10%;
  transition: transform 0.3s ease-out;
}

.album:hover,
.movie:hover {
  transform: scale(1.1);
  transition: all var(--transition-normal);
  /* border: 1px solid turquoise; */
  filter: drop-shadow(0 0 10px turquoise);
  transform: translateY(-5px) scale3d(1.1, 1.1, 1);
}

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

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-normal);
  position: relative;
  cursor: pointer;
}

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

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

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* intro Section */
.intro {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 60px;
  position: relative;
}

.intro-content h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.1;
}

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

.umd {
  color: var(--primary-color);
  text-decoration: none;
}

.umd:hover {
  color: turquoise;
  filter: drop-shadow(0 0 5px turquoise);
}

.intro-content {
  font-size: clamp(1.2rem, 3vw, 2rem);
  color: var(--text-secondary);
  font-weight: 300;
}

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

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

/* Buttons */
.btn {
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-normal);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: inherit;
}

.btn-primary {
  background: var(--gradient-1);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

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

.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: var(--primary-color);
  background: rgba(99, 102, 241, 0.1);
}

/* Social Links */
.social-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 3rem;
}

.social-links a {
  color: var(--text-secondary);
  font-size: 1.5rem;
  transition: all var(--transition-normal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
}

a {
  text-decoration: none;
  color: var(--primary-color);
}

.inspo {
  color: var(--primary-color);
}

.inspo:hover {
  color: turquoise;
  filter: drop-shadow(0 0 5px turquoise);
}

.tooltip:hover {
  border-color: var(--primary-color);
  transform: translateY(-5px);
}

/* Section */
.section {
  padding: 100px 20px;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

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

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

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: var(--card-bg);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

.stat-item:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Music Section */
.music-grid,
.movies-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(200px, 1fr));
  /* gap: 2rem; */
  row-gap: 2rem;
  column-gap: 2rem;
}

.music-category {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  transition: all var(--transition-normal);
}

.music-category:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: 0 10px 40px rgba(99, 102, 241, 0.1);
}

.skill-category h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.skill-tag {
  padding: 0.5rem 1rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 20px;
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: all var(--transition-normal);
}

.skill-tag:hover {
  background: rgba(99, 102, 241, 0.2);
  transform: translateY(-2px);
}

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

.project-card {
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  transition: all var(--transition-normal);
  /* border: 1px solid var(--border-color); */
  filter: drop-shadow(0 0 5px var(--primary-color));
}

.project-card:hover {
  box-shadow: 0 15px 50px rgba(99, 102, 241, 0.15);
  transform: rotate(45deg);
  /* border: 1px solid turquoise; */
  filter: drop-shadow(0 0 10px turquoise);
  transform: translateY(-8px);
}

.project-card:hover .tech-tag {
  color: turquoise;
  border: 1px solid turquoise;
}

.project-card:hover li {
  color: var(--text-primary);
}

.project-card:hover p {
  color: var(--text-primary);
}

.project-card:hover li::before {
  color: turquoise;
}

.project-card:hover .project-link {
  border: 1px solid turquoise;
  color: turquoise;
}

.project-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.project-image,
.gft-image,
.geometry-image {
  transform: scale(1.05);
}
.project-content {
  padding: 1.5rem;
  padding-bottom: 1.2rem;
}

.project-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.project-content .vulnerability {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  padding-bottom: 1rem;
  font-weight: bold;
}

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

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tech-tag {
  padding: 0.25rem 0.75rem;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 12px;
  font-size: 0.7rem;    /* was 0.8 before */
  color: var(--secondary-color);
  transition: transform 0.3s ease-out;
}

.tech-tag:hover {
  /* color: turquoise; */
  transform: translateY(-5px);
  /* border: 1px solid turquoise; */
  /* filter: drop-shadow(0 0 5px turquoise) */
  background: rgb(68, 86, 84);

  color: white;
}

.project-highlights {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
}

.project-highlights li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.project-highlights li:before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.project-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid var(--secondary-color);
  border-radius: 10px;
  color: var(--secondary-color);
  text-decoration: none;
  font-size: 1rem;
  transition: all var(--transition-normal);
}

.project-link:hover {
  background: rgb(68, 86, 84);
  color: white;
  transform: scale(1.05);
}

/* Experience Section */
.experience-timeline {
  /* max-width: 950px; */
  max-width: 58rem;
  margin: 0 auto;
}

.experience-item {
  position: relative;
  padding-left: 3rem;
  padding-bottom: 3rem;
  border-left: 2px solid var(--border-color);
}

.experience-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -9px;
  top: 0;
  width: 16px;
  height: 16px;
  background: var(--gradient-1);
  border-radius: 50%;
  border: 3px solid var(--bg-dark);
  transition: all var(--transition-normal);
}

.experience-content {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  transition: all var(--transition-normal);
  filter: drop-shadow(0 0 5px var(--primary-color));
}

.experience-content:hover {
  filter: drop-shadow(0 0 10px turquoise);
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(99, 102, 241, 0.1);
}

.experience-item:hover .experience-company {
  color: turquoise;
}

.experience-item:hover .experience-company-link {
  color: turquoise;
}

.experience-item:hover li::before {
  color: turquoise;
}

.experience-item:hover .tech-tag {
  color: turquoise;
  border: 1px solid turquoise;
}

.experience-item:hover li {
  color: var(--text-primary);
}

.experience-item:hover .experience-description {
  color: var(--text-primary);
}

.experience-item:hover .work-dates {
  color: var(--text-primary);
}

.timeline-dot:hover {
  background: turquoise;
  transform: scale(0.9);
  border: 3px solid turquoise;
  filter: drop-shadow(0 0 10px turquoise);
}

body:has(.first-experience:hover) .first-dot {
  background: turquoise;
  transform: scale(0.9);
  border: 3px solid turquoise;
  filter: drop-shadow(0 0 10px turquoise);
}

body:has(.first-dot:hover) .first-experience {
  filter: drop-shadow(0 0 10px turquoise);
  transform: translateY(-8px);
}

body:has(.second-experience:hover) .second-dot {
  background: turquoise;
  transform: scale(0.9);
  border: 3px solid turquoise;
  filter: drop-shadow(0 0 10px turquoise);
}

body:has(.second-dot:hover) .second-experience {
  filter: drop-shadow(0 0 10px turquoise);
  transform: translateY(-8px);
}

body:has(.third-experience:hover) .third-dot {
  background: turquoise;
  transform: scale(0.9);
  border: 3px solid turquoise;
  filter: drop-shadow(0 0 10px turquoise);
}

body:has(.third-dot:hover) .third-experience {
  filter: drop-shadow(0 0 10px turquoise);
  transform: translateY(-8px);
}

.experience-header {
  margin-bottom: 1rem;
}

.experience-header h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.experience-company {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.experience-meta {
  display: flex;
  gap: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.experience-meta i {
  margin-right: 0.5rem;
}

.experience-description {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.experience-achievements {
  list-style: none;
  margin-bottom: 1.5rem;
}

.experience-achievements li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.experience-achievements li:before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.experience-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Contact Section */
.contact-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact-content h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.contact-content > p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-secondary);
  transition: all var(--transition-normal);
  text-decoration: none;
  font-size: 1.2rem;
  filter: drop-shadow(0 0 5px var(--primary-color));
}

.contact-item:hover {
  filter: drop-shadow(0 0 10px turquoise);
  color: var(--text-primary);
  transform: translateY(-2px);
  font-size: 1.23rem;
  box-shadow: 0 10px 40px rgba(99, 102, 241, 0.1);
}

.contact-item:hover .fa-envelope {
  color: turquoise;
}

.contact-item i {
  color: var(--primary-color);
  font-size: 1.5rem;
}

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

/* Footer */
.footer {
  text-align: center;
  padding: 3rem 20px;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.footer p {
  margin-bottom: 0.5rem;
}

.footer-love {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.movies {
  margin-top: -9rem;
}

i {
  animation: heartbeat 1.5s ease-in-out infinite;
}

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

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

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

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 968px) {
  .nav-links {
    position: fixed;
    top: 73px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 73px);
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: left var(--transition-normal);
    border-top: 1px solid var(--border-color);
  }

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

  .mobile-menu-btn {
    display: block;
  }

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

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

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

  .experience-item {
    padding-left: 2rem;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 60px 20px;
  }

  .bg-gradient-1,
  .bg-gradient-2,
  .bg-gradient-3 {
    width: 300px;
    height: 300px;
  }

  .intro-buttons,
  .contact-buttons {
    flex-direction: column;
    width: 100%;
  }

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

  .experience-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
}

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

  /* .project-card {
    min-width: 100%;
  } */
}

.tooltip {
  position: relative; /* Container needs relative positioning */
  display: inline-block;
  border-bottom: 1px dotted black; /* Optional: adds a dotted underline */
}

.social-links i {
  color: var(--primary-color);
}

.tooltip .tooltiptext {
  visibility: hidden; /* Hide the popup by default */
  width: 120px;
  background-color: #555;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;
  position: absolute; /* Position the popup absolutely relative to its container */
  z-index: 1;
  bottom: 125%; /* Position above the text */
  left: 50%;
  margin-left: -60px; /* Center the popup (half of width) */
  opacity: 0;
  transition: opacity 0.3s; /* Add a fade-in effect */
}

.tooltip:hover .tooltiptext {
  visibility: visible; /* Show the popup on hover */
  opacity: 1;
  font-size: 10px;
}
