* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: black;
  color: white;
  scroll-behavior: smooth;
}


.container {
  padding: 10px 10%;
}

.hero {
  position: relative;
  background-image: url("bgimg.jpg");
  background-size: cover;
  background-position: center;
  height: 100vh;
}

body.light-mode .hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(255, 255, 255, 0.4); /* adjust opacity */
  z-index: 1;
}


.hero .header-text {
  position: relative;
  z-index: 2;
}


header {
  background-image: url('bgimg.jpg');
  background-size: cover;
  background-position: center;
  height: 100vh;
  width: 100%;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap; 
  padding: 20px 0;
}

nav .logo {
  height: 200px;
  width: auto;
  margin-right: 50px;

}

nav ul {
  display: flex;
  gap: 60px;
  list-style: none;
}

nav ul li a {
  text-decoration: none;
  font-weight: 500;
  font-size: 18px;
  color: inherit;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: #ff004f;
}

.dark-mode nav ul li a:hover {
  color: #00ffe5;
}



nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.logo{
  height: 200px;
  width: auto;
  margin-right: 50px;
}
/* Hamburger icon */
.nav-toggle {
  display: none;
  font-size: 18px;
  cursor: pointer;
  color: #e60073;
}

/* Responsive: Mobile View */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
    position: relative;
  }

  .nav-toggle {
    display: block;
    position: absolute;
    top: 20px;
    right: 30px;
    z-index: 1001;
  }

  nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #f8f8f8;
    border-radius: 0 0 10px 10px;
    padding: 20px;
    position: absolute;
    top: 60px;
    left: 0;
    z-index: 1000;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  }

  nav ul.active {
    display: flex;
  }

  .dark-mode nav ul {
    background: #1e1e1e;
  }

  nav ul li {
    margin-bottom: 10px;
  }

  nav ul li:last-child {
    margin-bottom: 0;
  }

  /* Push header text down below nav */
  .hero-container {
    margin-top: 200px; /* adjust as needed */
  }
}

nav ul li{
  list-style: none;
  display: inline-block;
  margin: 10px 20px;
  gap: 80px; 
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-size: 18px;
  position: relative;
}

nav ul li a::after {
  content: '';
  width:0;
  height: 3px;
  background: #ff004f;
  position: absolute;
  left: 0;
  bottom: -6px;
  transition: 0.3s;
}

nav ul li a:hover::after {
  width: 100%;
}

.dark-mode-btn {
  margin-left: 100px;
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
}

/* Style for the header text */
.header-text {
  position: absolute;
  top: 80%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: left;
  color: #fff;
  padding: 0 20px;
  z-index: 2;
}
/* ✅ DARK MODE */
body.dark-mode .header-text {
  color: #fff;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5),
               0 0 10px rgba(255, 255, 255, 0.4);
  animation: glowWhite 2s ease-in-out infinite alternate;
}

body.dark-mode .header-text span {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.6),
               0 0 12px rgba(255, 255, 255, 0.5);
}

/* ✅ LIGHT MODE */
body.light-mode .header-text p,
body.light-mode .header-text h1 {
  color: #ffffff;
  animation: glowText 2s ease-in-out infinite alternate;
}

body.light-mode .header-text span {
  color: #e60073; /* Hot pink */
  text-shadow: 0 0 10px rgba(255, 0, 150, 0.6),
               0 0 20px rgba(255, 0, 150, 0.4);
}

/* ✨ ANIMATIONS */
@keyframes glowText {
  from {
    text-shadow: 0 0 5px rgba(255, 0, 150, 0.4);
  }
  to {
    text-shadow: 0 0 15px rgba(255, 0, 150, 0.9),
                 0 0 30px rgba(255, 0, 150, 0.6);
  }
}

@keyframes glowWhite {
  from {
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
  }
  to {
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.8),
                 0 0 20px rgba(255, 255, 255, 0.6);
  }
}

body.dark-mode .header-text {
  color: #fff; /* White text in dark mode */
}
body.dark-mode .header-text {
  color: #fff; /* White text in dark mode */
}

body.dark-mode .header-text span {
  color: #ff004f;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.911),
               0 0 8px rgba(255, 255, 255, 0.911);
}

.header-text p {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 10px;
}

.header-text h1 {
  font-size: 48px;
  font-weight: bold;
}

/* Mobile-friendly adjustments */
@media (max-width: 768px) {
  .header-text p {
    font-size: 18px;
  }

  .header-text h1 {
    font-size: 28px;
  }
}

.header-text span {
  color: #ff004f;
}

.sub-title {
  font-size: 40px;
  margin-bottom: 20px;
}

.skills ul {
  list-style-type: none;
  line-height: 2;
}

.project-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  padding: 2rem 0;
}

.card {
  width: 48%;
  background-color: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.card img {
  width: 100%;
  height: auto;
  display: block;
}
.card img {
  transition: transform 0.4s ease-in-out;
}

.card:hover img {
  transform: scale(1.05);
}


.card-content {
  padding: 1.2rem;
  background-color: #f9f9f9;
  flex-grow: 1;
}

.card-content h3 {
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
  color: #333;
}

.card-content p {
  margin-bottom: 0.7rem;
  color: #555;
  font-size: 1rem;
}

.card-content a {
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
}

.card-content a:hover {
  text-decoration: underline;
}


.contact button {
  padding: 10px 20px;
  background-color: #ff004f;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

/* Highlighted keywords */
.highlight {
  color: #00ffe5;
  font-weight: 600;
}

/* About Section */
#about p {
  font-size: 18px;
  line-height: 1.8;
  margin-top: 10px;
  animation: fadeInUp 1s ease-in-out;
  background: rgba(255, 255, 255, 0.144);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 255, 229, 0.05);
  transition: all 0.3s ease;
}

/* Section Titles */
.animated-title {
  animation: slideInLeft 1s ease-out;
  color: #00ffe5;
  border-left: 4px solid #ff004f;
  padding-left: 12px;
  margin-bottom: 20px;
}

/* Skills Section */
.skills-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

/* Light mode (default) */
.skill-card {
  background: linear-gradient(135deg, #f3f3f3, #ffffff);
  color: #000;
  border-left: 5px solid #ff004f;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(255, 0, 79, 0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  animation: fadeInUp 1s ease;
}

/* Dark mode */
body.dark-mode .skill-card {
  background: linear-gradient(135deg, #1f1f1f, #2a2a2a);
  color: #fff;
  box-shadow: 0 10px 25px rgba(0, 255, 229, 0.08);
}

/* Hover effect (same for both themes) */
.skill-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 12px 30px rgba(255, 0, 79, 0.3);
}


.skill-card span {
  color: #ff004f;
  font-weight: bold;
  font-size: 20px;
  display: block;
  margin-bottom: 8px;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}.contact .sub-title {
  text-align: left;
  font-size: 36px;
  color:#00ffe5;
  margin-bottom: 40px;
  position: relative;
}

.contact-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  align-items: flex-start;
}

.contact-form {
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Light mode (default) */
.contact-form input,
.contact-form textarea {
  background-color: #f3f3f3;
  border: 1px solid #ccc;
  padding: 12px 16px;
  color: #000;
  font-size: 16px;
  border-radius: 8px;
  transition: border 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #ff004f;
  outline: none;
}

.btn-send {
  background-color: #ff004f;
  color: #fff;
  border: none;
  padding: 12px 18px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-send:hover {
  background-color: #e60045;
  transform: translateY(-2px);
}

/* Dark mode */
body.dark-mode .contact-form input,
body.dark-mode .contact-form textarea {
  background-color: #1f1f1f;
  border: 1px solid #333;
  color: #fff;
}

body.dark-mode .contact-form input:focus,
body.dark-mode .contact-form textarea:focus {
  border-color: #00ffe5;
}

body.dark-mode .btn-send {
  background-color: #ff004f;
  color: #fff;
}

body.dark-mode .btn-send:hover {
  background-color: #e60045;
}


.contact-info {
  flex: 1;
  min-width: 280px;
  color: #ccc;
  font-size: 18px;
  line-height: 1.8;
}
.footer {
  background-color: #1a1a1a;
  color: #ccc;
  padding: 30px 20px;
  text-align: center;
  margin-top: 60px;
}

.footer-text {
  margin-bottom: 15px;
  font-size: 1rem;
  font-weight: 400;
}

.footer-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 1.6rem;
}

.footer-icons a {
  color: #ff6b6b;
  transition: transform 0.3s ease, color 0.3s ease;
}

.footer-icons a:hover {
  transform: scale(1.2);
  color: #ffffff;
}

/* Fade-in animation */
.fade-in-bottom {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.3s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .card {
    width: 100%;
  }
}
.project-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #e60045;
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer;
}

.project-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0%;
  height: 3px;
  background: linear-gradient(to right, #4c6ef5, #845ef7);
  transition: width 0.4s ease;
  border-radius: 4px;
}
body.light-mode {
  background: #f4f4f4;
  color: #222;
}

.light-mode .card {
  background-color: #fff;
  color: #333;
}

.light-mode .card-content h3,
.light-mode .card-content p {
  color: #222;
}

.light-mode .highlight {
  color: #ff004f;
}

.light-mode .skill-card {
  background: linear-gradient(135deg, #fff, #f0f0f0);
  border-left-color: #ff004f;
  box-shadow: 0 10px 25px rgba(255, 0, 79, 0.05);
}

.light-mode .footer {
  background-color: #eee;
  color: #444;
}

.light-mode .footer-icons a {
  color: #ff004f;
}
body {
  transition: background 0.4s ease, color 0.4s ease;
}

.card, .card-content, .footer, .skill-card {
  transition: background-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
}
/* Default light mode (body has no dark-mode class) */
body {
  background-color: #ffffff;
  color: #000000;
  transition: all 0.3s ease;
}

/* Dark mode (triggered with class) */
body.dark-mode {
  background-color: #121212;
  color: #ffffff;
}



