/* Canvas CSS code will go here */
:root {
  --bg-dark: #0f0f0f;
  --bg-secondary: #1a1a1a;
  --text-light: #f1f1f1;
  --text-muted: #aaaaaa;
  --accent: #4db8ff;
  --font: 'Segoe UI', sans-serif;
}

body {
  margin: 0;
  background: linear-gradient(135deg, #0f0f0f 30%, #1f1f1f 100%);
  color: var(--text-light);
  font-family: var(--font);
  scroll-behavior: smooth;
  transition: background 0.3s, color 0.3s;
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
}



.navbar {
  background: var(--bg-secondary);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 10;
  animation: slideDown 0.5s ease;
}

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--accent);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

section {
  padding: 4rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  animation: fadeIn 1s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.about-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  max-width: 1000px;
  text-align: left;
}

.profile-pic {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
}

.about-text h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.about-text p {
  line-height: 1.6;
  font-size: 1.1rem;
}

.btn {
  margin-top: 1rem;
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: var(--accent);
  color: black;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s;
}

.btn:hover {
  background: #3399cc;
}

.card {
  background: var(--bg-secondary);
  border-radius: 10px;
  padding: 1.5rem;
  width: 90%;
  max-width: 800px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  margin-bottom: 2rem;
}

footer {
  text-align: center;
  background: var(--bg-secondary);
  padding: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.projects .project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.project-item {
  background: #1e1e1e;
  padding: 1.2rem;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.project-item:hover {
  transform: translateY(-5px);
}

.project-item h3 {
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.project-item p {
  color: #ccc;
  margin-bottom: 0.8rem;
}

.tag {
  display: inline-block;
  background-color: var(--accent);
  color: black;
  font-size: 0.75rem;
  padding: 0.3rem 0.6rem;
  margin-right: 0.4rem;
  border-radius: 4px;
  font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .profile-pic {
    width: 180px;
    height: 180px;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* === Add These Modifications to style.css for Animations & Effects === */

/* Fade-in animation for sections */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

section {
  animation: fadeInUp 1s ease-in-out;
}

/* Navbar hover underline effect */
.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  left: 0;
  bottom: -4px;
  background-color: var(--accent);
  transition: width 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Button hover pop effect */
.btn {
  transform: scale(1);
  transition: transform 0.3s ease, background 0.3s ease;
}

.btn:hover {
  transform: scale(1.05);
  background: #3399cc;
}

/* Project card hover glow */
.project-item {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 6px 25px rgba(77, 184, 255, 0.4);
}

/* Smooth text transitions */
.about-text h1,
.about-text p,
.card h1,
.card ul,
.project-item {
  transition: all 0.4s ease-in-out;
}
/* Decorative gradient glows */
body::before {
  content: "";
  position: fixed;
  width: 600px;
  height: 600px;
  top: -150px;
  left: -150px;
  background: radial-gradient(circle, rgba(77,184,255,0.2) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
  animation: pulse 10s infinite;
}

body::after {
  content: "";
  position: fixed;
  width: 400px;
  height: 400px;
  bottom: -100px;
  right: -100px;
  background: radial-gradient(circle, rgba(0,255,255,0.1) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
  animation: pulse 15s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.6; }
}

/* Card glass effect */
.card {
  background: rgba(30, 30, 30, 0.85);
  backdrop-filter: blur(4px);
  border-radius: 10px;
  padding: 1.5rem;
  width: 90%;
  max-width: 800px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  margin-bottom: 2rem;
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.card:hover {
  box-shadow: 0 6px 25px rgba(77, 184, 255, 0.3);
  transform: translateY(-5px);
}

