@import url('https://fonts.cdnfonts.com/css/cascadia-code');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: "Cascadia Code", sans-serif;
}

:root{
    --bg-color: #111111;
    --second-bg-color: rgb(43, 42, 42);
    /* --text-color: white; */
    --main-color:#04fffb;

    --title-color: hsl(0, 0%, 15%);
    --text-color: hsl(0, 0%, 35%);


  --h2-font-size: 1.25rem;
  --small-font-size: .813rem;

      
  --color-primary: #fead53;
  --color-background: #000000;
  --color-text-light: #ffffff;
  --color-text-dark: #333333;
  --transition-speed: 0.3s;
  --max-width: 1650px;
}

html{
    overflow-x: hidden;
}

body {
    background-color: black;
    margin: 0;
    padding: 0;
}

/* Header & Navigation */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.nav {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav_logo {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav_logo img {
    height: 60px;
    width: auto;
    transition: transform var(--transition-speed);
}

.nav_logo img:hover {
    transform: scale(1.1);
}

.nav_links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav_links.active {
    display: flex;
}

.nav_links a {
    color: var(--color-text-light);
    font-size: 1.1rem;
    transition: color var(--transition-speed);
    position: relative;
}

.nav_links a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width var(--transition-speed);
}

.nav_links a:hover:after,
.nav_links a.active:after {
    width: 100%;
}

.nav_links a:hover,
.nav_links a.active {
    color: var(--color-primary);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--color-primary);
    font-size: 2rem;
    cursor: pointer;
}

@media (min-width: 972px) {
    .hamburger {
        display: none !important;
    }

    .nav {
        display: flex !important;
    }
}

@media (max-width: 972px) {
    .hamburger {
        display: block;
    }

    .nav_links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        background: rgba(0, 0, 0, 0.9);
        padding: 2rem;
        width: 100%;
        gap: 1.5rem;
        z-index: 100;
    }

    .nav_links .active {
        display: flex;
    }

    .nav_logo img {
        height: 50px;
    }

    .nav_links a {
        font-size: 1.4rem;
    }
}

/*hero section*/

.first_screen {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;

    width: 100%;
    background-image: linear-gradient(rgba(0,0,0,0.25), rgba(0,0,0,0.25)), url("/assets1/possessed-photography-JjGXjESMxOY-unsplash.jpg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.first_screen a {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 4px solid #fff;
    font-size: 6rem;
    text-decoration: none;
    text-transform: uppercase;
    font-family: sans-serif;
    color: #fff;
    overflow: hidden;
}

a span {
    display: inline-block;
    position: relative;
    transition: 1.0s;
}

a span:nth-child(odd):before {
    content: attr(data-text);
    position: absolute;
    transform: translateY(200%);
}

a span:nth-child(odd) {
    transform: translateY(-200%);
}

a:hover span:nth-child(odd) {
    transform: translateY(0);
}

a span:nth-child(even):before {
    content: attr(data-text);
    position: absolute;
    transform: translateY(-200%);
}

a span:nth-child(even) {
    transform: translateY(200%);
}

a:hover span:nth-child(even) {
    transform: translateY(0);
}

@media screen and (max-width: 768px) {
    a {
        width: 90%;
        height: 150px;
        font-size: 4rem;
    }
}

@media screen and (max-width: 480px) {
    a {
        width: 95%;
        height: 120px;
        font-size: 3rem;
        border-width: 3px;
    }
}

@media screen and (max-width: 320px) {
    a {
        height: 100px;
        font-size: 2.5rem;
        border-width: 2px;
    }
}



section{
    min-height: 100vh;
    padding: 10rem 9% 10rem;
}

/* Faculty */

.faculty {
    background-color: #000;
    color: #fff;
    max-width: 100%;
    margin: 0 auto; /* Center horizontally in case of container issues */
    height: 100vh; /* Full viewport height */
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    text-align: center; /* Ensure text is aligned */

    background-image: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)), url("/assets1/neon-sumer-K8eWS_abimM-unsplash.jpg");
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
}

.bigbox {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center content within bigbox */
    text-align: center; /* Align text inside elements */
}

.head1 {
    font-size: 2.5rem;
    color: #FEAD53;
    text-decoration: underline; /* Underlines the entire text */
    margin-bottom: 50px;
}

.box {
    display: flex;
    flex-direction: row;
    gap: 50px;
    justify-content: center; /* Ensure the inner box is also centered */
    align-items: center; /* Center image and text vertically */
}

.box2 img {
    /* max-width: 100%; Ensure image responsiveness */
    width: 25rem/*1900px*/;
    height: auto;
    margin-left: 8px;
    margin-right: 8px;
}

.box1{
    margin-right: 10px;
}

.name, .post, .about {
    text-align: left; /* Align text to the left */
}

.post{
    color: #FEAD53;
    padding-top: 10px;
    padding-bottom: 15px;
}

.name{
    padding-top: 10px;
}

.name, .post {
    text-align: left; /* Align text to the left */
    line-height: 1.5; /* Increased line spacing for readability */
    font-size: 37px;
}

.about {
    color: rgb(204, 204, 204);
    text-align: left; /* Align text to the left */
    line-height: 28px; /* Slightly less line spacing than name and post */
    font-size: 16px;
}

.know {
    margin-top: 30px;
    background-color: #FEAD53; /* Button color */
    color: #000; /* Text color */
    border: none;
    border-radius: 10px; /* Rounded corners */
    padding: 10px 20px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s ease; /* Smooth animation */
}

.know:hover {
    transform: rotate(-4deg); /* Tilt left on hover */
}

.know:hover:nth-child(2) {
    transform: rotate(3deg); /* Tilt right on hover */
}

/* board */

.theboard{
    color:#fead53;
    font-size: 3rem;
    text-decoration: underline;
}

.board{
    background-color: #000;
    font-family: "Poppins", sans-serif;
    color: #2f2f2f44;
    max-height: 100vh;
    max-width: 100%;

    background-image: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)), url("/assets1/neon-sumer-K8eWS_abimM-unsplash.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.card-article img {
    display: block;
    max-width: 100%;
    height: auto;
}
/*=============== CARD ===============*/
.container {
  display: grid;
  place-items: center;
  margin-inline: 1.5rem; 
  /* padding-block: 5rem; */
}

.card__container {
  display: grid;
  column-gap: 20px;
}

.card__article {
  position: relative;
  overflow: hidden;
}

.card__img {
  width: 328px;
  border-radius: 1.5rem;
}

.card__data {
  width: 280px;
  background-color: #fff;
  padding: 1.5rem 2rem;
  box-shadow: 0 8px 24px hsla(0, 0%, 0%, .15);
  border-radius: 1rem;
  position: absolute;
  bottom: -9rem;
  left: 0;
  right: 0;
  margin-inline: auto;
  opacity: 0;
  transition: opacity 1s 1s;
}

.card__description {
  display: block;
  font-size: var(--small-font-size);
  margin-bottom: .25rem;
}

.card__title {
  font-size: var(--h2-font-size);
  font-weight: 500;
  color: var(--title-color);
  margin-bottom: 15px;
}

.card__button {
  text-decoration: none;
  font-size: 20px;
  font-weight: 500;
  color: #602957;
}

.card__button:hover {
  text-decoration: underline;
}

/* Naming animations in hover */
.card__article:hover .card__data {
  animation: show-data 1s forwards;
  opacity: 1;
  transition: opacity .3s;
}

.card__article:hover {
  animation: remove-overflow 2s forwards;
}

.card__article:not(:hover) {
  animation: show-overflow 2s forwards;
}

.card__article:not(:hover) .card__data {
  animation: remove-data 1s forwards;
}

/* Card animation */
@keyframes show-data {
  50% {
    transform: translateY(-10rem);
  }
  100% {
    transform: translateY(-7rem);
  }
}

@keyframes remove-overflow {
  to {
    overflow: initial;
  }
}

@keyframes remove-data {
  0% {
    transform: translateY(-7rem);
  }
  50% {
    transform: translateY(-10rem);
  }
  100% {
    transform: translateY(.5rem);
  }
}

@keyframes show-overflow {
  0% {
    overflow: initial;
    pointer-events: none;
  }
  50% {
    overflow: hidden;
  }
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 340px) {
  .container {
    margin-inline: 1rem;
  }

  .card__data {
    width: 250px;
    padding: 1rem;
  }
}

/* For medium devices */
@media screen and (min-width: 768px) {
  .card__container {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 1.5rem;
  }
}

/* For large devices */
@media screen and (min-width: 1120px) {
  .container {
    height: 100vh;
  }

  .card__container {
    grid-template-columns: repeat(3, 1fr);
  }
  .card__img {
    width: 348px;
  }
  .card__data {
    width: 316px;
    padding-inline: 2.5rem;
  }
}


/* Footer */

.active-section {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* font-family: Arial, sans-serif; */

    background-color: #000;
    color: #fff;

    max-width: 900%;
    margin: 0 auto;
    padding: 20px;
    text-align: center;

    background-image: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)), url("/assets1/neon-sumer-K8eWS_abimM-unsplash.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Discover Our Activeness Heading */

.fottop{
    height: 40vh;
}
.heading {
    text-align: center;
    margin: 30px 0;
}

.heading h1 {
    font-size: 3em;
    font-weight: bold;
    margin-top: 120px;
    margin-bottom: 100px;
    color: var(--color-primary);
    letter-spacing: 1px;
}


/* Stats Container */
.stats-container {
    display: flex;
    justify-content: space-around;
    margin: 30px 0;
    margin-bottom: 100px;
}

.stat-item h2 {
    font-size: 2em;
    font-weight: bold;
    transition: transform 0.3s ease-in-out;
    padding-bottom: 10px;
}

.stat-item p {
    font-size: 2.1em;
    /* margin-top: 10px; */
    font-weight: bold;
}

/* Zoom Effect */
.zoom-effect:hover {
    transform: scale(1.3);
    color: var(--color-primary);
}

/* Divider */
hr {
    border: 1px solid var(--color-primary);
    margin: 20px 0;
}

/* Bottom Container */
.bottom-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
    margin-bottom: 6em;
    height: 28vh;
    gap: 20px;
}

/* Logo Section */
.logo-section {
    margin-top: 1rem;
    flex: 1;
    text-align: center;
}

.logo-section img {
    height: 85px;
    width: auto;
    margin: 5px;
    transition: transform 0.3s ease-in-out;
}

.logo-section img:hover {
    transform: scale(1.1);
}

.logo-section p {
    margin-top: 20px;
    font-size: 1.5em;
    transition: transform 0.3s ease-in-out;
}

.logo-section p:hover {
    transform: scale(1.1);
}

/* Navigation Section */
.nav-section {
    margin-top: 0.5rem;
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* gap: 10px; */
    justify-items: left;
}

.nav-btn {
    text-decoration: none;
    color: #fff;
    font-size: 1.40em;
    padding: 10px 20px;
/*     background-color: #000; */
    border-radius: 10px;
    text-align: left;
    transition: transform 0.3s, background-color 0.3s;
}

.nav-btn:hover {
    transform: translateY(-5px) scale(1.1);
    background-color: #000;
}

/* Recruitment Section */
.recruit-section {
    margin-top: .80rem;
    flex: 1;
    text-align: left;
}

.recruit-section h3 {
    font-size: 2em;
    margin-bottom: 7px;
    color: var(--color-primary);
}

.mail-btn button {
    background-color: #555;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.3s, background-color 0.3s;
}

.mail-btn button:hover {
    background-color: var(--color-primary);
    transform: scale(1.1) rotate(-3deg);
}

.recruit-section p {
    margin-top: 10px;
    font-size: 1em;
    color: #666;
    line-height: 1.6;
}

.al{
    color: var(--color-primary);
}

.recruit-section p.quote {
    font-style: italic;
    font-size: 1.1em;
    color: #986060;
    margin-top: 20px;
}

/* Footer */
footer {
    margin-top: 15px;
    font-size: 1.4em;
    text-align: center;
}
