/* ===================================
   OBJECTSENSE WEBSITE STYLES
   Design System per PRD Section 6
   =================================== */

/* ===================================
   RESET & BASE STYLES
   =================================== */

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

html {
    scroll-behavior: smooth;
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
    /* Prevent layout shift during zoom detection */
    position: relative;
    width: 100%;
    min-height: 100%;
}

/* Ensure smooth rendering when zoom is synced */
html.zoom-synced {
    visibility: visible;
}

body {
    font-family: Arial, sans-serif;
    font-size: 20px;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
    /* Smooth page rendering */
    opacity: 1;
    transition: opacity 0.1s ease-in;
    /* Prevent any unwanted scroll or jump on page load */
    overflow-x: hidden;
}

/* Reset scroll position on page load */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
}

/* ===================================
   CONTAINER
   =================================== */

.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   HEADER - FIXED NAVIGATION
   =================================== */

.header {
    background-color: #000;
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
    max-width: none;
    padding: 0;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: white;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 50px;
    width: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.logo img:hover {
    opacity: 0.8;
}

.center-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 32px;
    font-weight: bold;
    letter-spacing: 2px;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-wrap: nowrap;
    gap: 40px;
    position: relative;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
    margin-left: auto;
    justify-content: flex-end;
}

.nav-menu li {
    display: inline-block;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: opacity 0.3s ease;
}

.nav-menu a:hover {
    opacity: 0.7;
}

.nav-menu a.active {
    border-bottom: 2px solid white;
    opacity: 1;
}

/* ===================================
   HERO SECTION
   =================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
                url('/image/background/ct_back_ground.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    text-align: center;
    padding: 120px 20px 60px 20px;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    opacity: 0.9;
}

.hero-company-status {
    font-size: 18px;
    line-height: 1.6;
    opacity: 0.85;
    margin-top: 10px;
}

.hero-description {
    font-size: 20px;
    line-height: 1.6;
    opacity: 0.95;
}

/* ===================================
   CONTENT SECTIONS
   =================================== */

.content-section {
    background-color: #f9f9f9;
    padding: 80px 0;
}

.content-section h2 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 40px;
    color: #333;
}

.content-section h3 {
    font-size: 28px;
    margin: 40px 0 20px 0;
    color: #333;
}

.content-section p {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #333;
}

.intro-text {
    font-size: 22px;
    line-height: 1.7;
    margin-bottom: 30px;
    color: #333;
    font-weight: 500;
}

/* ===================================
   TIDAL-STYLE SECTION
   =================================== */

.tidal-style {
    background-color: #ececec;
    padding: 100px 0;
}

.tidal-style .container {
    max-width: 1200px;
    text-align: left;
}

.main-title {
    font-size: 72px;
    font-weight: bold;
    color: #000;
    margin-bottom: 30px;
    line-height: 1.1;
}

.tagline {
    font-size: 28px;
    font-weight: 600;
    color: #000;
    margin-bottom: 30px;
    line-height: 1.4;
}

.company-status {
    font-size: 14px;
    font-weight: 500;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 40px;
}

.tidal-style .intro-text {
    font-size: 20px;
    line-height: 1.7;
    color: #000;
    margin-bottom: 25px;
    font-weight: 400;
}

.tidal-style p {
    font-size: 20px;
    line-height: 1.7;
    color: #000;
    margin-bottom: 20px;
}

.content-section ul {
    font-size: 20px;
    line-height: 1.8;
    margin: 20px 0;
    padding-left: 30px;
    color: #333;
}

.content-section li {
    margin-bottom: 10px;
}

/* ===================================
   IMAGE WRAPPERS
   =================================== */

.image-wrapper {
    width: 100%;
    overflow: hidden;
    margin-bottom: 30px;
}

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

.image-wrapper.fullscreen {
    width: 100vw;
    height: 100vh;
    margin-left: calc(-50vw + 50%);
}

.image-wrapper.fullscreen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-wrapper.centered {
    max-width: 400px;
    margin: 0 auto 30px auto;
}

/* ===================================
   CONTENT WITH IMAGE GRID
   =================================== */

.content-with-image {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin: 40px 0;
}

.content-with-image .image-wrapper {
    margin-bottom: 0;
}

.content-with-image > div {
    display: flex;
    flex-direction: column;
}

/* ===================================
   STATISTICS GRID
   =================================== */

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.stat {
    background-color: #eaeaea;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stat h3 {
    font-size: 48px;
    font-weight: bold;
    color: #000;
    margin: 0 0 15px 0;
}

.stat p {
    font-size: 18px;
    color: #333;
    margin: 0;
    line-height: 1.4;
}

/* ===================================
   VIDEO WRAPPER
   =================================== */

.video-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 40px;
    background-color: #000;
}

.video-wrapper video {
    width: 100%;
    height: auto;
    min-height: 400px;
    max-height: 70vh;
    display: block;
    object-fit: cover;
}

/* ===================================
   FOOTER
   =================================== */

.footer {
    background-color: #111;
    color: white;
    text-align: center;
    padding: 40px 0;
}

.footer p {
    font-size: 16px;
    margin: 0;
}

/* ===================================
   RESPONSIVE DESIGN
   Mobile-first approach (< 768px)
   =================================== */

@media (max-width: 768px) {
    /* Typography adjustments */
    body {
        font-size: 18px;
    }

    /* Header - Vertical navigation */
    .header {
        padding: 15px 20px;
        flex-direction: column;
    }

    .header .container {
        flex-direction: column;
        gap: 15px;
        padding: 0;
    }

    .nav {
        flex-direction: column;
        width: 100%;
    }

    .nav-menu {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        width: 100%;
    }

    .logo {
        font-size: 22px;
    }

    /* Hero adjustments */
    .hero {
        min-height: auto;
        padding: 160px 20px 60px 20px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .hero-description {
        font-size: 18px;
    }

    /* Tidal-style section adjustments */
    .main-title {
        font-size: 48px;
    }

    .tagline {
        font-size: 22px;
    }

    .company-status {
        font-size: 12px;
    }

    .tidal-style .intro-text {
        font-size: 18px;
    }

    .tidal-style p {
        font-size: 18px;
    }

    /* Content sections */
    .content-section {
        padding: 60px 0;
    }

    .content-section h2 {
        font-size: 32px;
    }

    .content-section h3 {
        font-size: 24px;
    }

    .content-section p {
        font-size: 18px;
    }

    /* Content with image - maintain side by side longer */
    .content-with-image {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Statistics - 2 columns on mobile */
    .stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .stat {
        padding: 25px;
    }

    .stat h3 {
        font-size: 40px;
    }

    .stat p {
        font-size: 16px;
    }

    /* Video wrapper reduced height */
    .video-wrapper video {
        min-height: 300px;
        max-height: 60vh;
    }

    /* Image wrapper fullscreen reduced */
    .image-wrapper.fullscreen {
        height: 60vh;
    }
}

/* ===================================
   TABLET ADJUSTMENTS (768px - 1024px)
   =================================== */

@media (min-width: 768px) and (max-width: 1024px) {
    .container {
        width: 90%;
    }

    .hero h1 {
        font-size: 42px;
    }

    .content-section h2 {
        font-size: 34px;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .content-with-image {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

/* ===================================
   DESKTOP - MAINTAIN LAYOUT ON ZOOM
   Above 1024px, keep side-by-side layout
   =================================== */

@media (min-width: 769px) {
    /* Ensure horizontal header layout on zoom out */
    .header {
        padding: 20px 40px;
        flex-direction: row;
    }

    .header .container {
        flex-direction: row;
        flex-wrap: nowrap;
        max-width: none;
        width: 100%;
    }

    .nav {
        flex-direction: row;
        width: 100%;
        gap: 40px;
    }

    .nav-menu {
        flex-direction: row;
        width: auto;
        margin-left: auto;
        gap: 30px;
        justify-content: flex-end;
    }

    .logo {
        margin-right: auto;
        flex-shrink: 0;
    }
}

@media (min-width: 1025px) {
    /* Content layouts */
    .content-with-image {
        grid-template-columns: 1fr 1fr;
    }

    .stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===================================
   EXTREME ZOOM OUT (>1600px)
   Maintain proportional scaling
   =================================== */

@media (min-width: 1600px) {
    .container {
        max-width: 1600px;
    }

    .header {
        padding: 20px 60px;
    }

    .header .container {
        max-width: none;
        width: 100%;
    }

    .nav-menu {
        gap: 50px;
    }

    .logo img {
        height: 60px;
    }
}

/* ===================================
   ULTRA WIDE / EXTREME ZOOM OUT (>2000px)
   =================================== */

@media (min-width: 2000px) {
    .header {
        padding: 20px 80px;
    }

    .nav-menu {
        gap: 60px;
        font-size: 18px;
    }

    .logo img {
        height: 70px;
    }
}

/* ===================================
   ACCESSIBILITY & UTILITIES
   =================================== */

/* Focus states for keyboard navigation */
a:focus,
button:focus {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}

/* Smooth image loading */
img {
    max-width: 100%;
    height: auto;
}

/* Remove outline for mouse users */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
    outline: none;
}

/* Print styles */
@media print {
    .header,
    .footer {
        position: static;
    }

    .hero {
        background: none;
        color: #000;
        min-height: auto;
    }
}
