:root {
  --text: #eaeaea;
  --accent: #1e90ff; 
}

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

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  background-size: 300% 300%;
  animation: gradientFlow 20s ease infinite;
  color: #e0f7fa;
  overflow-x: hidden;
}

@keyframes gradientFlow {
  0% {background-position: 0% 50%;}
  50% {background-position: 100% 50%;}
  100% {background-position: 0% 50%;}
}

/* Loader */
#loader-wrapper {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #0f2027;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

#loader {
  width: 80px; height: 80px;
  border: 8px solid #334e68;
  border-top: 8px solid #00ffc6;
  border-radius: 50%;
  animation: spin 1.2s linear infinite, glow 1.5s ease-in-out infinite alternate;
}

@keyframes spin {
  0% {transform: rotate(0deg);}
  100% {transform: rotate(360deg);}
}

@keyframes glow {
  0% {box-shadow: 0 0 10px #00ffc6, 0 0 20px #00ffc6;}
  100% {box-shadow: 0 0 20px #00ffc6, 0 0 40px #00ffc6;}
}

.loaded #loader-wrapper {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#content {
  padding: 20px;
}

/* Navbar */
#navbar {
  width: 100%;
  background: rgba(15, 32, 39, 0.8);
  backdrop-filter: blur(15px);
  z-index: 999;
  padding: 15px 30px;
}

@media (min-width: 769px) {
  #navbar {
    position: fixed;
    top: 0;
  }
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: auto;
  flex-wrap: wrap;
}

.logo {
  font-size: 2rem;
  font-weight: 800;
  color: #00ffc6;
  text-shadow: 0 0 10px #00ffc6;
}

/* Nav links */
.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.nav-links a {
  margin: 0 12px;
  text-decoration: none;
  color: #e0f7fa;
  font-weight: 500;
  transition: 0.3s;
}

.nav-links a:hover {
  color: #00ffc6;
  text-shadow: 0 0 10px #00ffc6;
}

/* Hamburger Icon */
.hamburger {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #00ffc6;
  margin-left: auto;
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    padding: 10px 0;
    display: none;
  }

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

  .github-btn {
    margin-top: 10px;
  }
}

/* GitHub Button */
.github-btn {
  flex-shrink: 0;
}

.github-link {
  background-color: transparent;
  border: 2px solid #00ffc6;
  color: #00ffc6;
  padding: 8px 16px;
  border-radius: 25px;
  font-weight: 500;
  transition: 0.3s ease;
}

.github-link:hover {
  background-color: #00ffc6;
  color: #0f2027;
  text-shadow: none;
}

/* Hero */
#hero {
  padding: 120px 20px 60px;
  min-height: 100vh;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.hero-text {
  flex: 1;
  max-width: 600px;
}

.hero-text h1 {
  font-size: 3rem;
  color: #00ffc6;
  text-shadow: 0 0 10px #00ffc6;
  margin-bottom: 10px;
}

.hero-text p {
  font-size: 1.3rem;
  margin: 10px 0;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.hero-img {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-img img {
  width: 80%;
  max-width: 400px;
  border-radius: 20px;
  box-shadow: 0 0 20px #00ffc6;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  background: #00ffc6;
  color: #0f2027;
  font-weight: bold;
  border: none;
  border-radius: 30px;
  text-decoration: none;
  transition: 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 0 20px #00ffc6;
}

.secondary-btn {
  background: transparent;
  border: 2px solid #00ffc6;
  color: #00ffc6;
}

.secondary-btn:hover {
  background: #00ffc6;
  color: #0f2027;
}

/* Section Titles */
section {
  padding: 60px 20px;
  text-align: center;
}

h2 {
  font-size: 2.5rem;
  color: #00ffc6;
  margin-bottom: 40px;
  text-shadow: 0 0 8px #00ffc6;
}

/* Glassmorphism Cards */
.education-card,
.contact-form,
.project-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  padding: 20px;
  margin: 20px auto;
  border-radius: 15px;
  border-left: 5px solid #00ffc6;
  max-width: 600px;
  color: #e0f7fa;
  box-shadow: 0 0 15px rgba(0, 255, 198, 0.2);
}

/* Projects */
.tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  gap: 1rem;
}

.tab-button {
  padding: 0.6rem 1.2rem;
  border: none;
  background-color: #f0f0f0;
  cursor: pointer;
  font-weight: 600;
  border-radius: 20px;
  transition: background-color 0.3s ease;
}

.tab-button:hover,
.tab-button.active {
  background-color: #0077cc;
  color: white;
}

.projects-section {
  padding: 60px 20px;
  background-color: var(--bg);
  color: var(--text);
  text-align: center;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.project-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 35px rgba(0, 0, 0, 0.25);
}

.project-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.project-info {
  padding: 1.5rem;
  text-align: left;
}

.project-info h3 {
  margin-bottom: 0.75rem;
  font-size: 1.8rem;
  color: var(--accent);
}

.project-info p {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.6;
}

.project-btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.project-btn:hover {
  background-color: #0051ff;
}

/* Skills */
.skills-bar-section {
  padding: 60px 20px;
  max-width: 800px;
  margin: auto;
}

.skills-bar-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: #00ffc6;
}

.skill {
  margin-bottom: 30px;
}

.skill-info {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #eee;
  margin-bottom: 8px;
}

.skill-info i {
  font-size: 1.8rem;
  color: var(--accent);
}

.skill-bar {
  background-color: #eee;
  height: 12px;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.skill-level {
  height: 100%;
  background-color: #00b894;
  border-radius: 6px;
  animation: fillBar 2s ease-out;
}

@keyframes fillBar {
  0% {
    width: 0%;
  }
}

/* Contact */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px;
  margin: 10px 0;
  background: #334e68;
  color: #fff;
  border: none;
  border-radius: 8px;
}

/* Footer */
footer {
  background: #0f2027;
  padding: 20px;
  text-align: center;
}

.social-icons {
  margin-bottom: 10px;
}

.social-icons a {
  color: #00ffc6;
  margin: 0 10px;
  font-size: 1.5rem;
  transition: 0.3s;
}

.social-icons a:hover {
  color: #e0f7fa;
  text-shadow: 0 0 10px #00ffc6;
}

/* Mobile Hero Adjustments */
@media (max-width: 768px) {
  #hero {
    flex-direction: column-reverse;
    text-align: center;
  }

  .hero-img img {
    width: 70%;
  }

  .center-nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}
