:root {
    --font-heading: 'Manrope', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* --------------------------------------------------
   GLOBAL STYLES
-------------------------------------------------- */
body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
    background-color: #ffffff;
    color: #222;
}

section {
    padding-top: 20px;
    padding-bottom: 20px;
}

.text-subtitle {
    font-size: 1em;
}

.text-w-subtitle {
    font-size: 1em;
    color: #fff;
}

/* --------------------------------------------------
   NAVBAR
-------------------------------------------------- */
.nav-glass {
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 5px 15px;
    border-radius: 20px;
    color: #5e5c5c;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    transition:
        background 0.3s ease,
        transform 0.25s ease,
        box-shadow 0.3s ease;
}

.nav-glass:hover {
    border-color: rgba(255, 255, 255, 0.45);

    /* ✅ ADD THIS LINE */
    background: rgba(255, 255, 255, 0.35);

    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);

    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.15),
        inset 0 1px 1px rgba(255, 255, 255, 0.6);

    transform: scale(1.06);
    color: #198754;
}

/* --------------------------------------------------
   home SECTION
-------------------------------------------------- */
.home-section {
    min-height: 95vh;
    background: linear-gradient(rgba(0, 0, 0, .55),
            rgba(0, 0, 0, .35)),
        url('assets/images/banner.jpg') center/cover no-repeat;
}

.home-title {
    font-size: 3rem;
}

.home-subtitle {
    font-size: 1.4rem;
    text-transform: capitalize;
    max-width: 90%;
}

.home-btn {
    font-size: clamp(0.9rem, 1.4vw, 1rem);
    padding: 0.6rem 1.6rem;
    margin-bottom: 40px;
}

/* --------------------------------------------------
   About SECTION
-------------------------------------------------- */
.about-section {
    background-color: #e8f3eb;
    border-top-left-radius: 1.7rem;
    border-top-right-radius: 1.7rem;
    padding-top: 40px !important;
    padding-bottom: 60px;
    position: relative;
    margin-top: -90px;
    /* Pull upward into home */
    z-index: 10;
}

/* ABOUT HEADING COLOR */
.about-section h3 {
    font-size: 1.9rem;
}

.text-subtitle {
    font-size: 1.1rem;
    font-weight: 400;
}

/* CENTER ICON ABOVE HEADING */
.about-icon {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);
}

/* Icon styling */
.about-icon i {
    font-weight: bold;

}

.about-icon:hover i {
    transform: rotate(180deg);
    transition: 0.3s ease;
}

/* --------------------------------------------------
   THESIS SECTION
-------------------------------------------------- */
.thesis-section {
    background: url('assets/images/image1.png') center/cover no-repeat;
    min-height: 52vh;
    border-top-left-radius: 2rem;
    border-top-right-radius: 2rem;
    position: relative;
    margin-top: -30px;
    z-index: 10;
}

/* Titles */
.thesis-title {
    color: #ffffff;
    font-size: 1.9rem;
    letter-spacing: 1px;
}

.card-front p {
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0px 5px;
}

.card-hover p {
    font-size: 1rem;
}

.thesis-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px;
    border-radius: 12px;
    background: #f8f9fa;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.3s ease;
}

/* Lift on hover */
.thesis-card:hover {
    transform: translateY(-10px);
}

/* FRONT CONTENT */
.card-front {
    position: relative;
    z-index: 2;
    text-align: center;
    transition: opacity 0.3s ease;
}

.card-front img {
    margin-bottom: 6px;
}

.card-hover {
    position: absolute;
    left: 0;
    bottom: -100%;
    width: 100%;
    height: 100%;
    padding: 14px;
    background: #0d623a;
    /* theme green */
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.8rem;
    line-height: 1.4;
    transition: bottom 0.4s ease;
}

/* Slide up on hover */
.thesis-card:hover .card-hover {
    bottom: 0;
}

/* Fade front slightly */
.thesis-card:hover .card-front {
    opacity: 0.15;
}

@media (max-width: 438px) {
    .thesis-card .card-hover {
        display: none;
        /* hide hover content */
    }

    .thesis-card:hover .card-front {
        opacity: 1;
        /* prevent fade */
    }
}

.thesis-info {
    position: relative;
    background: #e8fff2;
    border-radius: 12px;
    color: #000;
    z-index: 10;
    padding: 20px 10px;
    width: 100%;
    margin: 0 auto;
    margin-top: -10px;
    margin-bottom: -100px;
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.2);
}

.thesis-info .info-box {
    position: relative;
}


@media (min-width: 768px) {
    .thesis-info .info-box:not(:last-child)::after {
        content: "";
        position: absolute;
        right: 0;
        top: 20%;
        height: 60%;
        width: 2px;
        background: rgba(0, 0, 0, 0.25);
    }
}

/* Mobile */
@media (max-width: 767px) {
    .thesis-info .info-box:not(:last-child)::after {
        content: "";
        position: absolute;
        top: 90%;
        left: 15%;
        width: 70%;
        height: 2px;
        background: rgba(0, 0, 0, 0.25);
    }
}

/* =========================
   TEAM CARD
========================= */

.team-section {
    margin-top: 12vh;
    margin-bottom: -30px;
}

.team-card {
    position: relative;
    background: rgb(46, 247, 46);
    border-radius: 12px;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

/* --------------------------------------------------
   PARTNER SECTION
-------------------------------------------------- */

.partner-section {
    background: url('assets/images/image2.png') center/cover no-repeat;
    border-bottom-left-radius: 2rem;
    border-bottom-right-radius: 2rem;
    padding-top: 2rem;
}

.partner-card {
    background: #ffffff;
    width: 200px;
    height: 200px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.1);
    transition: 0.3s ease;
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 12px 25px rgba(0, 0, 0, 0.18);
}

/* Logo inside card */
.partner-logo {
    width: 100%;
    height: auto;
    object-fit: contain;
}


/* --------------------------------------------------
   PORTFOLIO BOX
-------------------------------------------------- */
.portfolio-left {
    background: url('/assets/images/image3.png') center/cover no-repeat;
    border-radius: 20px;
    width: 100%;
}

/* GRID BOX */
.grid-box {
    width: 110px;
    height: 110px;
    background: #fff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #000;
    font-weight: 600;
    margin-bottom: 8px;
}

/* ANIMATIONS */
.marquee-container {
    height: 350px;
    overflow: hidden;
    position: relative;
}

.marquee-inner-up,
.marquee-inner-down {
    display: flex;
    flex-direction: column;
    /* ✅ vertical */
}

.marquee-inner-up {
    animation: marqueeUp 12s linear infinite;
}

.marquee-inner-down {
    animation: marqueeDown 12s linear infinite;
}

@keyframes marqueeUp {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-50%);
    }
}

@keyframes marqueeDown {
    from {
        transform: translateY(-50%);
    }

    to {
        transform: translateY(0);
    }
}

/* BUTTON */
.know-more-btn {
    border-radius: 30px;
    padding: 6px 18px;
    font-size: 1rem;
    font-weight: 500;
}


/* --------------------------------------------------
   CONTACT SECTION
-------------------------------------------------- */
/* Contact Section Background */
.contact-section {
    background: url('/assets/images/image5.png') center/cover no-repeat;
    padding: 10px 0;
    position: relative;
}

/* Title */
.contact-title {
    color: #004b2b;
    /* dark green */
    font-size: 1.9rem;
}

/* Subtitle text */
.contact-subtitle {
    font-size: 1.1rem;
    color: #385c54;
    margin-bottom: 40px;
}

/* Inputs & Dropdown */
.custom-input {
    border-radius: 8px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ccc;
    font-size: 1rem;
    transition: 0.3s;
}

.custom-input:focus {
    border-color: #008b4c;
    box-shadow: 0 0 0 3px rgba(0, 139, 76, 0.25);
}

/* Button */
.contact-btn {
    background: #0d6f47;
    color: #fff;
    font-weight: 600;
    padding: 5px 15px;
    border-radius: 8px;
    font-size: 1rem;
}

.contact-btn:hover {
    background: #0b5a39;
}

/* Make form centered and clean */
.contact-form {
    max-width: 850px;
    margin: auto;
}

/* ===============================
   BOTTOM SECTION 
================================ */
.bottom-section {
    background: #0d623a;
    color: #ffffff;
    font-family: 'DM Sans', sans-serif;
}

/* Logo */
.bottom-logo-img {
    width: 150px;
}

/* Text paragraphs */
.bottom-text {
    font-size: 0.75rem;
    line-height: 1rem;
    opacity: 0.9;
}

.bottom-icon-text {
    font-size: 0.75rem;
    margin-top: -10px;
    opacity: 0.9;
}

/* Vertical dividers */
.bottom-center,
.bottom-right {
    padding-left: 40px;
    margin-top: 35px;
}

.vertical-divider {
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: rgba(255, 255, 255, 0.4);
}

/* Headings with wave */
.bottom-heading {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* Useful Links */
.bottom-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bottom-links li {
    margin: 6px 0;
}

.bottom-links a {
    color: #ffffff;
    text-decoration: none;
    opacity: 0.9;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    padding-bottom: 3px;
    transition: 0.3s;
}

.bottom-links a:hover {
    padding-left: 5px;
    opacity: 1;
}

/* Red dot beside About */
.dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: red;
    border-radius: 50%;
    margin-left: 4px;
}

/* Mobile fixes */
@media (max-width: 768px) {

    .vertical-divider {
        display: none;
    }

    .bottom-center,
    .bottom-right {
        padding-left: 10px;
        margin-top: 20px;
    }
}

/* --------------------------------------------------
   RESPONSIVE TWEAKS
-------------------------------------------------- */
@media (max-width: 768px) {
    .home-section h1 {
        font-size: 2.2rem;
    }

    .navbar-nav .nav-link {
        padding-left: 4px;
    }
}


/* --------------------------------------------------
   Portfolios.html
-------------------------------------------------- */
#navbar {
    margin-bottom: 78px;
}

.portfolio-detail-card {
    height: 85%;
    padding: 24px 18px 56px;
    border: 1px solid transparent;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    /* 🔒 prevents content overflow */
    will-change: transform;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.portfolio-col .portfolio-detail-card:hover {
    transform: translate3d(0, -10px, 0);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12),
        inset 0 0 0 1px rgba(0, 0, 0, 0.08);
    border-color: rgba(66, 65, 65, 0.05);
}

.portfolio-logo {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.portfolio-logo img {
    max-height: 100%;
    max-width: 70%;
    object-fit: contain;
}

.portfolio-detail-card h5 {
    margin-bottom: 8px;
    word-break: break-word;
}

.portfolio-detail-card p {
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 10px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.portfolio-detail-card .badge {
    top: 10px;
    font-size: 11px;
    padding: 6px 10px;
    margin-bottom: 10px;
    border-radius: 20px;
    z-index: 2;
}

.portfolio-detail-card a {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    opacity: 0;
    visibility: hidden;
    z-index: 3;
    font-size: 22px;
    pointer-events: none;
}

/* Show only on hover */
.portfolio-detail-card:hover a {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

@media (max-width: 768px) {
    .portfolio-detail-card {
        min-height: 300px;
        padding: 20px 16px 52px;
    }

    .portfolio-logo {
        height: 70px;
    }

    .portfolio-detail-card p {
        font-size: 13.5px;
    }
}

@media (min-width: 769px) {
    .text-padding {
        padding-left: 40%;
    }
}

/* ===============================
   PORTFOLIO-2 SECTION (FULL WIDTH BACKGROUND)
================================ */
.portfolio2-container {
    margin-top: 30px;
    border-radius: 15px;
    padding: 15px 30px;
    background: url('/assets/images/image3.png') center / cover no-repeat;
}

.portfolio2-logo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    justify-items: center;
}

/* 🔒 FIXED LOGO CONTAINER (KEY FIX) */
.logo-box {
    width: 160px;
    height: 80px;

    background: #ffffff;
    border-radius: 10px;
    padding: 12px 16px;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.logo-box:hover {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    transform: translateX(0%) translateY(-10%);
}

/* Image should NEVER control size */
.logo-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 768px) {
    .logo-box {
        width: 140px;
        height: 70px;
    }
}

@media (max-width: 480px) {
    .portfolio2-logo-grid {
        grid-template-columns: 1fr;
    }

    .logo-box {
        width: 180px;
        height: 68px;
    }
}