/* style.css */

/* ---------------------------------- */
/* 1. CSS Variables & Root Styles     */
/* ---------------------------------- */
:root {
    --primary-color: #00f5d4; /* Vibrant Teal */
    --secondary-color: #ff5470; /* Vivid Coral */
    --accent-color: #fde24f;   /* Sunny Yellow */
    --primary-color-dark: #00bfa5;

    --text-color: #363636;
    --heading-color: #1a1a1a;
    --light-text-color: #ffffff;
    --subtle-text-color: #7a7a7a;

    --light-bg: #f8f9fa;
    --dark-bg: #222328;
    --white: #ffffff;
    --border-color: #dbdbdb;

    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Nunito', sans-serif;

    --border-radius: 8px;
    --shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 15px 30px rgba(0, 0, 0, 0.12);
    
    --transition-bouncy: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    --transition-smooth: all 0.3s ease-in-out;
}

/* ---------------------------------- */
/* 2. Global Styles & Typography      */
/* ---------------------------------- */
html {
    scroll-behavior: smooth;
    background-color: var(--white);
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.7;
    font-size: 1.1rem;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .title, .subtitle {
    font-family: var(--font-heading);
    color: var(--heading-color);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

.title {
    color: var(--heading-color) !important;
}

.subtitle {
    color: var(--subtle-text-color) !important;
}

a {
    color: var(--primary-color);
    transition: var(--transition-smooth);
    font-weight: 600;
}

a:hover {
    color: var(--primary-color-dark);
}

.section {
    padding: 4rem 1.5rem;
}

/* ---------------------------------- */
/* 3. Header & Navigation             */
/* ---------------------------------- */
.header.is-fixed-top {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.navbar-item, .navbar-link {
    font-family: var(--font-body);
    font-weight: 600;
    transition: var(--transition-smooth);
}

.navbar-item:hover, .navbar-link:hover {
    background-color: transparent !important;
    color: var(--primary-color) !important;
}

.navbar-brand .navbar-item strong {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--heading-color);
}

.navbar-burger {
    color: var(--heading-color);
}


/* ---------------------------------- */
/* 4. Global Button Styles            */
/* ---------------------------------- */
.button {
    font-family: var(--font-heading);
    letter-spacing: 1px;
    border-radius: var(--border-radius);
    transition: var(--transition-bouncy);
    border-width: 2px;
}

.button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-hover);
}

.button.is-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--heading-color);
}

.button.is-primary:hover {
    background-color: var(--primary-color-dark);
    border-color: var(--primary-color-dark);
}

.button.is-primary.is-outlined {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.button.is-primary.is-outlined:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--heading-color);
}


/* ---------------------------------- */
/* 5. Hero Section                    */
/* ---------------------------------- */
#hero {
    position: relative;
    color: var(--light-text-color);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero-background.is-parallax {
    background-attachment: fixed;
}

#hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 20, 30, 0.6), rgba(0, 0, 0, 0.7));
    z-index: 2;
}

#hero .hero-body {
    position: relative;
    z-index: 3;
}

#hero .title, #hero .subtitle {
    color: var(--light-text-color) !important;
}


/* ---------------------------------- */
/* 6. Card Component Styles           */
/* ---------------------------------- */
.card {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition-bouncy);
    border: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.card .card-image {
    width: 100%;
    text-align: center;
}

.card .card-image img {
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
    width: 100%;
    height: 250px; /* Fixed height for image containers */
    object-fit: cover;
}

.card .card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.card .card-content .content {
    margin-top: auto;
}

/* Success Stories specific card style */
#success-stories .card .media {
    text-align: left;
    align-items: center;
}


/* ---------------------------------- */
/* 7. Section Specific Styles         */
/* ---------------------------------- */

/* History Section */
#history img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* Clientele Section Tiles */
#clientele .tile .box {
    border-radius: var(--border-radius);
    transition: var(--transition-bouncy);
}
#clientele .tile .box:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-hover);
}
.has-background-primary-light { background-color: #e0fcf9 !important; }
.has-background-info-light { background-color: #e6f3ff !important; }
.has-background-warning-light { background-color: #fff8e1 !important; }
.has-background-success-light { background-color: #e9f5ea !important; }


/* Events Calendar */
#events .event-date {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    color: var(--heading-color);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
}

#events .event-date .day {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

#events .event-date .month {
    font-size: 1rem;
    line-height: 1;
    text-transform: uppercase;
}


/* Resources Section */
#resources .button {
    margin: 0.5rem;
}


/* Contact Section & Form */
#contact {
    background: var(--dark-bg);
    background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('image/contact-background-abstract.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: var(--border-radius);
    margin: 2rem; /* Add margin to show the rounded corners */
}

#contact .title, #contact p, #contact strong {
    color: var(--light-text-color) !important;
}

.contact-form .label {
    color: var(--light-text-color);
    font-weight: 600;
}

.contact-form .input, .contact-form .textarea {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    color: var(--light-text-color);
    transition: var(--transition-smooth);
}

.contact-form .input::placeholder, .contact-form .textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.contact-form .input:focus, .contact-form .textarea:focus {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.125em rgba(0, 245, 212, 0.25);
}

/* ---------------------------------- */
/* 8. Footer                          */
/* ---------------------------------- */
.footer {
    background-color: var(--dark-bg);
    color: var(--subtle-text-color);
}

.footer strong {
    color: var(--light-text-color);
    font-family: var(--font-heading);
}

.footer a {
    color: var(--subtle-text-color);
    font-weight: 400;
}

.footer a:hover {
    color: var(--primary-color);
}

.footer .content p {
    color: var(--subtle-text-color);
}


/* ---------------------------------- */
/* 9. Scroll Animations               */
/* ---------------------------------- */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.scroll-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* ---------------------------------- */
/* 10. Other Pages (Success, Privacy) */
/* ---------------------------------- */
.success-page, .content-page {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-height: 100vh;
    padding: 2rem;
    text-align: center;
}

.success-box {
    padding: 3rem;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    max-width: 600px;
}

/* For pages like Privacy and Terms */
.generic-page-container {
    padding-top: 8rem; /* To avoid overlap with fixed header */
    padding-bottom: 4rem;
}

.generic-page-container .content h1,
.generic-page-container .content h2 {
    margin-bottom: 1.5rem;
}


/* ---------------------------------- */
/* 11. Responsive Design              */
/* ---------------------------------- */
@media screen and (max-width: 768px) {
    .section {
        padding: 2.5rem 1rem;
    }

    #hero .title {
        font-size: 2.5rem;
    }

    #hero .subtitle {
        font-size: 1.2rem;
    }

    .contact {
        margin: 1rem;
    }
}

@media screen and (max-width: 1023px) {
    .navbar-menu {
        background-color: rgba(255, 255, 255, 0.95);
        box-shadow: 0 8px 16px rgba(10, 10, 10, 0.1);
        border-bottom-left-radius: var(--border-radius);
        border-bottom-right-radius: var(--border-radius);
    }
    .header.is-fixed-top {
        background: rgba(255, 255, 255, 0.9);
    }
}