html{
    scroll-behavior: smooth;
}
body {
    /* margin: 0px;
    padding: 0px; */
    overflow-x: hidden;

}

.ouruni {
    font-size: 40px;
    font-style: italic;
}
@media (max-width: 768px) {
    .ouruni {
        font-size: 30px;
        text-align: center;
    }  
}

h3,h4 {
    text-align: center;
    border-radius: 5px;
    background-color: rgb(238, 222, 169);
    font-style: italic;
    font-family: 'Times New Roman', Times, serif;
   
}
h5{
    text-align: center;
    color: #000;
    background-color: rgb(238, 222, 169);
    font-style: italic;
    font-family: 'Times New Roman', Times, serif;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: #ffffff;
    margin-right: 0.5rem;
}

.navbar-nav .nav-link:hover {
    color: #0165fa;
}

.btn-outline-dark,
.btn-dark {
    border-radius: 0.75rem;
    font-weight: 600;
}

.navbar a i {
    transition: color 0.3s ease;
}

.navbar a:hover i {
    color: #0d6efd;
}

nav {
    /* height: 15%; */
}

span {
    font-style: italic;
    font-size: small;
}

button a {
    text-decoration: none;
    color: #000;
}

#whoweare{
    scroll-margin-top: 60px;
}

footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    footer img {
        max-height: 44px !important;
    }

    .college {
        max-width: 44px;
    }

    .vr {
        max-height: 30px;
    }

    .A {
        max-width: 25px;
        max-height: 50px;
    }

    .B {
        max-width: 25px;
        max-height: 50px;
    }

    nav {
        /* position: sticky; */
        /* height: 13%; */
    }
}

.Surya {
    font-size: 10px;
    margin: 0%;
    padding: 0%;
}

.event-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.event-card:hover {
    transform: translateY(-5px);
}

.event-img {
    height: 100%;
    object-fit: cover;
}

.event-date {
    color: #6c757d;
    font-size: 0.9rem;
}

.register-btn {
    background: #4CAF50;
    border: none;
    transition: background 0.3s;
}

.register-btn:hover {
    background: #45a049;
}

:root {
    --university-blue: #003366;
    --accent-gold: #FFD700;
    --light-bg: #f8f9fa;
}

body {
    font-family: 'Open Sans', sans-serif;
}

:root {
    --university-blue: #003366;
    --accent-gold: #FFD700;
}

.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
    /* background-attachment: fixed; */

}


/* Photo background with overlay */

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-attachment: fixed;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    

}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(60deg, rgba(0, 0, 0, 0.85) 0%, rgba(106, 106, 106, 0.85) 100%);
    z-index: 1;
}


/* Content styling */

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    padding: 1rem 0;
    margin-left: 30px;
    /* letter-spacing: 5px; */
}
.hero-content span{
    letter-spacing: 5px;
}


.club-name span {
    color: var(--accent-gold);
    text-shadow:
    -1px -1px 0 rgb(0, 53, 169),
     1px -1px 0 black,
    -1px  1px 0 black,
     1px  1px 0 rgb(0, 0, 0);
}


/* Animated underline */

.underline-animate {
    position: relative;
    /* display: inline-block; */
    font-size: 95px;
    font-family: "Risque", serif;
    font-weight: 400;
    font-style: normal;
}

.underline-animate::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 6px;
    bottom: 0px;
    left: 0;
    background: var(--accent-gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.hero-content:hover .underline-animate::after {
    transform: scaleX(1);
    transform-origin: left;
}


/* Tagline animation */

.tagline {
    font-size: 15px;
    max-width: 600px;
    margin: 1.8rem 0;
    opacity: .9;
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Replace existing button/link styles with this */

.action-links {
    display: flex;
    flex-direction: column;
    /* Stack vertically */
    gap: 1rem;
    /* Space between buttons */
    margin-top: 1.2rem;
    max-width: 150px;
}

.action-link {
    display: block;
    padding: 6px;
    background: rgba(136, 116, 1, 0.1);
    border: 2px solid rgb(0, 157, 255);
    color: white;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.4s;

}

.action-link:hover {
    background: var(--accent-gold);
    color: var(--university-blue);
    transform: translateY(-2px);
}


/* Floating elements animation */

.floating-element {
    position: absolute;
    animation: float 6s ease-in-out infinite;
    opacity: 0.8;
    z-index: 1;
    top:15%;
     left:15%; 
     animation-delay:0s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}


/* Responsive adjustments */

@media (max-width: 768px) {
    .club-name {
        font-size: 3.0rem;
    }

    .hero-section {
        min-height: 85vh;
    }

    .underline-animate {
        font-size: 70px;
    }

    /* .hero-overlay {
        background: linear-gradient(60deg, rgba(0, 0, 0, 0.85) 0%, rgba(121, 89, 23, 0.9) 100%);
    } */

    .hero-content {
        margin-left: 5px;
        /* letter-spacing: 3px; */

    }
    .floating-element {
        top: 23%;
        left: 35%;
        animation-delay: 0.5s;
    }
}


/* Club Motto Styles */

.club-motto {
    position: absolute;
    top: 1rem;
    width: 100%;
    z-index: 3;
    font-family: 'Hind', sans-serif;
}

.motto-words {
    display: flex;
    padding: 0px 60px 0px 60px;
    justify-content: space-between;
    font-size: 25px;
    font-style: italic;
    font-weight: 500;
    color: rgb(255, 255, 255);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}


/* Mobile responsiveness */

@media (max-width: 768px) {
    .motto-words {
        font-size: 15px;
    }
}


/* Word animations */

.motto-word {
    /* margin: 20px;
    width: 250px;
    padding: 0px 40px ; */
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

.motto-word:nth-child(1) {
    animation-delay: 0.3s;
}

.motto-word:nth-child(2) {
    animation-delay: 0.6s;
}

.motto-word:nth-child(3) {
    animation-delay: 0.9s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.bounce-arrow {
  animation: bounce 1.5s infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
}



#latest {
    min-height: 75vh;
    background-color: #00326b;
}

.aboutus {
    min-height: 75vh;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.85) 0%, rgba(239, 191, 95, 0.9) 100%);
}

.ourfamily {
    min-height: 75vh;
}

.vr {
    height: 50px;
    width: 2px;
    vertical-align: middle;
}

.blurred-bg-section {
    position: relative;
    min-height: 70vh;
    overflow: hidden;
    align-items: center;
}

.bg-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('Assets/family.jpg');
    background-size: cover;
    background-position: center;
    filter: blur(6px);
    z-index: 1;
    transform: scale(1.1);
    /* Prevents blur edge clipping */
    background-color: rgba(0, 0, 0, 0.5);
}

.blurred-bg-section .content {
    z-index: 2;
    position: relative;
}

@media (max-width:768px) {
    .bg-image {
        background-image: url("Assets/family2.jpg");
    }

    .blurred-bg-section {
        height: auto;
    }
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.event {
    background-color: #002651;
    color: white;
}

.glimpses-section {
    min-height: 75vh;
    padding: 3rem 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-color: #f3e9d2;
}

.glimpses-section h1 {
    font-size: 3rem;
    font-weight: bold;
}

.glimpses-section p {
    max-width: 600px;
    margin: 1rem auto 2rem;
    font-size: 1.1rem;
    color: #555;
}

.slider-container {
    overflow: hidden;
    position: relative;
}

.slider-track {
    display: flex;
    gap: 2rem;
    animation: scroll-horizontal 20s linear infinite;
    width: max-content;
}

.slider-container:hover .slider-track {
    animation-play-state: paused;
}

.gallery-item {
    flex: 0 0 auto;
    max-width: 400px;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

@keyframes scroll-horizontal {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}


.annotation {
    position: absolute;
    font-family: 'Comic Sans MS', cursive;
    font-size: 1rem;
    color: #000;
}

.annotation.arrow1 {
    top: 15px;
    left: 30px;
    transform: rotate(-5deg);
}

.annotation.arrow2 {
    top: 15px;
    right: 30px;
    transform: rotate(5deg);
}

.annotation.arrow3 {
    bottom: 20px;
    left: 100px;
    transform: rotate(-10deg);
}


/* Image sizes based on position */

.size-1,
.size-1r {
    width: 100px;
    height: 150px;
    opacity: 0.4;
}

.size-2,
.size-2r {
    width: 140px;
    height: 200px;
    opacity: 0.7;
}   

.size-3 {
    width: 200px;
    height: 300px;
    opacity: 1;
}


.why{
    min-height: 75vh;
    background: linear-gradient(90deg, rgba(0, 0, 100, 0.85) 0%, rgba(83, 83, 217, 0.9) 100%);
}

.single-section{
    background: linear-gradient(90deg,rgba(76, 157, 255, 0.9)0%, rgba(3, 10, 136, 0.85) 100% );
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}



.stats-container {
    padding: 3rem 0;
    background-color: #f9f9f9;
}

.stat-card {
    background: linear-gradient(90deg, rgba(3, 10, 136, 0.85)0%,rgba(103, 3, 118, 0.9)100%, );
    border-radius: 15px;
    padding: 2rem;
    margin: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
    opacity:1;
    transform: translateX(-50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.stat-card.visible {
    opacity: 1;
    transform: translateX(0);
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 4rem;
    font-weight: 00;
    color: rgb(216, 216, 216);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: rgb(255, 255, 255);
    font-weight: 500;
}

.divider {
    height: 4px;
    width: 120px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.85) 0%, rgba(239, 191, 95, 0.9) 100%);
    margin: 1rem auto;
    border-radius: 2px;
}

.loading-bar {
    height: 4px;
    width: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.85) 0%, rgba(239, 191, 95, 0.9) 100%);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    transition: width 0.3s ease;
}

@media (max-width: 768px) {
    .hero-content {
        padding: 3rem 1rem;
    }

    .stat-card {
        padding: 1.5rem;
        margin: 0.5rem;
    }

    .stat-number {
        font-size: 2.2rem;
    }
}






/* Responsive hide outermost images on mobile */

@media (max-width: 768px) {

    .size-1,
    .size-1r {
        display: none;
    }
}

.values-section {
    background: linear-gradient(rgba(2, 2, 2, 0.9), rgba(123, 123, 123, 0.9)), url('Assets/club old.jpg') center/cover no-repeat fixed;
    background-attachment: fixed;
    text-align: center;
    min-height: 75vh;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.value-card {
    background: rgb(12, 21, 75);
    border-radius: 20px;
    padding: 2rem 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.value-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 2.5rem;
    color: white;
}

.sahyog-icon {
    background: linear-gradient(45deg, #4a90e2, #6bb9ff);
}

.maitri-icon {
    background: linear-gradient(45deg, #ff5b5b, #ff8a5b);
}

.sadbhav-icon {
    background: linear-gradient(45deg, #6a3093, #a044ff);
}

.value-title {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 1rem;
    font-weight: 600;
}

.value-meaning {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-style: italic;
    font-weight: 600;
}

.value-desc {
    font-size: 1rem;
    color: #ffffff;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2.2rem;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .value-card {
        padding: 2rem 1.5rem;
    }
}