/* style.css */

/* --- 1. CSS Variables --- */
:root {
    /* Color Palette */
    --primary-color-start: #0052D4;
    --primary-color-end: #65C7F7;
    --accent-color: #23d160;
    --accent-color-dark: #20b956;
    --gradient-primary: linear-gradient(135deg, var(--primary-color-start), var(--primary-color-end));

    /* Typography */
    --text-dark: #363636;
    --text-light: #ffffff;
    --text-muted: #7a7a7a;
    --font-heading: 'Roboto', sans-serif;
    --font-body: 'Lato', sans-serif;

    /* Backgrounds */
    --bg-light: #f7f9fc;
    --bg-dark: #2c3e50;
    --bg-white: #ffffff;

    /* UI Elements */
    --border-radius: 8px;
    --box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 12px 24px rgba(0, 0, 0, 0.15);
    --transition-speed: 0.3s ease;
}

/* --- 2. Global Styles --- */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-dark);
}

.section {
    padding: 4rem 1.5rem;
}

.container {
    max-width: 1140px;
}

.section-title {
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #222222;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

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

.navbar-item.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.navbar-item {
    font-family: var(--font-body);
    font-weight: 700;
    transition: var(--transition-speed);
}

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

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

@media screen and (max-width: 1023px) {
    .navbar-menu {
        background-color: rgba(255, 255, 255, 0.95);
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    }
}


/* --- 4. Hero Section --- */
#hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Simple parallax */
}

#hero .hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-light); /* IMPORTANT */
}

#hero .hero-subtitle {
    color: var(--text-light); /* IMPORTANT */
    margin-top: 1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* --- 5. Buttons & Interactive Elements --- */
.button {
    border-radius: var(--border-radius);
    transition: var(--transition-speed);
    font-weight: 700;
    border-width: 2px;
}

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

.button.is-primary, .cta-button {
    background: var(--gradient-primary);
    border: none;
    color: var(--text-light);
}

.button.is-primary:hover, .cta-button:hover {
    filter: brightness(1.1);
    color: var(--text-light);
}

.button.is-link.is-outlined {
    color: var(--primary-color-start);
    border-color: var(--primary-color-start);
}
.button.is-link.is-outlined:hover {
    background-color: var(--primary-color-start);
    color: var(--text-light);
}

/* --- 6. Card Styles (Services, Projects) --- */
.card {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition-speed);
    overflow: hidden;
    height: 100%; /* Ensure cards in a row have same height */
    display: flex;
    flex-direction: column;
}

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

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

.card .card-image figure {
    height: 250px; /* Fixed height for image container */
}

.card .card-image img {
    height: 100%;
    width: 100%;
    object-fit: cover; /* Ensures image covers the area without distortion */
}

.card .card-content {
    flex-grow: 1; /* Allow content to fill remaining space */
    text-align: left;
}

.card .card-content .title {
    margin-bottom: 1rem;
}

.resource-box {
    height: 100%;
    transition: var(--transition-speed);
}
.resource-box:hover {
    border-color: var(--primary-color-start);
    box-shadow: var(--box-shadow-hover);
    transform: translateY(-3px);
}
.resource-box a {
    color: var(--primary-color-start);
}

/* --- 7. Timeline Section --- */
.timeline .timeline-item .timeline-content {
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 1.5rem;
}

.timeline .timeline-marker.is-primary {
    background: var(--gradient-primary);
}

.timeline .timeline-header .tag.is-primary {
    background: var(--gradient-primary);
}

/* --- 8. Accolades Section --- */
#accolades img {
    max-height: 50px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition-speed);
}

#accolades img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* --- 9. Testimonials Section --- */
#testimonials .message.is-primary {
    background-color: var(--bg-white);
    border-left: 5px solid var(--primary-color-start);
    box-shadow: var(--box-shadow);
}

#testimonials .message-body {
    color: var(--text-dark);
    font-style: italic;
    font-size: 1.1rem;
}

/* --- 10. Contact Form --- */
.modern-input {
    border-radius: var(--border-radius) !important;
    box-shadow: none !important;
    border: 2px solid #dbdbdb !important;
    transition: var(--transition-speed) !important;
}

.modern-input:focus, .modern-input:active {
    border-color: var(--primary-color-start) !important;
    box-shadow: 0 0 0 0.125em rgba(0, 82, 212, 0.25) !important;
}

.field label.checkbox {
    transition: var(--transition-speed);
}
.field label.checkbox:hover {
    color: var(--primary-color-start);
}

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

.footer .title {
    color: var(--text-light);
}

.footer a {
    color: var(--text-muted);
    transition: var(--transition-speed);
}

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

.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer ul li {
    margin-bottom: 0.5rem;
}

/* --- 12. Modal Styles --- */
.modal-card-head, .modal-card-foot {
    background-color: var(--bg-light);
}
.modal-card-title {
    color: var(--text-dark);
}

/* --- 13. Specific Page Styles --- */
/* For success.html */
.success-page-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    background-color: var(--bg-light);
    padding: 2rem;
}

.success-page-container .success-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 2rem;
}

/* For privacy.html & terms.html */
.page-content {
    padding-top: 100px; /* Offset for fixed navbar */
    padding-bottom: 4rem;
}

.page-content h1, .page-content h2 {
    margin-bottom: 1.5rem;
}
.page-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.page-content p {
    margin-bottom: 1rem;
}

/* --- 14. Responsive Adjustments --- */
@media screen and (max-width: 768px) {
    .section {
        padding: 3rem 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }

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

    .columns.is-vcentered {
        flex-direction: column-reverse; /* Put text above image on mobile for About Us */
    }

    .columns.is-vcentered .column:first-child {
        margin-top: 2rem;
    }
}