:root {
    --bg-dark: #ffffff;
    /* Clean White Background */
    --bg-card: #f8faff;
    /* Very light blue-white for depth */
    --primary: #f8cf3c;
    /* Updated Warm Yellow */
    --primary-glow: rgba(248, 207, 60, 0.4);
    --secondary: #313693;
    /* Royal Blue matched from logo */
    --secondary-glow: rgba(49, 54, 147, 0.05);
    --accent-blue: #2d9cdb;
    --text-main: #313693;
    /* Royal Blue main text */
    --text-muted: #4a5568;
    /* Slate Grey for muted text */
    --glass: rgba(49, 54, 147, 0.02);
    --glass-border: rgba(49, 54, 147, 0.08);
    --container-width: 1400px;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 10% 10%, rgba(248, 207, 60, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 90%, rgba(49, 54, 147, 0.02) 0%, transparent 40%);
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: #222;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #333;
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 700;
}

span {
    color: var(--primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 2.2rem;
    border-radius: 100px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: linear-gradient(90deg, #f8cf3c 0%, #ffffff 100%);
    color: #000a1f;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 0 20px rgba(248, 207, 60, 0.15);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(248, 207, 60, 0.3), 0 0 30px rgba(248, 207, 60, 0.2);
}

.btn-ghost {
    background: transparent;
    color: #fff;
    padding: 0.7rem 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.btn-ghost:hover {
    color: var(--primary);
}

/* Header */
header {
    height: 90px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(49, 54, 147, 0.85); /* Royal Blue adjusted for readability */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

#site-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

header.scrolled #site-logo {
    height: 50px;
}

.nav-links {
    display: flex;
    gap: 1rem;
    margin-left: auto;
    padding-right: 1rem;
}

.nav-links li {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-links a {
    font-size: 1rem;
    font-weight: 500;
    color: #ffffff;
    opacity: 0.85;
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    transition: var(--transition), border 0.3s ease;
    border: 1px solid transparent;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--primary);
}

.nav-links a.active-link {
    opacity: 1;
    color: var(--primary);
    border: 1px solid var(--primary);
    background: rgba(248, 207, 60, 0.1);
    animation: border-pop 0.4s cubic-bezier(0.17, 0.67, 0.83, 0.67);
}

@keyframes border-pop {
    0% {
        transform: scale(0.95);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.nav-links a:hover {
    opacity: 1;
    color: var(--primary);
}

.nav-actions {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-actions .btn-ghost {
    font-weight: 700;
}

/* Hero */
.hero {
    padding-top: 250px;
    padding-bottom: 250px;
    display: flex;
    justify-content: center;
    text-align: center;
    background-image: linear-gradient(rgba(49, 54, 147, 0.85), rgba(49, 54, 147, 0.7)), url('assets/iomfb-building.png');
    background-size: cover;
    background-position: center;
    position: relative;
    min-height: 90vh;
    color: #ffffff;
    /* Explicitly white for hero content */
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 400px;
    background: linear-gradient(to top, #ffffff 10%, rgba(255, 255, 255, 0.9) 30%, rgba(255, 255, 255, 0) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 2rem;
    backdrop-filter: blur(5px);
}

@media (max-width: 768px) {
    .hero {
        padding-top: 180px;
        padding-bottom: 150px;
    }

    .hero h1 {
        font-size: 2.8rem !important;
    }

    .hero p {
        font-size: 1.1rem !important;
    }
}

.hero h1 {
    font-size: 4.8rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: #ffffff;
    font-weight: 800;
    text-shadow: 0 4px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.4);
}

.hero p {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 auto 3rem;
    max-width: 800px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-container {
    position: relative;
    perspective: 1000px;
}

.floating-card {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
    animation: float 6s ease-in-out infinite;
    transform-style: preserve-3d;
}

.card-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, var(--primary-glow), transparent 70%);
    z-index: -1;
    filter: blur(30px);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotateX(10deg) rotateY(-10deg);
    }

    50% {
        transform: translateY(-20px) rotateX(15deg) rotateY(0deg);
    }
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.2rem;
    line-height: 1.6;
}

/* About Us */
.about-us {
    padding: 120px 0;
}

.about-container {
    max-width: 1000px;
    margin: 0 auto;
}

.about-history {
    background: #ffffff;
    padding: 4rem;
    border-radius: 40px;
    border: 1px solid #edf2f7;
    box-shadow: 0 20px 60px rgba(49, 54, 147, 0.04);
    position: relative;
    overflow: hidden;
}

.about-history::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
}

.about-history p {
    color: #000000;
    font-size: 1.15rem;
    line-height: 1.9;
    margin-bottom: 2rem;
}

.about-history p:last-child {
    margin-bottom: 0;
}

.about-history p span {
    color: #000000;
    font-weight: 600;
}

@media (max-width: 768px) {
    .about-history {
        padding: 2.5rem 1.5rem;
    }

    .about-history p {
        font-size: 1.05rem;
    }
}

@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

/* Our Products */
.products {
    padding: 120px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.product-card {
    padding: 2.5rem 1.5rem;
    background: #ffffff;
    border: 1px solid #edf2f7;
    border-radius: 24px;
    box-shadow: 0 8px 25px rgba(49, 54, 147, 0.02);
    transition: var(--transition);
    text-align: center;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(49, 54, 147, 0.06);
}

.product-icon {
    font-size: 2.5rem;
    margin-bottom: 1.2rem;
    display: block;
}

.product-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--secondary);
}

.product-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Individual card sizing for the 7th item (centered or spanning) */
@media (min-width: 1025px) {
    .product-card:last-child {
        grid-column: span 1;
    }
}

@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* Common Section Spacing */
.section-padding {
    padding: 100px 0;
}

/* Staff Section Styling (Directors & Management) */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.staff-card {
    background: #ffffff;
    border: 1px solid #edf2f7;
    border-radius: 24px;
    padding: 2.5rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(49, 54, 147, 0.03);
}

.staff-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 50px rgba(49, 54, 147, 0.08);
}

.staff-photo-container {
    width: 160px;
    height: 200px;
    background: var(--bg-card);
    border-radius: 12px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #f8faff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.staff-photo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.staff-icon {
    font-size: 3rem;
}

.staff-info h3 {
    font-size: 1.4rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.staff-title {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Contact Section Styling */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 5rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: #f8faff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    border: 1px solid #edf2f7;
}

.contact-text h4 {
    font-size: 1.1rem;
    color: var(--secondary);
    margin-bottom: 0.3rem;
}

.contact-text p {
    color: var(--text-muted);
}

.contact-form {
    background: #ffffff;
    padding: 3rem;
    border-radius: 30px;
    border: 1px solid #edf2f7;
    box-shadow: 0 15px 50px rgba(49, 54, 147, 0.04);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    background: #f8faff;
    border: 1px solid #edf2f7;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--secondary);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 4px var(--primary-glow);
}

@media (max-width: 968px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Footer */
footer {
    padding: 100px 0 40px;
    background: #000;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr repeat(4, 1fr);
    gap: 4rem;
    margin-bottom: 80px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 1.5rem;
    max-width: 250px;
}

.footer-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.link-group h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.link-group ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.link-group a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.link-group a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--glass-border);
    padding-top: 40px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Mobile Navigation */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 2000;
}

.mobile-toggle span {
    width: 30px;
    height: 3px;
    background: #ffffff;
    border-radius: 10px;
    transition: var(--transition);
}

.mobile-toggle.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-toggle.open span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .nav-links {
        display: none !important;
    }

    .mobile-toggle {
        display: flex;
    }

    .nav-links.active {
        display: flex !important;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--secondary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        z-index: 1500;
        opacity: 0;
        visibility: hidden;
        transition: 0.3s ease;
    }

    .nav-links.active.show {
        opacity: 1;
        visibility: visible;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .footer-brand p {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

    .about-grid,
    .staff-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* Return Home Section */
.return-home {
    background: var(--bg-card);
    border-top: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.return-home::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 40%;
    height: 200%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    opacity: 0.1;
    z-index: 0;
}

.text-center {
    text-align: center;
}

.home-btn-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    position: relative;
    z-index: 1;
}

.home-section-btn {
    padding: 1.2rem 3.5rem !important;
    font-size: 1.1rem !important;
    box-shadow: 0 15px 35px var(--primary-glow);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.home-section-btn:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 45px var(--primary-glow);
}

/* Floating Home Button */
.floating-home-btn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    border: 2px solid #fff;
}

.floating-home-btn.active {
    opacity: 1;
    visibility: visible;
}

.floating-home-btn:hover {
    transform: scale(1.1) translateY(-5px);
    background: #fff;
    color: var(--primary);
}