/* Bold Universe - Main Stylesheet */

/* CSS Variables for consistency */
:root {
    --bg-light: #f5f5f5;
    --text-dark: #333333;
    --text-medium: #666666;
    --text-light: #999999;
    --border-color: #cccccc;
    --link-hover: #000000;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1440px;
    margin: 0 auto;
    background-color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    border-left: 1px solid #b9b9b9;
    border-right: 1px solid #b9b9b9;
}

/* Header */
header {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border-bottom: 1px solid #b9b9b9;
}

.logo {
    height: 150px;
    width: auto;
}

/* Main Content Area */
main {
    display: flex;
    flex-direction: column;
}

/* Hero/Carousel Section */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 508px;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 1438px;
    height: 100%;
    margin: 0 auto;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Content Pages (Privacy, Terms, Portfolio) */
.page-content {
    padding: 40px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-content h1 {
    font-size: 32px;
    margin-bottom: 30px;
    color: var(--text-dark);
    font-weight: 300;
}

.page-content h2 {
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--text-dark);
    font-weight: 400;
}

.page-content p {
    margin-bottom: 15px;
    color: var(--text-medium);
    line-height: 1.8;
}

.page-content ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.page-content li {
    margin-bottom: 10px;
    color: var(--text-medium);
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    padding: 40px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-tile {
    position: relative;
    height: 350px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.portfolio-tile:hover {
    transform: translateY(-5px);
}

.portfolio-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.portfolio-tile img.hover-image {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.portfolio-tile:hover img.default-image {
    opacity: 0;
}

.portfolio-tile:hover img.hover-image {
    opacity: 1;
}

.coming-soon {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
    font-size: 18px;
}

/* Portfolio Tiles */
.portfolio-tiles {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 33px;
    padding: 33px;
}

.tile {
    margin: 0;
    padding: 25px 12px;
    text-align: center;
    width: 290px;
    border: 1px solid #b9b9b9;
    background-color: #fff;
    font-family: 'Segoe UI Semibold', 'Segoe UI', sans-serif;
    font-size: 14px;
    border-radius: 16px;
    color: #4e4e4e;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    position: relative;
}

.tile:hover {
    border-color: #049dbc;
    color: #049dbc;
    transform: translate(-1px, -2px);
}

.tile:active {
    transform: translate(0, 0);
}

.tile-title {
    font-family: 'Segoe UI', sans-serif;
    font-size: 14px;
    line-height: 1.4;
    color: inherit;
    text-align: center;
}

.title-main {
    display: block;
    font-family: 'Segoe UI Semibold', 'Segoe UI', sans-serif;
    font-weight: 600;
}

.title-sub {
    display: block;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 400;
}

.tile-icon {
    width: 150px;
    height: 150px;
    margin: 12px 0;
    border: 1px solid #b9b9b9;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    transition: border-color 0.2s ease;
}

.tile:hover .tile-icon {
    border-color: #049dbc;
}

.tile-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.2s ease;
}

.tile-icon .icon-default {
    opacity: 1;
}

.tile-icon .icon-hover {
    opacity: 0;
}

.tile:hover .tile-icon .icon-default {
    opacity: 0;
}

.tile:hover .tile-icon .icon-hover {
    opacity: 1;
}

.tile-button {
    width: 150px;
    padding: 8px 0;
    text-align: center;
    border: 1px solid #b9b9b9;
    font-family: 'Segoe UI Semibold', 'Segoe UI', sans-serif;
    font-size: 14px;
    border-radius: 8px;
    background-color: #fff;
    color: #049dbc;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.tile:hover .tile-button {
    background-color: #049dbc;
    border-color: #4e4e4e;
    color: #fff;
}

/* Footer */
footer {
    padding: 20px 30px;
    background-color: #ffffff;
    border-top: 1px solid #b9b9b9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.copyright {
    color: var(--text-light);
    font-size: 14px;
}

.footer-nav {
    display: flex;
    gap: 20px;
}

.footer-nav a {
    color: var(--text-medium);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--link-hover);
}

/* Responsive Carousel Control */
.mobile-only {
    display: none;
}

.desktop-only {
    display: block;
}

/* Mobile Styles */
@media (max-width: 768px) {
    body {
        font-size: 12px;
    }

    .container {
        max-width: 390px;
    }

    header {
        height: 150px;
    }

    .logo {
        height: 150px;
    }

    .hero-carousel {
        height: 318px;
    }

    .carousel-container {
        width: 388px;
    }

    /* Show mobile carousel, hide desktop */
    .mobile-only {
        display: block;
    }

    .desktop-only {
        display: none;
    }

    footer {
        flex-direction: row;
        justify-content: space-between;
        padding: 15px 20px;
        font-size: 11px;
    }

    .copyright {
        font-size: 11px;
    }

    .footer-nav {
        gap: 12px;
    }

    .footer-nav a {
        font-size: 11px;
    }

    .page-content {
        padding: 30px 20px;
    }

    .page-content h1 {
        font-size: 24px;
    }

    .page-content h2 {
        font-size: 20px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 30px 20px;
    }

    .portfolio-tile {
        height: 250px;
    }

    .portfolio-tiles {
        flex-direction: column;
        align-items: center;
    }

    .tile {
        font-size: 12px;
    }

    .tile-title {
        font-size: 12px;
    }

    .title-main {
        font-size: 12px;
    }

    .title-sub {
        font-size: 12px;
    }

    .tile-button {
        font-size: 12px;
    }
}

/* Tablet breakpoint */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 100%;
    }

    .hero-carousel {
        height: 508px;
    }

    .portfolio-grid {
        padding: 40px 30px;
    }
}
