html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: #fff;
  color: #111;
  text-align: center;
  transition: background 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

/* Dark Mode */
body.dark-mode {
  background: #121212;
  color: #f1f1f1;
}

/* Navbar container */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;   /* instead of width:100% */
  height: 65px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  background: transparent;
  z-index: 1000;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}


/* Navbar when scrolled */
nav.scrolled {
  background: #222;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

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

.nav-right a {
  color: #ff4081;
  text-decoration: none;
  margin: 0 12px;
  font-weight: bold;
  transition: color 0.3s;
}

.nav-right a:hover {
  color: #b00e9d;
}
/* Brand (logo + name) */
.nav-left {
  display: flex;
  align-items: center;   /* Align logo & text vertically */
  gap: 10px;             /* Space between logo & text */
}

.nav-left .brand {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ff4081;
  line-height: 1;        /* Prevents text from going below logo */
}

/* Logo style */
.logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}


/* Dark mode toggle button */
.toggle-btn {
  padding: 6px 14px;
  border: none;
  border-radius: 20px;
  background: #ff4081;
  color: #fff;
  cursor: pointer;
  font-size: 0.9rem;
  transition: 0.3s;
  margin-left: 15px;
}
.toggle-btn:hover {
  background: #b00e9d;
}

/* Hamburger button (hidden in desktop) */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}
.hamburger span {
  width: 25px;
  height: 3px;
  background: #ff4081;
  border-radius: 5px;
  transition: 0.3s;
}

/* Mobile menu hidden by default */
@media (max-width: 768px) {
  .nav-right {
    position: absolute;
    top: 70px;
    right: 20px;
    background: #222;
    flex-direction: column;
    padding: 20px;
    border-radius: 10px;
    display: none;
  }

  .nav-right a {
    color: #fff;
    margin: 10px 0;
  }

  .nav-right.show {
    display: flex;
  }

  .hamburger {
    display: flex;
  }
}

/* Home Section */
.home-section {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 70px;
  padding:20px 19px;
  min-height: 100vh;
  background: linear-gradient(120deg, #fdfbfb, #ebedee);
  flex-wrap: wrap;
  text-align: left;
  position: relative;
}
body.dark-mode .home-section {
  background: linear-gradient(120deg, #1a1a1a, #222);
}

/* Profile Image */
.profile-pic {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.profile-pic:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 30px rgba(0,0,0,0.25);
}

/* Text */
.intro-title {
  font-size: 2.6rem;
  margin-bottom: 15px;
  font-family: 'Playfair Display', serif;
  color: #222;
}
body.dark-mode .intro-title {
  color: #fff;
}

.highlight {
  color: #e91e63;
}

.animated-text {
  font-size: 1.4rem;
  margin-bottom: 20px;
  font-weight: 600;
  color: #444;
}
body.dark-mode .animated-text {
  color: #ddd;
}

/* Buttons */
.cta-buttons {
  display: flex;
  gap: 15px;
}

.btn {
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.primary-btn {
  background: #e91e63;
  color: white;
}
.primary-btn:hover {
  background: #c2185b;
  transform: translateY(-2px);
}

.secondary-btn {
  border: 2px solid #e91e63;
  color: #e91e63;
  background: transparent;
}
.secondary-btn:hover {
  background: #e91e63;
  color: white;
  transform: translateY(-2px);
}

/* Scroll Down */
.scroll-down {
  position: absolute;
  bottom: 20px;
  width: 100%;
  text-align: center;
  font-size: 1.3rem;
  color: #666;
  animation: bounce 2s infinite;
}
body.dark-mode .scroll-down {
  color: #bbb;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* About Section */
.about-section {
  padding: 80px 20px;
}
.about-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.about-image img {
  width: 300px;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.4s ease;
}
.about-image img:hover {
  transform: scale(1.05);
}
.about-text {
  max-width: 600px;
  font-size: 1.1rem;
  line-height: 1.8;
}
.about-text h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  background: linear-gradient(45deg, #ff4081, #00c6ff);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Skills Section */
.skills-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, #fdfbfb, #ebedee);
  text-align: center;
}
body.dark-mode .skills-section {
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
}

.skills-section h1 {
  font-size: 3rem;
  margin-bottom: 15px;
  background: linear-gradient(45deg, #ff4081, #00c6ff);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: bold;
}

.skills-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.skill {
  flex: 1;
  min-width: 260px;
  max-width: 350px;
  background: #fff;
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
body.dark-mode .skill {
  background: #1e1e1e;
  color: #ddd;
}
.skill:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}
.skill h2 {
  color: #00c6ff;
  margin-bottom: 12px;
  font-size: 1.5rem;
}
.skill p {
  color: #555;
  line-height: 1.5;
}
body.dark-mode .skill p {
  color: #ccc;
}
/* YouTube Button */
.youtube-btn {
  margin-top: 30px;
  text-align: center;
}

.youtube-btn a {
  display: inline-block;
  padding: 14px 32px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(45deg, #ed69a6, #ff4081);
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.youtube-btn a:hover {
  background: linear-gradient(45deg, #ff4081, #ed69a6);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.25);
}

/* Gallery Section */
/* Gallery Section */
.gallery-section {
  padding: 60px 20px;
  text-align: center;
  background: linear-gradient(135deg, #fff, #f9f9f9);
}
body.dark-mode .gallery-section {
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
}

.gallery-section h1 {
  font-size: 2.8rem;
  margin-bottom: 10px;
  background: linear-gradient(45deg, #ff4081, #00c6ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.gallery-intro {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 30px;
}

/* Masonry Layout */
.masonry-gallery {
  column-count: 3;   /* Number of columns */
  column-gap: 15px;  /* Space between columns */
}

.gallery-item {
  margin-bottom: 15px;
  break-inside: avoid;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img {
  width: 100%;
  height: auto; /* Prevent cropping */
  display: block;
  border-radius: 12px;
  transition: transform 0.4s ease;
}
.parent{
  column-width: 100px;
}
.child{
  width: 100%;
}

.gallery-item:hover img {
  transform: scale(1.05);
}
@media (max-width: 992px) {
  .masonry-gallery {
    column-count: 2;
  }
}
@media (max-width: 600px) {
  .masonry-gallery {
    column-count: 1;
  }
}

/* Contact Section */
/* YouTube Button */
.youtube-btn {
  margin-top: 30px;
  text-align: center;
}

.youtube-btn a {
  display: inline-block;
  padding: 14px 32px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(45deg, #ed69a6, #ff4081);
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.youtube-btn a:hover {
  background: linear-gradient(45deg, #ff4081, #ed69a6);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.25);
}

/* Contact Page */
/* Contact Section */
.contact-section {
  padding: 60px 20px;
  background: #f9f9f9;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  max-width: 1100px;
  width: 100%;
  background: #fff;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
  gap: 30px;
  transition: background 0.3s, box-shadow 0.3s;
}

.contact-info {
  flex: 1;
  min-width: 300px;
}

.contact-info h1 {
  font-size: 2.4rem;
  color: #ff4081;
  margin-bottom: 15px;
  font-weight: 700;
}

.contact-info p {
  margin-bottom: 20px;
  color: #555;
  line-height: 1.6;
}

.contact-details p {
  margin: 8px 0;
  font-size: 1rem;
  color: #333;
}

.contact-details a {
  color: #00c6ff;
  text-decoration: none;
  transition: color 0.3s;
}

.contact-details a:hover {
  text-decoration: underline;
  color: #ff4081;
}

.contact-form {
  flex: 1;
  min-width: 300px;
}

.contact-form h2 {
  margin-bottom: 20px;
  font-size: 1.6rem;
  color: #333;
  font-weight: 600;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 14px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #ff4081;
  box-shadow: 0 0 8px rgba(255, 64, 129, 0.4);
}

/* Contact Form Button */
.contact-form button {
  background: linear-gradient(45deg, #ff4081, #00c6ff);
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.contact-form button:hover {
  background: linear-gradient(45deg, #00c6ff, #ff4081);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 18px rgba(0,0,0,0.25);
}

/* Responsive */
@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
    padding: 30px 20px;
  }

  .contact-info, .contact-form {
    min-width: 100%;
  }
}
/* Scroll-to-Top Button */
#scrollTopBtn {
  display: none; /* Hidden by default */
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 99;
  font-size: 22px;
  background: linear-gradient(45deg, #ff4081, #00c6ff);
  color: white;
  border: none;
  outline: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, background 0.3s ease;
}
#scrollTopBtn:hover {
  transform: scale(1.1);
  background: linear-gradient(45deg, #00c6ff, #ff4081);
}

/* Footer */
.footer {
  text-align: center;
  padding: 20px;
  margin-top: 50px;
  font-size: 1.1rem;
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
  color: white;
}
.footer span {
  background: linear-gradient(45deg, #ff4081, #00c6ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: bold;
}


