/****************************************************************************
 *  1. GENERAL STYLES
 ****************************************************************************/
/* body {
    font-family: "brandon-grotesque", sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #131517;
    color: #FFFFFF;
} */

body {
    font-family: "brandon-grotesque", sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #131517;
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* .container {
    width: 90%;
    max-width: 1200px;
    margin: 200px auto;
    text-align: center;
} */

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
    /* Center align text within the container */
    flex: 1;
    /* Allow the container to grow and fill the available space */
    display: flex;
    justify-content: center;
    align-items: center;
}

h1,
h2,
h3 {
    color: #FFFFFF;
    font-weight: 600;
}

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

a:hover {
    text-decoration: none;
}

a.active {
    color: #f05454;
    /* Active color */
}

/* Button styles */
.btn {
    display: inline-block;
    background: transparent;
    color: #f05454;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 400;
    margin-top: 50px;
    border: 0.5px solid #f05454;
    letter-spacing: 1.5px;
    transition: background-color 0.3s, color 0.3s;
}

.btn:hover {
    background-color: #f05454;
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 700;
    margin-top: 50px;
    border: 0.5px solid #f05454;
    letter-spacing: 1.5px;
    transition: background-color 0.3s, color 0.3s;
}


/* Design approch card UI  */

.card {
    background-color: #fff;
    color: #f05454;
    /* pink text */
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    width: 300px;
    height: 340px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.card * {
    color: #f05454 !important;
}

.card:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 25px rgba(240, 84, 84, 0.2);
}

.card .btn-quote:hover {
    color: #ffffff !important;
}

.quote-line {
    color: #f05454;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.quote-sub {
    color: #f05454;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 0;
}

.btn-quote {
    font-weight: 400;
    transition: all 0.3s ease;
}

.btn-quote:hover {
    background-color: #f05454;
    color: #ffffff;
    font-weight: 700;
}

/* new tile ui */

/* --- TILE GRID AND TILE (USER-SELECTED SECTION) --- */
.tile-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    justify-items: center;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    min-height: 650px;
}

.tile {
    width: 100%;
    max-width: 280px;
    height: 300px;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.3s;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    z-index: 1;
    opacity: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    box-sizing: border-box;
    border: none !important;
    box-shadow: none !important;
    border-radius: 16px;
}

/* Hide close button by default */
.tile .close-btn {
    display: none;
}

/* Only show close button in takeover mode */
.tile.takeover .close-btn {
    display: flex;
}


/* Tile hover effect: scale and stronger box-shadow */
.tile:hover,
.tile:focus {
    transform: scale(1.05);
    box-shadow: 0 16px 40px rgba(240, 84, 84, 0.18);
}

/* Hide .tile-desc by default */
.tile .tile-desc {
    display: none;
    opacity: 0;
    transition: opacity 0.4s;
    font-size: 1.2rem;
    margin-top: 1.5rem;
    color: #f05454;
}

/* Takeover tile overlay: covers the whole grid, horizontal modal look */
.tile.takeover {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    background: #fff;
    z-index: 10;
    opacity: 1 !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 16px;
    padding: 4rem 6rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    overflow-y: auto;
}

/* Close button for takeover overlay */
.tile.takeover .close-btn {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    z-index: 20;
    background: transparent;
    color: #f05454;
    border: none;
    border-radius: 0;
    width: auto;
    height: auto;
    font-size: 2rem;
    font-weight: 300;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    transition: color 0.2s;
    outline: none;
    padding: 0;
    line-height: 1;
}

.tile.takeover .close-btn:hover,
.tile.takeover .close-btn:focus {
    background: transparent;
    color: #f05454;
    box-shadow: none;
}

/* Only show tile-desc when in takeover mode */
.tile.takeover .tile-desc {
    display: block;
    opacity: 1;
}

/* Expanded tile content: ensure left-aligned text and list formatting */
.tile-desc {
    text-align: left !important;
}

.tile-desc ul,
.tile-desc ol {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

.tile-desc li {
    margin-bottom: 0.6em;
}


/* Optionally, blur or gray out other tiles when takeover is open (use .dimmed if desired) */
/* .tile:not(.takeover).dimmed {
    filter: grayscale(0.6) blur(2px);
    opacity: 0.6 !important;
    pointer-events: none;
} */

/* Style the title in takeover mode */
.tile.takeover h3 {
    font-size: 2.7rem;
    color: #f05454;
}

@media (max-width: 900px) {
    .tile-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 640px;
        gap: 1.5rem;
        min-height: 900px;
    }

    .tile.takeover {
        padding: 2rem 1rem;
    }

    .tile.takeover .close-btn {
        top: 0.6rem;
        right: 1rem;
        width: 2rem;
        height: 2rem;
        font-size: 1.2rem;
    }
}

@media (max-width: 600px) {
    .tile-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        gap: 1rem;
        min-height: 600px;
    }

    .tile.takeover {
        padding: 1rem 0.5rem;
    }

    .tile.takeover .close-btn {
        top: 0.3rem;
        right: 0.5rem;
        width: 1.7rem;
        height: 1.7rem;
        font-size: 1rem;
    }
}

/* Back Icon inside Button */

.back-button {
    width: 90%;
    max-width: 1200px;
    margin-top: 100px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.back-button .back-icon {
    width: 20px;
    /* Adjust icon size */
    height: auto;
    margin-right: 10px;
    /* Spacing between icon and text */
    vertical-align: middle;
}

/****************************************************************************
 *  2. NAVIGATION BAR
 ****************************************************************************/
.thick {
    font-family: "brandon-grotesque", sans-serif;
    font-weight: 700;
    font-style: normal;
}

.thin {
    font-family: "brandon-grotesque", sans-serif;
    font-weight: 300;
    font-style: normal;
}

.space {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 8px;
}

nav {
    background-color: #131517;
    padding: 20px 0;
    position: fixed;
    /* Fix the navigation bar at the top */
    top: 0;
    width: 100%;
    z-index: 1000;
    /* Ensure it stays above other content */
}

.nav-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 150px;
    letter-spacing: 2px;
}

.nav-links li a {
    color: #FFFFFF;
    transition: color 0.3s ease;
    font-size: 1.2em;
    letter-spacing: 2px;
}

.nav-links li a:hover {
    color: #e63946;
}

.nav-links li a.active {
    color: #f05454;
}

.nav-icon {
    width: 40px;
    /* Adjust the width as needed */
    height: auto;
    display: block;
    margin: 0 auto;
    /* Center the icon */
}


/* HERO SECTION */
.hero-section {
    background-color: #131517;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 5rem 2rem;
}

/* NAVIGATION BAR */
nav {
    background-color: #131517;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    /* Ensure entire nav is centered */
    align-items: center;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.2);
    padding: 15px 0;
}

/* Navigation Links */
.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center nav links */
    gap: 50px;
    letter-spacing: 2px;
}

/* Ensure the logo remains properly placed */
.nav-links li:first-child {
    margin-right: 0;
}

/* Desktop Navigation Links */
.nav-links li a {
    color: #FFFFFF;
    transition: color 0.3s ease;
    font-size: 1.2em;
    font-weight: 400;
    letter-spacing: 2px;
}

.nav-links li a:hover {
    color: #e63946;
}

.nav-links li a.active {
    color: #f05454;
}

/* Mobile Logo (Visible Only on Mobile) */
.home-icon {
    display: none;
}

@media (max-width: 960px) {
    .home-icon {
        display: block;
    }
}

/* HAMBURGER MENU */
#hamburger-btn {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding-right: 20px;
}

.hamburger-line {
    width: 30px;
    height: 3px;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

@media (max-width: 960px) {
    #hamburger-btn {
        display: flex;
    }
}

/* MOBILE MENU */
#mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background-color: black;
    display: none;
    /* Hidden by default */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    transform: translateX(100%);
    z-index: 1100;
    /* Ensure it sits on top */
}

#mobile-menu.open {
    display: flex !important;
    opacity: 1;
    transform: translateX(0) !important;
}

/* Close Button */
#close-menu {
    font-size: 1.2rem;
    margin-top: 20px;
    color: #ffffff;
    cursor: pointer;
}

/* Responsive Styles */
@media (max-width: 960px) {
    .nav-links {
        display: none;
    }
}

/* HERO CONTENT */
/* HERO CONTENT */
.hero-content {
    max-width: 60%;
}

.hero-name {
    font-size: 3rem;
    font-weight: 700;
    color: #f05454;
    animation: fadeIn 1.2s ease-in-out;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    color: #FFFFFF;
    margin-top: 1rem;
    margin-bottom: 1rem;
    animation: fadeIn 1.5s ease-in-out;
}

.hero-quote {
    font-size: 1.25rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-top: 1.2rem;
    margin-bottom: 1.2rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-subtext {
    font-size: 1.1rem;
    color: #FFFFFF;
    margin-bottom: 1.5rem;
    font-weight: 300;
    line-height: 1.7;
}

.hero-note {
    font-size: 1rem;
    color: #FFFFFF;
    margin-top: 1.5rem;
    font-style: italic;
}

/* HEADLINE */
.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: #f05454;
    animation: fadeIn 1.2s ease-in-out;
}

/* SUBTITLE */
.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    color: #FFFFFF;
    margin-top: 1rem;
    animation: fadeIn 1.5s ease-in-out;
}

/* BUILT WITH AI TEXT */
.hero-ai-note {
    font-size: 1rem;
    color: #FFFFFF;
    margin-top: 1rem;
    font-style: italic;
}

/* BUTTONS */
/* HERO BUTTONS */
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 2rem;
}

.hero-buttons.nowrap {
    flex-wrap: nowrap;
}

.hero-buttons a {
    min-width: 220px;
    text-align: center;
    font-size: 1.2rem;
    padding: 14px 28px;
}

/* IMAGE */
.hero-image img {
    width: 300px;
    border-radius: 10px;
    animation: slideIn 1.5s ease-in-out;
    margin-top: 2rem;
}

/* ADPLIST REVIEWS SECTION */
.reviews-section {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 3rem 0;
    margin-bottom: 6rem;
    /* Prevent footer overlap */
}

.reviews-container {
    width: 100%;
    max-width: 650px;
    box-shadow: rgba(142, 151, 158, 0.15) 0px 4px 19px 0px;
    border-radius: 16px;
    overflow: hidden;
}

.reviews-container iframe {
    width: 100%;
    height: 560px;
    border: none;
}

/* RESPONSIVE ADJUSTMENTS */
@media (max-width: 1024px) {
    .hero-content {
        max-width: 80%;
    }

    .hero-title {
        font-size: 2.5rem;
    }

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

    .hero-buttons {
        flex-direction: column;
        gap: 20px;
    }

    .hero-buttons a {
        width: 80%;
        margin: 10px auto;
    }

    .hero-image img {
        width: 250px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-image img {
        width: 220px;
    }
}

/* ANIMATIONS */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/****************************************************************************
 *  3. HEADER SECTION
 ****************************************************************************/
/* .header {
    width: 90%;
    max-width: 1200px;
    margin: 75px auto;
    text-align: center;
} */
.header {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
    /* Center align text within the container */
    flex: 1;
    /* Allow the container to grow and fill the available space */
    display: flex;
    justify-content: center;
    align-items: center;
}

.thick_h {
    font-family: "brandon-grotesque", sans-serif;
    font-weight: 700;
    font-style: normal;
}

.thin_h {
    font-family: "brandon-grotesque", sans-serif;
    font-weight: 300;
    font-style: normal;
}

.thin_white {
    font-family: "brandon-grotesque", sans-serif;
    font-weight: 300;
    font-style: normal;
    color: #FFFFFF;
}

header {
    text-align: center;
    padding: 150px 0;
    background-color: #131517;
}

header h1 {
    font-size: 4em;
    font-weight: 700;
    margin: 0;
    color: #e63946;
    text-transform: uppercase;
    letter-spacing: 5px;
}

.header-line {
    width: 50px;
    /* Adjust the length as needed */
    height: 0.05px;
    /* Adjust the thickness */
    background-color: #ffffff;
    margin-bottom: 50px;
    margin-top: 0px;
    opacity: 0.9;
    /* Adjust the opacity as needed */
}

header h2 {
    font-size: 2em;
    font-weight: 300;
    font-style: normal;
    text-transform: uppercase;
    margin: 0;
    color: #FFFFFF;
    letter-spacing: 3px;
}

header h3 {
    font-size: 1.5em;
    font-weight: 900;
    margin: 0;
    color: #FFFFFF;

    letter-spacing: 2px;
}

.intro-text {
    font-size: 6em;
    font-weight: 500;
    margin-top: 60px;
    margin-bottom: 40px;
    letter-spacing: 0.5px;
    text-align: center;
    color: #e63946;
}


/****************************************************************************
 *  4. GENERAL SECTION STYLING
 ****************************************************************************/
section {
    margin-top: 100px auto;
}

section h2 {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 20px;
    color: #e63946;
    text-transform: uppercase;
    letter-spacing: 2px;
}

section p {
    margin-bottom: 20px;
    /* Increased gap between paragraphs */
    line-height: 1.8;
    color: #ffffff;
    font-size: 20px;
    font-weight: 100;
    letter-spacing: 0.5px;
    /* text-align: center; */
}


/****************************************************************************
 *  5. DESIGN APPROACH (EXAMPLE SECTION)
 ****************************************************************************/
.design-approach {
    margin-top: 50px;
    margin-bottom: 50px;
    /* Increased gap between sections */
}

.design-approach h2 {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 30px;
    /* Increased spacing below headers */
    margin-top: 50px;
    /* Added top margin for section headers */
    color: #e63946;
    text-transform: uppercase;
    letter-spacing: 2px;
    /* text-align: center; */
}

.design-approach h3 {
    margin-bottom: 20px;
    /* Increased gap below sub-headers */
    font-size: 25px;
    font-weight: 300;
    color: #e63946;
    letter-spacing: 0.5px;
    /* text-align: center; */
}

.design-approach p {
    margin-bottom: 40px;
    /* Increased gap between paragraphs */
    line-height: 1.8;
    color: #ffffff;
    font-size: 22px;
    /* Updated font size */
    font-weight: 100;
    letter-spacing: 0.5px;
    /* text-align: center; */
}

.design-approach ul,
.design-approach ol {
    list-style: none;
    /* Remove bullets/numbers from lists */
    padding-left: 0;
    /* Remove default padding */
    margin-top: 20px;
    /* Add spacing before lists */
    margin-bottom: 50px;
    /* Add spacing after lists */
}

.design-approach ul li,
.design-approach ol li {
    margin-bottom: 20px;
    /* Maintain spacing between list items */
    line-height: 1.8;
    color: #ffffff;
    font-size: 20px;
    /* Updated font size for list items */
    font-weight: 100;
    letter-spacing: 0.5px;
    /* text-align: center; */
    /* Center align list items */
    /* text-align: center; */
}

/* Additional styles for images within the design-approach section */
.highlight-image {
    margin: 40px 0;
    /* Adds spacing above and below images */
    width: 100%;
    height: auto;
    border-radius: 8px;
    /* Slightly rounded corners */
}

/* Adjusted spacing for sections with minimal content */
.minimal-section {
    margin-bottom: 60px;
    /* Adds spacing between sections with no image */
}


/****************************************************************************
 *  6. PROJECTS GRID (DESIGN-WORK PAGE)
 ****************************************************************************/
/* Updated for a 2x2 layout, 25px gap, max-width 1200px */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 columns */
    gap: 25px;
    /* maintain 25px gap between tiles */
    max-width: 1200px;
    margin: 100px auto;
}


/* === PROJECT TILE: MODERN IMAGE-FORWARD OVERRIDES === */
.project-tile {
    background: none !important;
    border-radius: 20px !important;
    box-shadow: none !important;
    overflow: hidden;
    padding: 0 !important;
    margin: 0;
    width: 100%;
    height: 340px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    text-decoration: none;
    color: inherit;
}

.project-tile .project-image {
    background: none;
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    overflow: hidden;
}

.project-tile .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-tile h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    margin: 0;
    padding: 18px 20px 16px 20px;
    background: rgba(240, 84, 84, 0.92);
    /* Slightly transparent pink */
    color: #fff !important;
    font-size: 1.18em;
    font-weight: 400 !important;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    line-height: 1.4;
    letter-spacing: 0.5px;
    z-index: 2;
    box-sizing: border-box;
    text-align: left;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
    font-family: "brandon-grotesque", sans-serif;
}

@media (max-width: 768px) {
    .project-tile {
        height: 220px;
    }

    .project-tile h3 {
        font-size: 1em;
        padding: 12px 10px 10px 10px;
    }
}


/****************************************************************************
 *  7. BIO SECTION
 ****************************************************************************/
.bio {
    text-align: center;
    margin-bottom: 100px;
    /* margin-top: 100px; */
}


/****************************************************************************
 *  8. ARTICLES GRID
 ****************************************************************************/


/****************************************************************************
 *  9. CONTACT DETAILS
 ****************************************************************************/
.contact-details {
    text-align: center;
    margin-bottom: 100px;
    margin-top: 100px;
}

.contact-details .email-me {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.contact-details .email-me img {
    width: 20px;
    height: 20px;
    fill: #f05454;
    /* For SVG icons */
    stroke: #f05454;
    /* For SVG icons */
}

.btn:hover .email-me img {
    fill: #ffffff;
    /* For SVG icons */
    stroke: #ffffff;
    /* For SVG icons */
}



/****************************************************************************
 * 10. FOOTER SECTION
 ****************************************************************************/

footer {
    background: #131517;
    color: #FFFFFF;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 0.5px solid #c5c5c5;
    margin-left: 1%;
    margin-right: 1%;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 98%;
    z-index: 1000;
}

/* Left Section - Logo */
footer .footer-left {
    display: flex;
    align-items: center;
    font-size: 1.2em;
    /* Adjust font size as needed */
    font-weight: 300;
    /* Adjust font weight as needed */
    margin-left: 20px;
    letter-spacing: 1px;
}

/* Center Section - Social Links */
footer .footer-center {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 0;
    margin: 0;
}

footer .footer-center a img {
    width: 20px;
    /* height: auto; */
}

footer .footer-center li {
    display: inline;
}

footer .footer-center a {
    color: #FFFFFF;
    font-size: 1em;
    transition: color 0.3s ease;
}

footer .footer-center a:hover {
    color: #e63946;
}

/* Right Section - Text */
footer .footer-right {
    display: flex;
    align-items: center;
    font-size: 1.2em;
    font-weight: 300;
    margin-right: 20px;
    letter-spacing: 1px;
}

/* Hide left and right text on mobile */
@media (max-width: 768px) {

    .footer-left,
    .footer-right {
        display: none;
    }

    .footer-center {
        justify-content: center;
        width: 100%;
    }
}

/****************************************************************************
 * 11. MEDIA QUERIES (RESPONSIVE)
 ****************************************************************************/
@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        gap: 20px;
    }

    .projects-grid,
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 tiles for tablets */
    }

    .project-tile,
    .article-tile {
        height: auto;
        /* Adjust height for smaller screens */
    }

    .footer-center {
        flex-direction: column;
        gap: 10px;
    }

    footer {
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
    }
}

@media (max-width: 480px) {

    .projects-grid,
    .articles-grid {
        grid-template-columns: 1fr;
        /* 1 tile for mobile */
    }

    .nav-links {
        gap: 10px;
    }

    .footer-center {
        gap: 5px;
    }
}

@media screen and (max-width: 60em) {
    .nav-links {
        padding: 1rem 0;
    }

    /* Adjust main content to account for taller mobile nav */
    .main-content {
        margin-top: 6rem;
    }
}

/* For very small screens */
@media screen and (max-width: 30em) {
    .nav-links {
        padding: 0.5rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}



/****************************************************************************
 * 12. PREDICT DATA CASE STUDY (EXAMPLE SECTION)
 ****************************************************************************/
.hero {
    /* text-align: center; */
    margin-top: 100px;
    /* To avoid overlap with fixed nav if needed*/
}

.hero img {
    max-width: 1200px;
    margin-bottom: 1em;
}

.hero h1 {
    font-size: 2em;
    margin-bottom: 0.2em;
    color: #FFFFFF;
    letter-spacing: 1px;
}

.hero p {
    color: #ffffff;
    margin-bottom: 2em;
}

.placeholder {
    width: 100%;
    height: 400px;
    background: #3a3b3c;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dddddd;
    font-size: 1.2em;
    margin: 2em 0;
}

/* Image Container */
.image-container {
    max-width: 1200px;
    /* Set the maximum width */
    margin: 0 auto;
    /* Center the container */
    overflow: hidden;
    /* Ensure any overflow is hidden */
}

.image-container img {
    width: 100%;
    /* Make the image take up the full width of the container */
    height: auto;
    /* Maintain the aspect ratio */
    display: block;
    /* Remove any inline spacing */
}



/* Carousel styles */
.carousel-container {
    max-width: 800px;
    margin: 2rem auto;
    position: relative;
    text-align: center;
}

.carousel-content {
    position: relative;
}

.carousel-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.carousel-caption {
    margin-top: 0.5rem;
    font-size: 1rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.carousel-nav {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.carousel-nav button {
    background: #f05454;
    border: none;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
}

/* Art grid styles */
.art-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.art-tile {
    cursor: pointer;
    transition: transform 0.2s ease;
    text-align: center;
}

.art-tile img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.art-caption-grid {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #f05454;
}

.art-tile:hover {
    transform: translateY(-4px);
}

/* Tile takeover */
.tile.takeover {
    position: fixed;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    overflow: auto;
}

.close-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
}


/* Hamburger Menu Styles */
.hamburger-line {
    width: 25px;
    height: 2px;
    transition: all 0.3s ease;
}

/* Mobile Menu Styles */
#mobile-menu {
    transition: all 0.3s ease;
}

#mobile-menu.is-active {
    display: flex;
    flex-direction: column;
    background-color: black;
    width: 100%;
    padding: 1rem 0;
}

/* When menu is open */
.hamburger-open .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-open .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-open .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hide mobile menu on larger screens */
@media screen and (min-width: 60em) {
    #mobile-menu {
        display: flex !important;
        flex-direction: row !important;
    }
}

.home-icon {
    display: none;
}

@media (max-width: 768px) {
    .home-icon {
        display: block;
    }
}

.hide-home-icon {
    display: block;
}

@media (max-width: 768px) {
    .hide-home-icon {
        display: none;
    }
}


.hide-footer-text-mobile {
    display: block;
}

@media (max-width: 768px) {
    .hide-footer-text-mobile {
        display: none;
    }
}

@media (max-width: 768px) {
    .footer-center {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 960px) {
    #mobile-menu.open {
        display: flex !important;
    }
}

@media (max-width: 768px) {

    /* Apply horizontal padding to all elements that use these container classes */
    .mw-1200,
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Force tiles to be pink with white text, always */
.tile,
.tile.takeover {
    background: #f05454 !important;
    color: #fff !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 16px;
    font-weight: 400 !important;
}

/* FORCE ALL TILES PINK, ALL TEXT WHITE, EVEN INSIDE, AND REGULAR WEIGHT */
.tile *,
.tile h3,
.tile.takeover *,
.tile.takeover h3 {
    color: #fff !important;
    font-weight: 400 !important;
}

/* ADPList Widget Section - match tile/card look */
.adplist-widget-section {
    width: 100%;
    max-width: 720px;
    min-width: 420px;
    height: 560px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 19px rgba(142, 151, 158, 0.15);
    overflow: hidden;
    margin-bottom: 30px;
    display: flex;
    align-items: stretch;
    justify-content: center;
    /* Add margin-top if you want spacing above the widget */
}

.adplist-widget-section iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 16px;
    background: #fff;
    display: block;
}

/* =================== CAREER SECTION FLEX LAYOUT =================== */
/* Career Section: max-width and centering */
.career-section-wrapper {
    display: flex;
    gap: 30px;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 40px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.career-section-wrapper .adplist-widget-section {
    flex: 0 1 60%;
    min-width: 420px;
    max-width: 60%;
}

.career-section-wrapper .career-highlights {
    flex: 0 1 40%;
    max-width: 40%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 540px;
    justify-content: space-between;
}

.career-highlights>div {
    flex: 1;
    box-sizing: border-box;
    background-color: #fff;
    border-radius: 18px;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
}

.career-highlights>div p {
    text-align: left;
    font-size: 1rem;
    font-weight: 400;
    color: #000000;
    line-height: 1.6;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    margin-left: 0;
    padding-left: 0;
}

.career-highlights>div h4 {
    text-align: left;
    font-weight: 600;
    color: #f05454;
    font-size: 2rem;
    margin-bottom: 0.3rem;
    margin-left: 0;
    padding-left: 0;
}

.career-highlights>div h4 {
    font-size: 2rem !important;
}

@media (max-width: 768px) {
    .career-section-wrapper {
        flex-direction: column;
        max-width: 100%;
    }

    .career-section-wrapper .adplist-widget-section,
    .career-section-wrapper .career-highlights {
        max-width: 100%;
        min-width: 0;
        flex: 1 1 100%;
    }
}

/* Max-width utility class for container alignment */
.mw8 {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive wrapper */
.mw8 {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Main highlights section: flex, side-by-side on desktop */
.highlights-section {
    display: flex;
    gap: 30px;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* ADPList Review box: wider (60%) */
.adplist-review-box {
    flex: 0 1 60%;
    max-width: 60%;
    min-width: 320px;
    height: 560px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 19px rgba(142, 151, 158, 0.15);
    overflow: hidden;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

/* Highlight tiles: narrower (40%), vertical stack */
.highlight-tiles {
    flex: 0 1 40%;
    max-width: 40%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 540px;
    justify-content: space-between;
}

.highlight-tile {
    flex: 1;
    box-sizing: border-box;
    background-color: #fff;
    border-radius: 18px;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
}

.highlight-tile p {
    text-align: left;
    font-size: 1rem;
    font-weight: 400;
    color: #000000;
    line-height: 1.6;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    margin-left: 0;
    padding-left: 0;
}

.highlight-tile h3 {
    text-align: left;
    font-weight: 600;
    color: #f05454 !important;
    font-size: 1.5rem !important;
    margin-bottom: 0.3rem;
    margin-left: 0;
    padding-left: 0;
}

/* Responsive adjustments for mobile */
@media (max-width: 900px) {
    .highlights-section {
        flex-direction: column;
        max-width: 100%;
    }

    .adplist-review-box,
    .highlight-tiles {
        max-width: 100%;
        min-width: 0;
        flex: 1 1 100%;
    }

    .adplist-review-box {
        height: 380px;
    }

    .highlight-tiles {
        height: auto;
    }
}

/* ===== FORCE ADPLIST + HIGHLIGHTS FLEX LAYOUT ON DESKTOP ===== */
@media (min-width: 900px) {
    .highlights-section {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 30px !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
    }

    .adplist-review-box,
    .highlight-tiles {
        max-width: none !important;
        width: auto !important;
        flex: 1 1 0% !important;
    }
}

/* ==== CREATIVITY IN EVERY FORM SECTION ==== */

/* ==== CREATIVITY IN EVERY FORM SECTION ==== */
.creative-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto 0 auto;
}

.creative-tile {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
    min-height: 260px;
    max-height: 320px;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(142, 151, 158, 0.09);
    transition: transform 0.22s cubic-bezier(.19, 1, .22, 1), box-shadow 0.22s cubic-bezier(.19, 1, .22, 1);
    display: flex;
    align-items: stretch;
    background: #ddd;
}

.creative-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
    transition: opacity 0.3s;
    pointer-events: none;
}

/* Remove label from inside tile for non-hover state */
.creative-label {
    display: none;
}

.creative-tile .creative-hover {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Center vertically */
    text-align: center;
    position: absolute;
    inset: 0;
    background: rgba(240, 84, 84, 0.82);
    color: #fff;
    opacity: 0;
    z-index: 4;
    border-radius: 18px;
    padding: 2.5rem 1.2rem;
    font-size: 1.15rem;
    pointer-events: none;
    transition: opacity 0.3s;
}

.creative-tile:hover,
.creative-tile:focus {
    transform: scale(1.045);
    box-shadow: 0 12px 38px rgba(240, 84, 84, 0.17);
    z-index: 3;
}

.creative-tile:hover .creative-hover,
.creative-tile:focus .creative-hover {
    opacity: 1;
    pointer-events: auto;
}

.creative-tile:hover .creative-img {
    opacity: 0.19;
}

@media (max-width: 1024px) {
    .creative-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }
}

@media (max-width: 600px) {
    .creative-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .creative-tile {
        min-height: 180px;
        aspect-ratio: 1/1.3;
    }
}

/* --- CREATIVITY IN EVERY FORM TILE LABEL OUTSIDE --- */
.creative-label-below {
    display: block;
    margin-top: 0.8rem;
    margin-bottom: 2.2rem;
    color: #f05454;
    font-family: inherit;
    font-size: 1.36rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: 1px;
    text-shadow: none;
}

.creative-tile .creative-label {
    display: none;
}

/* --- HOVER OVERLAY VERTICAL CENTERING --- */
.creative-tile .creative-hover {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Center vertically */
    text-align: center;
    position: absolute;
    inset: 0;
    background: rgba(240, 84, 84, 0.82);
    color: #fff;
    opacity: 0;
    z-index: 4;
    border-radius: 18px;
    padding: 2.5rem 1.2rem;
    font-size: 1.15rem;
    pointer-events: none;
    transition: opacity 0.3s;
}

.creative-tile:hover .creative-hover,
.creative-tile:focus .creative-hover {
    opacity: 1;
    pointer-events: auto;
}

.creative-hover-title {
    color: #fff;
    font-size: 1.13em;
    font-weight: 700;
    margin: 0 0 0.18em 0;
    line-height: 1.22;
    letter-spacing: 0.01em;
    text-align: center;
    padding: 0;
}

.creative-hover-desc {
    font-size: 1em;
    color: #fff;
    font-weight: 400;
    margin: 0;
    text-align: center;
    line-height: 1.44;
}

.creative-tile .creative-hover {
    padding: 1.6rem 1.2rem;
}

/* Hover effect for the Thought Leadership tile */
.thought-leadership-tile {
    background: #fff;
    /* White by default */
    color: #f05454;
    /* Pink text by default */
    border-radius: 28px;
    box-shadow: 0 6px 40px rgba(0, 0, 0, 0.10);
    transition: background 0.2s, color 0.2s, transform 0.22s;
    position: relative;
    cursor: pointer;
    /* Remove any opacity or overlays */
}

.thought-leadership-tile * {
    background: none !important;
    color: #f05454 !important;
    opacity: 1 !important;
}

.thought-leadership-tile:hover,
.thought-leadership-tile:focus {
    background: #f05454 !important;
    /* Pink on hover */
    color: #fff !important;
    /* White text on hover */
    transform: scale(1.035);
    box-shadow: 0 10px 32px rgba(240, 84, 84, 0.10);
    z-index: 2;
}

.thought-leadership-tile:hover *,
.thought-leadership-tile:focus * {
    color: #fff !important;
}

.mw-1200 {
    max-width: 1200px;
    margin: 3rem auto;
    width: 100%;
}


/* === VERTICAL ARTICLE TILE: IMAGE ABOVE TEXT === */

.article-tile {
    background: #1b1d1f;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    padding: 2.5rem 2rem;
    margin: 0 auto 100px !important;
    color: #fff;
    text-align: left;
    max-width: 1200px !important;
    width: 100% !important;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Force all article tiles to the same width */
.article-tile {
    width: 100% !important;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.article-image {
    width: 100%;
    max-width: 1000px;
    height: 450px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.11);
    margin-bottom: 2rem;
    display: block;
}

@media (max-width: 900px) {

    .article-tile {
        max-width: 100%;
        padding: 1.2rem 0.5rem;
    }

    .article-image {
        max-width: 100%;
        height: 220px;
    }
}

/* Force all article-tile content to be left aligned
.article-tile,
.article-tile p,
.article-tile h2,
.article-tile h3,
.article-tile ul,
.article-tile ol,
.article-tile li {
    text-align: left !important;
} */

/* Problem Solutions Grid */
.problem-solutions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 2rem;
}

@media (max-width: 1024px) {
    .problem-solutions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }
}

@media (max-width: 600px) {
    .problem-solutions-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Problem Tile Base Styles */
.problem-tile {
    position: relative;
    background-color: #f05454;
    color: #fff;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 6px 40px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
    transition: transform 0.15s cubic-bezier(.4, 2, .55, .99),
        box-shadow 0.22s;
}

.problem-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: opacity 0.2s;
    z-index: 1;
    pointer-events: none;
}

/* Hide title by default, reveal on hover */
.problem-title {
    position: relative;
    z-index: 2;
    background-color: rgba(240, 84, 84, 0.93);
    color: #fff;
    font-size: 1.15rem;
    font-family: inherit;
    font-weight: 700;
    padding: 1.9rem 1.2rem 1.1rem;
    text-align: left;
    border-bottom-left-radius: 28px;
    border-bottom-right-radius: 28px;
    margin: 0;
    transition: opacity 0.2s;
}

/* Hover Overlay */
.problem-hover {
    position: absolute;
    inset: 0;
    background-color: rgba(240, 84, 84, 0.82);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.2rem 1.1rem;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    z-index: 3;
    transition: opacity 0.22s;
}

.problem-hover-title {
    font-size: 1.15em;
    font-weight: 700;
    margin-bottom: 0.17em;
    line-height: 1.22;
}

.problem-hover-desc {
    font-size: 1em;
    line-height: 1.5;
    font-weight: 400;
    margin: 0;
}

/* Hover / Focus States */
.problem-tile:hover,
.problem-tile:focus {
    transform: scale(1.045);
    z-index: 2;
    box-shadow: 0 8px 54px rgba(240, 84, 84, 0.17),
        0 1.5px 12px rgba(0, 0, 0, 0.10);
}

.problem-tile:hover .problem-img,
.problem-tile:focus .problem-img {
    opacity: 0.20;
}

.problem-tile:hover .problem-title,
.problem-tile:focus .problem-title {
    opacity: 0;
}

.problem-tile:hover .problem-hover,
.problem-tile:focus .problem-hover {
    opacity: 1;
    pointer-events: auto;
}

.metrics-tiles {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 1rem;
    align-items: stretch;
}

.metrics-tiles .tile {
    flex: 1 1 0;
    max-width: none;
    min-width: 0;
    height: auto !important;
    background: #f05454 !important;
    color: #fff;
    padding: 1.5rem;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
}

/* Before/After Grid */
.before-after-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.before-after-grid .mr3 {
    margin-right: 1rem;
}

/* UI Carousel: one image view */
.ui-carousel {
    width: 100%;
    max-width: 1040px;
    /* increased by 30% from 800px */
    margin: 2rem auto;
}

.carousel-track-container {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.3s ease;
}

/* Carousel slide: vertical stacking and centering */
.carousel-slide {
    flex: 0 0 100%;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Carousel slide caption: below image, centered */
.carousel-slide .caption {
    display: block !important;
    margin-top: 0.75rem !important;
    text-align: center !important;
    color: #cccccc;
    font-size: 0.9rem;
}

/* Carousel slide images and carousel-image: 30% larger */
.ui-carousel .carousel-slide img,
.carousel-image {
    width: 130% !important;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
}

.carousel-prev,
.carousel-next {
    background: transparent;
    border: none;
    font-size: 2rem;
    color: #f05454;
    cursor: pointer;
    padding: 0 1rem;
}

.carousel-prev:hover,
.carousel-next:hover {
    color: #fff;
}


/* Ensure all case study images scale within their containers */
.article-image,
.before-after-grid img,
.metrics-tiles img,
.carousel-slide img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* Global: round all images */

/* Ensure extra space below the final tile on the report-caster page */
.design-approach .article-tile:last-child {
    margin-bottom: 100px;
}