/* ==== GLOBAL RESET ==== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background: #0b0c10;
  color: #fff;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
}

/* ==== LIGHT THEME ==== */
body.light {
  background: #f8f9fa;
  color: #222;
}

/* Light theme navbar */
body.light nav {
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

body.light nav .logo {
  color: #007bff;
}

body.light nav .nav-links a {
  color: #333;
}

body.light nav .nav-links a:hover,
body.light nav .nav-links a.active {
  color: #007bff;
}

/* Light theme hero section */
body.light .hero h1 .name {
  color: #007bff;
}

body.light .btn-primary {
  background: #007bff;
  color: #fff;
}

body.light .btn-primary:hover {
  background: #0056b3;
}

body.light .btn-outline {
  border-color: #007bff;
  color: #007bff;
}

body.light .btn-outline:hover {
  background: #007bff;
  color: #fff;
}

/* Light theme profile border */
body.light .profile-border {
  border-color: #007bff;
}

/* Light theme section titles */
body.light .section-title::after {
  background: #007bff;
}

/* Light theme cards and elements */
body.light .card,
body.light .project-card {
  background: #ffffff;
  border: 1px solid #e9ecef;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

body.light .project-card:hover {
  background-color: #f8f9fa;
}

body.light .skill-card:hover {
  background-color: #f8f9fa;
}

body.light .contact-card:hover {
  background-color: #f8f9fa;
}

body.light .project-body h3 {
  color: #007bff;
}

/* Light theme skill bars */
body.light .bar {
  background: #e9ecef;
}

body.light .bar-fill {
  background: #007bff;
}

/* Light theme contact form */
body.light .contact-form input,
body.light .contact-form textarea {
  border-color: #007bff;
  color: #333;
  background: #fff;
}

body.light .contact-form button {
  background: #007bff;
  color: #fff;
}

body.light .contact-form button:hover {
  background: #0056b3;
}

/* Light theme read more button */
body.light .read-more {
  border-color: #007bff;
  color: #007bff;
}

body.light .read-more:hover {
  background: #007bff;
  color: #fff;
}

/* Light theme social sidebar */
body.light .social-sidebar a {
  background: #007bff;
  color: #fff;
}

body.light .social-sidebar a:hover {
  background: #0056b3;
  color: #fff;
}

/* Light theme toggle button */
body.light .theme-toggle {
  background: #007bff;
  color: #fff;
}

body.light .theme-toggle:hover {
  background: #0056b3;
  color: #fff;
}

img {
  max-width: 100%;
  display: block;
}

/* ==== NAVBAR ==== */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 8%;
  background: #1f2833;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background 0.3s, box-shadow 0.3s;
}

nav .logo {
  font-weight: 700;
  font-size: 1.4rem;
  color: #66fcf1;
  transition: color 0.3s;
}

nav .nav-links {
  display: flex;
  gap: 4.5rem;
}

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

nav .nav-links a:hover,
nav .nav-links a.active {
  color: #66fcf1;
}

nav .menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
}

/* ==== HERO ==== */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  min-height: 90vh;
  padding: 50px 8%;
}

.hero .intro-left {
  flex: 1 1 500px;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.hero h1 .name {
  color: #66fcf1;
  transition: color 0.3s;
}

.hero p {
  margin-bottom: 1.5rem;
  max-width: 500px;
}

.hero .intro-cta {
  display: flex;
  gap: 1rem;
}

.btn-primary,
.btn-outline {
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: 0.3s;
}

.btn-primary {
  background: #66fcf1;
  color: #0b0c10;
}

.btn-primary:hover {
  background: #45a29e;
}

.btn-outline {
  background: transparent;
  border-color: #66fcf1;
  color: #66fcf1;
}

.btn-outline:hover {
  background: #66fcf1;
  color: #0b0c10;
}

/* ==== PROFILE IMAGE ==== */
.hero .intro-right {
  flex: 1 1 400px;
  text-align: center;
}

.profile-wrap {
  position: relative;
  display: inline-block;
}

.profile-border {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border: 4px dashed #66fcf1;
  border-radius: 50%;
  animation: spin 20s linear infinite;
  transition: border-color 0.3s;
}

.profile-img {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  object-fit: cover;
  border: 8px solid red;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

/* ==== SECTIONS ==== */
section {
  padding: 60px 8%;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: #66fcf1;
  margin: 12px auto 0;
  border-radius: 2px;
  transition: background 0.3s;
}

/* ==== ABOUT ==== */
.about-split {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

.about-img img{
  border:4px  solid red;
  border-radius: 1rem;
  height: 400px;
  width: 400px;
  object-fit: cover;
  transition: transform 0.3s ease ;
}

.about-img img:hover{
  transform: rotate(360deg);
}

.about-text {
  flex: 1 1 400px;
}

.about-text p {
  margin-bottom: 1rem;
}

.read-more {
  padding: 10px 20px;
  border: 2px solid #66fcf1;
  border-radius: 20px;
  background: transparent;
  color: #66fcf1;
  cursor: pointer;
  transition: 0.3s;
}

.read-more:hover {
  background: #66fcf1;
  color: #0b0c10;
}

/* ==== SKILLS ==== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.skill-card {
  padding: 20px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.skill-card:hover {
  background-color: #333;
}

.skill-name {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.bar {
  height: 8px;
  background: #444;
  border-radius: 4px;
  overflow: hidden;
  transition: background 0.3s;
}

.bar-fill {
  height: 100%;
  background: #66fcf1;
  width: 0;
  transition: width 1s ease-in-out, background 0.3s;
}

/* ==== PROJECTS ==== */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.project-card {
  background: #1f2833;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s, background-color 0.3s;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-6px);
  background-color: #134686;
}

.project-body {
  padding: 15px;
}

.project-body h3 {
  color: #66fcf1;
  margin-bottom: 8px;
  transition: color 0.3s;
}

/* ==== CONTACT ==== */
.contact-card {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 20px;
  transition: background-color 0.3s;
}

.contact-card:hover {
  background-color: #19183B;
}

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

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

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: blue;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 2px solid #66fcf1;
  border-radius: 6px;
  outline: none;
  background: transparent;
  color: blue;
  transition: border-color 0.3s, background 0.3s, color 0.3s;
}

.contact-form button {
  background: #66fcf1;
  color: #0b0c10;
  padding: 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}

.contact-form button:hover {
  background: #45a29e;
}

/* ==== SOCIAL SIDEBAR ==== */
.social-sidebar {
  position: fixed;
  left: 20px;
  top: 40%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1000;
}

.social-sidebar a {
  width: 40px;
  height: 40px;
  background: #3338A0;
  color: #66fcf1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  transition: 0.3s;
}

.social-sidebar a:hover {
  background: #66fcf1;
  color: #0b0c10;
}

/* ==== FISH ANIMATION ==== */
.fish {
  position: fixed;
  bottom: 40px;
  right: -120px;
  width: 100px;
  animation: swim 12s linear infinite;
}

@keyframes swim {
  0% { right: -120px; bottom: 40px; }
  50% { right: 50%; bottom: 120px; }
  100% { right: 100vw; bottom: 40px; }
}

/* ==== THEME TOGGLE ==== */
.theme-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 10px 15px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  background: #66fcf1;
  color: #0b0c10;
  font-size: 0.9rem;
  transition: 0.3s;
  z-index: 1000;
}

.theme-toggle:hover {
  background: #45a29e;
  color: #fff;
}

.theme-toggle.toggled {
  background: #007bff;
  color: #fff;
}

/* ==== REVEAL ON SCROLL ==== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==== CARDS ==== */
.card {
  background: #1f2833;
  border-radius: 8px;
  padding: 20px;
  transition: transform 0.3s, background 0.3s, border 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-4px);
}

/* ==== RESPONSIVE ==== */
@media(max-width:768px) {
  nav .nav-links {
    display: none;
    flex-direction: column;
    background: #1f2833;
    position: absolute;
    top: 60px;
    right: 8%;
    width: 200px;
    padding: 20px;
  }
  
  body.light nav .nav-links {
    background: #ffffff;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }
  
  nav .menu-toggle {
    display: block;
  }
  .hero {
    flex-direction: column;
    text-align: center;
  }
  .about-split {
    flex-direction: column;
  }
  .contact-card {
    flex-direction: column;
  }
  .social-sidebar {
    left: 10px;
    top: auto;
    bottom: 20px;
    flex-direction: row;
  }
  .footer {
    background: #111;
    color: #fff;
    padding: 20px 0;
    text-align: center;
  }
  
  .footer-container p {
    max-width: 1100px;
    margin: auto;
    padding: 0 20px;
    text-align: center;
    justify-content: center;
    align-items: center;
  }
}