

body {
  transition: background-color 0.4s, color 0.4s;
}


* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html, body {
  width: 100%;
  overflow-x: hidden;
}

/* HEADER */
header {
  background: #d9d9d9;
  color: whitesmoke;
  padding: 1rem;
  text-align: right;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* NAV */
nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

nav ul p {
  color: black;
  text-align: left;
  font-weight: bold;
  font-size: 18px;
}

nav ul li {
  display: inline-block;
  margin-right: 40px;
}

nav ul li a {
  color: black;
  text-decoration: none;
  font-weight: 300;
  font-size: 18px;
}

nav ul li a:hover,
nav ul li a:active {
  color: blue;
}

nav ul li a.active {
  color: red;
  font-weight: bold;
  border-bottom: 2px solid red;
}

/* INTRO */
.intro-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 60px 40px;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 100%;
}

.intro-text {
  flex: 1;
  font-size: 34px;
  font-weight: bold;
  color: #111;
  min-width: 280px;
}

.intro-image img {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #333;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

/* .intro-image img:hover {
  transform: scale(1.05);
} */

/* Desktop hover flip */
@media (hover: hover) and (pointer: fine) {
  .profile-container:hover .profile-card {
    transform: rotateY(180deg);
  }
}

#theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.05);
  font-size: 18px;
  cursor: pointer;
  margin-right: 20px;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111;
}

#theme-toggle:hover {
  background: rgba(0, 0, 0, 0.12);
  transform: rotate(10deg) scale(1.05);
}

body.dark-mode #theme-toggle {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

body.dark-mode #theme-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
}







/* 🔥 Profile Flip Effect */
.profile-container {
  width: 300px;
  height: 300px;
  perspective: 1000px;
}

.profile-card {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.7s ease;
}

.profile-card.flipped {
  transform: rotateY(180deg);
}

.profile-card img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  position: absolute;
  backface-visibility: hidden;
  border: 5px solid #333;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

/* Back image */
.profile-card .back {
  transform: rotateY(180deg);
}

/* Small hover flex */
.profile-container:hover {
  transform: scale(1.03);
}















/* MAIN HEADINGS */
h2 {
  text-align: center;
  font-size: 36px;
  margin: 40px 0 20px;
  color: #222;
}

/* PARAGRAPHS */
p {
  font-size: 16px;
  font-family: system-ui, sans-serif;
  line-height: 24px;
  padding: 0 1rem;
}

p:hover {
  transform: scale(1.01);
  z-index: 2;
}

main {
  padding: 25px;
}

/* LINK GRID */
.Links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
  padding: 0 1rem;
}

.Link {
  background: #f9f9f9;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 20px;
  text-align: left;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.Link img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 12px;
}

.Link:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  background-color: #e6f0ff;
}

.Link a{
  margin-top: 10px;
  color: #333;
  font-size: 15px;
  line-height: 1.5;
  text-decoration: none;
}



/* BUTTON */
/* button {
  border-radius: 50px;
  background-color: white;
  font-weight: bold;
  font-size: 20px;
  padding: 16px 28px;
  display: block;
  margin: 30px auto;
  cursor: pointer;
}

button:hover {
  transform: scale(1.09);
  z-index: 2;
} */

/* CONTACT SECTION */
.contact {
  background-color: #f5f5f5;
  padding: 40px;
  border-radius: 24px;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: background-color 0.4s, color 0.4s;
}

.contact h3.heading {
  text-align: center;
  font-size: 32px;
  margin-bottom: 24px;
  color: #111;
}


.contact form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}


.contact form .input-box {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.contact form .input-box input,
textarea {
  flex: 1;
  padding: 14px 18px;
  font-size: 16px;
  border-radius: 12px;
  border: 2px solid #ccc;
  transition: all 0.3s ease;
  background-color: white;
  color: #222;
}
.input-box input:focus,
textarea:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}
textarea {
  resize: vertical;
  min-height: 150px;
}



.btn {
  align-self: flex-start;
  background-color: #007bff;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #0056b3;
}

/* FOOTER */
footer {
  padding: 1rem;
  text-align: center;
  font-weight: lighter;
  background-color: transparent;
}

footer .social-icons {
  margin-bottom: 0.5rem;
}

footer .social-icons a {
  color: #222;
  margin: 0 10px;
  font-size: 24px;
  transition: color 0.3s ease;
}

footer .social-icons a:hover {
  color: #007bff; 
  transform: scale(1.05);
  z-index: 2;
}

body.dark-mode footer .social-icons a {
  color: #ccc;
}

body.dark-mode footer .social-icons a:hover {
  color: #00aaff;
    transform: scale(1.05);
    z-index: 2;


}


/* RESPONSIVE MEDIA QUERIES */
@media screen and (max-width: 768px) {
  nav ul li {
    display: block;
    margin: 10px 0;
    text-align: center;
  }

  nav ul li a {
    font-size: 16px;
  }

  .intro-text {
    font-size: 24px;
    text-align: center;
  }

  .intro-image img {
    width: 200px;
    height: 200px;
  }

  h2 {
    font-size: 28px;
  }

  .contact h3 {
    font-size: 26px;
  }

  .Links {
    grid-template-columns: 1fr;
  }

  button {
    font-size: 18px;
  }
}

@media screen and (max-width: 480px) {
  nav ul p {
    text-align: center;
    font-size: 16px;
  }

  .intro-text {
    font-size: 20px;
    padding: 0 1rem;
  }

  .intro-image img {
    width: 140px;
    height: 140px;
  }

  h2 {
    font-size: 22px;
  }

  p {
    font-size: 15px;
  }

  .contact h3 {
    font-size: 22px;
  }

  .contact form .input-box input,
  .contact form textarea {
    font-size: 1rem;
    padding: 1rem;
  }

  footer {
    font-size: 13px;
  }

  button {
    font-size: 16px;
    padding: 12px 24px;
  }
}













/*dark modeee   */
body.dark-mode header {
  background: #121212;  /* darker */
  color: #ffffff;
}

body.dark-mode {
  background-color: #2a2a2a;  /* greyish dark */
  color: #ffffff;
}


body.dark-mode nav ul li a {
  color: #2a2a2a ; 
}

body.dark-mode nav ul li a.active {
  color: #00aaff;  /* highlight color */
  border-bottom: 2px solid #00aaff;
}

/* SECTION HEADINGS */
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
  color: #ffffff;
}

/* PARAGRAPH */
body.dark-mode p {
  color: #ffffff;
}

/* LINKS SECTION */
body.dark-mode .Link {
  background-color: #3a3a3a;
  color: #ffffff;
  border-color: #555;
}

body.dark-mode .Link a {
  color: #ffffff;
}
body.dark-mode .Link {
  background-color: #2e2e2e;
  color: #fff;
  box-shadow: 0 6px 18px rgba(255, 255, 255, 0.05);
}
body.dark-mode .Link:hover {
  background-color: #3b3b3b;
  box-shadow: 0 12px 24px rgba(255, 255, 255, 0.1);
}



/* BUTTON */
body.dark-mode button,
body.dark-mode .contact form .btn {
  background-color: #444;
  color: #ffffff;
  border: 2px solid #666;
}

/* CONTACT */
body.dark-mode .contact {
  background-color: #3b3b3b;
  color: #ffffff;
}

body.dark-mode .contact form .input-box input,
body.dark-mode .contact form textarea {
  background-color: #2a2a2a;
  color: #ffffff;
  border-color: #666;
}

body.dark-mode #typed {
  color: #ffffff;
}

/* FOOTER */
body.dark-mode footer {
  color: #ffffff;
}
.view-btn {
  margin-top: auto;
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.view-btn:hover {
  background-color: #0056b3;
}
body.dark-mode .view-btn {
  background-color: #0099ff;
  color: #fff;
}

body.dark-mode .view-btn:hover {
  background-color: #007acc;
}
body.dark-mode .contact {
  background-color: #2b2b2b;
  color: #fff;
}

body.dark-mode .contact h3.heading {
  color: #fff;
}

body.dark-mode .input-box input,
body.dark-mode textarea {
  background-color: #1c1c1c;
  color: #fff;
  border-color: #555;
}

body.dark-mode .input-box input:focus,
body.dark-mode textarea:focus {
  border-color: #00aaff;
  box-shadow: 0 0 0 3px rgba(0, 170, 255, 0.3);
}

body.dark-mode .btn {
  background-color: #00aaff;
  color: black;
}

body.dark-mode .btn:hover {
  background-color: #0088cc;
}
.resume-btn {
  display: inline-block;
  background-color: #007BFF;
  color: white;
  padding: 14px 24px;
  border-radius: 50px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  margin: 20px auto;
  text-align: center;
}

.resume-btn:hover {
  background-color: #0056b3;
  transform: scale(1.05);
}

body.dark-mode .resume-btn {
  background-color: #3399ff;
  color: #ffffff;
}

.intro-hero-wrapper {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 500px;
  overflow: hidden;
  padding: 40px 0;
}

.lottie-bg {
  position: absolute;
  top: 0;
  left: 12%;
  width: 100%;
  height: 100%;
  max-height: 500px;
  z-index: 0;
  pointer-events: none;
  opacity: 0.75; 
  object-fit: cover;
}

.intro-section {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 40px 40px;
  gap: 40px;
}

.tagline {
  margin-top: 12px;
  font-size: 20px;
  color: #555;
}

body.dark-mode .tagline {
  color: #ccc;
}






/* Navbar dropdown button in mobile screens  */
.menu-icon {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  cursor: pointer;
  font-size: 22px;
  color: #111;
  transition: all 0.25s ease;
}

.menu-icon:hover {
  background: rgba(0, 0, 0, 0.12);
  transform: scale(1.05);
}

body.dark-mode .menu-icon {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

body.dark-mode .menu-icon:hover {
  background: rgba(255, 255, 255, 0.15);
}


body.dark-mode .menu-icon {
  color: white;
}

.nav-links {
  display: flex;
  flex-direction: row;
  list-style: none;
  gap: 40px;
}

@media screen and (max-width: 768px) {
  .menu-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 1001;
  }
}


@media screen and (max-width: 768px) {
  .profile-container {
    width: 200px;
    height: 200px;
  }
}

@media screen and (max-width: 480px) {
  .profile-container {
    width: 140px;
    height: 140px;
  }
}


@media screen and (max-width: 768px) {
  #theme-toggle {
    margin-right: 0;
    position: absolute;
    top: 16px;
    right: 16px;
  }
}



  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 20px;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 10px;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }

  body.dark-mode .nav-links {
    background: #2a2a2a;
  }

  .nav-links.show {
    display: flex;
  }

  nav ul li {
    margin: 10px 0;
        color: whitesmoke;

  }
body.dark-mode .nav-links a {
  color: white;
}

body.dark-mode .nav-links {
  background-color: #2a2a2a;
  border: 1px solid #444;
}

body.dark-mode .nav-links a:hover {
  color: #00aaff;
}






  


