* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'OSOBlack';
    src: url('../assets/fonts/OpenSauceOne-Black.ttf') format('truetype');
}
@font-face {
    font-family: 'OSOBlackItalic';
    src: url('../assets/fonts/OpenSauceOne-BlackItalic.ttf') format('truetype');
}
@font-face {
    font-family: 'OSOBold';
    src: url('../assets/fonts/OpenSauceOne-Bold.ttf') format('truetype');
}

@font-face {
    font-family: 'OSOBoldItalic';
    src: url('../assets/fonts/OpenSauceOne-BoldItalic.ttf') format('truetype');
}

@font-face {
    font-family: 'OSOExtraBold';
    src: url('../assets/fonts/OpenSauceOne-ExtraBold.ttf') format('truetype');
}

@font-face {
    font-family: 'OSOExtraBoldItalic';
    src: url('../assets/fonts/OpenSauceOne-ExtraBoldItalic.ttf') format('truetype');
}

@font-face {
    font-family: 'OSOItalic';
    src: url('../assets/fonts/OpenSauceOne-Italic.ttf') format('truetype');
}

@font-face {
    font-family: 'OSOLight';
    src: url('../assets/fonts/OpenSauceOne-Light.ttf') format('truetype');
}

@font-face {
    font-family: 'OSOLightItalic';
    src: url('../assets/fonts/OpenSauceOne-LightItalic.ttf') format('truetype');
}

@font-face {
    font-family: 'OSOMedium';
    src: url('../assets/fonts/OpenSauceOne-Medium.ttf') format('truetype');
}

@font-face {
    font-family: 'OSOMediumItalic';
    src: url('../assets/fonts/OpenSauceOne-MediumItalic.ttf') format('truetype');
}

@font-face {
    font-family: 'OSORegular';
    src: url('../assets/fonts/OpenSauceOne-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'OSOSemiBold';
    src: url('../assets/fonts/OpenSauceOne-SemiBold.ttf') format('truetype');
}

@font-face {
    font-family: 'OSOSemiBoldItalic';
    src: url('../assets/fonts/OpenSauceOne-SemiBoldItalic.ttf') format('truetype');
}

/* ANIMATIONS AND SCROLL BEHAVIOR */
html {
    scroll-behavior: smooth;
}

body {
    background-color: #fff;
    color: #000;
    line-height: 1.6;
    overflow-x: hidden;
}

/* KEYFRAME ANIMATIONS */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes slideUpZoomOut {
    0% {
        opacity: 0;
        transform: translateY(50%);
    }
    50% {
        transform: scale(1.03);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes teamMemberSlideIn {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes textGlow {
    0%, 100% {
        text-shadow: 0 0 1px rgba(108, 92, 231, 0.5);
    }
    50% {
        text-shadow: 0 0 2px rgba(108, 92, 231, 0.8), 0 0 30px rgba(108, 92, 231, 0.6);
    }
}

/* INTERSECTION OBSERVER CLASSES */
.fade-in-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease-out;
}

.fade-in {
    opacity: 0;
    transition: all 0.8s ease-out;
}

.zoom-in {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s ease-out;
}

.animate {
    opacity: 1 !important;
    transform: translate(0, 0) scale(1) !important;
}

/* NAVBAR ANIMATIONS */
.header-content {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    z-index: 1050;
    box-shadow: 0 0 5px rgba(107, 107, 255, 0.4);
    background-color: white;
}

.navbar {
    width: 100%;
    transition: all 0.3s ease-in-out;
}

.hamburger {
    display: none;
}

.logo img {
    height: 70px;
    padding-left: 15rem;
    padding-right: 1rem;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.1);
}

.nav-item {
    font-family: 'OSOMedium', sans-serif !important;
    font-size: 13px;
    color: rgb(0, 0, 0);
    text-decoration: none;
    margin: 0 10px;
    white-space: nowrap;
    position: relative;
    transition: all 0.3s ease;
}

.acc-item {
    font-family: 'OSOMedium', sans-serif !important;
    font-size: 13px;
    color: rgb(0, 0, 0);
    text-decoration: none;
    margin: 0 10px;
    white-space: nowrap;
    position: relative;
    padding: 0 16rem 0 54rem;

}

.nav-item::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: #6c5ce7;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-item:hover::after {
    width: 100%;
}

.nav-item:hover {
    color: #6c5ce7;
    transform: translateY(-2px);
}

.acc-img {
    height: 20px;
}

.nav-item img:hover {
    transform: scale(1.2);
}

.modal-footer {
    justify-content: center;
    border: none;
    margin-left: 50rem;
    margin-right: 15rem;
    gap: 10px;
}

.btn-success {
    width: 5rem;
    background-color: #6c5ce7;
    color: white;
    padding: 10px 15px 10px 15px;
    border: none;
    border-radius: 20px;
    font-size: 12.5px;
    cursor: pointer;
    transition: all 0.3s ease; 
    font-family: 'OSOBold', sans-serif !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    justify-content: center;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-success:hover {
    background-color: rgba(108, 92, 231, 0.9);
    box-shadow: 0 10px 25px rgba(108, 92, 231, 0.3);
    color: white;
    transform: translateY(-2px);
}

.btn-secondary {
    width: 5rem;
    background-color: #ffffff;
    color: rgb(0, 0, 0);
    padding: 10px 15px 10px 15px;
    border: 0.5px solid rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    font-size: 12.5px;
    cursor: pointer;
    transition: all 0.3s ease; 
    font-family: 'OSOBold', sans-serif !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    justify-content: center;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-secondary:hover {
    border: 0.5px solid rgba(0, 0, 0, 0.3);
    background-color: #6c5ce7;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    color: white;
    transform: translateY(-2px);
}

/* HERO SECTION ANIMATIONS */
.hero {
    padding: 60px 0;
    text-align: center;
}

.hero-container {
    margin-bottom: 7rem;
    padding: 0 20px;
}

.hero-logo {
    margin-top: 11rem;
    margin-bottom: 30px;
}

.hero-logo img {
    width: min(30rem, 90vw);
    height: auto;
    animation: slideUpZoomOut 1.2s ease-out;
    transition: transform 0.3s ease;
}

.hero-content {
    width: 100%;
    margin: 0 auto;
    max-width: 800px;
}

.tagline {
    font-family: 'OSOBoldItalic', sans-serif !important;
    font-size: clamp(18px, 4vw, 24px);
    margin-bottom: 10px;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease-out 0.3s both;
    position: relative;
}

.description {
    font-family: 'OSORegular', sans-serif !important;
    font-size: clamp(16px, 3.5vw, 20px);
    color: #000000;
    line-height: 1.3;
    padding: 0 20px;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

/* TEAM SECTION ANIMATIONS */
.team {
    padding: 60px 0 100px;
    background: linear-gradient(to bottom, #ffffff, #897CE9);
    text-align: center;
}

.section-title {
    font-size: clamp(30px, 8vw, 50px);
    font-family: 'OSOBlack', sans-serif !important;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #000, #6c5ce7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textGlow 3s ease-in-out infinite;
}

.section-tagline {
    font-size: clamp(16px, 4vw, 21px);
    margin: -10px 0 40px 0;
    color: #000000;
    font-family: 'OSOItalic', sans-serif !important;
}

.team-container {
    width: 100%;
    max-width: 82rem;
    margin: 0 auto;
    padding: 0 20px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
    justify-items: center;
}

/* TEAM MEMBER PHOTOS - SCROLL TRIGGERED ANIMATIONS */
.member-photo {
    width: 100%;
    max-width: 20rem;
    height: 32rem;
    background-size: cover;
    background-position: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    /* Initial state - hidden and transformed */
    opacity: 0;
    transform: translateY(50px);
}

.member-photo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.member-photo:hover::before {
    opacity: 1;
}

.member-photo:hover {
    transform: translateY(-15px) scale(1.05);
    border-radius: 15px;
}

/* Animated state - triggered by scroll */
.member-photo.animate-member {
    opacity: 1;
    transform: translateY(0);
    transition: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Staggered delays for scroll-triggered animations */
.member-photo:nth-child(1).animate-member { transition-delay: 0.1s; }
.member-photo:nth-child(2).animate-member { transition-delay: 0.2s; }
.member-photo:nth-child(3).animate-member { transition-delay: 0.3s; }
.member-photo:nth-child(4).animate-member { transition-delay: 0.4s; }
.member-photo:nth-child(5).animate-member { transition-delay: 0.5s; }
.member-photo:nth-child(6).animate-member { transition-delay: 0.6s; }
.member-photo:nth-child(7).animate-member { transition-delay: 0.7s; }
.member-photo:nth-child(8).animate-member { transition-delay: 0.8s; }


/* Member photo hover effects */
.bg-photo.Raga {
    background-image: url('../assets/images/our-team/Raga.png');
}
.bg-photo.Raga:hover {
    background-image: url('../assets/images/our-team/Raga-hover.png');
}

.bg-photo.Iqbal {
    background-image: url('../assets/images/our-team/Iqbal.png');
}
.bg-photo.Iqbal:hover {
    background-image: url('../assets/images/our-team/Iqbal-hover.png');
}

.bg-photo.Abror {
    background-image: url('../assets/images/our-team/Abror.png');
}
.bg-photo.Abror:hover {
    background-image: url('../assets/images/our-team/Abror-hover.png');
}

.bg-photo.Vanya {
    background-image: url('../assets/images/our-team/Vanya.png');
}
.bg-photo.Vanya:hover {
    background-image: url('../assets/images/our-team/Vanya-hover.png');
}

.bg-photo.Karin {
    background-image: url('../assets/images/our-team/Karin.png');
}
.bg-photo.Karin:hover {
    background-image: url('../assets/images/our-team/Karin-hover.png');
}

.bg-photo.Sandi {
    background-image: url('../assets/images/our-team/Sandi.png');
}
.bg-photo.Sandi:hover {
    background-image: url('../assets/images/our-team/Sandi-hover.png');
}

.bg-photo.Nabil {
    background-image: url('../assets/images/our-team/Nabil.png');
}
.bg-photo.Nabil:hover {
    background-image: url('../assets/images/our-team/Nabil-hover.png');
}

.bg-photo.Habib {
    background-image: url('../assets/images/our-team/Habib.png');
}
.bg-photo.Habib:hover {
    background-image: url('../assets/images/our-team/Habib-hover.png');
}

/* FOOTER ANIMATIONS */
footer {
    background-color: #fff;
    padding: 30px 0;
    border-top: 1px solid #eee;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.footer-container {
    max-width: 90rem;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.05);
}

.footer-logo img {
    height: 30px;
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.footer-logo img:hover {
    transform: rotate(10deg);
}

.footer-text {
    font-size: clamp(24px, 6vw, 40px);
    font-family: 'OSOBlack', sans-serif !important;
}

.copyright {
    font-size: clamp(12px, 3vw, 14px);
    color: #000000;
    font-family: 'OSOBold', sans-serif !important;
    text-align: center;
}

/* ======================
   RESPONSIVE BREAKPOINTS
   ====================== */

/* Tablet Styles */
@media (max-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .member-photo {
        height: 28rem;
    }
    
    .hero-logo {
        margin-top: 8rem;
    }
}

@media (max-width: 992px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .member-photo {
        height: 30rem;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .header-content{
        flex-wrap: wrap;
        height: 5rem;
        z-index: 2000;
    }
    .navbar {
        height: auto;
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
        background-color: white;
        opacity: 0;
        transform: translateY(-20px);
        box-shadow: 0 2px 5px rgba(107, 107, 255, 0.4);
        transition: all 0.3s ease;
    }

    .navbar--open{
        opacity: 1;
        transform: translateY(0);
    }

    
    .logo img {
        height: 70px;
        margin-top: 8px;
        padding-left: 1.8rem;
    }
    
    .nav-item {
        margin: 0.5rem 0.5rem 0.5rem 1rem;
        opacity: 0;
        transition: all 0.3s ease;
    }

    .navbar--open .nav-item {
        opacity: 1;
    }

    
    .acc-item {
        padding: 0;
    }
    .acc-img {
        padding: 2px;
        margin: 5px;
        height: 18px;
    }

    
    .modal-footer {
        margin: 0.5rem 0.5rem 0.5rem 1rem;
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
        transform: translateX(-20px);
        opacity: 0;
        transition: all 0.3s ease;
    }

    .navbar--open .modal-footer {
        transform: translateX(0);
        opacity: 1;
    }

    .hamburger {
        display: block;
        margin-left: auto;
        margin-top: 8px;
        margin-right: 1.5rem;
        cursor: pointer;
    }

    .bar {
        height: 2px;
        width: 27px;
        background-color: rgb(101, 85, 226);
        margin: 5px 0;
        transition: all 0.3s ease-in-out;
    }
    

    .hamburger--open .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger--open .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger--open .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .hero {
        padding-top: 10rem;
    }
    
    .hero-container {
        margin-bottom: 4rem;
    }
    
    .hero-logo {
        margin-top: 6rem;
        margin-bottom: 20px;
    }
    
    .hero-logo img {
        width: min(25rem, 85vw);
    }
    
    .tagline::before,
    .tagline::after {
        display: none;
    }
    
    .team {
        padding: 40px 0 60px;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin-top: 20px;
    }
    
    .member-photo {
        height: 25rem;
    }
    
    .section-tagline {
        margin: -5px 0 30px 0;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-text {
        margin: 0;
    }
}

@media (max-width: 576px) {
    .hero-logo {
        margin-top: 5rem;
    }
    
    .hero-logo img {
        width: min(20rem, 80vw);
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .member-photo {
        height: 35rem;
        max-width: 25rem;
    }
    
    /* Adjust delays for single column layout */
    .member-photo:nth-child(1).animate-member { transition-delay: 0.1s; }
    .member-photo:nth-child(2).animate-member { transition-delay: 0.15s; }
    .member-photo:nth-child(3).animate-member { transition-delay: 0.2s; }
    .member-photo:nth-child(4).animate-member { transition-delay: 0.25s; }
    .member-photo:nth-child(5).animate-member { transition-delay: 0.3s; }
    .member-photo:nth-child(6).animate-member { transition-delay: 0.35s; }
    .member-photo:nth-child(7).animate-member { transition-delay: 0.4s; }
    .member-photo:nth-child(8).animate-member { transition-delay: 0.45s; }
    
    .team-container {
        padding: 0 15px;
    }
    
    .description br {
        display: none;
    }
}

@media (max-width: 480px) {
    .navbar {
        flex-wrap: wrap;
        height: auto;
        min-height: 60px;
        padding: 10px;
    }
    
    .nav-item {
        font-size: 11px;
        margin: 0.5rem 0.5rem 0.5rem 1rem;

    }
    .hero-container {
        margin-bottom: 3rem;
    }
    
    .hero-logo {
        margin-top: 4rem;
    }
    
    .team {
        padding: 30px 0 40px;
    }
    
    .member-photo {
        height: 30rem;
        max-width: 20rem;
    }
    
    .section-title {
        margin-bottom: 5px;
    }
    
    .section-tagline {
        margin: 0 0 20px 0;
    }
}

/* Extra small devices */
@media (max-width: 380px) {
    .member-photo {
        height: 25rem;
        max-width: 18rem;
    }
    
    .hero-logo img {
        width: min(18rem, 75vw);
    }
}