/* ===========================
   LAYOUT & GLOBAL
=========================== */
html,
body {
  min-height: 100%;
  overflow-x: hidden; /* Prevent horizontal scroll */
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* matches your navbar height */
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: 'Poppins', sans-serif;
  /* Space for fixed navbar (adjust if needed) */
  padding-top: 80px;
}

main {
  flex: 1; /* Pushes footer to bottom */
}

section, div[id] {
    scroll-margin-top: 90px;
}

/* ===========================
   NAVBAR – FIXED ON TOP
=========================== */
.navbar {
  position: fixed;      /* always on top */
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;        /* higher than any section */
  background-color: #ffffff;
  
}

/* Optional nav link styling */
.navbar .nav-link {
  font-weight: 400;
  font-size:13px;
}

.navbar .nav-link:hover {
  color: #0d6efd;
}

/* ===========================
   ANCHOR SCROLL OFFSET
   (extra safety with fixed navbar)
=========================== */
section {
  scroll-margin-top: 90px; /* a bit more than padding-top */
} 

/* ============================================================
   FOOTER (Dynamic + Modern) — for .footer-modern markup you shared
============================================================ */

/* Theme tokens (easy to tweak) */
:root{
  --f-bg1:#0b1220;
  --f-bg2:#070b14;
  --f-text:rgba(233,238,252,.86);
  --f-muted:rgba(233,238,252,.65);
  --f-border:rgba(255,255,255,.12);

  --f-accent1:#0d6efd;   /* blue */
  --f-accent2:#20c997;   /* teal */
  --f-accent3:#ffc107;   /* amber */
  --f-accent4:#dc3545;   /* red */

  --f-radius:18px;
  --f-pill:14px;
  --f-shadow:0 18px 45px rgba(0,0,0,.35);
  --f-glass:rgba(255,255,255,.06);
}

/* Wrapper */
.footer-modern{
  position:relative;
  overflow:hidden;
  color:var(--f-text);
  background:
    radial-gradient(900px 480px at 15% 15%, rgba(13,110,253,.22), transparent 60%),
    radial-gradient(800px 420px at 90% 25%, rgba(32,201,151,.14), transparent 60%),
    radial-gradient(700px 380px at 70% 95%, rgba(255,193,7,.10), transparent 55%),
    linear-gradient(180deg, var(--f-bg1), var(--f-bg2));
}

/* Subtle animated glow blobs */
.footer-modern::before,
.footer-modern::after{
  content:"";
  position:absolute;
  width:520px;
  height:520px;
  border-radius:50%;
  filter: blur(0px);
  opacity:.16;
  z-index:0;
  animation: footerFloat 10s ease-in-out infinite;
  pointer-events:none;
}
.footer-modern::before{
  left:-260px;
  top:-260px;
  background: radial-gradient(circle, rgba(13,110,253,.55), transparent 65%);
}
.footer-modern::after{
  right:-260px;
  bottom:-260px;
  background: radial-gradient(circle, rgba(255,193,7,.45), transparent 65%);
  animation-duration: 12s;
  animation-direction: reverse;
}
@keyframes footerFloat{
  0%,100%{ transform: translateY(0) translateX(0) scale(1); }
  50%{ transform: translateY(18px) translateX(10px) scale(1.03); }
}

/* Keep content above effects */
.footer-modern .container,
.footer-modern .footer-topline,
.footer-modern .back-to-top{
  position:relative;
  z-index:1;
}

/* Top gradient line */
.footer-topline{
  height:4px;
  background: linear-gradient(90deg, var(--f-accent1), var(--f-accent2), var(--f-accent3), var(--f-accent4));
  opacity:.95;
}

/* Brand area */
.footer-brand-text{
  font-weight:800;
  font-size:1.18rem;
  letter-spacing:.2px;
  color:#fff;
}
.footer-logo{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:14px;
  background: var(--f-glass);
  border:1px solid var(--f-border);
  box-shadow: 0 14px 30px rgba(0,0,0,.28);
  color:#fff;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.footer-brand:hover .footer-logo{
  transform: translateY(-2px);
  background: rgba(255,255,255,.10);
  box-shadow: 0 18px 45px rgba(0,0,0,.35);
}
.footer-desc{
  color: var(--f-muted);
  line-height:1.7;
  max-width: 420px;
}

/* Titles */
.footer-title{
  font-weight:800;
  color:#fff;
  letter-spacing:.25px;
  margin-bottom: .9rem;
  position:relative;
  display:inline-block;
}
.footer-title::after{
  content:"";
  display:block;
  width:42px;
  height:3px;
  margin-top:.45rem;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--f-accent1), var(--f-accent2));
  opacity:.9;
}

/* Links */
.footer-links{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:.6rem;
}
.footer-link{
  display:inline-flex;
  align-items:center;
  gap:.55rem;
  color: rgba(233,238,252,.75);
  text-decoration:none;
  padding: .28rem .25rem;
  border-radius: 10px;
  transition: transform .18s ease, color .18s ease, background .18s ease;
}
.footer-link i{ opacity:.95; }
.footer-link:hover{
  color:#fff;
  transform: translateX(4px);
  background: rgba(255,255,255,.06);
}

/* Mini contact pills */
.footer-mini{
  display:flex;
  flex-wrap:wrap;
  gap:.6rem;
}
.footer-mini-link{
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  padding:.48rem .72rem;
  border-radius:999px;
  text-decoration:none;
  color: rgba(233,238,252,.85);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}
.footer-mini-link:hover{
  color:#fff;
  transform: translateY(-2px);
  background: rgba(255,255,255,.10);
  box-shadow: 0 14px 30px rgba(0,0,0,.22);
}

/* CTA box */
.footer-cta{
  padding: .95rem;
  border-radius: var(--f-radius);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 10px 25px rgba(0,0,0,.18);
}
.footer-cta-title{
  font-weight:700;
  color:#fff;
  margin-bottom:.55rem;
}
.footer-cta-box{
  display:flex;
  gap:.5rem;
  align-items:center;
  padding:.35rem;
  border-radius: 16px;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.10);
}
.footer-input{
  width:100%;
  border:0;
  outline:0;
  padding:.6rem .75rem;
  background:transparent;
  color:#fff;
  font-size:.95rem;
}
.footer-input::placeholder{ color: rgba(233,238,252,.55); }

.footer-btn{
  width:46px;
  height:42px;
  border:0;
  border-radius: 14px;
  color:#fff;
  background: linear-gradient(135deg, var(--f-accent1), var(--f-accent2));
  box-shadow: 0 14px 30px rgba(13,110,253,.22);
  transition: transform .18s ease, filter .18s ease;
}
.footer-btn:hover{
  transform: translateY(-2px);
  filter: brightness(1.05);
}
.footer-note{
  display:block;
  margin-top:.45rem;
  color: rgba(233,238,252,.55);
}

/* Social pills */
.footer-social{
  display:flex;
  gap:.65rem;
  flex-wrap:wrap;
}
.social-pill{
  width:46px;
  height:46px;
  display:grid;
  place-items:center;
  border-radius: 16px;
  text-decoration:none;
  color:#fff;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.social-pill:hover{
  transform: translateY(-3px);
  background: rgba(255,255,255,.12);
  box-shadow: 0 16px 38px rgba(0,0,0,.28);
}

/* Badges */
.footer-badges{
  display:flex;
  gap:.55rem;
  flex-wrap:wrap;
}
.footer-badge{
  font-size:.82rem;
  padding:.38rem .68rem;
  border-radius:999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(233,238,252,.82);
}

/* Divider & bottom */
.footer-divider{
  border-color: var(--f-border) !important;
  opacity:1;
}
.footer-copy{
  color: rgba(233,238,252,.78);
}
.footer-bottom-links{
  display:flex;
  align-items:center;
  gap:.55rem;
  color: rgba(233,238,252,.62);
}
.footer-bottom-link{
  color: rgba(233,238,252,.70);
  text-decoration:none;
  transition: color .18s ease;
}
.footer-bottom-link:hover{ color:#fff; }
.dot{ opacity:.55; }

/* Back to top */
.back-to-top{
  position:fixed;
  right:18px;
  bottom:18px;
  width:48px;
  height:48px;
  border-radius: 18px;
  display:grid;
  place-items:center;
  text-decoration:none;
  color:#fff;
  background: linear-gradient(135deg, var(--f-accent1), #6610f2);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--f-shadow);
  z-index: 999;
  transition: transform .18s ease, opacity .18s ease, filter .18s ease;
}
.back-to-top:hover{
  transform: translateY(-3px);
  filter: brightness(1.05);
}

/* Focus accessibility */
.footer-modern a:focus-visible{
  outline: 3px solid rgba(255,193,7,.45);
  outline-offset: 3px;
  border-radius: 14px;
}

/* Responsive tweaks */
@media (max-width: 576px){
  .footer-logo{ width:40px; height:40px; border-radius: 14px; }
  .footer-brand-text{ font-size:1.08rem; }
  .social-pill{ width:44px; height:44px; border-radius: 16px; }
  .back-to-top{ right:14px; bottom:14px; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  .footer-modern::before,
  .footer-modern::after{
    animation: none !important;
  }
  .footer-logo,
  .footer-link,
  .footer-mini-link,
  .footer-btn,
  .social-pill,
  .back-to-top{
    transition: none !important;
  }
}

/* ============================================================
   HOME.CSS (Merged) — Hero + Sections + Footer Modern (Dynamic)
============================================================ */

/* ============================================================
   SECTION TITLE (Common)
============================================================ */
.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  
  margin-bottom: 40px;
  position: relative; 
  padding-bottom: 15px;
}

.section-title i {
  font-size: 20px;
  color: #667eea;
  letter-spacing: 2px;
  font-weight: 600;
   
}

.section-title i span{
  font-family: 'Montserrat', sans-serif;
}

.section-title span {
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
}

/* Stylish underline effect */
.section-title::after {
  content: "";
  position: absolute;
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

/* ============================================================
   HERO SECTION – MOBILE
============================================================ */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  overflow: hidden;
}

/* Animated background elements */
.hero-section::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  top: -250px;
  right: -250px;
  animation: float 6s ease-in-out infinite;
}

.hero-section::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  bottom: -150px;
  left: -150px;
  animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

/* Hero Image Container */
.hero-image {
  position: relative;
  z-index: 2;
  margin-bottom: 2rem;
  animation: fadeInDown 1s ease-out;
}

.hero-image img {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-image img:hover {
  transform: scale(1.05) translateY(-5px);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
}

/* Hero Text Section */
.hero-text {
  position: relative;
  z-index: 2;
  text-align: center;
  animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-text .text1 {
  font-size: 1.5rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
}

.hero-text .text2 {
  font-size: 2rem;
  font-weight: 600;
  margin: 1rem 0;
  line-height: 1.2;
}

.hero-text .text2 strong {
  display: block;
  font-size: 2.5rem;
  background: linear-gradient(45deg, #ffc107, #ff9800);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.2);
  }
}

.hero-text .text3 {
  font-size: 1.2rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  padding: 0.5rem 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 25px;
  display: inline-block;
}

/* Buttons Container */
.btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeIn 1s ease-out 0.6s both;
}

.btns .btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.btns .btn::before {
  content: "";
  position: absolute;
  width: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: width 0.3s ease;
  left: 50%;
  transform: translateX(-50%);
}

.btns .btn:hover::before {
  width: 100%;
}

.btns .btn:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* ============================================================
   HERO SECTION - DESKTOP ONLY
============================================================ */
@media (min-width: 992px) {
  .hero-section1 {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8f9ff, #ffffff);
    position: relative;
    overflow: hidden;
  }

  .hero-section1::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    top: -150px;
    right: -150px;
    opacity: 0.08;
    z-index: 0;
  }

  .hero-section1 .row {
    width: 100%;
    z-index: 2;
    position: relative;
  }

  /* Desktop hero text (overrides mobile .hero-text) */
  .hero-text {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-top: 50px;
    margin-bottom: 20px;
    letter-spacing: 1px;
  }

  .hero-desc {
    font-size: 1rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }

  .cv-btn .btn {
    padding: 8px 25px;
    font-weight: 200;
    border-radius: 10px;
    margin: 20px 8px;
    transition: all 0.3s ease;
  }

  .cv-btn .btn-primary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border: none;
  }

  .cv-btn .btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
  }

  .cv-btn .btn-secondary {
    background: transparent;
    border: 2px solid #667eea;
    color: #667eea;
  }

  .cv-btn .btn-secondary:hover {
    background: #667eea;
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
  }

  .hero-image1 img {
    height: 350px;
    margin-top: 20px;
    transition: 0.4s ease;
  }

  .hero-image1 img:hover {
    transform: scale(1.05);
  }

  .social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
  }

  .social-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #fff;
    transition: 0.3s ease;
    text-decoration: none;
  }

  .facebook { background: #1877f2; }
  .linkedin { background: #0a66c2; }
  .github { background: #333; }
  .social-icon.instagram { background: #e1306c; }
  .social-icon.contact { background: #0ea5e9; }

  .social-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  }
}

/* ============================================================
   RESPONSIVE DESIGN (Hero)
============================================================ */
@media (max-width: 767px) {
  .hero-section {
    padding-top: 3rem;
    text-align: center;
  }

  .text2 {
    font-size: 2.2rem;
  }

  .text3 {
    font-size: 1.2rem;
  }

  .hero-pic img {
    max-width: 260px;
    margin-top: 2rem;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .hero-pic img {
    max-width: 300px;
  }
}

/* ============================================================
   EXPERIENCE SECTION
============================================================ */
.experience-section {
  margin: 3rem auto;
  padding: 2rem 1rem;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
}

.experience-section::before {
  content: "";
  position: absolute;
  top: -20%;
  left: -10%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(0, 123, 255, 0.08) 0%, transparent 60%);
  border-radius: 50%;
  z-index: 0;
}

.experience-section > * {
  position: relative;
  z-index: 1;
}

.experience-card {
  border-radius: 18px;
  overflow: hidden;
  border: none;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.experience-card img.card-img-top {
  height: 200px;
  object-fit: cover;
}

.experience-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.12);
}

.experience-card .card-title {
  font-weight: 600;
}

.experience-card .exp-year {
  font-size: 0.9rem;
}

.duties-card {
  background: #f8f9fb;
  border-radius: 18px;
  padding: 1.8rem 1.5rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

.duty-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.duty-title i {
  font-size: 1.1rem;
  color: #0d6efd;
}

.timeline {
  position: relative;
  margin-left: 1.2rem;
  padding-left: 1.5rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, #0d6efd, #6c757d);
  opacity: 0.4;
}

.timeline-item {
  position: relative;
  margin-bottom: 1.5rem;
  padding-left: 1rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-icon {
  position: absolute;
  left: -1.1rem;
  top: 0.3rem;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #0d6efd;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.timeline-icon i {
  font-size: 0.8rem;
  color: #0d6efd;
}

.timeline-content {
  background: #ffffff;
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.timeline-content:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.timeline-heading {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.timeline-content p {
  font-size: 0.85rem;
  margin: 0;
  color: #555;
  line-height: 1.4;
}

@media (max-width: 767px) {
  .experience-section {
    padding: 1.5rem 1rem;
  }

  .duties-card {
    margin-top: 1.5rem;
  }

  .timeline::before {
    left: 7px;
  }

  .timeline-icon {
    left: -1.3rem;
  }
}

/* ============================================================
   EDUCATION SECTION
============================================================ */
.education-section {
  padding: 80px 0;
  background: #f8f9fa;
}

.bg-section {
    background-image: url("/static/images/uni.jpg");
    background-size: cover;        /* Make image cover entire div */
    background-position: center;   /* Keep image centered */
    background-repeat: no-repeat;
    min-height: 300px;             
    opacity:0.5;
}

.education-section .row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.education-section .col-1,
.education-section .col-2,
.education-section .col-3,
.education-section .col-6 {
  padding: 0 15px;
}

.education-section .bg-success {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.education-content {
  width: 100%;
}

.education-timeline {
  position: relative;
  padding-left: 40px;
}

.education-timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
}

.education-item {
  position: relative;
  background: #ffffff;
  padding: 30px;
  margin-bottom: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
}

.education-item:hover {
  transform: translateX(10px);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.15);
  border-color: #667eea;
}

.education-item::before {
  content: "";
  position: absolute;
  left: -49px;
  top: 30px;
  width: 16px;
  height: 16px;
  background: #667eea;
  border: 4px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
  transition: all 0.3s ease;
}

.education-item:hover::before {
  background: #764ba2;
  transform: scale(1.2);
}

.degree-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
}

.degree-title {
  font-size: 1rem;
  color: #2d3748;
  font-weight: 700;
  flex: 1;
  min-width: 250px;
  line-height: 1.4;
}

.duration {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 15px;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

.university {
  color: #4a5568;
  font-size: 1rem;
  margin-bottom: 15px;
  font-weight: 500;
  display: flex;
  align-items: center;
}

.university::before {
  content: "🎓";
  margin-right: 8px;
  font-size: 1.2rem;
}

.thesis-project {
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  padding: 18px;
  border-left: 4px solid #667eea;
  border-radius: 8px;
  margin-top: 15px;
}

.thesis-project strong {
  color: #2d3748;
  font-weight: 500;
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
}

.thesis-project p {
  color: #4a5568;
  line-height: 1.6;
  margin: 0;
  font-size: 0.9rem;
}

@media (max-width: 992px) {
  .education-section .col-3 {
    display: none;
  }
}

@media (max-width: 768px) {
  .education-section {
    padding: 60px 0;
  }

  .education-timeline {
    padding-left: 30px;
  }

  .education-item::before {
    left: -39px;
  }

  .degree-header {
    flex-direction: column;
  }

  .degree-title {
    font-size: 1.2rem;
    min-width: 100%;
  }

  .duration {
    align-self: flex-start;
  }

  .education-item {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .education-section .section-title h2 {
    font-size: 1.6rem;
    letter-spacing: 1px;
  }

  .degree-title {
    font-size: 1.1rem;
  }

  .university {
    font-size: 1rem;
  }

  .duration {
    font-size: 0.85rem;
    padding: 6px 14px;
  }

  .thesis-project {
    padding: 15px;
  }
}

/* ============================================================
   AWARDS & CERTIFICATES SECTION
============================================================ */
/* .certificate-section {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.certificate-section::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 70%);
  border-radius: 50%;
}

.certificate-section::after {
  content: "";
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 70%);
  border-radius: 50%;
}

.award-title {
  text-align: center;
  font-size: 2.8rem;
  font-weight: 700;
  color: blue;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 60px;
  position: relative;
  z-index: 2;
  animation: fadeInDown 0.8s ease-out;
}

.award-title::after {
  content: "";
  display: block;
  width: 100px;
  height: 5px;
  background: #ffd700;
  margin: 20px auto 0;
  border-radius: 3px;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.certificate-section .row {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: stretch;
  position: relative;
  z-index: 2;
}

.certificate-section .bg-primary {
  background: rgba(255, 255, 255, 0.95) !important;
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.certificate-section .bg-primary:hover {
  transform: translateY(-15px) scale(1.03);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.certificate-section .bg-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.6s ease;
}

.certificate-section .bg-primary:hover::before {
  left: 100%;
}

.certificate-section .bg-primary::after {
  content: "🏆";
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 2rem;
  opacity: 0.15;
  transition: all 0.3s ease;
}

.certificate-section .bg-primary:hover::after {
  opacity: 0.3;
  transform: rotate(15deg) scale(1.2);
}

.card-img {
  position: relative;
  overflow: hidden;
  border-radius: 5px;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  padding: 10px;
  min-height: 150px;
  width:230px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.certificate-section .bg-primary:hover .card-img::before {
  opacity: 1;
}

.card-img img {
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: all 0.4s ease;
  position: relative;
  z-index: 1;
}

.certificate-section .bg-primary:hover .card-img img {
  transform: scale(1.05);
  box-shadow: 0 12px 35px rgba(90, 52, 52, 0.25);
}

.card-img::after {
  content: "✓";
  position: absolute;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #333;
  font-weight: bold;
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
  z-index: 2;
  opacity: 0;
  transform: scale(0) rotate(-180deg);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.certificate-section .bg-primary:hover .card-img::after {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}



.award-img img {
    transition: transform 0.3s ease;
    cursor: pointer;
}

.award-img img:hover {
    transform: scale(1.05);
} */

/* ============================================================
   AWARDS & CERTIFICATES SECTION
   Modern glassmorphism + subtle motion aesthetic
   ============================================================ */

/* ── Design tokens ── */
:root {
  --cert-bg:          #f0f4ff;
  --cert-surface:     #ffffff;
  --cert-border:      rgba(99, 102, 241, 0.15);
  --cert-accent:      #6366f1;        /* indigo */
  --cert-accent2:     #06b6d4;        /* cyan  */
  --cert-gold:        #f59e0b;
  --cert-text:        #1e1b4b;
  --cert-muted:       #6b7280;
  --cert-radius:      20px;
  --cert-radius-sm:   12px;
  --cert-shadow:      0 8px 32px rgba(99,102,241,0.10);
  --cert-shadow-lg:   0 20px 60px rgba(99,102,241,0.18);
  --cert-transition:  0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   SECTION WRAPPER
   ============================================================ */
.certificate-section {
  padding: 6rem 1.5rem;
  background:
    radial-gradient(ellipse at 15% 20%, rgba(99,102,241,0.08) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 80%, rgba(6,182,212,0.07) 0%, transparent 50%),
    var(--cert-bg);
  position: relative;
  overflow: hidden;
}

/* subtle dot-grid texture */
.certificate-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(99,102,241,0.12) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
  z-index: 0;
}

.certificate-section > * {
  position: relative;
  z-index: 1;
}


@keyframes certificate-spin {
  0%   { transform: rotate(0deg);   }
  10%  { transform: rotate(15deg);  }
  20%  { transform: rotate(-8deg);  }
  30%  { transform: rotate(10deg);  }
  40%  { transform: rotate(0deg);   }
  100% { transform: rotate(0deg);   }
}

/* ============================================================
   FEATURED AWARD — first row
   ============================================================ */
.certificate-section .row.mb-4 {
  margin-bottom: 2.5rem !important;
}

.award-img {
  position: relative;
  border-radius: var(--cert-radius);
  overflow: hidden;
  background: var(--cert-surface);
  box-shadow: var(--cert-shadow-lg);
  border: 1px solid var(--cert-border);
  transition: transform var(--cert-transition), box-shadow var(--cert-transition);
  
}

/* "FEATURED" ribbon */
.award-img::before {
  content: '★  Featured';
  position: absolute;
  top: 18px;
  left: -32px;
  background: linear-gradient(90deg, var(--cert-gold), #fbbf24);
  color: #1e1b4b;
  font-family: 'Outfit', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 40px;
  transform: rotate(-45deg);
  width: 100px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(245,158,11,0.35);
  z-index: 2;
}

/* gradient overlay on hover */
.award-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(99,102,241,0.12) 0%,
    transparent 55%,
    rgba(6,182,212,0.08) 100%
  );
  opacity: 0;
  transition: opacity var(--cert-transition);
  pointer-events: none;
  z-index: 1;
}

.award-img:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--cert-shadow-lg), 0 0 0 3px rgba(99,102,241,0.20);
}

.award-img:hover::after {
  opacity: 1;
}

.award-img a {
  display: block;
}

/* .award-img img {
  width: 80%;
  height: auto;
  display: block;
  transition: transform var(--cert-transition);
} */


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

/* ============================================================
   CERTIFICATE CARDS — second row
   ============================================================ */
.certificate-section .row.g-3 {
  padding: 0 !important;           /* strip Bootstrap p-5 override */
  margin-top: 1rem;
}

/* reset Bootstrap bg-primary on each col */
.certificate-section .row.g-3 .col-12 {
  background: transparent !important;
  padding: 0;
}

.certificate-section .row.g-2 .col-12 .card-img {
  width: 200px;
  height: 100px;
  background: var(--cert-surface);
  border-radius: 10px;
  
  overflow: hidden;
 
  position: relative;
  padding: 1rem;
  transition:
    transform var(--cert-transition),
    box-shadow var(--cert-transition),
    border-color var(--cert-transition);

  /* staggered entrance */
  animation: cert-rise 0.55s both;
}

.certificate-section .row.g-3 .col-12:nth-child(1) .card-img { animation-delay: 0.10s; }
.certificate-section .row.g-3 .col-12:nth-child(2) .card-img { animation-delay: 0.22s; }
.certificate-section .row.g-3 .col-12:nth-child(3) .card-img { animation-delay: 0.34s; }

/* accent top bar that slides in on hover */
.certificate-section .row.g-3 .col-12 .card-img::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
 
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--cert-transition);
  z-index: 2;
}

/* cert-number badge */
.certificate-section .row.g-3 .col-12 .card-img::after {
  content: attr(data-index, '');
  position: absolute;
  bottom: 10px; right: 12px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cert-accent), var(--cert-accent2));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity var(--cert-transition), transform var(--cert-transition);
  z-index: 2;
}

.certificate-section .row.g-3 .col-12 .card-img:hover::before {
  transform: scaleX(1);
}

.certificate-section .row.g-3 .col-12 .card-img:hover::after {
  opacity: 1;
  transform: scale(1);
}

.certificate-section .row.g-1 .col-12 .card-img:hover {
  transform: translateY(-10px);
  border-color: rgba(99,102,241,0.30);
  box-shadow:
    var(--cert-shadow-lg),
    0 0 0 3px rgba(99,102,241,0.12);
}

.certificate-section .row.g-3 .col-12 .card-img img {
  width: 80%;            /* shrinks image inside the card */
  height: auto;
  display: block;
  object-fit: cover;
  margin: 0 auto;        /* keep it centred */
  transition: transform var(--cert-transition), filter var(--cert-transition);
}

.certificate-section .row.g-3 .col-12 .card-img:hover img {
  transform: scale(1.04);
  filter: brightness(1.05) saturate(1.1);
}

@keyframes cert-rise {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ============================================================
   RESPONSIVE
   ============================================================ */


@media (max-width: 768px) {
  .certificate-section {
    padding: 60px 0;
  }

  .certificate-section .row {
    gap: 25px;
  }

  .award-title {
    font-size: 2rem;
    letter-spacing: 2px;
    margin-bottom: 40px;
  }

  .card-img {
    min-height: 250px;
  }
}

@media (max-width: 480px) {
  .award-title {
    font-size: 1.6rem;
    letter-spacing: 1px;
  }

  .certificate-section .bg-primary {
    padding: 20px;
  }

  .card-img {
    min-height: 200px;
    padding: 15px;
  }
}

/* ============================================================
   SHARED ANIMATIONS
============================================================ */
@keyframes backgroundScroll {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideIn {
  from { width: 0; }
  to { width: 60px; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.05); opacity: 0.8; }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in-left { animation: fadeInLeft 0.6s ease-out; }
.fade-in-right { animation: fadeInRight 0.6s ease-out; }

/* ============================================================
   SKILLS SECTION
============================================================ */
.skills-section {
  padding: 80px 0;
  background: #f8f9fa;
}

.skills-content {
  background: white;
  padding: 50px 40px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.skills-content h2 {
  font-size: 2.5em;
  color: #333;
  margin-bottom: 40px;
  position: relative;
}

.skills-content h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--bs-primary);
  border-radius: 2px;
}

.skill { margin-bottom: 30px; }

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.skill-name {
  font-size: 1.1em;
  font-weight: 600;
  color: #444;
}

.skill-percentage {
  font-size: 1em;
  font-weight: 600;
  color: var(--bs-primary);
}

.skill-bar {
  width: 100%;
  height: 12px;
  background: #e8e8e8;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.skill-progress {
  height: 100%;
  border-radius: 6px;
  position: relative;
  width: 0;
  animation: fillBar 1.5s ease-out forwards;
  transition: width 0.3s ease;
}

.html-progress { background: linear-gradient(90deg, #e34c26, #f06529); }
.css-progress { background: linear-gradient(90deg, #264de4, #2965f1); }
.js-progress { background: linear-gradient(90deg, #f0db4f, #f7df1e); }
.bootstrap-progress { background: linear-gradient(90deg, #563d7c, #7952b3); }
.python-progress { background: linear-gradient(90deg, #306998, #4b8bbe); }
.django-progress { background: linear-gradient(90deg, #092e20, #0c4b33); }

.skill-progress::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
  border-radius: 10px;
}

@keyframes fillBar {
  from { width: 0; }
  to { width: var(--skill-width); }
}

@media (max-width: 768px) {
  .skills-content { padding: 30px 20px; }
  .skills-content h2 { font-size: 2em; }
  .skill-name { font-size: 1em; }
}

/* ============================================================
   PROJECTS SECTION
============================================================ */
#projects {
  background-color: #ffffff;
  padding: 80px 0;
}

.project-container {
  max-width: 1000px;
  margin: 0 auto;
}

.project-wrapper {
  transition: transform 0.4s ease;
}

.project-wrapper:hover {
  transform: translateY(-8px);
}

.project-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.4s ease;
  background: #fff;
  padding: 10px;
}

.project-wrapper:hover .project-card {
  box-shadow: 0 20px 50px rgba(232, 76, 106, 0.15);
}

.project-image {
  position: relative;
  width: 98%;
  height: 200px;
  overflow: hidden;
  border-radius: 10px;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
  border-radius: 10px;
}

.project-wrapper:hover .project-image img {
  transform: scale(1.08);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(26, 31, 46, 0.92) 0%, rgba(232, 76, 106, 0.85) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-wrapper:hover .project-overlay { opacity: 1; }

.overlay-content {
  padding: 24px;
  text-align: center;
  transform: translateY(15px);
  transition: transform 0.4s ease;
}

.project-wrapper:hover .overlay-content { transform: translateY(0); }

.project-title {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}

.project-description {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin-bottom: 14px;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-bottom: 16px;
}

.project-tech .badge {
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 20px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.project-tech .badge.bg-primary { background-color: #3b82f6 !important; }
.project-tech .badge.bg-secondary { background-color: #64748b !important; }
.project-tech .badge.bg-success { background-color: #22c55e !important; }

.project-links {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.project-links .btn-light {
  background-color: #ffffff;
  color: #1a1f2e;
  border: none;
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.project-links .btn-light:hover {
  background-color: #e84c6a;
  color: #ffffff;
  transform: scale(1.05);
}

.project-links .btn-outline-light {
  background-color: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.project-links .btn-outline-light:hover {
  background-color: #ffffff;
  color: #1a1f2e;
  transform: scale(1.05);
}

#projects .row.pt-5 {
  padding-top: 10px !important;
}

@media (max-width: 768px) {
  .project-image { height: 200px; }
  .section-title h2 { font-size: 1.75rem; }
  .project-title { font-size: 1.1rem; }
  .project-description { font-size: 0.85rem; }
  .project-card { max-width: 100%; }
}

/* ============================================================
   CONTACT SECTION
============================================================ */
.contact-section {
  padding: 80px 50px;
  background: linear-gradient(135deg, #f5f7ff 0%, #ffffff 100%);
}

.contact-wrapper {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 30px;
  align-items: start;
}

.contact-info { padding: 20px 0; }

.contact-subtitle {
  color: #666;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 35px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-item:hover {
  transform: translateX(6px);
  box-shadow: 0 6px 25px rgba(102, 126, 234, 0.18);
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon i {
  color: #fff;
  font-size: 15px;
}

.contact-text-block {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.contact-label {
  font-size: 9px;
  font-weight: 400;
  color: #667eea;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.contact-value {
  font-size: 13px;
  color: #5e5c5c;
  font-weight: 400;
}

.contact-table {
  background: #fff;
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 10px 50px rgba(102, 126, 234, 0.12);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.input-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon-wrapper > i {
  position: absolute;
  left: 16px;
  color: #667eea;
  font-size: 15px;
  pointer-events: none;
  z-index: 1;
}

.input-icon-wrapper input,
.input-icon-wrapper textarea {
  width: 100%;
  padding: 15px 16px 15px 46px;
  border: 2px solid #e8ecff;
  border-radius: 12px;
  font-size: 14px;
  font-family: "Poppins", sans-serif;
  background: #f8f9ff;
  color: #aaa;
  outline: none;
  cursor: not-allowed;
  resize: none;
}

.input-icon-wrapper textarea {
  min-height: 130px;
  align-items: flex-start;
  padding-top: 15px;
}

.input-icon-wrapper > i.fa-message {
  align-self: flex-start;
  top: 16px;
}

.submit-btn {
  padding: 15px 30px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 400;
  font-family: "Poppins", sans-serif;
  cursor: not-allowed;
  opacity: 0.75;
  letter-spacing: 0.5px;
}

/* ============================================================
   FOOTER (Dynamic + Modern) — .footer-modern
============================================================ */
:root{
  --f-bg1:#0b1220;
  --f-bg2:#070b14;
  --f-text:rgba(233,238,252,.86);
  --f-muted:rgba(233,238,252,.65);
  --f-border:rgba(255,255,255,.12);

  --f-accent1:#0d6efd;
  --f-accent2:#20c997;
  --f-accent3:#ffc107;
  --f-accent4:#dc3545;

  --f-radius:18px;
  --f-shadow:0 18px 45px rgba(0,0,0,.35);
  --f-glass:rgba(255,255,255,.06);
}

.footer-modern{
  position:relative;
  overflow:hidden;
  color:var(--f-text);
  background:
    radial-gradient(900px 480px at 15% 15%, rgba(13,110,253,.22), transparent 60%),
    radial-gradient(800px 420px at 90% 25%, rgba(32,201,151,.14), transparent 60%),
    radial-gradient(700px 380px at 70% 95%, rgba(255,193,7,.10), transparent 55%),
    linear-gradient(180deg, var(--f-bg1), var(--f-bg2));
}

.footer-modern::before,
.footer-modern::after{
  content:"";
  position:absolute;
  width:520px;
  height:520px;
  border-radius:50%;
  opacity:.16;
  z-index:0;
  animation: footerFloat 10s ease-in-out infinite;
  pointer-events:none;
}
.footer-modern::before{
  left:-260px;
  top:-260px;
  background: radial-gradient(circle, rgba(13,110,253,.55), transparent 65%);
}
.footer-modern::after{
  right:-260px;
  bottom:-260px;
  background: radial-gradient(circle, rgba(255,193,7,.45), transparent 65%);
  animation-duration: 12s;
  animation-direction: reverse;
}
@keyframes footerFloat{
  0%,100%{ transform: translateY(0) translateX(0) scale(1); }
  50%{ transform: translateY(18px) translateX(10px) scale(1.03); }
}

/* Footer Section  */
.footer-modern .container,
.footer-modern .footer-topline,
.footer-modern .back-to-top{
  position:relative;
  z-index:1;
}

.footer-topline{
  height:4px;
  background: linear-gradient(90deg, var(--f-accent1), var(--f-accent2), var(--f-accent3), var(--f-accent4));
  opacity:.95;
}

.footer-brand-text{
  font-weight:400;
  font-size:1rem;
  letter-spacing:.2px;
  color:#fff;
}

.footer-logo{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:14px;
  background: var(--f-glass);
  border:1px solid var(--f-border);
  box-shadow: 0 14px 30px rgba(0,0,0,.28);
  color:#fff;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.footer-brand:hover .footer-logo{
  transform: translateY(-2px);
  background: rgba(255,255,255,.10);
  box-shadow: 0 18px 45px rgba(0,0,0,.35);
}

.footer-desc{
  font-size:12px;
  color: var(--f-muted);
  line-height:1.7;
  max-width: 420px;
}

.footer-title{
  font-size: 13px;
  font-weight:600;
  color:#fff;
  letter-spacing:.25px;
  margin-bottom: .9rem;
  position:relative;
  display:inline-block;
}
.footer-title::after{
  content:"";
  display:block;
  width:42px;
  height:3px;
  margin-top:.45rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--f-accent1), var(--f-accent2));
  opacity:.9;
}

.footer-links{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:.5rem;
}

.footer-link{
  display:inline-flex;
  align-items:center;
  font-size: 12px;
  gap:.40rem;
  color: rgba(233,238,252,.75);
  text-decoration:none;
  padding: .28rem .25rem;
  border-radius: 10px;
  transition: transform .18s ease, color .18s ease, background .18s ease;
}

.footer-link i{ opacity:.95; }
.footer-link:hover{
  color:#fff;
  transform: translateX(4px);
  background: rgba(255,255,255,.06);
}

.footer-mini{
  display:flex;
  flex-wrap:wrap;
  gap:.6rem;
}
.footer-mini-link{
  font-size:10px;
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  padding:.48rem .72rem;
  border-radius:20px;
  text-decoration:none;
  color: rgba(233,238,252,.85);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}
.footer-mini-link:hover{
  color:#fff;
  transform: translateY(-2px);
  background: rgba(255,255,255,.10);
  box-shadow: 0 14px 30px rgba(0,0,0,.22);
}

.footer-cta{
  padding: .95rem;
  border-radius: var(--f-radius);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 10px 25px rgba(0,0,0,.18);
}
.footer-cta-title{
  font-weight:700;
  color:#fff;
  margin-bottom:.55rem;
}
.footer-cta-box{
  display:flex;
  gap:.5rem;
  align-items:center;
  padding:.35rem;
  border-radius: 16px;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.10);
}
.footer-input{
  width:100%;
  border:0;
  outline:0;
  padding:.6rem .75rem;
  background:transparent;
  color:#fff;
  font-size:.95rem;
}
.footer-input::placeholder{ color: rgba(233,238,252,.55); }

.footer-btn{
  width:46px;
  height:42px;
  border:0;
  border-radius: 14px;
  color:#fff;
  background: linear-gradient(135deg, var(--f-accent1), var(--f-accent2));
  box-shadow: 0 14px 30px rgba(13,110,253,.22);
  transition: transform .18s ease, filter .18s ease;
}
.footer-btn:hover{
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.footer-note{
  display:block;
  margin-top:.45rem;
  color: rgba(233,238,252,.55);
}

.footer-social{
  display:flex;
  gap:.65rem;
  flex-wrap:wrap;
}
.social-pill{
  width:46px;
  height:46px;
  display:grid;
  place-items:center;
  border-radius: 16px;
  text-decoration:none;
  color:#fff;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.social-pill:hover{
  transform: translateY(-3px);
  background: rgba(255,255,255,.12);
  box-shadow: 0 16px 38px rgba(0,0,0,.28);
}

.footer-badges{
  display:flex;
  gap:.55rem;
  flex-wrap:wrap;
}

.footer-social .social-pill .fa-facebook-f {
    color: #1877f2;
    
}

.footer-social .social-pill .fa-github {
    color: #000000;
}

.footer-social .social-pill .fa-linkedin-in {
    color: #0a66c2;
}

.footer-social .social-pill .fa-instagram {
    color: #e4405f;
}
.footer-badge{
  font-size:.82rem;
  padding:.38rem .68rem;
  border-radius:999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(233,238,252,.82);
}

.footer-divider{
  border-color: var(--f-border) !important;
  opacity:1;
}

.footer-copy{
  color: rgba(233,238,252,.78);
  font-size:12px;
}

.footer-bottom-links{
  display:flex;
  align-items:center;
  gap:.55rem;
  color: rgba(233,238,252,.62);
}
.footer-bottom-link{
  font-size:11px;
  color: rgba(233,238,252,.70);
  text-decoration:none;
  transition: color .18s ease;
}
.footer-bottom-link:hover{ color:#fff; }
.dot{ opacity:.55; }

.back-to-top{
  position:fixed;
  right:18px;
  bottom:18px;
  width:48px;
  height:48px;
  border-radius: 18px;
  display:grid;
  place-items:center;
  text-decoration:none;
  color:#fff;
  background: linear-gradient(135deg, var(--f-accent1), #6610f2);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--f-shadow);
  z-index: 999;
  transition: transform .18s ease, opacity .18s ease, filter .18s ease;
}
.back-to-top:hover{
  transform: translateY(-3px);
  filter: brightness(1.05);
}

.footer-modern a:focus-visible{
  outline: 3px solid rgba(255,193,7,.45);
  outline-offset: 3px;
  border-radius: 14px;
}

#page-footer{
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

@media (max-width: 576px){
  .footer-logo{ width:40px; height:40px; }
  .footer-brand-text{ font-size:1.08rem; }
  .social-pill{ width:44px; height:44px; }
  .back-to-top{ right:14px; bottom:14px; }
}

/* ============================================================
   RESPONSIVE (Contact)
============================================================ */
@media (max-width: 768px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-table {
    padding: 28px 20px;
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  .footer-modern::before,
  .footer-modern::after{
    animation: none !important;
  }
  .footer-logo,
  .footer-link,
  .footer-mini-link,
  .footer-btn,
  .social-pill,
  .back-to-top{
    transition: none !important;
  }
}