/* Custom Properties */
:root {
  --primary-color: #4a90e2;
  --secondary-color: #f39c12;
  --dark-color: #2c3e50;
  --light-color: #ecf0f1;
  --text-color: #333;
  --text-light: #666;
  --white: #ffffff;

  /* --gradient: #e3d9814d; */

  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: 100vh;
}


.footer-section {
    /* margin-top: 50px;  */
    position: relative;
    z-index: 10;
}

html {
  scroll-behavior: smooth;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

/* Utility Classes */
.section-padding {
  padding: 100px 0;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--dark-color);
  margin-bottom: 1rem;
}

.title-divider {
  width: 60px;
  height: 4px;
  background: var(--gradient);
  margin: 0 auto 2rem;
  border-radius: 2px;
}

/* Header Styles */
.navbar {
  background: rgba(44, 62, 80, 0.95) !important;
  backdrop-filter: blur(10px);
  transition: var(--transition);
  padding: 1rem 0;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white) !important;
}

.animated-logo {
  transition: var(--transition);
}

.animated-logo:hover {
  transform: scale(1.05);
}

.navbar-nav .nav-link {
  color: var(--white) !important;
  font-weight: 500;
  margin: 0 0.5rem;
  transition: var(--transition);
  position: relative;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-color) !important;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 50%;
  background: var(--primary-color);
  transition: var(--transition);
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
  width: 100%;
}

/* Hero Section */
.hero-section {
    background: var(--gradient);
    position: relative;
    min-height: calc(100vh - 80px); /* Adjust based on your navbar height */
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 80px 0 40px; /* Add some padding */
}





.hero-section-about{
  background-image: url('https://people.iitism.ac.in/~amitraidixit/public/images/font.jpeg');
  /* background: rgb(27 60 64 / 77%); */
    position: relative;
    min-height: calc(100vh - 80px); /* Adjust based on your navbar height */
    display: flex;
    align-items: center;
}
.about{
  margin-left: 15%;
  margin-right: 15%;
  color: #fff;
  text-align: justify;
  font-size: 1.5rem;
  font-family:'Times New Roman', Times, serif;

}


.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
   background-image: url('https://people.iitism.ac.in/~amitraidixit/public/images/font.jpeg');
    background-size: cover;
  background-position: center;
  /* background: rgb(27 60 64 / 77%); */
  z-index: 1;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  color: var(--white);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  animation: fadeInUp 1s ease;
}

.hero-subtitle {
  font-size: 1.5rem;
    font-weight: 700;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  animation: fadeInUp 1s ease 0.2s both;
}

.hero-description {
  font-size: 1.2rem;
    font-weight: 700;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.8);
  animation: fadeInUp 1s ease 0.4s both;
}

.hero-buttons {
  animation: fadeInUp 1s ease 0.6s both;
}

.profile-img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border: 5px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow);
  transition: var(--transition);
  animation: fadeInRight 1s ease 0.8s both;
}

.profile-img:hover {
  transform: scale(1.05);
}

.social-links {
  animation: fadeInUp 1s ease 1s both;
}

.social-link {
  display: inline-block;
  width: 50px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-radius: 50%;
  margin-right: 1rem;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.social-link:hover {
  background: var(--white);
  color: var(--primary-color);
  transform: translateY(-3px);
}

/* Tab Styles */
.nav-pills .nav-link {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  margin: 0 0.5rem;
  border-radius: 50px;
  padding: 0.75rem 1.5rem;
  transition: var(--transition);
  font-weight: 500;
}

.nav-pills .nav-link:hover,
.nav-pills .nav-link.active {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.tab-content {
  background: var(--white);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: var(--shadow);
  margin-top: 2rem;
}

/* Info Box */
.info-box {
  background: var(--light-color);
  padding: 2rem;
  border-radius: 15px;
  border-left: 4px solid var(--primary-color);
}

.info-box h5 {
  color: var(--dark-color);
  margin-bottom: 1rem;
}

.info-box ul li {
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

/* Timeline Styles */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--primary-color);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  padding-left: 2rem;
}

.timeline-marker {
  position: absolute;
  left: -1.5rem;
  top: 0;
  width: 12px;
  height: 12px;
  background: var(--primary-color);
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: var(--shadow);
}

.timeline-content {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Award Items */
.award-item {
  text-align: center;
  padding: 2rem;
  background: var(--white);
  border-radius: 15px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  margin-bottom: 2rem;
}

.award-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.award-icon {
  font-size: 3rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

/* Research Cards */
.research-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
  height: 100%;
  border-top: 4px solid var(--primary-color);
}

.research-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.research-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: var(--transition);
}

.research-icon i {
  font-size: 2rem;
  color: var(--white);
}

.research-card:hover .research-icon {
  transform: scale(1.1) rotate(5deg);
}

/* Publication Items */
.publication-item {
  background: var(--white);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
  border-left: 4px solid var(--primary-color);
  transition: var(--transition);
}

.publication-item:hover {
  transform: translateX(10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.publication-item h5 {
  color: var(--dark-color);
  margin-bottom: 0.5rem;
}

.publication-links {
  margin-top: 1rem;
}

.publication-links .btn {
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Course Cards */
.course-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
  border-top: 4px solid var(--secondary-color);
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.course-details {
  margin-top: 1rem;
}

.course-details .badge {
  margin-right: 0.5rem;
}

/* Contact Styles */
.contact-info {
  padding: 2rem;
  background: var(--white);
  border-radius: 15px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
}

.contact-info:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.contact-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.contact-icon i {
  font-size: 2rem;
  color: var(--white);
}

.contact-form {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: var(--shadow);
}

.contact-form .form-control {
  border: 2px solid #e9ecef;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  transition: var(--transition);
}

.contact-form .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.25);
}

/* Footer Styles */
.footer-section {
  background: var(--dark-color);
  color: var(--white);
  padding: 3rem 0 1rem;
  /* margin-top: auto !important; */
}

.footer-section h5,
.footer-section h6 {
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-color);
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

.contact-item i {
  width: 20px;
  margin-right: 1rem;
  color: var(--primary-color);
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 2rem 0 1rem;
}

.copyright {
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.copyright a {
  color: var(--primary-color);
  text-decoration: none;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--gradient);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 1000;
  box-shadow: var(--shadow);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Animations */
@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 pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

/* Button Animations */
.btn {
  transition: var(--transition);
  border-radius: 50px;
  font-weight: 500;
  padding: 0.75rem 2rem;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-primary {
  background: var(--gradient);
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #357abd 0%, #2968a3 100%);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .section-padding {
    padding: 60px 0;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .nav-pills .nav-link {
    margin: 0.25rem;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .tab-content {
    padding: 1.5rem;
  }

  .timeline {
    padding-left: 1rem;
  }

  .timeline-item {
    padding-left: 1.5rem;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .research-card,
  .course-card,
  .contact-info {
    margin-bottom: 2rem;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }
.footer-section {
    margin-top: 220px !important;
}
  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-buttons .btn {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
  }

  .social-link {
    width: 40px;
    height: 40px;
    line-height: 40px;
    margin-right: 0.5rem;
  }

  .research-icon,
  .contact-icon {
    width: 60px;
    height: 60px;
  }

  .research-icon i,
  .contact-icon i {
    font-size: 1.5rem;
  }
}

/* Loading Animation */
.loading {
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
}

.loading.loaded {
  opacity: 1;
  transform: translateY(0);
}

/* Scroll Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--dark-color);
}

.yellow-box {
       position: absolute;
       top: -10px;
       right: -10px;
       width: 40%;
       height: 30%;
       background-color: #ffcc00;
       border-radius: 8px;
       z-index: 1;
     }


     .maroon-box {
       position: absolute;
       bottom: -10px;
       left: -10px;
       width: 40%;
       height: 30%;
       background-color: #800000;
       border-radius: 8px;
       z-index: 1;
     } 
.hero-image {

  position: relative;
  z-index: 2;

}

/* .rounded-circle-2 {
  border-radius: 5% !important;
} */



/* about section */
    .right_conatct_social_icon{
      background: linear-gradient(to top right, #1325e8 -5%, #8f10b7 100%);
    }
    .contact_us{
      background-color: rgb(27 60 64 / 77%);
      padding: 120px 0;
      animation: fadeIn 0.8s ease-in-out;
    }
    .contact_inner{
      background-color: #fff;
      position: relative;
      /* box-shadow: 20px 22px 44px #cccc; */
      border-radius: 25px;
      overflow: hidden;
      opacity: 0;
      transform: translateY(40px);
      animation: slideUp 0.8s ease-out 0.2s forwards;
    }
    /* make columns equal height so the right gradient fills nicely */
    .contact_inner .row{ align-items: stretch; }

    .contact_field{
      padding: 55px 120px 90px 100px;
    }
    .right_conatct_social_icon{
      height: 100%;
      min-height: 220px;           /* ensures visible bar even with short content */
      border-top-right-radius: 25px;
      border-bottom-right-radius: 25px;
      opacity: 0;
      transform: scale(0.96);
      animation: zoomIn 0.7s ease 0.5s forwards;
    }

    .contact_field h3{
      color: #000;
      font-size: 40px;
      letter-spacing: 1px;
      font-weight: 600;
      margin-bottom: 10px;
    }
    .contact_field p{
      color: #000;
      text-align: justify;
      font-size: 15px;
      font-weight: 400;
      letter-spacing: 1px;
      margin-bottom: 25px;
      line-height: 1.7;
    }
    .contact_field .form-control{
      border-radius: 0;
      border: none;
      border-bottom: 1px solid #ccc;
    }
    .contact_field .form-control:focus{
      box-shadow: none;
      outline: none;
      border-bottom: 2px solid #1325e8;
    }
    .contact_field .form-control::placeholder{
      font-size: 13px;
      letter-spacing: 1px;
    }

    .contact_info_sec{
      position: absolute;
      background-color: #2d2d2d;
      right: 1px;
      top: 42%;
      height: 108px;
      width: 280px;
      padding: 40px;
      border-radius: 25px 0 0 25px;
      color: #fff;
      box-shadow: 0 10px 30px rgba(0,0,0,.2);
      opacity: 0;
      transform: translateX(40px);
      animation: slideLeft 0.7s ease 0.6s forwards;
    }
    .contact_info_sec h4{
      letter-spacing: 1px;
      padding-bottom: 0;
      margin: 0;
      color: #fff;
      font-weight: 600;
    }

    /* ===== Animations ===== */
    @keyframes fadeIn { from {opacity:0} to {opacity:1} }
    @keyframes slideUp { from {transform:translateY(40px);opacity:0} to {transform:none;opacity:1} }
    @keyframes slideLeft { from {transform:translateX(40px);opacity:0} to {transform:none;opacity:1} }
    @keyframes zoomIn { from {transform:scale(.96);opacity:0} to {transform:scale(1);opacity:1} }

    /* ===== Responsive polish (attractive but stable) ===== */

    /* ≤ 1200px: soften paddings a bit */
    @media (max-width: 1200px){
      .contact_field{ padding: 45px 70px 70px 60px; }
    }

    /* Tablet ≤ 992px */
    @media (max-width: 992px){
      .contact_field{ padding: 40px 30px; }
      .contact_us{
        padding: 90px 0;
        background: linear-gradient(135deg, #f1f1f1 50%, #ece9f2 100%);
      }
      /* turn the right “About Me” badge into a card below */
      .contact_info_sec{
        position: relative;
        width: 100%;
        height: auto;
        top: auto; right: auto;
        margin: 20px 0 0 0;
        padding: 22px;
        border-radius: 15px;
        transform: none;
        opacity: 1;               /* visible without waiting for animation timing */
        background: linear-gradient(135deg, #2d2d2d, #444);
      }
    }

    /* Mobile ≤ 768px */
    @media (max-width: 768px){
      .contact_inner{
        border-radius: 18px;
        box-shadow: 0 8px 22px rgba(0,0,0,.12);
      }
      .contact_field{
        padding: 26px 20px;
        text-align: center;
      }
      .contact_field h3{
        font-size: 28px;
        margin-bottom: 12px;
        color: #1325e8;
      }
      .contact_field p{ font-size: 15px; color: #444; }
      .right_conatct_social_icon{
        min-height: 140px;
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
        border-bottom-left-radius: 18px;
        border-top-left-radius: 18px;
      }
    }

    /* Small Mobile ≤ 576px */
    @media (max-width: 576px){
      .contact_us{ padding: 70px 12px; }
      .contact_inner{ border-radius: 14px; }
      .contact_field{ padding: 16px; }
      .contact_field h3{ font-size: 24px; color: #8f10b7; }
      .contact_field p{ font-size: 14px; color: #555; }
      .contact_info_sec{
        padding: 16px;
        border-radius: 12px;
        box-shadow: 0 6px 16px rgba(0,0,0,.15);
      }
    }


    /* =======================================================================================
     */

     
        /* container */

        .slider-container {
            width: 95%;
            max-width: 1000px;
            margin: 40px auto;
            position: relative;
            overflow: hidden;
        }

        /* slider */

        .slider {
            display: flex;
            transition: transform 0.6s ease;
        }

        /* frame */

        .frame {
            flex: 0 0 100%;
            background: white;
            border: 3px solid black;
            border-radius: 8px;
        }

        /* top */

        .top {
            display: flex;
            border-bottom: 3px solid black;
        }

        /* title */

        .title-box {
            width: 30%;
            border-right: 3px solid black;
            padding: 20px;
            background: #fafafa;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .title-box h3 {
            margin: 0;
            font-size: 22px;
        }

        .title-box p {
            margin-top: 10px;
            font-size: 16px;
        }

        /* image */

        .image-box {
            width: 70%;
        }

        .image-box img {
            width: 27%;
            height: 260px;
            object-fit: cover;
            margin-left: 240px;
        }

        /* bottom */

        .bottom {
            display: flex;
            position: relative;
        }

        /* .bottom::before {
            content: "";
            position: absolute;
            left: 50%;
            top: 0;
            height: 100%;
            border-left: 2px dashed #999;
        } */

        .points {
            width: 50%;
            padding: 20px;
        }

        .points ul {
            margin: 0;
            padding-left: 20px;
        }

        .points li {
            margin-bottom: 8px;
            font-size: 15px;
        }

        /* arrows */

        .nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: black;
            color: white;
            border: none;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 20px;
            z-index: 10;
        }

        .prev {
            left: 10px;
        }

        .next {
            right: 10px;
        }

        /* responsive */

        @media(max-width:768px) {

            .top {
                flex-direction: column;
            }

            .title-box {
                width: 100%;
                border-right: none;
                border-bottom: 3px solid black;
            }

            .image-box {
                width: 100%;
            }

            .bottom {
                flex-direction: column;
            }

            .bottom::before {
                display: none;
            }

            .points {
                width: 100%;
                border-bottom: 1px dashed #ccc;
            }

        }