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

body {
  font-family: "Arial", sans-serif;
  line-height: 1.6;
  color: black;
  background: #0a0a0a;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

 /* Light mode styles */
body.light-mode {
  background: #ffffff;
  color:black
}
body.light-mode .hero {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

body.light-mode .logo{
  color: rgb(1, 6, 10)
}


 /* Hero Title */
body.light-mode .hero .hero-content h1.hero-title {
  color: rgb(1, 7, 13) !important;            /* main fallback */
  -webkit-text-fill-color: rgb(1, 7, 13) !important; /* for browsers using text-fill */
  background: none !important;                /* remove any gradient bg-clip text */
  position: relative !important;              /* ensure it's not pulled behind overlay */
  z-index: 2 !important;
}

/* Hero Buttons → target the <a> tags inside */
body.light-mode .hero .hero-content .hero-buttons a {
  color: rgb(1, 7, 13);
  background-color: transparent; /* or set a background if needed */
  border-color: rgb(1, 7, 13);   /* optional if you want border visible */
}



body.light-mode .contact .contact-info h3 {
  color: rgb(1, 7, 13) !important;
}


/* Send Message button */
body.light-mode .contact .contact-form button[type="submit"] {
  background-color: rgb(1, 7, 13) !important;
  color: #fff !important;
  border: none !important;
}




/* Skills Section → target the h3.skill */
body.light-mode .skills .skills-grid .skill-card h3.skill {
  color: #000;
}

body.light-mode header {
  background: rgba(255, 255, 255, 0.95);
}
body.light-mode .nav-links  {
  background-color: white;
  
}

body.light-mode .nav-links a {
  color: black;
}

body.light-mode .about .container .about-content .about-text .Hi{
  color: #000;
}


body.light-mode .hamburger span {
  background: #090909;
}

body.light-mode .about {
  background: #f8f9fa;
}

body.light-mode .skills {
  background: #ffffff;
}

body.light-mode .portfolio {
  background: #f8f9fa;
}

body.light-mode .contact {
  background: #ffffff;
}

body.light-mode .skill-card,
body.light-mode .portfolio-item,
body.light-mode .contact-form {
  background: #ffffff;
  border-color: rgb(27, 26, 26)
}

body.light-mode .section-title,
body.light-mode .about-text,
body.light-mode .contact-info p,
body.light-mode .contact-item {
  color: black
}

body.light-mode .hero-subtitle,
body.light-mode .hero-description,
body.light-mode .skill-card p,
body.light-mode .portfolio-content p {
  color: black
}
body.light-mode .portfolio-content a {
  
  color: black
}
body.light-mode .portfolio-content a:hover {
  background-color: #508997;
  color: black
}
body.light-mode .form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: black;
  font-weight: bold;
}

body.light-mode .form-group input,
body.light-mode .form-group textarea {
  background: #f8f9fa;
  color: black;
  border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode footer {
  background: #333;
  color: #fff;
}

body.light-mode ::-webkit-scrollbar-track {
  background: #f1f1f1;
}



/* Portfolio section - remove red background in light mode */
body.light-mode .portfolio .portfolio-item .portfolio-image {
    background: #f8f9fa;  /* light grey background */
    color: rgb(1, 7, 13); /* dark text for light mode */
}



/* Light Mode Portfolio Styling */
body.light-mode .portfolio {
    background: #f0f2f5; /* soft light background */
}

body.light-mode .portfolio .section-title {
    color: rgb(1, 7, 13);
}

/* Portfolio Item Card */
body.light-mode .portfolio .portfolio-item {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.light-mode .portfolio .portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Portfolio Image with soft gradient */
body.light-mode .portfolio .portfolio-item .portfolio-image {
    background: linear-gradient(135deg, #373131 0%, #f5f5f5 100%);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.light-mode .portfolio .portfolio-item .portfolio-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
}

/* Portfolio Content */
body.light-mode .portfolio .portfolio-content h3 {
    color: rgb(33, 33, 33); /* dark gray for headings */
    margin-bottom: 0.5rem;
}

body.light-mode .portfolio .portfolio-content p {
    color: rgb(80, 80, 80); /* medium gray for text */
    margin-bottom: 0.8rem;
}

/* Tech Tags */
body.light-mode .portfolio .portfolio-tech .tech-tag {
    background: #e0e0e0; /* light gray background */
    color: #333;         /* dark gray text */
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
}

/* GitHub Links - Centered & Gray Theme */
body.light-mode .portfolio .git-tag {
    display: flex;
    justify-content: center; /* center horizontally */
    margin-top: 1rem;
}

body.light-mode .portfolio .git-tag a {
    background: #e0e0e0;  /* light gray button */
    color: #333;           /* dark gray text */
    text-decoration: none;
    font-weight: 500;
    padding: 0.4rem 1rem;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

body.light-mode .portfolio .git-tag a:hover {
    background: #bdbdbd; /* slightly darker gray on hover */
    color: #111;
}



/* Light Mode About Image Styling */
body.light-mode .profile-photo {
    border: 6px solid #140000;                 /* soft gray border */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); /* subtle shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.light-mode .profile-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 45px rgba(153, 49, 49, 0.15); /* slightly stronger shadow on hover */
}

/* Floating Animation for Light Mode */
body.light-mode .profile-photo {
    animation: floatLight 3s ease-in-out infinite;
}

@keyframes floatLight {
    0% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0); }
}





/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
  background: #f7f4f4;
  border-radius: 4px;
}


/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle {
  background: none;
  border: 2px solid #ff6b6b;
  color: #ff6b6b;
  padding: 0.5rem;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.2rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  background: #ff6b6b;
  color: white;
  transform: scale(1.1);
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: #ff6b6b;
  text-decoration: none;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #ff6b6b;
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover {
  color: #ff6b6b;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #fff;
  margin: 3px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><circle cx="500" cy="500" r="200" fill="none" stroke="%23ff6b6b22" stroke-width="2"/><circle cx="300" cy="300" r="100" fill="none" stroke="%23ff6b6b11" stroke-width="1"/><circle cx="700" cy="700" r="150" fill="none" stroke="%23ff6b6b11" stroke-width="1"/></svg>');
  animation: rotate 20s linear infinite;
}

.hero-content {
  text-align: center;
  z-index: 1;
  max-width: 800px;
  padding: 0 2rem;
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 1rem;
  background: linear-gradient(45deg, #ff6b6b, #ffd93d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: slideInUp 1s ease-out;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: #ccc;
  margin-bottom: 2rem;
  animation: slideInUp 1s ease-out 0.2s both;
}

.hero-description {
  font-size: 1.1rem;
  color: #999;
  margin-bottom: 3rem;
  animation: slideInUp 1s ease-out 0.4s both;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: slideInUp 1s ease-out 0.6s both;
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-primary {
  /* background: linear-gradient(45deg, #ff6b6b, #ffd93d);
  color: #000; */
  background: transparent;
  color: #ff6b6b;
  border-color: #ff6b6b;
}

.btn-secondary {
  background: transparent;
  color: #ff6b6b;
  border-color: #ff6b6b;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
}

/* About Section */
.about {
  padding: 5rem 0;
  background: #111;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: #fff;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(45deg, #ff6b6b, #ffd93d);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text {
  color: #ccc;
  font-size: 1.1rem;
  line-height: 1.8;
}

.about-text h3 {
  color: #ff6b6b;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

/* .about-image {
  width: 100%;
  height: 400px;
  background: linear-gradient(45deg, #ff6b6b, #ffd93d);
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
} */

/* .profile-photo {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 5px solid #ff6b6b;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
} */
.profile-photo {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: 6px solid #ff6b6b;
    object-fit: cover;
    margin: 0 auto;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 12px 35px rgba(255, 107, 107, 0.3); /* default shadow */
}

.profile-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 60px rgba(255, 107, 107, 0.5); /* bigger shadow on hover */
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

.profile-photo {
    animation: float 3s ease-in-out infinite;
}



.about-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="%23ffffff33" stroke-width="1"/></svg>');
  animation: pulse 2s ease-in-out infinite;
}

/* Skills Section */
.skills {
  padding: 5rem 0;
  background: #0a0a0a;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.skill-card {
  background: #1a1a1a;
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(255, 107, 107, 0.2);
}

.skill-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.skill-card h3 {
  color: #ff6b6b;
  margin-bottom: 1rem;
}

.skill-card p {
  color: #ccc;
  line-height: 1.6;
}

/* Portfolio Section */
.portfolio {
  padding: 5rem 0;
  background: #111;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.portfolio-item {
  background: #1a1a1a;
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease;
}

.portfolio-item:hover {
  transform: translateY(-5px);
}

.portfolio-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(45deg, #ff6b6b, #ffd93d);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #000;
  font-weight: bold;
}

.portfolio-content {
  padding: 1.5rem;
}

.portfolio-content h3 {
  color: #ff6b6b;
  margin-bottom: 0.5rem;
}

.portfolio-content p {
  color: #ccc;
  margin-bottom: 1rem;
}

.portfolio-tech {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tech-tag {
  background: rgba(255, 107, 107, 0.2);
  color: #ff6b6b;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.8rem;
}
.git-tag a{
  text-decoration: none;
  background: rgba(255, 107, 107, 0.2);
  padding: 0.25rem 0.75rem;
  margin: 0.1rem;
  color: #ebe6e6;
  border-radius: 15px;
  font-size: 1rem;
  justify-content: center;
  align-items: center;
  display: flex;
}
.git-tag a:hover{
  background-color: #ef5858;
}

/* Contact Section */
.contact {
  padding: 5rem 0;
  background: #0a0a0a;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h3 {
  color: #ff6b6b;
  margin-bottom: 1rem;
}

.contact-info p {
  color: #ccc;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 1rem;
  color: #ccc;
}

.contact-item i {
  font-size: 1.4rem;
}

.contact-form {
  background: #1a1a1a;
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #fff;
  font-weight: bold;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: #0a0a0a;
  color: #fff;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #ff6b6b;
}

/* Footer */
footer {
  background: #000;
  color: #ccc;
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animations */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.8;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.98);
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  }

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

  .hamburger {
    display: flex;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .container {
    padding: 0 1rem;
  }

  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .skills-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

