@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;
}

/* --- Navbar Container --- */
.navbar {
    color: white;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    transition: background 0.7s ease, padding 0.7s ease;
}

.navbar.default {
    background: transparent;
    padding: 50px 50px;
}

.navbar.scrolled {
    background: var(--color-primary-dark);
    height: 80px;
    padding: 5px 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.548);
}

/* --- Left Section --- */
.left-section {
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.4s ease;
}

.left-img {
    border-radius: 50%;
    height: 80px;
    width: auto;
    transition: transform 0.3s ease, height 0.3s ease;
    cursor: pointer;
}

.left-text {
    font-size: 1.125em;
    font-weight: 600;
    cursor: pointer;
}

/* Animate logo when nav opens */
#menu-toggle:checked~.left-section .left-img {
    transform: scale(0.85) rotate(-5deg);
}

/* --- Middle Nav Links --- */
.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    position: relative;
    color: white;
    text-decoration: none;
    font-size: 1em;
    font-weight: 500;
    padding-bottom: 3px;
    cursor: pointer;
}

/* Underline animation */
.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
}

.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links .dropdown {
    position: relative;
}

.nav-links .dropdown span {
    font-size: 0.85em;
    margin-left: 7px;
}

@media (max-width: 950px) {
    .nav-links .dropdown span {
        display: none;
    }
}

@media (max-width: 950px) {
    .nav-links .dropdown span {
        display: none;
    }
}

.nav-links .dropdown-menu {
    list-style: none;
    position: absolute;
    top: 120%;
    left: 0;
    background: rgba(136, 15, 15, 0.829);
    padding: 10px 0;
    min-width: 180px;
    border-radius: 6px;
    display: none;
    flex-direction: column;
    gap: 8px;
    z-index: 9999;
}

/* Dropdown link styling */
.nav-links .dropdown-menu a {
    padding: 8px 15px;
    color: white;
    display: block;
    font-size: 0.95em;
}

.nav-links .dropdown-menu a:hover {
    background: rgba(206, 80, 80, 0.15);
}

.nav-links .sign-in {
    display: none;
}

/* ---------- SHOW DROPDOWN ON HOVER ---------- */
.nav-links .dropdown:hover .dropdown-menu {
    display: flex;
}

.dropdown-menu a::after {
    display: none;
}


/* --- Right Section --- */
.right-section img {
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
}

/* --- Hamburger Icon --- */
.hamburger {
    display: none;
    font-size: 28px;
    cursor: pointer;
    user-select: none;
    transition: transform 0.3s ease;
}

/*** Animated Hamburger to X ***/
.hamburger::before {
    content: "☰";
    display: block;
    transition: transform 0.4s ease, opacity 0.3s ease;
}

#menu-toggle:checked+.hamburger::before {
    content: "✖";
    transform: rotate(180deg);
}

/* Hide checkbox */
#menu-toggle {
    display: none;
}

/* --- Responsive --- */
@media (max-width: 950px) {

    .navbar.default {
        padding: 25px 25px;
    }

    .navbar.scrolled {
        padding: 5px 15px;
    }

    .hamburger {
        display: block;
    }

    .right-section {
        display: none;
    }

    /* Mobile dropdown */
    .nav-links {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        background: var(--color-primary-dark);
        flex-direction: column;
        gap: 20px;
        padding: 130px 40px 50px 40px;
        text-align: left;

        display: none;
        overflow: hidden;
        transition: all 0.4s ease-in-out;
        z-index: -1;
    }

    .nav-links .dropdown-menu {
        display: block;
        position: relative;
        top: 0;
        background: transparent;
        margin-top: 20px;
        gap: 3px;
        background-color: var(--color-secondary-dark);
        padding-left: 10px;
    }

    /* When menu is opened */
    #menu-toggle:checked~.nav-links {
        display: flex;
        height: 100vh;
    }

    .nav-links .sign-in {
        display: block;
        margin: auto;
        padding: 10px 40px;
        text-align: center;
        font-size: 1rem;
        font-weight: 600;
        color: white;
        background-color: transparent;
        border: 2px solid var(--bg-light);
        border-radius: 100px;
        text-decoration: none;
        cursor: pointer;
    }

}

@keyframes slideDown {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes textFade {
    0% {
        opacity: 0;
        letter-spacing: 1px;
    }

    100% {
        opacity: 1;
        letter-spacing: 0px;
    }
}

/* When mobile menu opens, animate each item */
#menu-toggle:checked~.nav-links li {
    opacity: 0;
    animation: slideDown 0.45s ease forwards;
}

/* Stagger effect */
#menu-toggle:checked~.nav-links li:nth-child(1) {
    animation-delay: 0.05s;
}

#menu-toggle:checked~.nav-links li:nth-child(2) {
    animation-delay: 0.10s;
}

#menu-toggle:checked~.nav-links li:nth-child(3) {
    animation-delay: 0.15s;
}

#menu-toggle:checked~.nav-links li:nth-child(4) {
    animation-delay: 0.20s;
}

#menu-toggle:checked~.nav-links li:nth-child(5) {
    animation-delay: 0.25s;
}

#menu-toggle:checked~.nav-links li:nth-child(6) {
    animation-delay: 0.30s;
}

#menu-toggle:checked~.nav-links li:nth-child(7) {
    animation-delay: 0.35s;
}

#menu-toggle:checked~.nav-links a {
    opacity: 0;
    animation: textFade 0.4s ease forwards;
}

#menu-toggle:checked~.nav-links li:nth-child(1) a {
    animation-delay: 0.10s;
}

#menu-toggle:checked~.nav-links li:nth-child(2) a {
    animation-delay: 0.15s;
}

#menu-toggle:checked~.nav-links li:nth-child(3) a {
    animation-delay: 0.20s;
}

#menu-toggle:checked~.nav-links li:nth-child(4) a {
    animation-delay: 0.25s;
}

#menu-toggle:checked~.nav-links li:nth-child(5) a {
    animation-delay: 0.30s;
}

#menu-toggle:checked~.nav-links li:nth-child(6) a {
    animation-delay: 0.35s;
}

#menu-toggle:checked~.nav-links li:nth-child(7) a {
    animation-delay: 0.40s;
}

.landing {
    height: 100vh;
    width: 100%;

    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;

    padding: 10%;
    position: relative;

    /* === GRADIENT + BACKGROUND IMAGE === */
    background-image:
        linear-gradient(to bottom, rgba(77, 8, 8, 0.596), rgba(0, 0, 0, 0.062)),
        url("../img/imgs-index/codies.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.landing::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.landing-content {
    height: 100%;
    width: 100%;
    position: relative;
    z-index: 2;
}

.landing h1 {
    font-size: var(--fs-xxl);
    font-family: var(--font-secondary);
    color: var(--text-invert);
}

.landing p {
    font-size: var(--fs-md);
    font-family: var(--font-primary);
    color: var(--text-invert);
}

.logo-strip {
    width: 100%;
    display: flex;
    gap: 50px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.logo-strip img {
    height: 150px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
    cursor: pointer;
}

.logo-strip img:hover {
    transform: scale(1.3);
}

.logo-carousel {
    display: none;
}

@media (max-height: 768px) {
    .landing {
        height: auto;
        padding: 25% 0;
    }

    .carousel-track img {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .landing {
        height: auto;
    }

    .landing-content {
        height: 100vh;
        width: 100%;
        padding: 120px 5% 10% 5%;
    }

    .logo-strip {
        display: none;
    }

    .logo-carousel {
        width: 100%;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        display: flex;
    }

    .carousel-track {
        display: flex;
        width: 100%;
    }

    .carousel-track img {
        width: 100%;
        height: 230px;
        object-fit: contain;
        flex-shrink: 0;
        scroll-snap-align: center;
        padding: 10px 0;
    }

    .logo-carousel::-webkit-scrollbar {
        display: none;
    }
}

@media (max-height: 768px) and (max-width: 768px) {
    .landing-content {
        height: fit-content;
        width: 100%;
        padding: 20px 5% 10% 5%;
    }

    .carousel-track img {
        height: 200px;
    }
}

.hero-box {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.landing-text-content {
    padding: 30px 40px;
    text-align: center;
    max-width: 700px;
    z-index: 2;
}

.hero-box h3 {
    font-size: var(--fs-xl);
    color: var(--text-invert);
    margin-bottom: 10px;
}

.hero-box p {
    font-size: var(--fs-md);
    color: var(--text-invert);
    margin-bottom: 20px;
}

/* Button styles */
.hero-box .btn {
    display: inline-block;
    padding: 12px 28px;
    background: var(--color-primary);
    color: white;
    font-weight: 600;
    text-decoration: none;
    font-size: var(--fs-md);
    border-radius: 8px;
    transition: 0.3s;
}

.hero-box .btn:hover {
    background: var(--color-secondary-dark);
}

/* Scroll Down Container */
.scroll-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 20px;
    cursor: pointer;
}

.scroll-container {
    position: relative;
    width: 24px;
    height: 24px;
}

.scroll-down {
    position: absolute;
    width: 28px;
    height: 8px;
    opacity: 0;
    transform: scale3d(0.5, 0.5, 0.5);
    animation: move 3s ease-out infinite;
}

.scroll-down:first-child {
    animation: move 3s ease-out 1s infinite;
}

.scroll-down:nth-child(2) {
    animation: move 3s ease-out 2s infinite;
}

.scroll-down:before,
.scroll-down:after {
    content: ' ';
    position: absolute;
    top: 0;
    height: 100%;
    width: 51%;
    background: #fff;
}

.scroll-down:before {
    left: 0;
    transform: skew(0deg, 30deg);
}

.scroll-down:after {
    right: 0;
    width: 50%;
    transform: skew(0deg, -30deg);
}

@keyframes move {
    25% {
        opacity: 1;

    }

    33% {
        opacity: 1;
        transform: translateY(30px);
    }

    67% {
        opacity: 1;
        transform: translateY(40px);
    }

    100% {
        opacity: 0;
        transform: translateY(55px) scale3d(0.5, 0.5, 0.5);
    }
}

.text {
    display: block;
    margin-top: 75px;
    margin-left: -30px;
    font-family: "Helvetica Neue", "Helvetica", Arial, sans-serif;
    font-size: 12px;
    color: #fff;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: .25;
    animation: pulse 2s linear alternate infinite;
}

@keyframes pulse {
    to {
        opacity: 1;
    }
}

/* Content-2 */

#content-2 {
    height: fit-content;
    padding: 5% 5%;
}

#content-2 .container {
    height: 100%;
    width: 100%;
    text-align: center;
}

#content-2 .iam-parent {
    height: 100%;
    width: 100%;
    display: flex;
}

#content-2 .iam-left {
    width: 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
}

#content-2 .iam-left .gradient-divider {
    height: 10px;
    width: 70%;
    margin-top: 8px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}

#content-2 .iam-left h4 {
    color: var(--color-primary);
}

#content-2 .iam-right {
    width: 60%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

#content-2 .iam-right video {
    width: 90%;
    border-radius: 20px;
}

#content-2 .learn-more-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: var(--color-primary);
    color: white;
    text-decoration: none;
    border-radius: 100px;
    font-weight: bold;
    transition: background 0.3s ease;
}

#content-2 .learn-more-btn:hover {
    background-color: var(--color-primary-dark);
}

@media (max-width: 768px) {

    #content-2 {
        height: auto;
        padding: 10%;
    }

    #content-2 .iam-parent {
        flex-direction: column-reverse;
        height: auto;
    }

    #content-2 .iam-left,
    #content-2 .iam-right {
        width: 100%;
        justify-content: center;
        text-align: left;
        margin-top: 20px;
    }

    #content-2 .iam-left .gradient-divider {
        height: 10px;
        width: 70%;
        margin-top: 8px;
        border-radius: 3px;
        background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    }

    #content-2 .iam-right video {
        width: 100%;
        max-width: 400px;
    }
}

/* Content-3 */

#content-3 {
    height: fit-content;
    padding: 10% 5%;
    background-color: var(--bg-light);
}

#content-3 .container {
    height: 100%;
    width: 100%;
    text-align: center;
}

#content-3 .iam-parent {
    height: 100%;
    width: 100%;
    display: flex;
}

#content-3 .iam-left {
    width: 50%;
    align-items: center;
    justify-content: center;
    text-align: left;
}

#content-3 .iam-left .iam-wwdo {
    display: flex;
    margin: 20px;
    padding-right: 20%;
}

#content-3 .iam-left .iam-wwdo-img {
    padding: 20px;
}

#content-3 .iam-left .wwdo-link {
    position: relative;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

#content-3 .iam-left .wwdo-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    transition: width 0.3s ease;
}

#content-3 .iam-left .wwdo-link:hover::after {
    width: 100%;
}

#content-3 .iam-left .iam-wwdo-text {
    padding: 10px;
}

#content-3 .iam-left img {
    height: 70px;
}

#content-3 .iam-right {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5%;
    text-align: left;
}

#content-3 .iam-right h1 {
    font-size: 3em;
}

#content-3 .iam-right h2 {
    color: var(--color-primary);
}

#content-3 .iam-right .gradient-divider {
    height: 10px;
    width: 70%;
    margin-top: 8px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}

@media (max-width: 768px) {

    #content-3 {
        height: auto;
        padding: 10% 5%;
    }

    #content-3 .iam-parent {
        flex-direction: column-reverse;
        height: auto;
    }

    #content-3 .iam-left,
    #content-3 .iam-right {
        width: 100%;
        justify-content: center;
        text-align: left;
        margin-top: 20px;
    }

    #content-3 .gradient-divider {
        height: 10px;
        width: 70%;
        margin-top: 8px;
        border-radius: 3px;
        background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    }

    #content-3 .iam-left .iam-wwdo {
        display: flex;
        padding-right: 5%;
    }
}

/* Content-4 */

#content-4 {
    padding: 5% 15%;
    background-color: var(--bg-dark);
    color: var(--bg-light);
}

#content-4 .container {
    height: 100%;
    width: 100%;
}

#content-4 .iam-parent {
    height: 100%;
    width: 100%;
}

#content-4 .gradient-divider {
    height: 10px;
    width: 15%;
    margin-top: 8px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}

#content-4 .iam-news-item {
    display: flex;
    align-items: center;
    gap: 30px;
    border-radius: 20px;
    margin: 30px 0;
    background-color: var(--color-primary-dark);
    overflow: hidden;
}

#content-4 .iam-news-image {
    height: 250px;
}

#content-4 .iam-news-image img {
    width: 250px;
    height: 100%;
    object-fit: cover;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}

#content-4 .iam-news-image img:hover {
    transform: scale(1.05);
}

#content-4 .iam-news-content h3 {
    font-size: 1.75rem;
}

#content-4 .iam-news-link {
    color: var(--bg-light);
    text-decoration: none;
    font-weight: normal;
    transition: color 0.3s ease;
}

#content-4 .iam-news-link:hover {
    color: var(--info);
}


/* Mobile responsiveness */
@media (max-width: 768px) {
    #content-4 {
        padding: 5% 10%;
        background-color: var(--bg-dark);
        color: var(--bg-light);
    }

    #content-4 .iam-news-item {
        flex-direction: column;
        text-align: left;
    }

    #content-4 .iam-news-image {
        height: auto;
    }

    #content-4 .iam-news-image img {
        width: 100%;
    }

    #content-4 .iam-news-content {
        padding: 20px;
    }

    #content-4 .gradient-divider {
        height: 10px;
        width: 40%;
        margin-top: 8px;
        border-radius: 3px;
        background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    }
}

/* Content-5 */

#content-5 {
    padding: 5% 15%;
    background-color: var(--bg-light);
}

#content-5 .container {
    height: 100%;
    width: 100%;
}

#content-5 h2 {
    color: var(--color-primary);
}

#content-5 .gradient-divider {
    height: 10px;
    width: 70%;
    margin-top: 8px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}

#content-5 .iam-header {
    display: flex;
    justify-content: center;
    align-items: center;
}

#content-5 .iam-header-left {
    width: 50%;
}

#content-5 .iam-header-right {
    width: 50%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

#content-5 .iam-header-right img {
    height: 200px;
}

/* Activity container */
#content-5 .iam-parent {
    display: flex;
}

#content-5 .iam-left {
    width: 30%;
    background-color: var(--bg-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 20px;
    height: 650px;
}

/* Rotate the h1 */
#content-5 .iam-left h1 {
    margin: 0;
    font-size: 2rem;
    color: var(--bg-light);
    display: block;
    text-align: center;
}

#content-5 .iam-left img {
    width: 80%;
    margin-top: 20px;
    object-fit: contain;
}


#content-5 .iam-right {
    width: 70%;
    height: 650px;
    overflow: auto;
}

#content-5 .iam-right::-webkit-scrollbar {
    width: 0px;
    height: 0px;
}

/* Hide scrollbar for Firefox */
#content-5 .iam-right {
    scrollbar-width: none;
}

#content-5 .iam-activity {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 2px;
    padding: 0 30px;
}

#content-5 .act1 {
    background-color: #d39aad;
}

#content-5 .act2 {
    background-color: #d1d1d1;
}

#content-5 .iam-activity-date {
    font-weight: bold;
    text-align: center;
}

@media (max-width: 768px) {
    #content-5 {
        padding: 5% 10%;
        background-color: var(--bg-light);
    }

    #content-5 .iam-header {
        flex-direction: column;
        text-align: left;
        width: 100%;
    }

    #content-5 .iam-header-left {
        width: 100%;
    }

    #content-5 .iam-header-right {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    #content-5 .iam-parent {
        flex-direction: column;
    }

    #content-5 .iam-left {
        width: 100%;
        height: auto;
        padding: 30px;
    }

    #content-5 .iam-right {
        width: 100%;
    }

    #content-5 .iam-activity {
        flex-direction: column;
    }

    #content-5 .iam-activity-date {
        font-size: 1.75em;
        padding-top: 20px;
    }

    #content-5 .iam-activity-date h4 {
        padding: 0;
        margin: 0;
    }
}