/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

body {
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  color: #0f172a;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* ================= NAVBAR FIX ================= */
nav {
  margin: 0;
  padding-left: 20px;
  padding-right: 20px;
}

/* ================= CONTAINER ================= */
#content {
  width: 100%;
  max-width: 100%;
  margin: 20px 0;
  padding: 0 20px;
}

/* ================= USER CARD ================= */
.user-card {
  position: relative;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: white;
  padding: 50px 60px;
  border-radius: 24px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  max-width: 100%;
  margin: 20px 0;
  box-shadow: 0 25px 60px rgba(0,0,0,0.35);
  overflow: hidden;
  transition: 0.3s ease;
}

.user-card:hover {
  transform: translateY(-4px);
}

/* Glow Effect */
.user-card::after {
  content: "";
  position: absolute;
  top: -60%;
  right: -40%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(56,189,248,0.25), transparent 70%);
}

/* ================= USER TEXT ================= */
.user-left {
  max-width: 70%;
}

.user-left h1 {
  font-size: 24px;
  font-weight: 500;
  color: #cbd5e1;
}

.user-left h2 {
  font-size: 38px;
  margin: 10px 0;
  color: #38bdf8;
}

.user-left p {
  color: #94a3b8;
  margin-top: 5px;
}

/* ================= FLOATING PROFILE ================= */
.profile-avatar {
  position: absolute;
  top: -35px;
  right: 30px;
  background: white;
  padding: 6px;
  border-radius: 50%;
  box-shadow: 0 12px 25px rgba(0,0,0,0.25);
}

.profile-avatar img {
  width: 95px;
  height: 95px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #38bdf8;
}

/* ================= BUTTONS ================= */
.btn-group {
  margin-top: 20px;
  display: flex;
  gap: 15px;
}

.primary-btn {
  padding: 12px 28px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  background: linear-gradient(45deg, #00baf2, #0070ba);
  color: white;
  transition: 0.3s;
}

.primary-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 20px rgba(0,186,242,0.4);
}

/* ================= SECTIONS ================= */
.section {
  margin-top: 50px;
}

.section h3 {
  margin-bottom: 25px;
  font-size: 20px;
  font-weight: 600;
  text-align: center;   /* 👈 Center */
  position: relative;
}

/* ================= GRID ================= */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 25px;
}

/* ================= GLASS CARDS ================= */
.card-btn {
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(12px);
  padding: 35px 20px;
  text-align: center;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transition: 0.3s;
  cursor: pointer;
}

.card-btn:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.card-btn i {
  font-size: 28px;
  margin-bottom: 10px;
  color: #2563eb;
}

.card-btn span {
  display: block;
  margin-top: 5px;
  font-size: 14px;
  font-weight: 500;
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {

  #content {
    padding: 0 12px;
  }

  .user-card {
    padding: 30px 25px;
  }

  .profile-avatar {
    top: -30px;
    right: 15px;
  }

  .profile-avatar img {
    width: 65px;
    height: 65px;
  }

  .btn-group {
    flex-direction: column;
    width: 100%;
  }

  .primary-btn {
    width: 100%;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .card-btn {
    padding: 25px 10px;
  }
}

/* ================= LARGE DESKTOP ================= */
@media (min-width: 1400px) {
  .grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
/* ==== USER CARD FIX ==== */

/* ================= USER CARD ================= */
.user-card {
  position: relative;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: white;
  padding: 40px 50px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 20px 0;
  box-shadow: 0 25px 60px rgba(0,0,0,0.35);
  overflow: visible;
  animation: cardFade 0.8s ease;
}

/* Card entry animation */
@keyframes cardFade {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* subtle animated glow */
.user-card::after {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(56,189,248,0.18), transparent 70%);
  animation: glowMove 6s infinite linear;
}

@keyframes glowMove {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Profile */
.profile-avatar {
  position: absolute;
  top: 20px;
  right: 25px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255,255,255,0.2);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  z-index: 5;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@keyframes profilePop {
  from {
    transform: scale(0.6);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
/* RIGHT SIDE INFO – PREMIUM FLOAT */
.user-right {
  position: absolute;
  bottom: 25px;        /* 👈 Neeche shift */
  right: 30px;
  display: flex;
  gap: 14px;
  animation: fadeUp 0.9s ease;
}

/* mini cards */
.mini-box {
  background: rgba(255,255,255,0.08);
  padding: 14px 18px;
  border-radius: 14px;
  backdrop-filter: blur(10px);
  text-align: center;
  min-width: 110px;
  transition: 0.3s ease;
}

/* hover animation */
.mini-box:hover {
  transform: translateY(-4px) scale(1.05);
  background: rgba(255,255,255,0.12);
}

/* text */
.mini-box span {
  font-size: 12px;
  color: #94a3b8;
  display: block;
}

.mini-box strong {
  font-size: 16px;
  color: #38bdf8;
}

@keyframes fadeRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.mini-box {
  background: rgba(255,255,255,0.08);
  padding: 14px 18px;
  border-radius: 14px;
  backdrop-filter: blur(6px);
  text-align: center;
}

.mini-box span {
  font-size: 12px;
  color: #94a3b8;
  display: block;
}

.mini-box strong {
  font-size: 16px;
  color: #38bdf8;
}

/* Mobile */
@media (max-width: 768px) {

  .profile-avatar {
    top: -25px;
    right: 15px;
  }

  .profile-avatar img {
    width: 60px;
    height: 60px;
  }

  .user-right {
    display: none;
  }

}
@media (max-width: 768px) {

  .user-right {
    position: static;
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
  }

  .mini-box {
    flex: 1;
    min-width: 30%;
    padding: 10px;
  }
}
@media (max-width: 768px) {

  /* USER CARD vertical ho jaye */
  .user-card {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 20px;
  }

  /* PROFILE */
  .profile-avatar {
    top: -25px;
    right: 15px;
  }

  .profile-avatar img {
    width: 60px;
    height: 60px;
  }

  /* 🔥 IMPORTANT — remove floating behaviour */
  .user-right {
    position: relative;     /* was absolute */
    bottom: auto;
    right: auto;
    margin-top: 20px;

    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 8px;
  }

  /* MINI BOX responsive */
  .mini-box {
    flex: 1;
    padding: 10px 8px;
    min-width: unset;
  }

  .mini-box span {
    font-size: 11px;
  }

  .mini-box strong {
    font-size: 14px;
  }

}
/* ================= FOOTER ================= */

/* ================= FOOTER ================= */

/* ================= FOOTER ================= */

.main-footer {
  background: linear-gradient(135deg, #0f172a, #020617);
  color: #e2e8f0;
  margin-top: 60px;
  padding-top: 50px;
}

/* 4 Proper Columns Layout */
.footer-container {
  display: flex;              /* GRID hata diya */
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: auto;
  padding: 0 20px 40px;
  gap: 40px;
}
.footer-box {
  flex: 1;            /* 4 equal columns */
  min-width: 0;       /* overflow fix */
}
/* Headings */
.footer-box h3 {
  margin-bottom: 18px;
  color: #38bdf8;
  font-size: 18px;
  font-weight: 600;
}

/* Paragraph */
.footer-box p {
  font-size: 14px;
  line-height: 1.7;
  color: #94a3b8;
}

/* List */
.footer-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-box ul li {
  margin-bottom: 12px;
}

/* Links */
.footer-box ul li a {
  text-decoration: none;
  color: #cbd5e1;
  font-size: 14px;
  transition: all 0.3s ease;
}

.footer-box ul li a:hover {
  color: #38bdf8;
  padding-left: 6px;
}

/* Social icons */
.footer-box .social-icons {
  margin-top: 15px;
  display: flex;
  gap: 15px;
}

.footer-box .social-icons a {
  color: #38bdf8;
  font-size: 18px;
  transition: 0.3s;
}

.footer-box .social-icons a:hover {
  transform: scale(1.2);
}

/* Bottom Bar */
.footer-bottom {
  text-align: center;
  padding: 18px;
  background: #020617;
  font-size: 14px;
  color: #64748b;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* ================= RESPONSIVE ================= */
/* ================= MOBILE FOOTER FIX ================= */

@media (max-width: 768px) {

  .footer-container {
    display: flex !important;
    flex-direction: column;
    gap: 35px;
    padding: 0 25px 40px;
  }

  .footer-box {
    width: 100%;
  }

  .footer-box h3 {
    font-size: 18px;
    margin-bottom: 15px;
  }

  .footer-box ul li {
    margin-bottom: 10px;
  }

  /* Social media section */
  .social-box {
    margin-top: 10px;
  }

  .social-box .social-icons {
    display: flex;
    justify-content: flex-start;
    gap: 18px;
    margin-top: 12px;
  }

  /* Bottom copyright */
  .footer-bottom {
    text-align: center;
    font-size: 13px;
    padding: 18px 10px;
  }
}