/* Reset default styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #0a0a0a;
  color: #e0e0e0;
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

/* Grain texture effect using gradient and noise */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(10, 10, 10, 0.95),
    rgba(20, 20, 20, 0.9)
  );
  opacity: 0.5;
  pointer-events: none;
  z-index: -1;
}

/* Container for consistent spacing */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation (Glassmorphism Style) */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(20, 20, 20, 0.8);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 15px 0;
}

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

nav .logo {
  color: #00ddeb;
  font-size: 1.5rem;
  font-weight: 600;
  text-decoration: none;
}

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

.nav-links li {
  margin-left: 30px;
}

.nav-links a {
  color: #e0e0e0;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #00ddeb;
}

.nav-toggle {
  display: none;
  font-size: 1.5rem;
  color: #e0e0e0;
  cursor: pointer;
}

/* Hero Section */
#home {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
  padding: 0 20px;
}

.profile-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 3px solid #00ddeb;
  margin-bottom: 20px;
  box-shadow: 0 0 20px rgba(0, 221, 235, 0.5);
  object-fit: cover;
}

#home h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

#home p {
  font-size: 1.5rem;
  color: #b0b0b0;
  margin-bottom: 20px;
}

.hero-btn {
  display: inline-block;
  padding: 12px 30px;
  background: #00ddeb;
  color: #0a0a0a;
  text-decoration: none;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(0, 221, 235, 0.5);
}

.hero-btn:hover {
  background: #00b7c3;
  box-shadow: 0 0 25px rgba(0, 221, 235, 0.8);
  transform: translateY(-2px);
}

/* Section General Styles */
section {
  padding: 80px 0;
}

section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #ffffff;
  position: relative;
}

section h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: #00ddeb;
  box-shadow: 0 0 10px rgba(0, 221, 235, 0.5);
}

/* About Section */
#about p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  text-align: center;
  color: #b0b0b0;
}

/* Experience Section (Vertical Timeline) */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: #00ddeb;
  box-shadow: 0 0 10px rgba(0, 221, 235, 0.5);
}

.timeline-item {
  position: relative;
  margin: 40px 0;
  padding-left: 40px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20px;
  width: 16px;
  height: 16px;
  background: #00ddeb;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 221, 235, 0.5);
}

.timeline-content {
  background: rgba(30, 30, 30, 0.9);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(0, 221, 235, 0.3);
}

.timeline-content h3 {
  font-size: 1.5rem;
  margin-bottom: 5px;
  color: #ffffff;
}

.timeline-date {
  display: block;
  font-size: 0.9rem;
  color: #00ddeb;
  margin-bottom: 10px;
}

.timeline-content ul {
  list-style: none;
}

.timeline-content li {
  margin: 10px 0;
  font-size: 1rem;
  color: #b0b0b0;
}

/* Projects Section (Grid with Tilt Effect) */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.card {
  background: rgba(30, 30, 30, 0.9);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: 0 0 20px rgba(0, 221, 235, 0.5);
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #ffffff;
}

.card p {
  font-size: 1rem;
  color: #b0b0b0;
  margin-bottom: 15px;
}

.card a {
  display: inline-block;
  color: #00ddeb;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.card a:hover {
  color: #00b7c3;
}

/* Skills Section */
.skills-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  max-width: 800px;
  margin: 0 auto;
}

.skills-list span {
  background: rgba(0, 221, 235, 0.1);
  color: #00ddeb;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skills-list span:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(0, 221, 235, 0.3);
}

/* Tools Section (Interactive Grid) */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.tool-category {
  background: rgba(30, 30, 30, 0.9);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.tool-category h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #ffffff;
}

.tool-item {
  display: flex;
  align-items: center;
  margin: 10px 0;
  font-size: 1rem;
  color: #b0b0b0;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease, color 0.3s ease;
}

.tool-item i {
  margin-right: 10px;
  color: #00ddeb;
}

.tool-item:hover {
  transform: translateX(5px);
  color: #ffffff;
}

.tool-item .tooltip {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  background: #00ddeb;
  color: #0a0a0a;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.tool-item:hover .tooltip {
  opacity: 1;
}

/* Education Section */
.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.education-item {
  background: rgba(30, 30, 30, 0.9);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.education-item:hover {
  transform: translateY(-5px);
}

.education-item h3 {
  font-size: 1.5rem;
  margin-bottom: 5px;
  color: #ffffff;
}

.education-date {
  display: block;
  font-size: 0.9rem;
  color: #00ddeb;
  margin-bottom: 10px;
}

.education-item p,
.education-item ul {
  font-size: 1rem;
  color: #b0b0b0;
}

.education-item ul {
  list-style: none;
}

.education-item li {
  margin: 5px 0;
}

/* Achievements Section */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
}

.achievement-item {
  background: rgba(30, 30, 30, 0.9);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.achievement-item:hover {
  transform: translateY(-5px);
}

.achievement-item i {
  font-size: 2rem;
  color: #00ddeb;
  margin-bottom: 10px;
}

.achievement-item h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #ffffff;
}

.achievement-item p {
  font-size: 1rem;
  color: #b0b0b0;
}

/* Contact Section */
#contact {
  text-align: center;
}

#contact p {
  font-size: 1.1rem;
  color: #b0b0b0;
  margin: 10px 0;
}

#contact a {
  color: #00ddeb;
  text-decoration: none;
  transition: color 0.3s ease;
}

#contact a:hover {
  color: #00b7c3;
}

.cv-button {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 30px;
  background: #00ddeb; /* Solid cyan background */
  color: #000000 !important; /* Black text with high priority */
  text-decoration: none;
  font-weight: 700; /* Bolder text */
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5); /* White shadow for contrast */
  border: 2px solid #000000; /* Add border to confirm rendering */
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(0, 221, 235, 0.5);
  line-height: normal; /* Prevent line-height issues */
  z-index: 1; /* Ensure it’s not hidden behind other elements */
}

.cv-button:hover {
  background: #00b7c3; /* Slightly darker cyan on hover */
  color: #000000 !important; /* Keep text black on hover */
  box-shadow: 0 0 25px rgba(0, 221, 235, 0.8);
  transform: translateY(-2px);
}

/* Footer */
footer {
  background: rgba(20, 20, 20, 0.9);
  padding: 20px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
  font-size: 0.9rem;
  color: #b0b0b0;
}

.social-links {
  margin-top: 10px;
}

.social-links a {
  color: #e0e0e0;
  margin: 0 10px;
  font-size: 1.5rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
  color: #00ddeb;
  transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: rgba(20, 20, 20, 0.95);
    flex-direction: column;
    padding: 20px 0;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    margin: 10px 0;
    text-align: center;
  }

  .nav-toggle {
    display: block;
  }

  #home h1 {
    font-size: 2rem;
  }

  #home p {
    font-size: 1.2rem;
  }

  section h2 {
    font-size: 2rem;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    padding-left: 60px;
  }

  .timeline-item::before {
    left: 12px;
  }
}