/* ==================== */
/* CSS Variables */
/* ==================== */
:root {
    --background: #ebebea;
    --container-on-background: #f4f4f4;
    --on-background: #212121;
    --primary: #007BFF;
    --secondary: #555;
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 32px;
    --spacing-lg: 64px;
    --font-size-sm: 14px;
    --font-size-md: 16px;
    --font-size-lg: 24px;
    --font-size-xl: 32px;
}

section {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease-in-out forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section:nth-child(1) {
    animation-delay: 0.2s;
}

section:nth-child(2) {
    animation-delay: 0.4s;
}

section:nth-child(3) {
    animation-delay: 0.6s;
}

section:nth-child(4) {
    animation-delay: 0.8s;
}


/* ==================== */
/* General Styles */
/* ==================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--background);
    color: var(--on-background);
    font-family: "Instrument Sans", sans-serif;
    font-size: var(--font-size-md);
    line-height: 1.6;
}

main {
    max-width: 1600px;
    margin: 0 auto;
}

img {
    display: inline-block;
    max-width: 100%;
    vertical-align: middle;
    border-radius: 16px;
}

a {
    text-decoration: none;
    color: #212121
}

mark {
    background-color: #FBF089;
}

/* ==================== */
/* Header Styles */
/* ==================== */

.navigation {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 99;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    margin: 0 auto;
    padding-left: 48px;
    padding-right: 48px;
    padding-right: 24px;
    padding-bottom: 20px;
    backdrop-filter: blur(0px);
    background: none;
    transition: backdrop-filter, background 0.6s ease;
}

.navigation.blurred {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.6);
}


.intro-container {
    display: flex;
    flex-direction: column;
}

.intro-top {
    font-size: 20px;
    font-weight: 500;
    color: #0A2342;
}

.intro-bottom {
    font-size: 14px;

}

.hero-title {
    color: #FFF;
    font-size: 22px;
    line-height: 180%;
    font-weight: 400;
    z-index: 99;
}



/* ==================== */
/* Hero Section */
/* ==================== */
.hero-content {
    position: relative;
    display: flex;
    height: 48vh;
    max-width: 882px;
    border-radius: 20px;
    border: 6px solid #d6dfe5;
    justify-content: end;
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-sm);
    margin: 0 auto; /* centers horizontally */
    padding: 16px;
    background: none;
    z-index: 1;
  }
  
  /* Fixed background using ::before */
  .hero-content::before {
    content: "";
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    max-width: 882px;
    width: calc(100vw - 32px); /* matches hero-content width */
    height: 48vh;
    border-radius: 20px;
    border: 6px solid #d6dfe5;
    background-image: url("./assets/moodphoto.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    pointer-events: none;
    box-sizing: border-box; /* include border in size */
  }
  
  /* Optional: To ensure better box-sizing and responsiveness */
  .hero-content,
  .hero-content::before {
    box-sizing: border-box;
  }
  

.hero-greeting {
    font-size: 64px;
    line-height: 100%;
    font-family: "Anton", serif;
    text-transform: uppercase;
    color: #FFF;
    margin: 0;
    z-index: 99;
}

.hero-heading {
    font-size: var(--font-size-xl);
    color: var(--on-background);
    margin: 0;
    line-height: 1.3;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.btn-primary,
.btn-ghost {
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 8px;
    font-size: var(--font-size-md);
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--background);
    border: 2px solid var(--primary);
}

.btn-primary:hover {
    background-color: darken(var(--primary), 10%);
    border-color: darken(var(--primary), 10%);
}

.btn-ghost {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-ghost:hover {
    background-color: var(--primary);
    color: var(--background);
}

/* ==================== */
/* Projects */
/* ==================== */

#projects {
    align-items: center;
    display: flex;
    flex: none;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 10px;
    height: min-content;
    justify-content: center;
    padding: 0;
    width: 100%;
    padding: 48px
}

.projects-container {
    display: flex;
    gap: 16px;
    flex-direction: column;
}

.project-card {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
    width: 882px;
    padding: 8px;
    background: #fafbff;
    border-radius: 24px;
    border: 1px solid #d6dfe5;
    transition: transform 0.3s ease, box-shadow 0.3s ease
        /* Smooth transition for hover effect */
}


.project-card-content {
    /* background-color: var(--container-on-background); */
    border-radius: 16px;
}


/* Hover effect for the .project-card */
.project-card:hover {
    transform: translateY(-4px);
    /* Slight lift effect */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    /* Add shadow for depth */

}

/* .project-card:hover .project-card-content {
    background-image:
        radial-gradient(circle at 50% 0, #7fcfff33, #0000 80%),
        radial-gradient(circle at 50% 0, #f2edff, #0000);
} */

.project-card-details {
    padding-top: 16px;
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 16px;
}

.project-card-details h2 {
    color: var(--on-background);
    text-shadow: 0 -2px 10px #484d6633;
    font-weight: 500;
}

.project-card-details p {
    color: #555;
}

.project-card-image-container {
    padding-top: 8px;
    padding-left: 8px;
    padding-right: 8px;
    overflow: hidden;
    /* Ensure the image doesn't overflow the container */
    border-radius: 16px;
    /* Match the image's border-radius */
}

.project-card-image-container img {
    border-radius: 16px;
}


/* ==================== */
/* Banner Section */
/* ==================== */
.section-banner {
    align-items: center;
    display: flex;
    flex-direction: column;
    text-align: center;
    width: 100%;
}

.hero-heading {
    background-clip: text;
    background-image: linear-gradient(to bottom, var(--on-background) 60%, transparent);
    font-size: 62px;
    letter-spacing: -1px;
    line-height: 88px;
    text-shadow: 0 5px 15px rgba(143, 164, 207, 0.2), 0 -5px 15px rgba(31, 25, 115, 0.15), 0 -5px 25px rgba(255, 255, 255, 0.25);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subheading {
    font-size: var(--font-size-lg);
    opacity: 0.7;
}

.title-wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

/* ==================== */
/* Overview Section */
/* ==================== */
.section-overview {
    padding: var(--spacing-md) 0;
    width: 100%;
}

.container-overview {
    display: grid;
    gap: var(--spacing-lg);
    grid-template-columns: repeat(2, 1fr);
}

.content-left,
.content-right {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    height: 100%;
}

.section-heading {
    color: var(--on-background);
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin: 0;
}

.section-text {
    color: var(--secondary);
    font-size: var(--font-size-md);
    margin: 0;
}

.double-content-block {
    align-items: baseline;
    display: grid;
    grid-auto-columns: 1fr;
    grid-column-gap: 16px;
    grid-row-gap: 16px;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    justify-content: space-between;
    margin-bottom: var(--spacing-md);
}

/* ==================== */
/* Problem Section */
/* ==================== */
.the-problem-section {
    padding: var(--spacing-lg) 0;
}

.section-heading-block {
    margin-bottom: var(--spacing-md);
}

.overline-block {
    align-items: center;
    display: flex;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-sm);
}

.dot {
    background-color: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 4px #007BFF;
    height: 8px;
    width: 8px;
}

.overline-text {
    color: var(--primary);
    font-size: var(--font-size-sm);
    font-weight: 300;
    text-transform: uppercase;
}

.subheading {
    color: var(--on-background);
    font-size: var(--font-size-lg);
    font-weight: 500;
    margin: 0;
}

.figure-text {
    color: var(--primary);
    font-weight: 600;
}

.media-block {}

.media-image {
    border-radius: 16px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.06);
    width: 100%;
}

.caption-block {
    align-items: center;
    display: flex;
    gap: var(--spacing-xs);
    justify-content: flex-end;
    margin-top: var(--spacing-sm);
}

.caption-text {
    color: var(--secondary);
    font-size: var(--font-size-sm);
}

.figure-caption {
    color: var(--primary);
    font-weight: 600;
}

.chip-block {
    background-color: #FFF;
    border-radius: 16px;
    padding: 4px 12px;
}

.chip-text {
    color: var(--on-background);
    font-size: var(--font-size-sm);
    font-weight: 600;
    text-transform: uppercase;
}

/* Callout Block Base Styles */
.callout-block {
    margin-top: var(--spacing-lg);
    grid-row-gap: 24px;
    background-color: rgba(256, 256, 256);
    /* Slightly transparent background */
    border: 1px solid rgba(242, 242, 242);
    /* Slightly transparent border */
    border-radius: 16px;
    flex-direction: column;
    align-items: center;
    padding: 32px 32px 36px;
    display: flex;
    position: relative;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.06);
    /* Subtle shadow */
}

/* Chip with Icon and Overline */
.chip-special-overline {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 8px;
}

.icon-callout {
    width: 24px;
    height: 24px;
}

.text-projectpage-overline {
    font-size: 14px;
    font-weight: 500;
    color: #767676;
    /* Adjust color as needed */
    text-transform: uppercase;
}

/* Callout Text */
.text-callout {
    font-size: 18px;
    font-weight: 400;
    color: #212121;
    /* Adjust color as needed */
    text-align: center;
    line-height: 1.6;
}

/* Glare Effect (Optional) */
.glare-item-top {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 60px;
    background-image: radial-gradient(circle at 50% 0, rgba(255, 214, 10, 0.05), transparent 60%);
    pointer-events: none;
}

/* ==================== */
/* Solution Section */
/* ==================== */
.section-solution {
    background-color: var(--background);
    padding: var(--spacing-lg) 0;
}

.section-solution .content-block {
    align-items: center;
    display: grid;
    gap: var(--spacing-sm);
    grid-template-columns: 1fr 1fr;
    margin-top: var(--spacing-md);
}

.section-solution .content-left {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.section-solution .section-text {
    color: var(--secondary);
    font-size: var(--font-size-md);
    line-height: 1.6;
}

.section-solution .feature-item {
    align-items: flex-start;
    background-color: #FFF;
    border-radius: 16px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.06);
    display: none;
    /* Hide all features by default */
    flex-direction: column;
    gap: var(--spacing-sm);
    padding: 24px;
}

.section-solution .feature-item.active {
    display: flex;
    /* Show active feature */
}

.section-solution .feature-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
}

.section-solution .feature-text {
    display: flex;
    flex-direction: column;
}

.feature-title {
    color: var(--on-background);
    font-size: 20px;
    font-weight: 500;
    margin: 0 0 var(--spacing-xs);
}

.feature-body {
    color: var(--secondary);
    font-size: var(--font-size-md);
    line-height: 1.6;
    margin: 0;
}

.section-solution .media-block {
    display: flex;
    height: 100%;
    justify-content: center;
    position: relative;
}

.section-solution .media-image {
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    width: 100%;
    display: none;
    /* Hide all images by default */
}

.section-solution .media-image.active {
    display: block;
    /* Show active image */
}

/* Stepper Navigation */
.stepper {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.stepper-arrow {
    background: none;
    border: none;
    color: var(--on-background);
    cursor: pointer;
    font-size: var(--font-size-lg);
    padding: var(--spacing-xs);
}

.stepper-arrow:hover {
    color: var(--primary);
}

.stepper-counter {
    color: var(--secondary);
    font-size: var(--font-size-md);
}

.footer-container {
    flex: none;
    height: 14px;
    left: calc(50.00000000000002% - 100% / 2);
    overflow: hidden;
    position: absolute;
    top: -7px;
    width: 100%;
    z-index: 1;
}

.footer-pattern {
    position: absolute;
    border-radius: inherit;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: url(./assets/footer_pattern.svg);
    background-repeat: repeat;
    background-position: left top;
    border: 0;
    background-size: 48px auto;
}

/* ==================== */
/* Footer Styles */
/* ==================== */
footer {
    background-color: #333;
    color: #fff;
    font-size: 14px;
    padding: 20px 0;
    text-align: center;
}

.footer-content {
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 20px;
}

footer a {
    color: #fff;
    font-weight: bold;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* ==================== */
/* Utility Classes */
/* ==================== */
.container {
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
    width: 100%;
}

/* ==================== */
/* Media Queries */
/* ==================== */
@media (min-width: 1920px) {
    .container {
        max-width: 1440px;
        padding: 0;
    }
}

@media (min-width: 1440px) and (max-width: 1919px) {
    .container {
        max-width: 1044px;
        padding: 0;
    }
}

@media (min-width: 991px) and (max-width: 1439px) {
    .container {
        max-width: 100%;
        padding: 0 48px;
    }
}

@media (min-width: 767px) and (max-width: 990px) {
    .container {
        max-width: 100%;
        padding: 0 48px;
    }
}

@media (max-width: 766px) {
    .container {
        max-width: 100%;
        padding: 0 24px;
    }
}

@media (max-width: 991px) {
    .container-overview {
        grid-template-columns: 1fr;
    }

    .hero-heading {
        font-size: 60px;
        line-height: 68px;
    }

    .section-heading {
        font-size: 28px;
    }

    .subheading {
        font-size: 22px;
    }

    .section-solution .content-block {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .section-solution .media-block {
        order: -1;
    }
}

@media (max-width: 767px) {

    .hero-greeting {
        font-size: 60px;
        line-height: 100%;
    }

    .navigation {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-heading {
        font-size: 48px;
        line-height: 56px;
    }

    #projects {
        padding: 16px;
    }

    .hero-title {
        font-size: 16px;
    }

    .project-card {
        width: auto;
    }

    .project-card-image-container {
        padding: 8px;
    }

    .project-card-details {
        padding: 16px;
    }

    .section-heading {
        font-size: 24px;
    }

    .subheading {
        font-size: 20px;
    }

    .double-content-block {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
    }

    .section-solution .section-heading {
        font-size: 28px;
    }

    .section-solution .section-subheading {
        font-size: 20px;
    }

    .section-solution .section-text {
        font-size: 16px;
    }

    .section-solution .feature-text {
        font-size: 16px;
    }
}