@font-face {
    font-family: 'CenturyGothic';
    src: url('../static/centurygothic.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'CenturyGothic', Arial, sans-serif;
}

html, body { height: 100%; }

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

#preloader.hide {
    opacity: 0;
    pointer-events: none;
}

.container {
    position: relative;
    width: 300px;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.box {
    position: absolute;
    border: 2px solid #fff;
    opacity: 0;
    animation: fadeIn 0.5s ease-in forwards;
    transition: opacity 2.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.box1 { width: 300px; height: 500px; animation-delay: 0s; }
.box2 { width: 240px; height: 400px; animation-delay: 0.8s; }
.box3 { width: 180px; height: 300px; animation-delay: 1.6s; }
.box4 { width: 120px; height: 200px; animation-delay: 2.4s; }
.box5 { width: 60px;  height: 100px; animation-delay: 3.2s; }

/* When active, hide all except the fifth (center) box */
.container.hide-others .box:not(.box5) {
    animation: none;
    opacity: 0;
}

/* Triplet layout used only during the 3s hold */
.triplet {
    position: absolute;
    width: 300px;
    height: 100px;
    display: none;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

/* When showing triplet, hide the single box5 and show three copies */
.container.show-triplet .triplet { display: flex; }
.container.show-triplet .box.box5:not(.triplet-item) { display: none; }

/* Triplet items are static (not absolutely stacked), fully visible, no animation */
.triplet .box {
    position: static;
    opacity: 0;
    animation: none;
    border: none;
}

/* On show-triplet, animate the three copies in with a soft stagger */
.container.show-triplet .triplet .box { animation: fadeIn 0.5s ease-in forwards; }
.container.show-triplet .triplet .box:nth-child(1) { animation-delay: 0s; }
.container.show-triplet .triplet .box:nth-child(2) { animation-delay: 0.1s; }
.container.show-triplet .triplet .box:nth-child(3) { animation-delay: 0.2s; }

@keyframes fadeIn { to { opacity: 1; } }



/* Landing UI */
.site-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    color: #111;
    background: #fff;
}

.site-header {
    display: flex;
    align-items: center; /* vertically center CONTACT to logo block */
    justify-content: space-between;
    padding: 6px 20px 2px 20px;
}

.brand { display: flex; flex-direction: column; gap: 6px; }

.logo-row {
    display: flex;
    gap: 18px;
    font-size: 40px;
    line-height: 1;
    font-weight: 400;
    letter-spacing: 8px;
    align-items: flex-end; /* align bottoms of letters */
}

.logo-row .logo-letter { display: inline-block; line-height: 1; }

.logo-row .logo-x {
    font-size: 56px; /* larger X */
}

.brand-sub { font-size: 11px; letter-spacing: 0.6px; }

.contact-link {
    font-size: 12px;
    letter-spacing: 1px;
    text-decoration: none;
    color: #111;
    padding: 0;
    border: none;
    background: none;
}

.contact-link:hover {
    color: #555;
}

.hero-frame {
    margin: 8px 12px 10px 12px;
    border: 1px solid #222;
    height: 520px;
    display: flex;
    border-radius: 0;
    overflow: hidden;
    position: relative;
}

.hero-frame .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    opacity: 1;
    transition: opacity 600ms ease-in-out;
    position: absolute;
    left: 0;
    top: 0;
}

.hero-image-base { z-index: 0; }
.hero-image-next { z-index: 1; opacity: 0; }

.site-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 300px 12px 300px;
    gap: 24px;
}

.nav-list {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
}

.nav-item {
    position: relative;
    font-size: 12px;
    letter-spacing: 1px;
    color: #111;
    cursor: pointer;
    padding: 2px 8px 6px 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav-item.active::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 104px;
    height: 2px;
    background: #111;
}

.nav-icon {
    width: 32px;
    height: 32px;
    display: none;
}

/* Mobile: text only, hide icons */
@media (max-width: 600px) {
    .nav-label { 
        display: block; 
        font-size: 10px; 
        letter-spacing: 0.5px;
    }
    .nav-item { 
        padding: 4px 4px 6px 4px; 
        gap: 0;
    }
    .nav-icon { display: none; }
    .site-nav { padding: 0 10px 10px 10px; }
    .nav-item.active::after {
        width: 100%;
        max-width: 60px;
    }
}

/* AI Designs Section */
.ai-designs-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: #fff;
    min-height: auto;
}

.ai-designs-container {
    width: 100%;
    max-width: 100%;
}

.ai-designs-heading {
    font-size: 48px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 40px;
    color: #111;
    text-align: center;
}

.stats-boxes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 600px;
    margin: 0 auto 40px auto;
}

.stats-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 15px;
    border: 1px solid #ddd;
    border-radius: 0;
    background: #fff;
    transition: all 0.3s ease;
}

.stats-box:hover {
    border-color: #111;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.box-number {
    font-size: 32px;
    font-weight: 700;
    color: #111;
    margin-bottom: 8px;
}

.box-label {
    font-size: 13px;
    color: #666;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.ai-designs-profile {
    display: flex;
    gap: 30px;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.profile-stats {
    display: flex;
    gap: 24px;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-size: 18px;
    font-weight: 700;
    color: #111;
}

.stat-label {
    font-size: 12px;
    color: #666;
    letter-spacing: 0.5px;
}


/* Desktop: fill viewport without scroll */
@media (min-width: 1024px) {
    html, body { 
        height: 100vh; 
        overflow: hidden; 
    }
    .site-wrapper { 
        height: 100vh; 
        display: flex;
        flex-direction: column;
    }
    .hero-frame {
        height: calc(100vh - 120px) !important; /* Full viewport minus header and nav */
        max-height: 800px !important; /* Cap at 800px for very large screens */
        flex: 1;
    }
    .site-nav {
        flex-shrink: 0;
    }
    .ai-designs-section {
        height: auto;
        min-height: 0;
    }
}

/* Viewport height fixes for index.html and pages with hero-frame */

/* Tablet */
@media (max-width: 1023px) and (min-width: 769px) {
    .hero-frame {
        height: 65vh !important;
        min-height: 450px !important;
        max-height: 600px !important;
    }
}

/* Mobile Landscape */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-frame {
        height: 80vh !important;
        min-height: 350px !important;
    }
}

/* Mobile Portrait */
@media (max-width: 768px) and (orientation: portrait) {
    .hero-frame {
        height: 60vh !important;
        min-height: 400px !important;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-frame {
        height: 55vh !important;
        min-height: 300px !important;
    }
}

/* Footer Styles */
.site-footer {
    background: #fff;
    border-top: 1px solid #ddd;
    padding: 40px 20px 20px 20px;
}

.footer-content {
    max-width: 900px;
    margin: 0 auto 30px auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-title {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #111;
    margin: 0;
}

.social-links,
.legal-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.social-link,
.legal-link {
    font-size: 13px;
    color: #666;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.social-link:hover,
.legal-link:hover {
    color: #111;
}

.location-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.location-text {
    font-size: 13px;
    color: #666;
    margin: 0;
    letter-spacing: 0.5px;
    line-height: 1.5;
}

.footer-bottom {
    max-width: 900px;
    margin: 0 auto;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.copyright {
    font-size: 12px;
    color: #999;
    margin: 0;
    letter-spacing: 0.5px;
}

/* Mobile: responsive footer */
@media (max-width: 600px) {
    .site-footer {
        padding: 30px 15px 15px 15px;
    }
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 20px;
    }
    .social-links,
    .legal-links {
        gap: 16px;
    }
    .stats-box {
        padding: 20px 15px;
    }
    .box-number {
        font-size: 24px;
    }      
}
