:root {
    --bg-dark: #01192D; /* Deep Navy Background */
    --cyan: #00D4E9; /* Prestige Turquoise */
    --cyan-dark: #104862; /* Deep Construction Navy */
    --cyan-secondary: #0B2D45; /* Secondary Navy */
    --orange: #EA4E08; /* Vibrant Orange */
    --orange-dark: #cc4306;
    --text-main: #ffffff;
    --text-muted: #778592;
    --text-sub: #88939c;
    --off-white: #F3F0EA; /* Warm Off-White */
    --font-main: 'Montserrat', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow: hidden; /* Prevent scrolling */
    min-height: 100vh;
    position: relative;
}

/* Full Screen Background */
.full-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('back.jpg'); 
    background-size: cover;
    background-position: center bottom;
    z-index: 1;
}

/* Left Panel (Content Container) */
.left-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 60%; /* Keep content safely on the left */
    height: 100%;
    background: transparent; /* Background is now baked into back.jpg */
    z-index: 2;
    display: flex;
    align-items: center;
    padding-left: 8%;
}

/* Content Container */
.content-wrapper {
    max-width: 600px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 2rem; /* Reduced to fit on smaller screens */
}

/* Aligned Content Wrapper */
.aligned-content {
    width: 360px; /* Reduced from 420px to fit everything vertically */
    display: flex;
    flex-direction: column;
}

/* Brand Group (Logo & Subtitle) */
.brand-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 2rem;
}

.ayze-combined-logo {
    width: 100%; /* Fill the 420px container perfectly */
    height: auto;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.4));
}

.brand-subtitle {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-size: 0.55rem;
    letter-spacing: 1.5px;
    color: var(--text-sub);
    font-weight: 500;
}

.brand-subtitle .divider {
    color: var(--cyan-dark);
}

.divider {
    color: var(--orange);
    margin: 0 4px;
}

/* Hero Text */
.hero-text {
    width: 100%;
    margin: 1.5rem 0; /* Reduced margin */
}

.hero-text h2 {
    font-size: 1.15rem; /* Reduced font size */
    font-weight: 300;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
    white-space: nowrap;
}

.hero-text h2.highlight {
    color: var(--cyan);
    font-weight: 400;
    margin-top: 5px;
}

/* Coming Soon Badge */
.top-left-badge {
    position: absolute;
    top: 3rem;
    left: 8%;
}

.coming-soon-badge {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(231, 107, 34, 0.4);
    background-color: rgba(0, 0, 0, 0.3);
    padding: 8px 25px;
    border-radius: 40px;
}

.coming-soon-badge span {
    color: var(--orange);
    font-weight: 500;
    letter-spacing: 1.5px;
    font-size: 0.75rem;
}

.pulse-ring {
    width: 10px;
    height: 10px;
    background-color: var(--orange);
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
    box-shadow: 0 0 8px rgba(231, 107, 34, 0.8);
}

.pulse-ring::before {
    content: '';
    position: absolute;
    left: -4px;
    top: -4px;
    width: 18px;
    height: 18px;
    background-color: var(--orange);
    border-radius: 50%;
    opacity: 0.4;
    animation: pulse 2s infinite;
}

/* Features Grid */
.features-grid {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 2rem; /* Reduced margin */
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 22%;
    cursor: pointer;
}

.feature-item p {
    font-size: 0.6rem; /* Make feature text smaller */
    margin: 0;
}

.feature-icon {
    font-size: 1.8rem; /* Scaled down elegant size */
    margin-bottom: 10px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Hover Animations for Icons */
.feature-item:hover .feature-icon {
    transform: scale(1.3) translateY(-5px);
}

.feature-item:hover .color-cyan {
    filter: drop-shadow(0 10px 10px rgba(0, 212, 233, 0.6));
}

.feature-item:hover .color-orange {
    filter: drop-shadow(0 10px 10px rgba(234, 78, 8, 0.6));
}

.color-cyan {
    color: var(--cyan);
    filter: drop-shadow(0 0 5px rgba(32, 156, 177, 0.4));
}

.color-orange {
    color: var(--orange);
    filter: drop-shadow(0 0 5px rgba(231, 107, 34, 0.4));
}

.feature-item p {
    font-size: 0.55rem;
    font-weight: 500;
    letter-spacing: 1px;
    line-height: 1.4;
    color: var(--text-sub);
}

/* Footer Text Line */
.footer-text {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.long-line {
    height: 1px;
    background-color: var(--cyan-dark);
    flex-grow: 1;
    margin-right: 1.5rem;
    position: relative;
    overflow: hidden; /* Contains the LED glow */
}

/* LED Light Animation */
.long-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
    box-shadow: 0 0 5px var(--cyan);
    animation: led-travel 2.5s linear infinite;
}

@keyframes led-travel {
    0% { left: -50px; }
    100% { left: 100%; }
}

.footer-text p {
    font-size: 0.6rem;
    letter-spacing: 0.25em;
    color: var(--cyan-dark);
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
}

/* Contact Box */
.top-right-contact {
    position: absolute;
    top: 3rem;
    right: 5%;
    z-index: 10;
}

.contact-box {
    display: inline-block;
    border: 1px solid var(--cyan);
    background-color: var(--bg-dark);
    color: var(--cyan);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 2px;
    font-weight: 500;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.contact-box:hover {
    background-color: var(--cyan);
    color: var(--bg-dark);
}

/* User Provided 3D Ribbons */
.custom-ribbons {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    overflow: hidden;
}

.ribbon-layer {
    position: absolute;
    bottom: -2%;
    height: auto;
    filter: drop-shadow(-10px 20px 25px rgba(0,0,0,0.5));
}

.r-l1 {
    left: 38%;
    width: 20vw;
    z-index: 1;
}

.r-l2 {
    left: 45%;
    width: 32vw;
    z-index: 3;
}

.r-l3 {
    left: 55%;
    width: 40vw;
    z-index: 2;
}

.ribbon-anim {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0;
}

/* Cinematic Fly-In Animations */
@keyframes flyInL3 {
    0% { transform: scale(1.8) translate(150px, 100px); opacity: 0; }
    100% { transform: scale(1) translate(0, 0); opacity: 1; }
}

@keyframes flyInL1 {
    0% { transform: scale(1.6) translate(-150px, -50px) rotate(-20deg); opacity: 0; }
    100% { transform: scale(1) translate(0, 0) rotate(0deg); opacity: 1; }
}

@keyframes flyInL2 {
    0% { transform: scale(2.5) translate(80px, 150px) rotate(25deg); opacity: 0; filter: blur(15px); }
    100% { transform: scale(1) translate(0, 0) rotate(0deg); opacity: 1; filter: blur(0px); }
}

/* 
  cubic-bezier(0.16, 1, 0.3, 1) provides a beautiful, 
  smooth deceleration effect (exponential ease-out). 
*/
.r-anim-3 { animation: flyInL3 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; animation-delay: 0.2s; }
.r-anim-1 { animation: flyInL1 2.2s cubic-bezier(0.16, 1, 0.3, 1) forwards; animation-delay: 0.8s; }
.r-anim-2 { animation: flyInL2 2.5s cubic-bezier(0.16, 1, 0.3, 1) forwards; animation-delay: 1.4s; }

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(2.2); opacity: 0; }
}

.fade-in {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 1s ease, transform 1s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 1.5s ease, transform 1.5s ease;
}
.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Responsive */
@media (max-width: 1024px) {
    .left-panel { width: 70%; }
    .r-l1 { width: 25vw; left: 30%; }
    .r-l2 { width: 40vw; left: 40%; }
    .r-l3 { width: 50vw; left: 50%; }
}

@media (max-width: 768px) {
    body { overflow-y: auto; }
    
    .left-panel { 
        position: relative; 
        width: 100%; 
        clip-path: none; /* VERY IMPORTANT: Remove the diagonal cut on mobile */
        background: rgba(1, 25, 45, 0.9); 
        min-height: 100vh; 
        padding: 2rem 1.5rem; 
        padding-top: 8.5rem; 
        display: flex;
        justify-content: center;
    }
    
    .full-bg { position: fixed; }
    .custom-ribbons { position: fixed; bottom: -5%; opacity: 0.3; }
    .r-l1 { width: 40vw; left: 10%; }
    .r-l2 { width: 60vw; left: 30%; }
    .r-l3 { width: 70vw; left: 40%; }
    
    .content-wrapper { align-items: center; margin-top: 0; width: 100%; }
    
    .aligned-content {
        width: 100%; /* Make it fluid for screens smaller than 360px */
        max-width: 360px;
    }
    
    .hero-text { text-align: center; }
    .hero-text h2 { white-space: normal; letter-spacing: 2px; } /* Allow text to wrap on small screens */
    
    .features-grid { flex-wrap: wrap; justify-content: center; gap: 10px; }
    .feature-item { width: 45%; margin-bottom: 1.5rem; }
    
    .top-left-badge { 
        top: 20px; 
        left: 0; 
        right: 0; 
        margin: 0 auto; 
        width: max-content; 
        font-size: 0.5rem; 
    }
    .top-right-contact { 
        top: 65px; 
        left: 0; 
        right: 0; 
        margin: 0 auto; 
        width: max-content; 
        font-size: 0.6rem; 
        padding: 6px 12px; 
    }

    .brand-subtitle {
        font-size: 0.45rem;
        letter-spacing: 0.5px;
    }
    
    .footer-text { flex-direction: column; text-align: center; }
    .long-line { display: none; } /* Hide the LED line on mobile as it takes too much space */
}
