/* style.css */

/* --- CSS Variables --- */
:root {
    /* Color Palette: Monochromatic */
    --color-background: #ffffff;
    --color-background-light: #f7f7f7;
    --color-text-primary: #333333;
    --color-text-headings: #1a1a1a;
    --color-white: #ffffff;
    --color-black: #000000;
    --color-border: #e0e0e0;
    
    /* Primary Action Color (for buttons and links) */
    --color-primary: #1a1a1a;
    --color-primary-hover: #4d4d4d;
    --color-primary-text: var(--color-white);

    /* Typography */
    --font-family-headings: 'Space Grotesk', sans-serif;
    --font-family-body: 'DM Sans', sans-serif;

    /* Sizing & Spacing */
    --header-height: 80px;
    --section-padding: 5rem 1.5rem;
    --container-width: 1140px;
    --border-radius: 8px;
    --transition-speed: 0.3s ease;
}

/* --- Global Styles & Resets --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family-body);
    color: var(--color-text-primary);
    background-color: var(--color-background);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-headings);
    color: var(--color-text-headings);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-speed);
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Layout & Containers --- */
.container {
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.section {
    padding: var(--section-padding);
}

.has-background-light {
    background-color: var(--color-background-light);
}

.columns {
    display: flex;
    flex-wrap: wrap;
    margin: -0.75rem;
}

.column {
    display: block;
    flex-basis: 0;
    flex-grow: 1;
    flex-shrink: 1;
    padding: 0.75rem;
}

.is-centered {
    justify-content: center;
}

.is-vcentered {
    align-items: center;
}

.is-multiline {
    flex-wrap: wrap;
}

.is-one-third { flex: none; width: 33.3333%; }
.is-one-quarter { flex: none; width: 25%; }
.is-two-thirds { flex: none; width: 66.6667%; }
.is-narrow { flex-grow: 0; }


.has-text-centered {
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 500;
    color: var(--color-text-headings);
}

.section-paragraph {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}


/* --- Global Component Styles --- */
.button {
    display: inline-block;
    font-family: var(--font-family-headings);
    background-color: var(--color-primary);
    color: var(--color-primary-text);
    border: 2px solid var(--color-primary);
    padding: 0.8rem 2rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    transition: all var(--transition-speed);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.button:hover {
    background-color: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    color: var(--color-primary-text);
}

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

.button.is-large {
    font-size: 1.2rem;
    padding: 1rem 2.5rem;
}

.button.is-fullwidth {
    width: 100%;
}

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

.button.is-outlined:hover {
    background-color: var(--color-white);
    color: var(--color-black);
}

.input, .textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    font-family: var(--font-family-body);
    font-size: 1rem;
    background-color: var(--color-background);
    transition: all var(--transition-speed);
}

.input:focus, .textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(26, 26, 26, 0.2);
}

.label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.field:not(:last-child) {
    margin-bottom: 1.5rem;
}

/* --- Card Styles --- */
.card {
    background-color: var(--color-background);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card-image {
    position: relative;
    height: 220px; /* Fixed height for consistency */
    overflow: hidden;
}

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

.card-content {
    padding: 1.5rem;
    text-align: center;
    flex-grow: 1; /* Allows content to fill space */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-title {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}


/* --- Header & Navigation --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: background-color var(--transition-speed), box-shadow var(--transition-speed);
    height: var(--header-height);
}

.header.is-scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.navbar-logo {
    font-family: var(--font-family-headings);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-white);
}

.is-scrolled .navbar-logo,
.is-scrolled .navbar-item {
    color: var(--color-text-headings);
}

.navbar-menu {
    display: flex;
    align-items: center;
}

.navbar-start {
    display: flex;
    margin-right: auto;
}

.navbar-end {
    display: flex;
}

.navbar-item {
    color: var(--color-white);
    padding: 0 1.5rem;
    font-weight: 500;
    position: relative;
}

.navbar-item::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transition-speed);
}

.is-scrolled .navbar-item:hover::after,
.navbar-item:hover::after {
    width: 50%;
}

.navbar-burger {
    display: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    position: relative;
    border: none;
    background: transparent;
}

.navbar-burger span {
    display: block;
    position: absolute;
    height: 2px;
    width: 25px;
    background: var(--color-white);
    border-radius: 2px;
    opacity: 1;
    left: 50%;
    transform: translateX(-50%) rotate(0deg);
    transition: .25s ease-in-out;
}
.is-scrolled .navbar-burger span {
    background: var(--color-black);
}

.navbar-burger span:nth-child(1) { top: 12px; }
.navbar-burger span:nth-child(2) { top: 19px; }
.navbar-burger span:nth-child(3) { top: 26px; }

.navbar-burger.is-active span:nth-child(1) { top: 19px; transform: translateX(-50%) rotate(135deg); }
.navbar-burger.is-active span:nth-child(2) { opacity: 0; left: -60px; }
.navbar-burger.is-active span:nth-child(3) { top: 19px; transform: translateX(-50%) rotate(-135deg); }

/* --- Hero Section --- */
#hero {
    position: relative;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Parallax effect */
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
    z-index: 1;
}

.hero-body {
    position: relative;
    z-index: 2;
    padding: 2rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--color-white); /* Enforced white text */
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--color-white); /* Enforced white text */
}

/* --- Statistics Section --- */
.stat-number {
    font-family: var(--font-family-headings);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-text-headings);
}

.stat-label {
    font-size: 1rem;
    color: var(--color-text-primary);
}

/* --- Methodology Section --- */
#methodology .columns {
    margin-bottom: 2rem;
}

.method-number {
    font-family: var(--font-family-headings);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-border);
    margin-right: 2rem;
}

.method-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* --- Team Section --- */
#team .card-content {
    padding-top: 1.5rem;
}
.team-role {
    color: #777;
    margin-bottom: 0;
}

/* --- Projects (Slider) Section --- */
.slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    flex: 0 0 33.3333%;
    padding: 0 15px;
}

.slider-controls {
    text-align: center;
    margin-top: 2rem;
}

.slider-prev, .slider-next {
    background: var(--color-background-light);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    font-size: 1.5rem;
    margin: 0 10px;
    transition: all var(--transition-speed);
}
.slider-prev:hover, .slider-next:hover {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}


/* --- Pricing Section --- */
.pricing-card {
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    text-align: center;
    transition: all var(--transition-speed);
    height: 100%;
}

.pricing-card.is-featured {
    border-color: var(--color-primary);
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.pricing-title {
    font-size: 1.5rem;
}

.pricing-price {
    font-family: var(--font-family-headings);
    font-size: 3rem;
    margin: 1.5rem 0;
}

.pricing-period {
    font-size: 1rem;
    font-weight: 400;
    color: #777;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.pricing-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
}
.pricing-features li:last-child {
    border-bottom: none;
}
.pricing-features li::before {
    content: '✓';
    color: var(--color-primary);
    margin-right: 10px;
}


/* --- Press Section --- */
.press-logos {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    filter: grayscale(100%);
    opacity: 0.6;
}

.press-logos img {
    max-height: 35px;
    width: auto;
}

/* --- External Resources Section --- */
.resource-link {
    display: block;
    padding: 1.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    font-family: var(--font-family-headings);
    font-size: 1.2rem;
    transition: all var(--transition-speed);
}
.resource-link:hover {
    border-color: var(--color-primary);
    background-color: var(--color-background-light);
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}


/* --- Footer --- */
.footer {
    background-color: var(--color-text-headings);
    color: #a0a0a0;
    padding: 4rem 1.5rem 2rem;
}

.footer a {
    color: #a0a0a0;
    transition: color var(--transition-speed);
}

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

.footer-title {
    color: var(--color-white);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer ul {
    list-style: none;
}

.footer li {
    margin-bottom: 0.75rem;
}

.footer .content {
    margin-top: 3rem;
    border-top: 1px solid #444;
    padding-top: 2rem;
    font-size: 0.9rem;
}

/* --- Static Pages (Privacy, Terms) --- */
.static-page-content {
    padding-top: calc(var(--header-height) + 3rem);
    padding-bottom: 3rem;
}

.static-page-content h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.static-page-content h2 {
    font-size: 2rem;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

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

.success-content {
    max-width: 600px;
}

.success-content h1 {
    font-size: 3rem;
    color: var(--color-text-headings);
}

.success-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .slide {
        flex: 0 0 50%;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 3rem 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }

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

    /* Navbar Mobile */
    .navbar-burger {
        display: block;
        z-index: 1001;
    }

    .navbar-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--color-background);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    }
    
    .navbar-menu.is-active {
        display: flex;
        transform: translateX(0);
    }

    .navbar-start, .navbar-end {
        flex-direction: column;
        text-align: center;
    }
    
    .navbar-item {
        color: var(--color-text-headings);
        font-size: 1.5rem;
        padding: 1.5rem 0;
    }
    .navbar-item::after { display: none; }
    
    .is-scrolled .navbar-item {
        color: var(--color-text-headings);
    }

    /* Columns */
    .column.is-one-third,
    .column.is-one-quarter,
    .column.is-two-thirds {
        flex: none;
        width: 100%;
    }
    .columns {
        margin: -0.5rem;
    }
    .column {
        padding: 0.5rem;
    }

    #methodology .columns {
        flex-direction: column;
        text-align: center;
    }

    .method-number {
        margin: 0 0 1rem 0;
    }

    .slide {
        flex: 0 0 100%;
    }
    
    .pricing-card.is-featured {
        transform: scale(1);
    }

    .footer .columns {
        text-align: center;
    }
}