/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "neue-haas-grotesk-text", sans-serif;
    background-color: #000;
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Wave Container & Animation */
.wave-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.wave-band {
    position: absolute;
    width: 100%;
    height: var(--band-height, 14%);
    background-color: var(--wave-color);
    transform-origin: center center;
    will-change: height;
    transition: height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Wave colors and positions based on the Bland AI visual */
.wave-band:nth-child(1) {
    --wave-color: #000000;
    bottom: 0;
    height: 16%;
}

.wave-band:nth-child(2) {
    --wave-color: #141B4D;
    --band-height: 14%;
    bottom: 16%;
}

.wave-band:nth-child(3) {
    --wave-color: #3F1A61;
    --band-height: 14%;
    bottom: 30%;
}

.wave-band:nth-child(4) {
    --wave-color: #93173E;
    --band-height: 14%;
    bottom: 44%;
}

.wave-band:nth-child(5) {
    --wave-color: #D8471D;
    --band-height: 14%;
    bottom: 58%;
}

.wave-band:nth-child(6) {
    --wave-color: #F89E35;
    --band-height: 14%;
    bottom: 72%;
}

.wave-band:nth-child(7) {
    --wave-color: #ffd632;
    --band-height: 14%;
    bottom: 86%;
}

.wave-band:nth-child(8) {
    --wave-color: #000000;
    bottom: 100%;
    height: 16%;
}

/* Wave animations */
@keyframes wave1 {
    0% {
        height: 14%;
    }

    25% {
        height: 6%;
    }

    50% {
        height: 16%;
    }

    75% {
        height: 8%;
    }

    100% {
        height: 14%;
    }
}

@keyframes wave2 {
    0% {
        height: 10%;
    }

    30% {
        height: 16%;
    }

    60% {
        height: 5%;
    }

    100% {
        height: 10%;
    }
}

@keyframes wave3 {
    0% {
        height: 12%;
    }

    40% {
        height: 4%;
    }

    70% {
        height: 18%;
    }

    100% {
        height: 12%;
    }
}

.wave-band:nth-child(2) {
    animation: wave2 6s ease-in-out infinite;
}

.wave-band:nth-child(3) {
    animation: wave3 7s ease-in-out infinite;
}

.wave-band:nth-child(4) {
    animation: wave1 8s ease-in-out infinite;
}

.wave-band:nth-child(5) {
    animation: wave3 6.5s ease-in-out infinite;
    animation-delay: -2s;
}

.wave-band:nth-child(6) {
    animation: wave1 7.5s ease-in-out infinite;
    animation-delay: -3s;
}

.wave-band:nth-child(7) {
    animation: wave2 5.5s ease-in-out infinite;
    animation-delay: -1s;
}

/* Scroll-triggered animation modifications */
.wave-band {
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Layout */
.container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

@media (max-width: 1440px) {
    .container {
        max-width: 95%;
    }
}

/* Header */
header {
    padding: 30px 0;
    position: relative;
    z-index: 10;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #eaeaea;
    text-decoration: none;
}

.text-link-button-1 {
    font-family: "sizmo-line", sans-serif;
    text-shadow: -3px -3px 7px #0d0d0cd1;
    font-weight: 300;
    font-size: 1.8rem;
    color: #ec652b;
    text-align: center;
}

.text-link-button-1:hover {
    color: #edac3c;
}

.text-link-button-2 {
    font-family: "utopian", sans-serif;
    text-shadow: -3px -3px 7px #0d0d0cd1;
    font-weight: 300;
    font-style: normal;
    font-size: 2.1rem;
    color: #f23d50;
    text-align: center;
}

.text-link-button-2:hover {
    color: #edac3c;
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
}

nav li {
    margin-left: 30px;
}

nav a {
    color: #eaeaea;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: opacity 0.3s;
}

nav a:hover {
    opacity: 0.8;
}

/* Hero Section */
.hero {
    padding: 100px 0 80px;
    text-align: center;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.1;
    font-family: "neue-haas-grotesk-display", sans-serif;
}

.hero p {
    font-size: 1.5rem;
    max-width: 800px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

/* Glass Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    padding: 20px 0 100px;
}

.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    align-items: center;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.glass-card h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 700;
    color: #fff;
}

.glass-card p {
    margin-bottom: 25px;
    font-size: 1.1rem;
    opacity: 0.9;
    flex-grow: 1;
}

.glass-card i {
    font-size: 1.4rem;
    margin-right: 8px;
    opacity: 0.9;
}

/* Button */
.btn {
    display: inline-block;
    background: linear-gradient(90deg, #D8471D, #F89E35);
    color: #fff;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
    text-align: center;
    min-width: 11rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Featured Section */
.featured-section {
    padding: 40px 0;
}

.section-heading {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
    font-weight: 800;
}

/* Resources Grid - New 3-column layout */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(280px, 350px));
    gap: 30px;
    margin-bottom: 80px;
    grid-auto-rows: minmax(250px, auto);
    justify-content: center;
}

/* Standard Card */
.standard-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Presentation Card */
.presentation-card {
    padding: 0;
    overflow: hidden;
    position: relative;
}

.presentation-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

/* Presentation Background */
.presentation-background {
    height: 100%;
    width: calc(100% - 1.6rem);
    padding: 2rem;
    border-radius: 12px;
    margin: 0.8rem;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.presentation-dark {
    background-image: linear-gradient(to right, #1ab7f515 1px, transparent 1px),
        linear-gradient(to bottom, #1ab7f515 1px, transparent 1px);
    background-size: 24px 24px;
    background-color: #232323;
}

.presentation-blue {
    background-image: radial-gradient(#275e853a 3px, transparent 2px);
    background-size: 16px 16px;
    background-color: #00365c;
}

.presentation-btn {
    margin-top: auto;
    align-self: flex-start;
    background: linear-gradient(90deg, #D8471D, #F89E35);
    box-shadow: 0 5px 15px rgba(216, 71, 29, 0.3);
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 14px 26px;
}

.presentation-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(216, 71, 29, 0.5);
}

/* Case Studies Section */
.case-studies-section {
    padding: 60px 0;
}

/* Case Studies and SFA grids */
.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 550px));
    gap: 30px;
    margin-bottom: 60px;
    justify-content: center;
}

.sfa-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(280px, 350px));
    gap: 30px;
    margin-bottom: 30px;
    justify-content: center;
}

.sfa-grid-pair {
    grid-template-columns: repeat(2, minmax(280px, 350px));
}

/* Showcase */
.showcase {
    margin-top: 80px;
    padding: 60px 0;
    text-align: center;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.showcase-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16/9;
    background-color: rgba(255, 255, 255, 0.05);
}

.showcase-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.showcase-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
    padding: 20px;
}

.showcase-item:hover .showcase-overlay {
    opacity: 1;
}

.showcase-item:hover img {
    transform: scale(1.05);
}

.showcase-overlay h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.showcase-overlay p {
    margin-bottom: 20px;
    max-width: 80%;
}

/* Footer */
footer {
    padding: 60px 0 30px;
    position: relative;
    z-index: 10;
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 1200px) {

    .resources-grid,
    .sfa-grid {
        grid-template-columns: repeat(3, minmax(260px, 300px));
    }

    .sfa-grid-pair {
        grid-template-columns: repeat(2, minmax(260px, 300px));
    }

    .case-studies-grid {
        grid-template-columns: repeat(2, minmax(260px, 450px));
    }
}

@media (max-width: 880px) {

    .resources-grid,
    .sfa-grid {
        grid-template-columns: minmax(280px, 500px);
    }

    .case-studies-grid {
        grid-template-columns: minmax(280px, 500px);
    }

    .presentation-card {
        grid-column: auto;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .showcase-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        margin-top: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav li {
        margin: 10px;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

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

    .section-heading {
        font-size: 2rem;
    }
}