/* ================== Google Fonts Family ================== */
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap');


/* ================== Universal Selector ================== */
* {
    font-family: "Lato", sans-serif;
}

html {
    scroll-padding-top: 56px;
    overflow-x: hidden;
}



/* =================== Navbar Styles Start Here ================== */
.navbar {
    background-color: #ffffff;

}

.navbar-brand {
    font-size: 2.1rem;
    font-weight: 900;
    color: #2563eb;
}

.navbar-brand:hover {
    color: #2563eb;
}

.navbar-brand span {
    color: #1e2c44;
}

/* added gap in nav links */
.navbar-nav {
    display: flex; 
    gap: 1rem;
}
/* added shadow box and hover effact in nav-links */
.nav-item a {
    color: #1e2c44; 
    /* adding box hover effact */
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.75rem 0.75rem;  
    border-radius: 12px;  
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.25);
    transition: all 0.3s ease-in-out;
} 
.nav-item a:hover{
    background: linear-gradient(90deg , #1e2c44 40%, #2563eb 100%);
    border-color: #2563eb;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 20px rgba(33 , 136 , 56 , 0.4);
    color: white;
    font-size: 1.1rem;
}

/* ================== Navbar Styles End Here ================== */


/* ================== Hero Styles Start Here ================== */
.heroSection {
    margin-top: 56px;
    background-color: #f8fafc;
    padding: 2rem 0;
}


.heroSection-Container {
    display: flex;
    justify-content: center;
    align-items: center;
}


.gssoc-logo {
    height: 14px;
    width: 17px;
}

.gssocContainer {
    display: flex;
    align-items: center;
    max-width: 150px;
    justify-content: center;
    border-radius: 36px;
    padding: 3px 0;
    color: white;
    background: #e0ecfa;
    margin: 1rem 0;
}

.gssocContainer p {
    margin-bottom: 0;
    display: inline-block;
    font-size: 12px;
    color: #81a6d3;
}

.shinning-effect {
    mask: linear-gradient(-60deg, #000 30%, #0005, #000 70%) right/450% 100%;
    animation: shiningEff 2.5s infinite;
}

@keyframes shiningEff {
    100% {
        mask-position: left;
    }
}


.heroDescription {
    margin-bottom: 1.2rem;
}

.heroSection-Left h1 {
    color: black;
    font-size: 58px;
    font-weight: 900;
    margin: 1rem 0;
}

.blueCol {
    color: #2563eb;

}

.heroSection-Left p {
    color: #7e7f88;
    text-align: justify;
    font-size: 14px;
    hyphens: auto;
}

.ctaBtn-Container {
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 10px;
}

.heroSectionBtn {
    text-align: center;
    padding: 7px 60px !important;
    border-radius: 40px !important;
    background: #2563eb !important;
    color: white !important;
    transition: all 0.2s ease-in-out;
}

.heroSectionBtn:hover {
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    background-color: #0b5ed7;
}

.heroSectionBtn i {
    font-size: 14px;
    margin-right: 5px;
}

/* ================== Hero Styles End Here ================== */


/* ================== Challenge Styles Start Here ================== */
#challengeSection {
    padding: 2rem 0;
}

.challengeContainer .card {
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    border: none;
    transition: all 0.2s ease-in-out;
    border-radius: 15px;
    margin: 15px 0;
}

.challengeContainer .card:hover {
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

.challengeContainer .card:hover {
    transform: translateY(-2px);

}

.card-TopContainer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-Header {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 0;
}

.card-Level {
    margin-bottom: 0;
    font-size: 12px;
    padding: 4px 25px;
    border-radius: 17px;
    background: #d5edda;
    color: #1a7071;
    font-weight: 700;
}

.medium-Col {
    background-color: #fff3cd;
    color: #a88825;
}

.hard-Col {
    background-color: #f8d7da;
    color: #7d1c1c;
}

.card-Participate {
    font-size: 13px;
    color: #8b8b8b;
    margin-bottom: 8px;
    margin-top: 1px;
    opacity: 0.9;
}

.card-Text {
    font-size: 14px;
    opacity: 0.8;
    text-align: justify;
    hyphens: auto;
}



.card-CTAButton {
    display: flex;
    align-items: center;
    justify-content: end;

}

.card-Btn {
    text-decoration: none;
    font-size: 13px;
    padding: 8px 36px;
    border-radius: 5px;
    background-color: #2563eb;
    color: white;
    border: none;
    transition: all 0.2s ease-in-out;
    font-weight: 700;
}

.card-Btn:hover {
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    background-color: #0b5ed7;
}

/* ================== Challenge Styles End Here ================== */


/* ================== Leaderboard Styles Starts Here ================== */
#leaderboardSection {
    padding: 2rem 0;
    background-color: #f8fafc;
}

.owl-carousel .card {
    border: none;
    background: transparent;

}


.secHeader {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
}

.secHeader span {
    color: #2563eb;
}

.leaderboard-Para {
    text-align: center;
    opacity: 0.8;
}


.leaderboard-Img {
    width: 100px !important;
    border: 5px solid #e0ecfa;
    border-radius: 100%;
}

.userName {
    opacity: 0.9;
    font-weight: 700;
}

.leaderBoard-userContainer {
    display: flex;
    justify-content: center;
    align-items: center;
}

.leaderBoard-Container {
    text-align: center;
}

.leaderBoard-Container h5 {
    font-size: 24px;
    margin: 1rem 0;

}

.leaderboradUser-RankContainer {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

.leaderboradUser-RankContainer p {
    margin-bottom: 0;
    padding: 10px 30px;
    border-radius: 10px;
    background: #0000ff;
    color: white;
    font-weight: 700;
    border: none;
    font-size: 13px;

}

.rankPosition {
    padding: 10px 40px !important;
}

.rankPoints {
    background-color: skyblue !important;
    color: darkblue !important;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

.rankPoints:hover {
    background-color: #0000ff !important;
    color: white !important;
}

.leaderBoard-Container:hover .leaderboard-Img,
.leaderBoard-Container:hover .rankPoints,
.leaderBoard-Container:hover .rankPosition {
    mask: linear-gradient(-60deg, #000 30%, #0005, #000 70%) right / 450% 100%;
    -webkit-mask: linear-gradient(-60deg, #000 30%, #0005, #000 70%) right / 450% 100%;
    animation: rankList 2.5s infinite;
    -webkit-animation: rankList 2.5s infinite;
}

@keyframes rankList {
    100% {
        mask-position: left;
        -webkit-mask-position: left;
    }
}

/* ================== Leaderboard Styles End Here ================== */


/* ================== About Styles Start Here ================== */
#aboutSection {
    padding: 2rem 0;
}

.aboutContainer {
    display: flex;
    justify-content: center;
    align-items: center;
}

.aboutContainer .col-10 {
    opacity: 0.8;
    text-align: center;
}

.aboutCTA-Btn {
    text-decoration: none;
    font-weight: 700;
    margin-top: 1.5rem;
    display: inline-block;
  padding: 0.75rem 1.75rem;
  background: linear-gradient(135deg, #28a745, #218838);
  color: #fff;
  font-size: 1rem;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(40, 167, 69, 0.25);
  transition: all 0.3s ease;

}
.aboutCTA-Btn:hover {
  background: linear-gradient(135deg, #218838, #1e7e34);
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(33, 136, 56, 0.4);
}
@keyframes pulse {
    0%, 100% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.03);
    }
  }

/* ================== About Styles End Here ================== */


/* --- Footer Redesign --- */
.footer-contact-btn {
    width: 150px;
    min-width: 100px;
    max-width: 170px;
    font-size: 0.97rem;
    padding: 0.45em 0;
    border-radius: 8px;
    gap: 0.4em;
}
.footer-contact-btn:hover {
    background: linear-gradient(90deg, #1e2c44 60%, #2563eb 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(30,44,68,0.15);
    transform: translateY(-2px) scale(1.03);
}
.footer-contact-btn i {
    font-size: 1em;
    margin-right: 0.4em;
}

footer {
    padding-top: 2.5rem;
    padding-bottom: 1.5rem;
    background: linear-gradient(90deg, #f8fafc 60%, #e0ecfa 100%);
    border-top: 1.5px solid #e5e7eb;
    box-shadow: 0 -2px 16px rgba(30,44,68,0.06);
}
footer .container {
    max-width: 1200px;
}
footer .row.align-items-start {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    row-gap: 2.5rem;
}
.footer-logo-col, .footer-links-col, .footer-contact-col-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    flex: 1 1 0;
    padding: 0 1rem;
}
.footer-links-col, .footer-contact-col-main {
    border-left: 1.5px solid #e5e7eb;
}
.footer-logo-col {
    border-right: 2px solid #e5e7eb;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
@media (max-width: 991px) {
    .footer-logo-col {
        border-right: none;
        min-height: unset;
    }
}
.footer-logo, .footer-desc {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}
.footer-logo {
    font-size: 2.3rem;
    font-weight: bolder;
    color: #2563eb;
    margin-bottom: 0.3rem;
    letter-spacing: 1px;
}
.footer-desc {
    font-size: 1rem;
    color: #4a5568;
    opacity: 0.85;
    margin-top: 0.3rem;
    max-width: 320px;
    padding-right: 1.5rem;
}
.footer-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.7rem;
    color: #1e2c44;
    letter-spacing: 0.5px;
    text-align: center;
}
.footer-contact-links {
    margin-top: 0;
}
.footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}
.footer-links li {
    margin: 0;
    padding: 0;
    list-style: none;
}
.footer-links a {
    color: #1e2c44;
    text-decoration: none;
    font-size: 1rem;
    opacity: 0.85;
    transition: color 0.2s, opacity 0.2s;
}
.footer-links a:hover {
    color: #2563eb;
    opacity: 1;
}
.scroll_to_top{
  position: fixed;
  color: white;
  bottom: 15px;
  right: 20px;
  z-index: 999;
  width: 40px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #2563eb;
  transform: translateY(0);
  transition: all 0.3s ease;
  border-radius: 50%; 
  text-decoration: none;
}
.scroll_to_top:hover{
    background: linear-gradient(45deg, #2563eb , #0000ff);
    transform: translateY(-3px) scale(1.05);
}


@media (min-width: 992px) {
    .footer-logo, .footer-desc {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    .footer-title {
        font-size: 1.2rem;
    }
}
@media (max-width: 991px) {
    footer .row.align-items-start {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    .footer-logo-col, .footer-links-col, .footer-contact-col-main {
        border: none;
        padding: 0;
        min-width: 0;
    }
    .footer-logo, .footer-desc, .footer-title {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        padding-right: 0;
    }
    .footer-links, .footer-contact-links {
        align-items: center;
        text-align: center;
    }
    .footer-contact-btn {
        margin-left: auto;
        margin-right: auto;
    }
    .footer-links {
        margin-bottom: 2rem;
        margin-right: 0;
    }
    .footer-title {
        margin-bottom: 0.8rem;
    }
}
@media (max-width: 768px) {
    footer .row {
        flex-direction: column;
        align-items: center;
    }
    .footer-links, .footer-contact-links {
        margin-bottom: 1.5rem;
        margin-right: 0;
    }
    .footer-contact-btn {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }
}

/* ================== Media queries start here for home screen and carousel buttons ================== */

@media (max-width: 992px) {
    .heroSectionBtn {
        padding: 4px 40px !important;
    }


}

@media (max-width: 576px) {

    .rankPosition,
    .rankPoints {
        padding: 4px 30px !important;
    }
}

/* ================== Media queries end here for home screen and carousel buttons ================== */

.footer-logo, .footer-desc, .navbar-brand {
    display: block;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}
.footer-desc {
    font-size: 1rem;
    color: #4a5568;
    opacity: 0.85;
    margin-top: 0.3rem;
    max-width: 380px;
    padding: 0 1.5rem;
    line-height: 1.6;
}
@media (min-width: 992px) {
    .footer-logo, .footer-desc, .navbar-brand {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        max-width: 420px;
    }
    .footer-desc {
        max-width: 420px;
        padding: 0 2rem;
    }
}

.footer-links-row {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 2.5rem;
}
.footer-links-row .footer-links {
    margin: 0;
    padding: 0;
    min-width: 110px;
}
@media (max-width: 768px) {
    .footer-links-row {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    .footer-links-row .footer-links {
        min-width: 0;
        margin-bottom: 0.5rem;
    }
}

.footer-contact-row {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 2.5rem;
}
.footer-contact-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}
@media (max-width: 768px) {
    .footer-contact-row {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    .footer-contact-col {
        gap: 0.2rem;
        margin-bottom: 0.5rem;
    }
}
.footer-contact-col-main .footer-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: #2563eb;
    letter-spacing: 1px;
    margin-bottom: 1.1rem;
    position: relative;
}
.footer-contact-col-main .footer-title::after {
    content: '';
    display: block;
    width: 38px;
    height: 3px;
    background: linear-gradient(90deg, #2563eb 60%, #1e2c44 100%);
    border-radius: 2px;
    margin: 0.4rem auto 0 auto;
}



/* Custom Navbar Styling */
.custom-navbar {
  background-color: #0d1b2a; /* Dark blue/navy background */
  transition: background-color 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

/* Base link color */
.custom-navbar .nav-link,
.custom-navbar .nav-link:visited,
.custom-navbar .nav-link.active {
  color: #ffffff !important;
  transition: color 0.3s ease;
}

/* Hover and active-hover effect */
.custom-navbar .nav-link:hover,
.custom-navbar .nav-link.active:hover {
  color: #fca311 !important; /* Gold */
  text-decoration: underline;
}

/* Brand name styling */
.custom-navbar .navbar-brand {
  color: #fca311;
  font-weight: bold;
}

/* Brand name span (the 'Clip' part in CodeClip) */
.custom-navbar .navbar-brand span {
  color: #ffffff;
}
