/* style.css */

/* ---------------------------------- */
/*      CSS Variables & Root          */
/* ---------------------------------- */
:root {
    --bg-color: #FDFDFB;
    --bg-alt-color: #f5f5f4; /* Neutral 100 */
    --card-bg-color: #ffffff;
    --text-color: #374151;  /* Gray 700 */
    --heading-color: #111827; /* Gray 900 */
    --primary-color: #4A5568; /* Slate 600 */
    --primary-hover-color: #2D3748; /* Slate 800 */
    --border-color: #e5e7eb; /* Gray 200 */
    --white-color: #FFFFFF;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'DM Sans', sans-serif;
}

/* ---------------------------------- */
/*      Base & Typography Styles      */
/* ---------------------------------- */
html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--heading-color);
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}

.section-title {
    color: var(--heading-color);
    text-align: center;
    margin-bottom: 3rem;
}

a {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

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

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

section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.bg-neutral-50 { background-color: var(--bg-color); }
.bg-neutral-100 { background-color: var(--bg-alt-color); }

/* Pages like Privacy/Terms padding to avoid fixed header */
.page-content-wrapper {
    padding-top: 120px;
    padding-bottom: 80px;
}

/* ---------------------------------- */
/*      Header & Navigation           */
/* ---------------------------------- */
header {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

header nav a {
    position: relative;
    padding-bottom: 4px;
}

header nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease-in-out;
}

header nav a:hover::after {
    width: 100%;
}

#mobile-menu {
    border-top: 1px solid var(--border-color);
}

/* ---------------------------------- */
/*      Global UI Components          */
/* ---------------------------------- */

/* Buttons */
.btn-primary, button[type="submit"] {
    display: inline-block;
    padding: 1rem 2rem;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1rem;
    color: var(--white-color);
    background-color: var(--primary-color);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover, button[type="submit"]:hover {
    background-color: var(--primary-hover-color);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Forms */
.input-field {
    background-color: #f9fafb; /* Gray 50 */
    border: 2px solid transparent;
    border-radius: 1.25rem; /* More biomorphic */
    padding: 1rem;
    width: 100%;
    transition: all 0.3s ease;
}

.input-field:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 85, 104, 0.2);
    background-color: var(--white-color);
}

/* Biomorphic Cards */
.card, .biomorphic-card {
    background-color: var(--card-bg-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-radius 0.5s ease;
    border-radius: 30px 80px 30px 60px; /* Biomorphic shape */
    display: flex;
    flex-direction: column;
    text-align: center; /* Center text content */
}

.card:hover, .biomorphic-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-radius: 60px 30px 80px 30px; /* Morph on hover */
}

.card .card-image, .biomorphic-card .card-image {
    width: 100%;
    margin-bottom: 1rem;
}

.card .image-container, .biomorphic-card .image-container {
    height: 224px; /* 14rem */
    width: 100%;
    overflow: hidden;
}

.card .image-container img, .biomorphic-card .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.card .card-content, .biomorphic-card .card-content {
    padding: 1.5rem;
    flex-grow: 1; /* Allows footer links to stick to bottom */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card .card-content p {
    flex-grow: 1;
}

.card a.mt-auto {
    margin-top: auto;
}

/* ---------------------------------- */
/*      Section Specific Styles       */
/* ---------------------------------- */

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white-color);
}

#hero h1 {
    color: var(--white-color);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

/* Parallax Background Effect */
.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Our Process Timeline */
#process .relative {
    margin-top: 4rem;
}

/* Case Studies Carousel */
#case-study-carousel .carousel-prev,
#case-study-carousel .carousel-next {
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

#case-study-carousel .carousel-prev:hover,
#case-study-carousel .carousel-next:hover {
    background-color: var(--white-color);
    transform: scale(1.1);
}

/* ---------------------------------- */
/*      Footer                        */
/* ---------------------------------- */
footer {
    background-color: #1f2937; /* Gray 800 */
    color: #d1d5db; /* Gray 300 */
}

footer h3, footer h4 {
    color: var(--white-color);
}

footer a {
    color: #9ca3af; /* Gray 400 */
    text-decoration: none;
    transition: color 0.3s ease;
    padding-bottom: 2px;
}

footer a:hover {
    color: var(--white-color);
    border-bottom: 1px solid var(--white-color);
}

/* ---------------------------------- */
/*      Specific Page Styles          */
/* ---------------------------------- */

/* Success Page */
.success-page-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--bg-alt-color) 0%, #e0e7ff 100%);
}
.success-page-container h1{
    font-size: 4rem;
    color: var(--primary-hover-color);
}
.success-page-container p{
    font-size: 1.25rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

/* ---------------------------------- */
/*      Responsiveness                */
/* ---------------------------------- */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2.25rem;
    }

    section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    /* Process Timeline Line Hide on Mobile */
    #process .relative > div:first-child {
        display: none;
    }

    /* Footer columns */
    footer .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    footer .grid {
        grid-template-columns: 1fr;
    }

    .btn-primary, button[type="submit"] {
        width: 100%;
    }
}