:root {
  --bg-color: rgba(15, 23, 42, 0.7);
  --text-color: #fff;
  --accent: #00ffd5;
  --blur: blur(10px);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(120deg, #0f172a, #1e293b);
  color: var(--text-color);
  overflow-x: hidden;
  transition: background 0.5s ease;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bg-color);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  box-shadow: var(--shadow);
  z-index: 1000;
}

/* Hamburger button styles */
.hamburger {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: var(--text-color);
  cursor: pointer;
}

/* Navigation links (desktop default) */
.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

/* MOBILE view adjustments */
@media (max-width: 768px) {
  .hamburger {
    display: block; /* Show hamburger only on mobile */
  }

  .nav-links {
    display: none; /* Hide menu by default */
    flex-direction: column;
    position: absolute;
    top: 70px; /* below navbar */
    right: 0;
    background-color: var(--bg-color);
    -webkit-backdrop-filter: var(--blur);
    backdrop-filter: var(--blur);
    padding: 20px;
    box-shadow: var(--shadow);
    border-radius: 0 0 8px 8px;
    width: 200px;
    z-index: 999;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links a,
  .nav-links button {
    text-align: right;
    padding: 10px 0;
    width: 100%;
    border: none;
    background: none;
    font-size: 1rem;
  }
}




.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.logo .circle {
  display: inline-block;
  width: 30px;
  height: 30px;
  background: var(--accent);
  color: black;
  text-align: center;
  border-radius: 50%;
  margin-right: 8px;
  font-weight: bold;
}

nav a {
  margin: 0 10px;
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover {
  color: var(--accent);
}

#theme-toggle {
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.2rem;
  cursor: pointer;
  margin-left: 20px;
}

/* Section */
.section {
  min-height: calc(100vh - 70px);
  padding: 100px 20px 60px;
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

/* Hero Title */
.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
}

.changing-text {
  font-size: clamp(1.2rem, 4vw, 2rem);
  color: var(--accent);
}

/* Socials */
.socials a i {
  font-size: 1.5rem;
}

.socials a {
  margin: 10px;
  padding: 12px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  transition: all 0.3s ease;
  color: #00ffd5;
}

.socials a:hover {
  background-color: var(--accent);
  color: black;
  transform: scale(1.1);
}

/* About Section Styles */
.about-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.about-heading {
  font-size: 3rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--accent);
}


.about-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 1200px;
  width: 100%;
  padding: 2rem;
  background: var(--bg-color); /* dynamic */
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-radius: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  color: var(--text-color); /* dynamic */
}

@media (min-width: 768px) {
  .about-container {
    flex-direction: row;
  }
}

.about-image {
  flex: 1;
}

.profile-pic {
  width: 100%;
  border-radius: 1rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
  object-fit: cover;
}

.about-text {
  flex: 1;
  color: var(--text-color); /* dynamic */
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--accent); /* dynamic */
}

.about-description {
  font-size: 1.125rem;
  line-height: 1.8;
}

.about-details {
  list-style: none;
  padding: 0;
  margin: 0;
  line-height: 1.6;
}

.about-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.btn-primary {
  background-color: var(--accent);
  color: black;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  transition: transform 0.2s;
  text-decoration: none;
}

.btn-primary:hover {
  transform: scale(1.05);
}

.btn-secondary {
  border: 2px solid var(--accent);
  color: var(--accent);
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.btn-secondary:hover {
  background-color: var(--accent);
  color: black;
}

.about-heading {
  font-size: 3rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--accent);
}


.about-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 1200px;
  width: 100%;
  padding: 2rem;
  background: var(--bg-color); /* dynamic */
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-radius: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  color: var(--text-color); /* dynamic */
}

@media (min-width: 768px) {
  .about-container {
    flex-direction: row;
  }
}

.about-image {
  flex: 1;
}

.profile-pic {
  width: 100%;
  border-radius: 1rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
  object-fit: cover;
}

.about-text {
  flex: 1;
  color: var(--text-color); /* dynamic */
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--accent); /* dynamic */
}

.about-description {
  font-size: 1.125rem;
  line-height: 1.8;
}

.about-details {
  list-style: none;
  padding: 0;
  margin: 0;
  line-height: 1.6;
}

.about-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.btn-primary {
  background-color: var(--accent);
  color: black;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  transition: transform 0.2s;
  text-decoration: none;
}

.btn-primary:hover {
  transform: scale(1.05);
}

.btn-secondary {
  border: 2px solid var(--accent);
  color: var(--accent);
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.btn-secondary:hover {
  background-color: var(--accent);
  color: black;
}




/* Projects */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 50px;
}

.project img {
  width: 100%;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}

.project img:hover {
  transform: scale(1.05);
}

.project a {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.1);
  color: #000000;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
  font-weight: 500;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.project a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
  color: #00ffd5;
}

/* Blog Section */
.blog-section {
  padding: 4rem 2rem;
  color: var(--text-color);
}

.blog-heading {
  text-align: center;
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 3rem;
  color: var(--accent);
}

.blog-container {
  display: grid;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .blog-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

.blog-card {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
}

.blog-title {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.blog-snippet {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.blog-tag {
  font-size: 0.9rem;
  color: var(--accent);
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0.3rem 0.8rem;
  border-radius: 9999px;
}


/* Contact Form */
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 500px;
  width: 100%;
  margin: auto;
}

form input,
form textarea {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 50px;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

form button {
  width: 100%;
  background: var(--accent);
  color: black;
  border: none;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

/* Footer */
footer {
  padding: 30px 10px;
  text-align: center;
  background-color: var(--bg-color);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  box-shadow: var(--shadow);
  margin-top: 80px;
}

/* Bubble Effect */
#bubbles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.bubble {
  position: absolute;
  bottom: -50px;
  border-radius: 50%;
  animation: rise 6s linear infinite;
}

@keyframes rise {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh);
    opacity: 0;
  }
}

@keyframes bubbleUp {
  0% {
    transform: translateY(100vh) scale(0.5);
    opacity: 0.3;
  }
  100% {
    transform: translateY(-10vh) scale(1);
    opacity: 0;
  }
}

/* Light Theme */
.light-mode {
  --bg-color: rgba(255, 255, 255, 0.6);
  --text-color: #000;
  --accent: #00ffd5;
  background: linear-gradient(120deg, #f1f5f9, #e2e8f0);
}

/* Toggle container */
.toggle-switch {
  position: relative;
  width: 60px;
  height: 30px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  cursor: pointer;
  overflow: hidden;
}

/* Icons inside switch */
.toggle-switch .icon {
  font-size: 10px;
  z-index: 2;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  color: var(--text-color);
}

/* The sliding circle */
.toggle-switch .slider {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  top: 3px;
  left: 3px;
  transition: left 0.3s ease;
  z-index: 1;
}

/* When light mode is active, move slider to right */
body.light-mode .toggle-switch .slider {
  left: 33px;
}



/* Media Queries */
@media (max-width: 768px) {
  nav a {
    margin: 0 6px;
  }

  .navbar {
    padding: 1rem;
  }

  .section {
    padding: 100px 16px 40px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .changing-text {
    font-size: 1.2rem;
  }

  nav a {
    font-size: 0.9rem;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }
}

