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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, #f6f8fb, #e2ecf9);
  color: #222;
  line-height: 1.6;
  overflow-x: hidden;
}

/* =======================
   HEADER & NAVBAR
======================= */
header {
  background: rgba(25, 25, 25, 0.85);
  backdrop-filter: blur(10px);
  color: #fff;
  padding: 15px 40px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

.prema {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.rahul img {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  border: 2px solid #ffb703;
  transition: transform 0.3s ease;
}

.rahul img:hover {
  transform: rotate(10deg) scale(1.1);
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffb703;
  letter-spacing: 1px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
}

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

.nav-links li a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #ffb703;
  transition: 0.3s ease;
}

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

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

/* =======================
   SECTION BASE
======================= */
.section {
  padding: 100px 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: 50px;
  position: relative;
}

.section:nth-child(even) {
  flex-direction: row-reverse; /* Alternate image alignment */
}

.section img {
  border-radius: 20px;
  width: 400px;
  height: auto;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  transition: transform 0.4s ease;
}

.section img:hover {
  transform: scale(1.05);
}

.section .home-content,
.section .about-content,
.section .project-content {
  flex: 1;
  min-width: 320px;
}

.section h1,
.section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.section p {
  font-size: 1.05rem;
  margin-bottom: 10px;
  opacity: 0.95;
}

/* =======================
   INDIVIDUAL SECTIONS
======================= */
#home {
  background: linear-gradient(135deg, #0077b6, #00b4d8, #90e0ef);
  color: #fff;
}

#about {
  background: linear-gradient(135deg, #edf2fb, #e2eafc);
  color: #333;
}

#project {
  background: linear-gradient(135deg, #03045e, #0077b6, #00b4d8);
  color: #fff;
}

#contact {
  background: linear-gradient(135deg, #e2ecf9, #f0f4ff);
  color: #222;
  text-align: center;
  padding: 100px 20px;
}

/* =======================
   BUTTON STYLES
======================= */
.btn {
  display: inline-block;
  padding: 12px 25px;
  background: #ffb703;
  color: #000;
  font-weight: 600;
  text-decoration: none;
  border-radius: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(255, 183, 3, 0.4);
}

.btn:hover {
  background: #fb8500;
  color: #fff;
  transform: translateY(-3px);
}

/* =======================
   CONTACT SECTION
======================= */
#contact h1 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #1d3557;
}

#contact p {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

#contact a {
  color: #0077b6;
  text-decoration: none;
  transition: color 0.3s ease;
}

#contact a:hover {
  color: #fb8500;
}

/* =======================
   FOOTER
======================= */
footer {
  background-color: #1d3557;
  color: white;
  text-align: center;
  padding: 15px 0;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

/* =======================
   ANIMATIONS
======================= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section {
  animation: fadeInUp 1s ease both;
}

/* =======================
   RESPONSIVE DESIGN
======================= */
@media (max-width: 900px) {
  .section {
    flex-direction: column;
    text-align: center;
    padding: 70px 20px;
  }

  .section:nth-child(even) {
    flex-direction: column; /* Disable alternate flip on mobile */
  }

  .section img {
    width: 90%;
    max-width: 350px;
  }

  .section h1, .section h2 {
    font-size: 1.6rem;
  }
}
/* =======================
   CONTACT SECTION FORMAT
======================= */
.contact-section {
  background: linear-gradient(135deg, #eaf2ff, #f8fbff);
  padding: 100px 40px;
  text-align: center;
}

.contact-section h2 {
  font-size: 2rem;
  color: #1d3557;
  margin-bottom: 40px;
  position: relative;
}

.contact-section h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: #ffb703;
  margin: 10px auto 0;
  border-radius: 10px;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  gap: 25px;
  max-width: 900px;
  margin: auto;
}

.contact-card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  padding: 25px 30px;
  width: 230px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.contact-card h3 {
  font-size: 1.2rem;
  color: #0077b6;
  margin-bottom: 8px;
}

.contact-card p {
  font-size: 1rem;
  color: #333;
}

.contact-card a {
  color: #0077b6;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.contact-card a:hover {
  color: #fb8500;
}

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

  .contact-card {
    width: 90%;
  }
}
/* ======= Fix for Home Section Heading ======= */
#home .home-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

#home .home-content h1 {
  order: -1; /* Moves the heading above the image */
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin-bottom: 20px;
}

#home .home-image img {
  display: block;
  margin: 0 auto;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.jpg{
  text-align: center;
}
footer {
  background-color: #1d3557;
  color: white;
  text-align: center;
  padding: 15px 0;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}