/* GENERAL */
@import url("https://fonts.googleapis.com/css2?family=Ubuntu:wght@400;600;700&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  font-family: "Ubuntu", sans-serif;
  margin: 0;
  height: 100vh;
  background-color: #4158d0;
  color: #00000090;
}

.row {
  display: flex;
  flex-wrap: wrap;
  padding: 0 4px;
}

.column {
  flex: 25%;
  max-width: 25%;
  padding: 0 4px;
}

.column img {
  margin-top: 8px;
  vertical-align: middle;
}

@media (max-width: 800px) {
  .column {
    flex: 50%;
    max-width: 50%;
  }
}

@media (max-width: 600px) {
  .column {
    flex: 100%;
    max-width: 100%;
  }
}

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");

* {
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  background-color: #c1bc3c;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

p {
  color: rgb(85, 85, 85);
}

/* TRANSITION */

a,
.btn {
  transition: all 300ms ease;
}

/* DESKTOP NAV */

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 3rem;
  background: linear-gradient(90deg, #3a7ca5, #1c3d5a);
  color: white;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  transition: all 0.3s ease-in-out;
}

/* Logo */
.logo {
  font-size: 1.6rem;
  font-weight: 600;
}

/* Desktop Menu */
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  position: relative;
}

.nav-links a {
  text-decoration: none;
  color: white;
  padding: 8px 12px;
  border-radius: 30px;
  transition: all 0.3s ease;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  background: #1c3d5a;
  min-width: 200px;
  top: 40px;
  border-radius: 10px;
  flex-direction: column;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.dropdown-content a {
  padding: 10px 15px;
  display: block;
  color: white;
  border-radius: 0;
}

.dropdown-content a:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Active dropdown (on click) */
.dropdown.active .dropdown-content {
  display: flex;
}

/* Hamburger Icon */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  height: 3px;
  width: 25px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  list-style: none;
  background: #1c3d5a;
  position: fixed;
  top: 70px;
  right: 0;
  width: 60%;
  max-width: 300px;
  padding: 2rem 1rem;
  border-radius: 10px 0 0 10px;
  box-shadow: -2px 2px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  z-index: 999;
}

.mobile-menu li {
  margin-bottom: 1.5rem;
}

.mobile-menu li a {
  color: white;
  font-size: 1.2rem;
}

/* Mobile Dropdown */
.mobile-dropdown {
  margin-bottom: 1.5rem;
}

.mobile-dropdown-btn {
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  display: block;
}

.mobile-dropdown-content {
  display: none;
  flex-direction: column;
  margin-top: 0.5rem;
  margin-left: 1rem;
}

.mobile-dropdown-content a {
  color: white;
  font-size: 1rem;
  margin: 5px 0;
}

/* Hamburger Open Animation */
.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Show mobile menu when active */
.mobile-menu.active {
  display: flex;
}

/* Responsive */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .hamburger {
    display: flex;
  }
}

/* SECTIONS */
section {
  padding-top: 4vh;
  height: 96vh;
  margin: 0 10rem;
  box-sizing: border-box;
  min-height: fit-content;
}

.section-container {
  display: flex;
}
/* ================= PROFILE SECTION ================= */

#profile {
  display: flex;
  flex-wrap: wrap; /* Allow stacking on small screens */
  justify-content: center;
  align-items: center;
  gap: 3rem;
  padding: 6rem 2rem 4rem; /* top, sides, bottom */
  /* Keep your current background, no changes */
  color: #1c3d5a; /* text color similar to navbar dark blue */
}

.section__pic-container {
  flex: 1 1 300px; /* grow/shrink, min width */
  max-width: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.section__pic-container img {
  width: 100%;
  height: auto;
  max-width: 400px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(28, 61, 90, 0.3); /* subtle border matching navbar theme */
}

.section__text {
  flex: 1 1 300px;
  max-width: 600px;
  text-align: center;
}

.section__text__p1 {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #3a7ca5; /* lighter blue for “Hello, I'm” */
}

.title {
  font-size: 3rem;
  font-weight: 700;
  margin: 0.5rem 0 1rem;
  color: #1c3d5a; /* navbar dark blue */
}

.section__text__p2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
  color: #3a7ca5; /* navbar gradient secondary color */
}

.section__text p {
  font-weight: 400;
  line-height: 1.6;
  text-align: justify;
  color: #333; /* dark gray for readability */
}

/* BUTTONS */
.btn-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.btn {
  padding: 0.8rem 1.8rem;
  font-weight: 600;
  border-radius: 25px;

  background: transparent;
  color: #1c3d5a; /* text color matches navbar */
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:hover {
  background: #1c3d5a; /* dark blue hover */
  color: #ffffff; /* white text on hover */
}

/* SOCIAL ICONS */
#socials-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.icon {
  width: 2.2rem;
  height: 2.2rem;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.icon:hover {
  transform: scale(1.2);
  opacity: 0.8;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  #profile {
    gap: 2rem;
    padding: 5rem 1.5rem 3rem;
  }

  .title {
    font-size: 2.5rem;
  }

  .section__text__p2 {
    font-size: 1.3rem;
  }
}

@media (max-width: 768px) {
  #profile {
    flex-direction: column;
    padding: 4rem 1rem 2rem;
    margin-top: 30px;
  }

  .section__pic-container {
    max-width: 300px;
  }

  .title {
    font-size: 2rem;
  }

  .section__text__p2 {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .title {
    font-size: 1.7rem;
  }
  .section__text__p1 {
    margin-top: 50px;
  }

  .section__text__p2 {
    font-size: 1rem;
  }

  .btn {
    padding: 0.6rem 1.4rem;
    font-size: 0.9rem;
  }
  #profile {
    margin-top: 50px;
  }
}

/* BUTTONS */

.btn-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn {
  font-weight: 600;
  transition: all 300ms ease;
  padding: 1rem;
  width: 8rem;
  border-radius: 2rem;
}

/* .btn-color-1,
.btn-color-2 {
  border: linear-gradient(90deg, #3a7ca5, #1c3d5a) 0.1rem solid;
} */

.btn-color-1:hover,
.btn-color-2:hover {
  cursor: pointer;
}

.btn-color-1,
.btn-color-2:hover {
  background: linear-gradient(90deg, #3a7ca5, #1c3d5a);
  color: white;
  border: 2px solid #3a7ca5;
}

.btn-color-1:hover {
  background: linear-gradient(90deg, #1c3d5a, #3a7ca5);
}

.btn-color-2 {
  background: none;
  border: 2px solid #1c3d5a;
}

.btn-color-2:hover {
  border: rgb(255, 255, 255) 0.1rem solid;
}

.btn-container {
  gap: 1rem;
}

/* ================= ABOUT SECTION ================= */
#about-section {
  padding: 0rem 2rem 0rem;
  color: #1c3d5a; /* navbar dark blue */
}

/* Section Heading */
.heading__subtitle {
  font-size: 1.5rem;
  font-weight: 500;
  text-align: center;
  color: #3a7ca5; /* lighter navbar blue */
  margin-bottom: 0.5rem;
}

.heading_title {
  font-size: 2.8rem;
  font-weight: 700;
  text-align: center;
  color: #1c3d5a;
  margin-bottom: 2rem;
}

/* Container */
.about-section__container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 3rem;
  flex-wrap: wrap; /* stack on small screens */
}

/* Profile picture */
.about-section__pic-container {
  flex: 1 1 250px;
  display: flex;
  justify-content: center;
}

.about-section__pic {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 20px;
  border: 3px solid rgba(28, 61, 90, 0.3); /* subtle border matching navbar */
  object-fit: cover;
}

/* Details wrapper */
.about-section__details-wrapper {
  flex: 2 1 400px;
  display: flex;
  justify-content: center;
}

/* Cards container */
.about-section__cards-container {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Individual Card */
.about-section__card {
  flex: 1 1 200px;
  background-color: rgb(217, 217, 217);
  border-radius: 20px;
  padding: 1.5rem 1rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-section__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* Card icon */
.about-section__icon {
  width: 50px;
  height: 50px;
  margin-bottom: 1rem;
}

/* Card headings & paragraph */
.about-section__card h3 {
  color: #1c3d5a;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.about-section__card p {
  color: #3a7ca5;
  font-size: 1rem;
  line-height: 1.5;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .about-section__container {
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .about-section__container {
    flex-direction: column;
    align-items: center;
  }

  .about-section__cards-container {
    flex-direction: column;
    gap: 1.5rem;
  }

  .about-section__pic {
    max-width: 180px;
  }
}

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

  .about-section__subtitle {
    font-size: 1.2rem;
  }

  .about-section__card h3 {
    font-size: 1.1rem;
  }

  .about-section__card p {
    font-size: 0.95rem;
  }
}

/* EXPERIENCE SECTION */

#experience {
  position: relative;
}

.experience-sub-title {
  color: rgb(85, 85, 85);
  font-weight: 600;
  font-size: 1.75rem;
  margin-bottom: 2rem;
}

.experience-details-container {
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.article-container {
  display: flex;
  text-align: initial;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 2.5rem;
  justify-content: space-around;
  font-size: 12px;
}

article {
  display: flex;
  width: 10rem;
  justify-content: space-around;
  gap: 0.5rem;
}

article .icon {
  cursor: default;
}

/* PROJECTS SECTION */

#projects {
  position: relative;
}

.color-container {
  border-color: rgb(163, 163, 163);
  background: rgb(250, 250, 250);
}

.project-img {
  border-radius: 2rem;
  width: 90%;
  height: 90%;
}

.project-title {
  margin: 1rem;
  color: black;
}

.project-btn {
  color: black;
  border-color: rgb(163, 163, 163);
}

/* Container */
.container-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* Card */
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease;
}

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

/* Image wrapper for fixed ratio */
.card .img-wrapper {
  width: 100%;
  aspect-ratio: 3 / 4; /* ek poster style ratio: portrait look */
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid #e0e0e0;
}

/* Image styling */
.card img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

/* Title */
.card h3 {
  font-size: 18px;
  font-weight: 600;
  color: #222;
  margin: 12px 10px 4px;
}

.card h3.clickable:hover {
  text-decoration: underline; /* or change color */
  color: #333; /* highlight on hover */
}

/* Publish Date */
.card p {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
}
.card .img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid #e0e0e0;
}

/* Background blurred image */
.card .img-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--bg); /* yeh line add karo */
  background-size: cover;
  background-position: center;
  filter: blur(20px);
  transform: scale(1.2);
  z-index: 1;
}

/* Foreground (actual book cover) */
.card .img-wrapper img {
  position: relative;
  z-index: 2;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.sg-header-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; /* Responsive wrap */
  gap: 15px;
  padding: 10px 20px;
}

/* Heading */
.sg-heading {
  font-size: 24px;
  margin: 0;
  color: #222;
  flex: 1;
}

/* Button container */
.sg-button-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Base button */
.sg-btn {
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: inline-block;
}

/* Facebook button */
.sg-fb-btn {
  background: #1877f2;
}
/* YouTube button */
.sg-yt-btn {
  background: #ff0000; /* YouTube Red */
}

/* NSPP button */
.sg-site-btn {
  background: #28a745;
}

/* Hover animation */
.sg-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Responsive: stack on small screens */
@media (max-width: 600px) {
  .sg-header-section {
    flex-direction: column;
    align-items: flex-start;
  }

  .sg-button-group {
    width: 100%;
  }

  .sg-btn {
    flex: 1;
    text-align: center;
  }
}
/* //////////////// */
.special-gallery {
  display: flex;
  gap: 20px; /* Space between columns */
  margin-top: 50px;
  align-items: stretch; /* Ensures equal height columns */
}

.left-column,
.right-column {
  flex: 1; /* Equal width */
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.left-column img {
  flex: 1; /* Each image takes half of column height */
  object-fit: cover; /* Crop to fit nicely */
  width: 100%;
  border-radius: 10px;
}

.right-column img {
  height: 100%; /* Fill full column height */
  object-fit: cover;
  width: 100%;
  border-radius: 10px;
}

/* Responsive for mobile: stack images */
@media (max-width: 768px) {
  .special-gallery {
    flex-direction: column;
  }
  .left-column,
  .right-column {
    flex: unset;
  }
  .right-column img {
    height: auto;
  }
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: auto;
  grid-auto-flow: dense;
  gap: 6px;
}
.rtmes {
  display: grid;
  grid-template-columns: repeat(2);
  grid-auto-rows: auto;
  grid-auto-flow: dense;
  gap: 6px;
}
.rtmes img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

img.four-grid-cells {
  grid-row: span 2 / auto;
  grid-column: span 2 / auto;
}

img.wide-image {
  grid-column: span 2 / auto;
}
body {
  font-family: Arial, sans-serif;
  background-color: #dfb45d;
  margin: 0;
  /* padding: 20px; */
}
.container {
  max-width: 85%;
  margin: 0 auto;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  background-color: rgb(217, 217, 217);
}
h2 {
  text-align: center;
  color: #333;
}
.timeline {
  position: relative;
  padding: 20px 0;
}
.timeline-item {
  margin-bottom: 20px;
  padding-left: 20px;
  border-left: 3px solid #3a7ca5;
  /* border-left: 3px solid #1c3d5a;; */
}
.timeline-item h3 {
  margin: 0;
  font-size: 18px;
  color: #3a7ca5;
}
.timeline-item h2 {
  margin: 0;
  font-size: 30px;
  color: #003153;
}
.timeline-item p {
  margin: 5px 0 0;
  color: #555;
}
.image-row {
  display: flex;
  flex-wrap: wrap; /* line break allow karega */
  justify-content: center;
  gap: 20px; /* Space between images */
  margin-top: 50px;
}

.image-row img {
  width: 100%; /* By default (mobile) 1 image per row */
  height: auto;
  border-radius: 10px;
}

/* Laptop/Desktop view (min-width: 768px ya jahan aap chahen) */
@media (min-width: 768px) {
  .image-row img {
    width: 48%; /* 2 images per row */
  }
}

.pub-subtitle {
  text-align: center;
  font-size: 24px;
  color: #3a7ca5;
  margin: 10px 0px;
}

@media (max-width: 600px) {
  .pub-subtitle {
    font-size: 18px;
  }
}
/* ////////////////////////LAst Section ////////////////////// */
/* Contact Section */
.contact-section {
  padding: 40px 20px;
  margin: 30px 0px;
  text-align: center;
  background: linear-gradient(90deg, #7196af, rgb(217, 217, 217));
  border: 1px solid #ccc;
  border-radius: 20px;
}

.contact-section .subtitle {
  font-size: 18px;
  color: #222;
  margin-bottom: 10px;
}

.contact-section .title {
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: #1c3d5a;
}

.contact-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  background: rgb(217, 217, 217);
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease-in-out;
}

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

.contact-item a {
  text-decoration: none;
  color: #1c3d5a;
  font-weight: 600;
  word-break: break-word; /* prevents email overflow */
}

.contact-item a:hover {
  color: #3a7ca5;
}

.contact-icon {
  width: 28px;
  height: 28px;
}

/* ✅ Mobile Responsive */
@media (max-width: 768px) {
  .contact-grid {
    flex-direction: column; /* stack vertically */
    align-items: center;
  }

  .contact-item {
    width: 100%;
    max-width: 350px; /* keeps it neat */
    justify-content: center;
  }

  .contact-section .title {
    font-size: 1.8rem;
  }

  .contact-section .subtitle {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .contact-item {
    font-size: 12px;
    padding: 5px 10px;
  }

  .contact-icon {
    width: 22px;
    height: 24px;
  }
}
/* Footer */
.footer {
  background: linear-gradient(90deg, #3a7ca5, #1c3d5a);
  color: #fff;
  padding: 30px 20px;
  text-align: center;
  position: relative;
}

.footer-container {
  max-width: 1100px;
  margin: auto;
}

/* Navigation */
.footer-nav ul {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

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

.footer-nav a:hover {
  color: #dfb45d;
  border-bottom: 2px solid #dfb45d;
  padding-bottom: 2px;
}

/* Divider */
.footer-divider {
  width: 80%;
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
  margin: 10px auto 20px;
}

/* Copyright */
.footer p {
  font-size: 14px;
  color: #ffffff;
  opacity: 0.85;
}

.footer p span {
  font-weight: 600;
  color: #fff;
}

/* ✅ Responsive */
@media (max-width: 768px) {
  .footer-nav ul {
    gap: 15px;
  }

  .footer p {
    font-size: 13px;
  }
}
