:root {
  --bg-color: #0a0a0a;
  --primary-color: #00f0ff;
  --text-color: #ffffff;
  --secondary-text: #cccccc;
  --hover-color: #00cfdc;
}

/* Global Styles */
body {
  margin: 0;
  padding: 0;
  position: relative; /* Required for ScrollSpy */
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: Arial, sans-serif;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
}

/* Preloader */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-color);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#preloader.loaded {
  opacity: 0;
  visibility: hidden;
}
.preloader-logo {
  width: 160px;
  height: 160px;
  position: relative;
}
.preloader-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  filter: drop-shadow(0 0 10px var(--primary-color));
}
.preloader-logo::after {
  content: "";
  position: absolute;
  top: 60%;
  left: -5%;
  width: 110%;
  height: 2px;
  background-color: var(--primary-color);
  animation: glitch 2s infinite;
  opacity: 0.7;
}
@keyframes glitch {
  0% {
    transform: translateY(0);
  }
  20% {
    transform: translateY(-2px) scaleX(1.01);
  }
  40% {
    transform: translateY(2px) scaleX(1.02);
  }
  60% {
    transform: translateY(-1px) scaleX(0.98);
  }
  80% {
    transform: translateY(2px) scaleX(1.01);
  }
  100% {
    transform: translateY(0);
  }
}

/* Binary Background */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg width='300' height='300' xmlns='http://www.w3.org/2000/svg'%3E%3Ctext x='10' y='40' fill='%2300f0ff' fill-opacity='0.05' font-size='24' font-family='monospace'%3E0101 1010 0011 1100%3C/text%3E%3Ctext x='10' y='80' fill='%2300f0ff' fill-opacity='0.05' font-size='24' font-family='monospace'%3E1100 1001 0001 1011%3C/text%3E%3Ctext x='10' y='120' fill='%2300f0ff' fill-opacity='0.05' font-size='24' font-family='monospace'%3E1011 0100 1110 1001%3C/text%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 300px 300px;
}

/* Navbar */
.navbar {
  background-color: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.navbar-brand {
  font-family: "Rustic Roadway - Personal use", Arial, sans-serif;
  color: var(--primary-color) !important;
  font-size: 1.5rem;
}
.navbar-nav .nav-link {
  color: var(--text-color) !important;
  transition: color 0.3s;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary-color) !important;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 3rem 1rem;
}
.hero h1 {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-family: "Rustic Roadway - Personal use", Arial, sans-serif;
}
.hero p {
  max-width: 700px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  color: var(--secondary-text);
}
.hero .logo-wrapper {
  width: 200px;
  height: 200px;
  margin-bottom: 1rem;
  position: relative;
}
.hero .logo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  filter: drop-shadow(0 0 10px var(--primary-color));
}
.hero .logo-wrapper::after {
  content: "";
  position: absolute;
  top: 60%;
  left: -5%;
  width: 110%;
  height: 2px;
  background-color: var(--primary-color);
  animation: glitch 2s infinite;
  opacity: 0.7;
}
.btn-primary-custom {
  background-color: var(--primary-color);
  border: none;
  color: var(--bg-color);
  font-weight: 600;
  transition: background-color 0.3s;
}
.btn-primary-custom:hover {
  background-color: var(--hover-color);
}

/* Section Titles (used for Skills and Contact Me) */
.section-title {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
  text-align: center;
  font-family: "Rustic Roadway - Personal use", Arial, sans-serif;
}

/* Education Section */
.education-section {
  padding: 3rem 1rem;
}
.education-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}
.education-card {
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(3px);
  border-radius: 8px;
  padding: 1.5rem;
  width: 550px;
  text-align: center;
  transition: transform 0.3s;
}
.education-card:hover {
  transform: translateY(-5px);
}
.education-card img {
  max-width: 120px;
  margin-bottom: 1rem;
  transition: filter 0.3s, opacity 0.3s;
}
.education-card img:hover {
  filter: grayscale(0%);
  opacity: 1;
}
.education-card h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}
.education-card .degree {
  color: var(--text-color);
  font-weight: 600;
}
.education-card p {
  font-size: 0.9rem;
  color: var(--secondary-text);
  line-height: 1.4;
}
.gray-logo {
  filter: grayscale(100%);
  opacity: 0.7;
}

/* Skills Section */
.skills-section {
  padding: 3rem 1rem;
}
.skills-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.skill-pill {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  padding: 0.5rem 1rem;
  color: var(--primary-color);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: background-color 0.3s;
}
.skill-pill:hover {
  background-color: rgba(0, 240, 255, 0.2);
}

/* Contact Section */
.contact-section {
  padding: 3rem 1rem;
}
/* New Contact Cards Styling */
.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-card {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  transition: transform 0.3s;
}
.contact-card:hover {
  transform: translateY(-3px);
}
.contact-card h5 {
  margin-bottom: 0.5rem;
  /* Updated to white */
  color: var(--text-color);
  font-family: "Rustic Roadway - Personal use", Arial, sans-serif;
}
.contact-card a {
  color: var(--primary-color);
  font-weight: 500;
  font-size: 1rem;
}

/* Contact Form Styling remains unchanged */
.contact-form {
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(3px);
  border-radius: 8px;
  padding: 1.5rem;
}
.form-control {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--primary-color);
  color: var(--text-color);
}
.form-control:focus {
  box-shadow: 0 0 5px var(--primary-color);
}
.btn-submit {
  background-color: var(--primary-color);
  border: none;
  color: var(--bg-color);
  font-weight: 600;
  transition: background-color 0.3s;
}
.btn-submit:hover {
  background-color: var(--hover-color);
}

/* Footer */
footer {
  padding: 2rem 1rem;
  text-align: center;
  color: #666666;
  font-size: 0.8rem;
}
footer a {
  color: var(--primary-color);
}
footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  .education-card {
    width: 100%;
    max-width: 400px;
  }
}
