/* -------------------- GLOBAL RESET -------------------- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Raleway", sans-serif;
}

body {
    position: relative;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow: visible;
    font-family: "Raleway", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: transparent;
    /* ✅ Show bg5.jpg from ::before */
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-image: url('bg/12.jpg');
    background-size: cover;
    background-position: center;
    z-index: -1;
    filter: blur(3px);
    /* ✅ Blur the background image */
    transform: scale(1.05);
    /* ✅ Prevent clipping at edges due to blur */
}


/* -------------------- NAVBAR -------------------- */

nav {
    background: rgba(255, 255, 255, 0.2);
    /* Semi-transparent white */
    backdrop-filter: blur(5px);
    /* Blurs background */
    -webkit-backdrop-filter: blur(5px);
    /* Safari support */
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.2rem;
}

.navbar {
    max-width: 1200px;
    margin: auto;
    padding: 0.8rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 80px;
    width: auto;
    margin-right: 10px;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.navbar ul li {
    position: relative;
    animation: fadeUp 0.6s ease forwards;
    opacity: 0;
}

.navbar ul li:nth-child(1) {
    animation-delay: 0.1s;
}

.navbar ul li:nth-child(2) {
    animation-delay: 0.2s;
}

.navbar ul li:nth-child(3) {
    animation-delay: 0.3s;
}

.navbar ul li:nth-child(4) {
    animation-delay: 0.4s;
}

.navbar ul li:nth-child(5) {
    animation-delay: 0.5s;
}

.navbar ul li:nth-child(6) {
    animation-delay: 0.6s;
}

.navbar ul li:nth-child(7) {
    animation-delay: 0.7s;
}

.navbar ul li:nth-child(8) {
    animation-delay: 0.8s;
}

.navbar ul li:nth-child(9) {
    animation-delay: 0.9s;
}

.navbar ul li:nth-child(10) {
    animation-delay: 1s;
}

.navbar ul li a {
    display: inline-block;
    padding: 10px 15px;
    text-decoration: none;
    color: white;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.navbar ul li a:hover,
.navbar ul li a.active {
    background: black;
    color: white;
    border-color: #7a766cde;
    transform: scale(1.3);
}

.navbar ul li a:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: black;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}


/* -------------------- ANIMATIONS -------------------- */

@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards;
}

.slide-in {
    transform: translateX(-20px);
    opacity: 0;
    animation: slideIn 1s forwards;
}

.bounce {
    animation: bounce 1s infinite alternate;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes bounce {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-5px);
    }
}


/* -------------------- HOME PAGE CONTENT -------------------- */

.main_content {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.left,
.right {
    background-color: rgba(255, 255, 255, 0.1);
    /* semi-transparent */
    backdrop-filter: blur(2px);
    /* the blur effect */
    -webkit-backdrop-filter: blur(12px);
    /* for Safari */
    padding: 40px 20px;
    margin-top: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.left h2,
.right h2 {
    color: #ffffff;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #ffffff;
    display: inline-block;
    padding-bottom: 5px;
}

.right h3 {
    color: #ffffff;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.left p,
.right p {
    margin-bottom: 0.8rem;
    text-align: justify;
    font-size: 1.3rem;
    color: #ffffff;
}

.left-image {
    margin-top: 5.5rem;
    text-align: center;
}

.left-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    ;
    transition: transform 0.3s ease-in-out;
}

.left-image img:hover {
    transform: scale(1.05);
}


/* -------------------- RESPONSIVE -------------------- */

@media (max-width: 900px) {
    .navbar ul {
        gap: 1rem;
    }
    .main_content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .navbar ul {
        flex-direction: column;
        width: 100%;
        margin-top: 1rem;
    }
    .navbar ul li {
        width: 100%;
    }
    .navbar ul li a {
        display: block;
        width: 100%;
        padding: 10px;
    }
    .main_content {
        margin: 2rem 1rem;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .about-us h1,
    .left h2,
    .right h2 {
        font-size: 1.3rem;
    }
    .about-us h2,
    .right h3 {
        font-size: 1.1rem;
    }
    .about-us p,
    .left p,
    .right p {
        font-size: 0.95rem;
    }
}


/* Desktop - two columns */

.main_content {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}


/* On smaller screens, stack them */

@media (max-width: 900px) {
    .main_content {
        grid-template-columns: 1fr;
        /* single column */
    }
}