@font-face {
    font-family: 'iam-font';
    src: url('../fonts/CreatoDisplay-Regular.otf');
}

@font-face {
    font-family: 'iam-font-bold';
    src: url('../fonts/CreatoDisplay-Bold.otf');
}

@font-face {
    font-family: 'iam-font-extra-bold';
    src: url('../fonts/CreatoDisplay-ExtraBold.otf');
}

:root {
    /* ===== BRAND COLORS ===== */
    --color-primary: #e53935;
    /* main brand color */
    --color-primary-light: #ef5350;
    --color-primary-dark: #991b1b;

    --color-secondary: #f44336;
    /* accent color */
    --color-secondary-light: #e57373;
    --color-secondary-dark: #771515;
    --color-accent: #ffc371;

    /* ===== BACKGROUND COLORS ===== */
    --bg-main: #fcfcfc;
    --bg-light: #eeeeee;
    --bg-dark: #1c2126;
    --bg-darker: #141414;

    /* ===== TEXT COLORS ===== */
    --text-main: #222222;
    --text-light: #555;
    --text-lighter: #979797;
    --text-invert: #ffffff;

    /* ===== NEUTRALS ===== */
    --neutral-100: #f8f9fa;
    --neutral-200: #e9ecef;
    --neutral-300: #dee2e6;
    --neutral-400: #ced4da;
    --neutral-500: #adb5bd;
    --neutral-600: #6c757d;
    --neutral-700: #495057;
    --neutral-800: #343a40;
    --neutral-900: #212529;

    /* ===== BORDERS & SHADOWS ===== */
    --border-color: #e0e0e0;
    --shadow-soft: rgba(0, 0, 0, 0.08);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --shadow-strong: rgba(0, 0, 0, 0.25);

    /* ===== STATUS COLORS ===== */
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #17a2b8;

    /* ===== FONT FAMILIES ===== */
    --font-primary: iam-font, sans-serif;
    --font-secondary: iam-font, sans-serif;
    --font-mono: iam-font, sans-serif;
    --font-bold: iam-font-bold, sans-serif;
    --font-extra-bold: iam-font-extra-bold, sans-serif;

    /* ===== FONT SIZES (scale) ===== */
    --fs-xs: 0.75rem;
    /* 12px */
    --fs-sm: 0.875rem;
    /* 14px */
    --fs-md: 1rem;
    /* 16px */
    --fs-lg: 1.25rem;
    /* 20px */
    --fs-xl: 1.5rem;
    /* 24px */
    --fs-xxl: 2rem;
    /* 32px */

    /* ===== FONT WEIGHTS ===== */
    --fw-light: 300;
    --fw-normal: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;

    /* ===== LINE HEIGHT ===== */
    --lh-tight: 1.1;
    --lh-normal: 1.4;
    --lh-loose: 1.7;
}

* {
    box-sizing: border-box;
    font-family: iam-font, sans-serif;
}

/* --- Basic Page Reset --- */
body {
    margin: 0;
    font-family: iam-font, sans-serif;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Content 1 */
#content-1 .container {
    position: relative;
    height: 100vh;
    background: linear-gradient(135deg, #c42121, #d42121);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

/* Curved bottom */
#content-1 .container::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 140px;
    background: white;
    border-top-left-radius: 100% 80px;
    border-top-right-radius: 100% 80px;
}

#content-1 .iam-parent {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
}

#content-1 .iam-left {
    text-align: left;
    height: 100%;
    width: 45%;
}

#content-1 .iam-left h2 {
    padding: 0;
    margin: 0;
}

#content-1 .iam-left h1 {
    font-size: 3em;
}

#content-1 .btn {
    display: inline-block;
    padding: 12px 28px;
    background: #006eff;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 30px;
    transition: 0.3s ease;
}

#content-1 .btn:hover {
    background: #0023e6;
    transform: translateY(-3px);
}

#content-1 .iam-right {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

#content-1 .right-content {
    margin: auto;
}

#content-1 .badge-container {
    position: relative;
    display: inline-block;
    width: fit-content;
    height: 500px;
    width: 260px;
    margin: 0 auto;
}

/* Badge styles */
#content-1 .badge-container img {
    height: 75px;
    margin: 0 auto;
    transition: transform 0.3s ease, filter 0.3s ease;
}

#content-1 .badge {
    position: absolute;
    width: 140px;
    height: 170px;
    background-color: var(--bg-light, #fff);
    clip-path: polygon(25% 6.7%, 75% 6.7%, 100% 50%, 75% 93.3%, 25% 93.3%, 0% 50%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    color: var(--text-main, #000);
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

/* Hover zoom & shadow */
#content-1 .badge:hover {
    transform: scale(1.1);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.25), 0 0 20px rgba(255, 152, 0, 0.6);
    z-index: 10;
}

#content-1 .badge:hover img {
    transform: scale(1.1);
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.35));
}

/* Individual positions */
.h1 {
    top: 0;
    left: 0px;
}

.h2 {
    top: 80px;
    left: 120px;
}

.h3 {
    top: 165px;
    left: 0;
}

.h4 {
    top: 245px;
    left: 120px;
}

.h5 {
    top: 330px;
    left: 0;
}

@media (max-height: 768px) {
    #content-1 .container {
        padding-top: 80px;
    }

    #content-1 .container::after {
        height: 80px;
        border-top-left-radius: 100% 80px;
        border-top-right-radius: 100% 80px;
    }

    #content-1 .iam-left h1 {
        font-size: 2.5rem;
    }

    #content-1 .iam-left h2 {
        font-size: 1.5rem;
    }

    #content-1 .badge-container {
        height: 380px;
        width: 321px;
    }

    #content-1 .badge-container img {
        height: 55px;
    }

    #content-1 .badge {
        width: 100px;
        height: 120px;
        font-size: 20px;
    }

    /* Adjust badge positions */
    .h1 {
        top: 30px;
        left: 0;
    }

    .h2 {
        top: 30px;
        left: 110px;
    }

    .h3 {
        top: 30px;
        left: 220px;
    }

    .h4 {
        top: 150px;
        left: 55px;
    }

    .h5 {
        top: 150px;
        left: 170px;
    }
}

@media (max-width:768px) {
    #content-1 .container {
        height: fit-content;
        padding-top: 100px;
    }

    #content-1 .iam-parent {
        flex-direction: column;
        gap: 50px;
        padding: 10%;
    }

    #content-1 .iam-left {
        width: 100%;
    }

    #content-1 .iam-right {
        width: 100%;
    }

    #content-1 .iam-left h1 {
        font-size: 2.5em;
    }

    #content-1 .iam-left h2 {
        font-size: 1.5em;
    }

    #content-1 .badge-container {
        height: 380px;
        width: 321px;
    }

    #content-1 .badge-container img {
        height: 55px;
    }

    #content-1 .badge {
        width: 100px;
        height: 120px;
        font-size: 20px;
    }

    /* Adjust badge positions */
    .h1 {
        top: 0;
        left: 0;
    }

    .h2 {
        top: 0;
        left: 110px;
    }

    .h3 {
        top: 0;
        left: 220px;
    }

    .h4 {
        top: 120px;
        left: 55px;
    }

    .h5 {
        top: 120px;
        left: 170px;
    }
}

#video-section {
    height: fit-content;
    padding: 0 10%;
}

#video-section .iam-parent {
    text-align: center;
}

#video-section .iam-parent img {
    height: 80px;
}

#video-section .iam-parent h2 {
    color: var(--color-primary);
    padding: 0;
    margin: 0;
}

#video-section .iam-parent h1 {
    color: var(--text-main);
    font-size: 2.75em;
    font-weight: bold;
    font-style: italic;
}

#video-section video {
    width: 100%;
    border-radius: 20px;
}

/* Content 2 */
#content-2 {
    height: fit-content;
    padding: 5%;
    padding-bottom: 10%;
}

#content-2 .iam-header {
    padding: 0 5%;
    display: flex;
}

#content-2 .header-left {
    width: 50%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

#content-2 .header-left h1 {
    color: var(--text-main);
    font-size: 3em;
    font-weight: bold;
    padding: 0;
    margin: 0;
}

#content-2 .header-left h2 {
    padding: 0;
    margin: 0;
    color: var(--color-primary);
}

#content-2 .header-left .gradient-divider {
    height: 10px;
    width: 65%;
    margin-top: 8px;
    border-radius: 3px;
    background: linear-gradient(90deg, #e53935, #ffc371);
    margin-bottom: 23px;
    margin-top: 10px;
}

#content-2 .header-right {
    width: 50%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

#content-2 .header-right img {
    height: 80px;
    margin: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#content-2 .header-right img:hover {
    transform: scale(1.2);
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.35));
}

#content-2 .iam-parent {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.card-container {
    width: fit-content;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card-wrapper {
    position: relative;
    width: fit-content;
}

.card {
    position: relative;
    height: 220px;
    width: 300px;
    background-color: white;
    border: 5px solid var(--color-primary);
    border-radius: 8px;
    margin-top: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Normal content */
.card-content {
    text-align: center;
    position: relative;
    z-index: 2;
    transition: opacity 0.3s ease;
    padding: 0;
}

.card-content img {
    height: 220px;
    width: 300px;
}

/* Hover layer */
.card-hover {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-primary);
    color: var(--text-invert);
    border: 2px solid var(--color-primary);
    padding: 20px;

    /* Start hidden */
    transform: translateY(100%);
    transition: transform 0.4s ease;

    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;

    z-index: 4;
    pointer-events: auto;
}

.card-hover h3 {
    padding: 0;
    margin: 0;
}

.card a {
    display: inline-block;
    padding: 5px 5px;
    width: 50%;
    margin: auto;
    border: 2px solid #ffffff;
    color: #ffffff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.card a:hover {
    background-color: #ffffff;
    color: var(--color-primary);
}

/* Hover effects */
.card:hover .card-hover {
    transform: translateY(0);
}

.card:hover .card-content {
    opacity: 0;
}

/* Date stays above */
.card-date {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 30px;
    padding: 0 10px;
    font-weight: bold;
    color: var(--text-invert);
    background-color: var(--color-primary);
    z-index: 9;
}

@media (max-width: 900px) {
    .card-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .card-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    #content-2 .iam-header {
        flex-direction: column;
        padding-bottom: 10%;
    }

    #content-2 .header-left {
        width: 100%;
    }

    #content-2 .header-right {
        width: 100%;
        justify-content: center;
    }
}