/* ========== Base / Reset ========== */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  animation: height 1s ease-in-out;
}
@keyframes height { 
  from { height: 0; } 
  to { height: 100%; } 
}

body {
  font-family: 'Poppins', 'Inter', sans-serif;
  background-color: #f8f9fa;
  color: #222;
  display: flex;          /* sticky footer */
  flex-direction: column; /* sticky footer */
  background-image: url('https://cdn.wallpapersafari.com/71/84/CpYJ4u.jpg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}



/* ========== Header & Navbar ========== */
.header {
  background: #6b21a8cb;
  padding: 1.9rem 2rem;
  position: relative;
  box-shadow: 0 3px 10px rgba(119, 2, 148, 0.623);
  border-bottom: #6b21a8 1px solid;
}

.navbar {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.navbar a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding: 0.2rem 1rem;
  transition: color .25s ease, border-color .25s ease, opacity .25s ease;
  opacity: .95;
  border-radius: 30px;

}
.navbar a:hover { color: #8c00ff; opacity: 1; background-color: #ccabff;}
.navbar a.active { border-bottom: 2px solid #be6fff; border-radius: 0px; }

.menu-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: #fff;
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1001;
}

/* ========== Section Layout ========== */
.section {
  padding: 3rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: #8c00ff;
  margin: 0 0 1rem 0;
  letter-spacing: .2px;
}

/* ========== Card System ========== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.card {
  background: #ffffff5a;
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 10px 26px rgba(0,0,0,.08);
  border: 1px solid rgba(107,33,168,.08);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(0,0,0,.12);
}

.card--accent {
  border: 1px solid rgba(255,215,0,.45);
  box-shadow: 0 10px 26px rgba(255,215,0,.12);
}

.card h1, .card h2, .card h3, .card h4, .card p { margin: 0 0 .75rem 0; }
.card p:last-child { margin-bottom: 0; }

.card-wrap {
  max-width: 900px;
  margin: 0 auto;
}

/* ========== Auto Card for Paragraphs ========== */
p {
  background: #ffffffa1;
  padding: 1rem 1.25rem;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  border: 1px solid rgba(107,33,168,.08);
  margin: 1rem 0;
  line-height: 1.7;
  transition: transform .2s ease, box-shadow .2s ease;
  border-radius: 15px;
}
.home-text p{
    border-radius: 50px 50px 50px 0px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}
p:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 14px rgba(0,0,0,.08);
}

/* ========== Home Section ========== */
.home-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: auto;
}

.home-text {
  flex: 1 1 520px;
 
}
h1 {
  font-size: 4rem;
  font-weight: 800;
  margin: 0 0 .75rem 0;
  color: #8c00ff;
  filter: drop-shadow(5px 10px 5px rgba(0, 0, 0, 0.447));
}

.home-img {
  flex: 0 0 320px;
}
.home-img img {
  width: 80%;
  display: block;
  border-radius: 18px;
  box-shadow: 0px 16px 15px rgba(0,0,0,0.1);
  transition: 0.5s;
  object-fit: fill;
}
.home-img img:hover{
    transition: 0.5s;
    transform: translateY(-13px);
    max-width: 310px;
    box-shadow: 0px 20px 40px rgba(0, 0, 0, 0.767);
}



/* ========== Footer ========== */
footer {
  text-align: center;
  padding: 1.4rem;
  background: #6b21a8c4;
  color: #fff;
  box-shadow: #333 0px 0px 8px;
}
footer a {
  color: #fff;
  margin-left: .5rem;
  font-size: 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity .25s ease, transform .25s ease;
  text-decoration: none;
}
footer a:hover { opacity: .9; transform: translateY(-2px); }

/* ========== Animations ========== */
.reveal-up { animation: revealUp .6s ease both; }
@keyframes revealUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== Mobile ========== */
@media (max-width: 900px) {
  .home-section { gap: 1.25rem; }
  .home-text h1 { font-size: 2.25rem; }
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #6b21a8;
    display: none;
    z-index: 1000;
    padding: .75rem 0 1rem;
  }
  .navbar.show { display: flex; animation: fadeDown .25s ease; }
  @keyframes fadeDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .menu-toggle { display: block; }

  .home-section {
    flex-direction: column;
    text-align: center;
    padding-top: 2rem;
  }

  .home-img { width: 100%; }
  .home-img img { margin: 0 auto; }
  .home-text p{
    border-radius: 12px;
}
}

@media (max-width: 420px) {
  .section { padding: 2rem 1rem; }
  .home-text h1 { font-size: 2rem; }
}

/* Container for main pages */
.container {
  max-width: 900px;
  width: 100%;
  margin: 3rem auto;
  padding: 0 1rem;
}

/* Heading */
.container h1 {
  font-weight: 800;
  font-size: 2.5rem;
  color: #8c00ff;
  filter: drop-shadow(0px 10px 5px rgba(0, 0, 0, 0.447));
  margin-bottom: 2rem;
  text-align: center;
}


/* Education Card Design */
.card2 {
  background: #ffffff82;
  border-radius: 1rem;
  box-shadow: 0 12px 30px rgba(124, 58, 237, 0.15);
  padding: 2rem 2.5rem;
  margin-bottom: 2rem;
  color: #433c5a;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card2:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(124, 58, 237, 0.25);
}

.card2 h3 {
  font-weight: 700;
  color: #7c3aed;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.card2 time {
  font-size: 0.9rem;
  color: #a78bfa;
  font-weight: 500;
  margin-bottom: 1rem;
  display: block;
}

.card2 h4 {
  font-weight: 600;
  color: #5b21b6;
  margin-bottom: 0.75rem;
  list-style: inside disc;
}

.card2 p {
  line-height: 1.6;
  font-size: 1rem;
  color: #6b7280;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .container h1 {
    font-size: 2rem;
  }
  .card2 {
    padding: 1.5rem 1.75rem;
  }
}

#profile img {
  max-width: 20%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  object-position:center;
}

.gallery-item img{
    width: 200px;
    height: auto;
    display: flex;
    justify-self: center;
    transition: 0.8s;
}
.gallery-item img:hover {
    transform: scale(1.05);
    transition: transform 0.5s ease;
}