@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Tiro+Bangla:ital@0;1&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400;1,700&display=swap');

@font-face {
    font-family: 'Arabic';
    src: url('fonts/A\ Thuluth\ Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --primary-color: #003361;
    --secondary-color: #03b4e0;
    --accent-color: #00c853;
    --dark-bg: #1a1a2e;
    --light-bg: #f8f9fa;
    --text-dark: #2d3436;
    --text-light: #636e72;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tiro Bangla', serif;
    overflow-x: hidden;
    background: var(--light-bg);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

#nav-checkbox,
.nav-toggle {
    display: none;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6)), url("../1/bsm-gate-closed.jpg") no-repeat fixed bottom / cover;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(3, 180, 224, 0.1) 0%, transparent 70%);
    animation: heroGlow 3s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.hero .ar {
    color: rgb(0, 192, 0);
    margin-bottom: 25px;
    font-family: "Arabic", sans-serif;
    font-size: 3rem;
    text-shadow: 0 4px 15px rgba(0, 192, 0, 0.4);
}

.hero h1 {
    color: #03b4e0;
    font-size: 45px;
    line-height: 1.2;
    margin-bottom: 15px;
    text-shadow: 0 4px 15px rgba(3, 180, 224, 0.5);
}

.hero h4 {
    color: #fff;
    font-size: 20px;
    font-weight: normal;
    margin-bottom: 10px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Fade Animations */
.fade-in {
    animation: fadeInUp 1s ease-out;
}

.fade-in-delay {
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

.fade-in-delay-2 {
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

.fade-in-delay-3 {
    animation: fadeInUp 1s ease-out 0.9s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 20px 0;
    transition: all 0.4s ease;
    z-index: 1000;
}

header.active {
    background: rgba(0, 51, 97, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.logo img {
    margin-left: 10px;
    width: 88%;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-menu li {
    display: inline-block;
}

.nav-menu li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    padding: 0 15px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-menu li a:hover::after {
    width: 70%;
}

.nav-menu li a:hover {
    color: #d2ecf8;
}

/* Content */
.content {
    width: 90%;
    max-width: 1400px;
    margin: 60px auto;
    padding: 40px 0;
}

/* Notice Section */
.notice-section {
    margin-bottom: 50px;
}

.notice-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.notice-header i {
    color: var(--accent-color);
    font-size: 1.6rem;
    animation: bellShake 2s ease-in-out infinite;
}

@keyframes bellShake {
    0%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(-10deg); }
    20%, 40% { transform: rotate(10deg); }
    50% { transform: rotate(0deg); }
}

.notice-header h3 {
    color: rgb(4, 109, 4);
    text-align: center;
    font-size: 1.8rem;
}

.marquee-text {
    background: var(--primary-color);
    border: 7px solid var(--primary-color);
    border-radius: 8px;
    color: #fff;
    padding: 5px;
    box-shadow: 0 4px 15px rgba(0, 51, 97, 0.3);
}

/* Section Title */
.section-title {
    text-align: center;
    margin: 60px 0 50px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.section-title.active {
    opacity: 1;
    transform: translateY(0);
}

.section-title h2 {
    font-family: 'Tiro Bangla', serif;
    color: rgb(1, 66, 1);
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.title-underline {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    margin: 0 auto;
    border-radius: 2px;
}

/* Modern Card Container */
.modern-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(50px) scale(0.95);
}

.modern-card.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.modern-card:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transform: translateY(-10px) scale(1.02);
}

/* Card Layout */
.modern-card .card-image-container {
    position: relative;
    overflow: hidden;
    height: 400px;
}

.modern-card .card-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.modern-card:hover .card-image-container img {
    transform: scale(1.15) rotate(2deg);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 51, 97, 0.8), rgba(3, 180, 224, 0.6));
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modern-card:hover .image-overlay {
    opacity: 1;
}

.card-content,
.card-content-arabic {
    padding: 45px;
}

.card-content-arabic {
    direction: rtl;
    font-family: "Amiri", serif;
}

/* Badge */
.badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--secondary-color), #0096c7);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(3, 180, 224, 0.3);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.badge-success {
    background: linear-gradient(135deg, var(--accent-color), #1de9b6);
    box-shadow: 0 4px 15px rgba(0, 200, 83, 0.3);
}

/* Card Headings */
.card-content h3,
.card-content-arabic h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-content h3 i,
.card-content-arabic h3 i {
    color: var(--secondary-color);
    font-size: 1.8rem;
}

.card-content p,
.card-content-arabic p {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.card-content-arabic p {
    font-size: 1.2rem;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin: 30px 0;
}

.info-item {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 25px;
    border-radius: 15px;
    border-right: 5px solid var(--secondary-color);
    transition: all 0.3s ease;
}

.info-item:hover {
    background: linear-gradient(135deg, #e3f2fd, #e1f5fe);
    transform: translateX(-5px);
    box-shadow: 0 5px 20px rgba(3, 180, 224, 0.2);
}

.info-item i {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-left: 10px;
}

.info-item strong {
    color: var(--primary-color);
    font-size: 1.3rem;
    display: block;
    margin-bottom: 15px;
}

.info-item p {
    color: var(--text-dark);
    font-size: 1.1rem;
    line-height: 1.8;
}

.info-item ul {
    list-style: none;
    margin-top: 15px;
}

.info-item ul li {
    padding: 10px 0;
    padding-right: 30px;
    position: relative;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.info-item ul li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, #e3f2fd, #e1f5fe);
    border-right: 5px solid var(--secondary-color);
    padding: 25px;
    border-radius: 12px;
    margin: 25px 0;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.highlight-box:hover {
    transform: translateX(-5px);
    box-shadow: 0 5px 20px rgba(3, 180, 224, 0.2);
}

.highlight-box i {
    color: var(--secondary-color);
    font-size: 2rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.highlight-box p {
    margin: 0;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.1rem;
}

/* Quote Box */
.quote-box {
    background: linear-gradient(135deg, var(--primary-color), #00509e);
    color: white;
    padding: 35px;
    border-radius: 15px;
    margin: 30px 0;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 51, 97, 0.3);
}

.quote-box i {
    font-size: 2.5rem;
    opacity: 0.2;
}

.quote-box p {
    margin: 15px 0;
    font-size: 1.4rem;
    font-weight: 600;
    color: white;
    line-height: 1.8;
}

/* Achievement Stats */
.achievement-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.stat-item {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 25px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    border-bottom: 4px solid var(--accent-color);
}

.stat-item:hover {
    background: linear-gradient(135deg, var(--accent-color), #1de9b6);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 200, 83, 0.3);
}

.stat-item i {
    font-size: 2.5rem;
    color: var(--accent-color);
    transition: color 0.3s ease;
}

.stat-item:hover i {
    color: white;
}

.stat-item span {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.stat-item:hover span {
    color: white;
}

/* Buttons */
.read-more-btn,
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary-color), #00509e);
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 51, 97, 0.3);
    margin-top: 20px;
}

.cta-button {
    background: linear-gradient(135deg, var(--accent-color), #1de9b6);
    box-shadow: 0 5px 20px rgba(0, 200, 83, 0.3);
}

.read-more-btn:hover,
.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 51, 97, 0.4);
}

.cta-button:hover {
    box-shadow: 0 8px 30px rgba(0, 200, 83, 0.4);
}

/* Full Width Card */
.modern-card-full .card-content {
    padding: 50px;
}

/* Statistics Wrapper */
.stats-wrapper {
    margin: 80px 0;
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--primary-color), #00509e);
    border-radius: 25px;
    box-shadow: 0 15px 50px rgba(0, 51, 97, 0.3);
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.stats-wrapper.active {
    opacity: 1;
    transform: scale(1);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-card {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stat-card:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.stat-bg {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    opacity: 0;
    transition: all 0.6s ease;
    border-radius: 50%;
    z-index: 0;
}

.stat-card:hover .stat-bg {
    opacity: 0.08;
    top: -30%;
    right: -30%;
}

.stat-icon {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-radius: 50%;
    margin-bottom: 20px;
    box-shadow: 0 8px 25px rgba(3, 180, 224, 0.3);
    transition: all 0.3s ease;
}

.stat-card:hover .stat-icon {
    transform: rotateY(360deg);
}

.stat-icon i {
    color: white;
    font-size: 2.5rem;
}

.num {
    position: relative;
    z-index: 2;
    display: block;
    font-family: 'Rajdhani', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 15px 0;
}

.text {
    position: relative;
    z-index: 2;
    display: block;
    font-size: 1.2rem;
    color: var(--text-light);
    font-weight: 600;
}

/* Scroll Reveal */
.scroll-reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
footer {
    font-family: 'Rajdhani', sans-serif;
    display: flex;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    padding: 60px 10%;
    margin-top: 80px;
}

.footer-col {
    width: 25%;
    padding: 0 15px;
}

.footer-col img {
    width: 90px;
    margin-bottom: 15px;
}

.footer-col p {
    color: #bdbdbd;
    line-height: 1.8;
}

.footer-col h4 {
    position: relative;
    margin-bottom: 30px;
    font-weight: 600;
    font-size: 1.3rem;
    color: var(--secondary-color);
    text-transform: capitalize;
}

.footer-col h4::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    height: 3px;
    width: 50px;
    border-radius: 2px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li:not(:last-child) {
    margin-bottom: 10px;
}

.footer-col ul li a {
    display: block;
    font-size: 1rem;
    text-transform: capitalize;
    color: #bdbdbd;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-col ul li a:hover {
    color: white;
    padding-left: 8px;
}

.links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 45px;
    width: 45px;
    color: white;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    margin: 0 8px 8px 0;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(3, 180, 224, 0.3);
}

.links a:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(3, 180, 224, 0.5);
}

.com {
    font-family: 'Rajdhani', sans-serif;
    color: #fff;
    background: #0a0e27;
    text-align: center;
    padding: 20px;
}

.com img {
    width: 35px;
    vertical-align: middle;
    margin-right: 8px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .content {
        width: 95%;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    header {
        display: block;
        padding: 15px 20px;
    }

    .logo {
        margin-left: 0;
    }

    .logo img {
        width: 60%;
    }

    .nav-toggle {
        display: block;
        position: absolute;
        cursor: pointer;
        margin: 0 1rem;
        top: 25px;
        right: 0;
    }

    .nav-toggle img {
        width: 35px;
    }

    .close,
    input[type='checkbox'] {
        display: none;
    }

    #nav-checkbox:checked ~ .nav-menu {
        background: rgba(0, 51, 97, 0.98);
        backdrop-filter: blur(10px);
        margin-top: 15px;
        padding: 20px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 10px;
    }

    .nav-menu li {
        display: none;
        margin: 15px 0;
    }

    #nav-checkbox:checked ~ ul.nav-menu li {
        display: block;
        animation: slideInNav 0.3s ease forwards;
    }

    @keyframes slideInNav {
        from {
            opacity: 0;
            transform: translateX(-20px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    #nav-checkbox:checked ~ label.nav-toggle .open {
        display: none;
    }

    #nav-checkbox:checked ~ label.nav-toggle .close {
        display: block;
    }

    .hero .ar {
        font-size: 2.2rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero h4 {
        font-size: 1.1rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .modern-card .card-image-container {
        height: 300px;
    }

    .card-content,
    .card-content-arabic {
        padding: 30px;
    }

    .card-content h3,
    .card-content-arabic h3 {
        font-size: 1.2rem;
    }

    .modern-card .card-image-container {
        height: 200px;
    }

    .stat-icon {
        width: 70px;
        height: 70px;
    }

    .stat-icon i {
        font-size: 2rem;
    }

    .num {
        font-size: 2.5rem;
    }

    .text {
        font-size: 1rem;
    }
}
    

    .modern-card-full .card-content {
        padding: 35px;
    }

    .stats-wrapper {
        padding: 40px 15px;
        margin: 50px 0;
    }

    .stats-container {
        gap: 20px;
    }

    .footer-col {
        width: 50%;
        margin-bottom: 30px;
        text-align: center;
    }

    .footer-col h4::before {
        left: 50%;
        transform: translateX(-50%);
    }


@media (max-width: 600px) {
    .hero .ar {
        font-size: 1.8rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero h4 {
        font-size: 1rem;
    }

    .content {
        padding: 20px 0;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }

    .modern-card .card-image-container {
        height: 250px;
    }

    .card-content,
    .card-content-arabic,
    .modern-card-full .card-content {
        padding: 25px;
    }

    .card-content h3,
    .card-content-arabic h3 {
        font-size: 1.4rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .card-content p,
    .card-content-arabic p {
        font-size: 1rem;
    }

    .info-item {
        padding: 20px;
    }

    .quote-box {
        padding: 25px;
    }

    .quote-box p {
        font-size: 1.1rem;
    }

    .achievement-stats {
        grid-template-columns: 1fr;
    }

    .stats-wrapper {
        padding: 30px 10px;
        margin: 40px 0;
    }

    .stats-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stat-card {
        padding: 30px 15px;
    }

    .num {
        font-size: 3rem;
    }

    .footer-col {
        width: 100%;
    }

    .read-more-btn,
    .cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

@media (max-width: 400px) {
    .hero .ar {
        font-size: 1.5rem;
    }

    .hero h1 {
        font-size: 1.3rem;
    }

    .hero h4 {
        font-size: 0.9rem;
    }

    .section-title h2 {
        font-size: 1.3rem;
    }

    .card-content h3,
    .card-content-arabic h3 {
        font-size: 1.5rem;
    }   
}