/* ============================================
   ALTITUDE LANDING PAGE STYLES
   Digital Twin Infrastructure - Vancouver, BC
   ============================================ */

/* ============================================
   CSS CUSTOM PROPERTIES (VARIABLES)
   ============================================ */
:root {
    --color-primary: #0A0A0A;
    --color-accent: #D4AF37;
    --color-secondary: #2C2C2C;
    --color-light: #FAFAFA;
    --color-muted: #666666;
    --font-display: 'Playfair Display', serif;
    --font-body: 'DM Sans', sans-serif;
}

/* ============================================
   GLOBAL RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--color-light);
    color: var(--color-primary);
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

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

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--color-light);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    color: rgba(250, 250, 250, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.nav-cta {
    background: var(--color-accent);
    color: var(--color-primary);
    padding: 0.75rem 2rem;
    border: none;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
    text-decoration: none;
    display: inline-block;
}

.nav-cta:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* ============================================
   VIDEO HERO SECTION
   ============================================ */
.video-hero {
    position: relative;
    min-height: 100vh; /* Changed from height to min-height - allows expansion */
    height: auto; /* Allow it to expand for content */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.4), rgba(10, 10, 10, 0.7));
    z-index: 2;
}

.video-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 0 5%;
    max-width: 1200px;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.video-hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    color: var(--color-light);
}

.hero-tagline {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    font-style: italic;
    color: var(--color-accent);
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
}

.video-hero-subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    color: rgba(250, 250, 250, 0.9);
    margin-bottom: 3rem;
    font-weight: 400;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.accent-gold {
    color: var(--color-accent);
}

/* ============================================
   CALL-TO-ACTION BUTTONS
   ============================================ */
.hero-cta-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 3rem; /* Ensure space from text above */
    position: relative;
    z-index: 10;
}

.cta-primary {
    background: var(--color-accent);
    color: var(--color-primary);
    padding: 1.3rem 3rem;
    border: none;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    display: inline-block;
    text-decoration: none;
}

.cta-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.cta-secondary {
    background: transparent;
    color: var(--color-light);
    padding: 1.3rem 3rem;
    border: 2px solid var(--color-light);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    display: inline-block;
    text-decoration: none;
}

.cta-secondary:hover {
    background: var(--color-light);
    color: var(--color-primary);
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: var(--color-light);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    animation: bounce 2s infinite;
    display: none; /* Hide by default on desktop */
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ============================================
   PROBLEM STATEMENT SECTION
   ============================================ */
.problem-section {
    padding: 8rem 5%;
    background: var(--color-light);
}

.problem-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.section-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.problem-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.problem-description {
    font-size: 1.3rem;
    color: var(--color-muted);
    max-width: 900px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

/* ============================================
   COMPARISON GRID (OLD VS NEW)
   ============================================ */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 4rem auto 0;
    text-align: left;
}

.comparison-item {
    padding: 2.5rem;
    border: 2px solid var(--color-primary);
}

.comparison-item.old {
    opacity: 0.5;
}

.comparison-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    font-weight: 700;
}

.comparison-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.comparison-price {
    font-size: 3rem;
    font-family: var(--font-display);
    font-weight: 900;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.comparison-features {
    list-style: none;
    font-size: 0.95rem;
    line-height: 2;
}

/* ============================================
   USE CASES SECTION
   ============================================ */
.use-cases-section {
    padding: 8rem 5%;
    background: var(--color-primary);
    color: var(--color-light);
}

.use-cases-header {
    text-align: center;
    margin-bottom: 5rem;
}

.use-cases-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.use-cases-subtitle {
    font-size: 1.2rem;
    color: rgba(250, 250, 250, 0.7);
}

.use-cases-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.use-case-card {
    padding: 3rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.use-case-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
}

.use-case-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.use-case-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.use-case-description {
    color: rgba(250, 250, 250, 0.7);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.use-case-price {
    font-weight: 600;
    color: var(--color-accent);
}

/* ============================================
   VALUE PROPOSITIONS SECTION
   ============================================ */
.value-section {
    padding: 8rem 5%;
    background: var(--color-secondary);
    color: var(--color-light);
}

.value-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
}

.value-item {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.value-item:nth-child(1) {
    animation-delay: 0.2s;
}

.value-item:nth-child(2) {
    animation-delay: 0.4s;
}

.value-item:nth-child(3) {
    animation-delay: 0.6s;
}

.value-number {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 900;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: 1rem;
}

.value-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.value-description {
    color: rgba(250, 250, 250, 0.7);
    font-size: 1rem;
    line-height: 1.8;
}

/* ============================================
   TEAM SECTION
   ============================================ */
.team-section {
    padding: 8rem 5%;
    background: var(--color-light);
}

.team-header {
    text-align: center;
    margin-bottom: 5rem;
}

.team-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.team-subtitle {
    font-size: 1.2rem;
    color: var(--color-muted);
}

.team-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
}

.team-member {
    text-align: center;
}

.team-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 2rem;
    border: 4px solid var(--color-primary);
    display: block;
}

.team-name {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.team-role {
    font-size: 0.95rem;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.team-bio {
    color: var(--color-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.team-link {
    display: inline-block;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid var(--color-accent);
    transition: all 0.3s ease;
}

.team-link:hover {
    color: var(--color-accent);
}

/* ============================================
   FOOTER CTA SECTION
   ============================================ */
.footer-cta {
    padding: 8rem 5%;
    background: var(--color-primary);
    color: var(--color-light);
    text-align: center;
}

.footer-cta-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.footer-cta-subtitle {
    font-size: 1.3rem;
    color: rgba(250, 250, 250, 0.7);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: 1rem;
}

.contact-input {
    flex: 1;
    padding: 1.2rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-light);
    font-family: var(--font-body);
    font-size: 1rem;
}

.contact-input::placeholder {
    color: rgba(250, 250, 250, 0.5);
}

.contact-submit {
    padding: 1.2rem 3rem;
    background: var(--color-accent);
    color: var(--color-primary);
    border: none;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.contact-submit:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 3rem 5%;
    background: var(--color-primary);
    color: rgba(250, 250, 250, 0.5);
    text-align: center;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================
   DEMO MODAL
   ============================================ */
.demo-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    padding: 2rem;
    overflow: auto;
}

.demo-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.demo-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 80vh;
    max-height: 800px;
    background: var(--color-light);
    border-radius: 8px;
    overflow: hidden;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.demo-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: var(--color-primary);
    color: var(--color-light);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.demo-close:hover {
    background: var(--color-accent);
    color: var(--color-primary);
    transform: rotate(90deg);
}

.demo-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.demo-toast {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(212, 175, 55, 0.95);
    color: var(--color-primary);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    z-index: 11;
    animation: toastPulse 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes toastPulse {

    0%,
    100% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }

    50% {
        opacity: 0.85;
        transform: translateX(-50%) scale(1.02);
    }
}

/* ============================================
   VIDEO BACKGROUND FALLBACK
   ============================================ */
.video-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    animation: gradientShift 10s ease infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

/* ============================================
   MOBILE RESPONSIVE STYLES
   ============================================ */
@media (max-width: 1024px) {

    .comparison-grid,
    .use-cases-grid,
    .value-grid,
    .team-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .nav-link {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav {
        padding: 1.5rem 5%;
    }

    /* VIDEO HERO MOBILE IMPROVEMENTS */
    .video-hero {
        height: 100vh;
        min-height: 100vh;
    }

    .video-hero-content {
        padding: 0 7%;
    }

    .video-hero-title {
        font-size: clamp(2rem, 8vw, 3.5rem);
        margin-bottom: 1.5rem;
        line-height: 1.15;
    }

    .hero-tagline {
        font-size: clamp(1.2rem, 4vw, 1.8rem);
        margin-bottom: 1.5rem;
    }

    .video-hero-subtitle {
        font-size: clamp(1rem, 3.5vw, 1.2rem);
        margin-bottom: 2.5rem;
        padding: 0 1rem;
    }

    /* BUTTON IMPROVEMENTS */
    .hero-cta-group {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 0 1rem;
    }

    .cta-primary,
    .cta-secondary {
        width: 100%;
        text-align: center;
        padding: 1.1rem 2rem;
        font-size: 0.9rem;
        min-height: 50px;
    }

    .scroll-indicator {
        display: block; /* Show only on mobile */
        bottom: 2rem;
        font-size: 0.75rem;
    }

    /* CONTACT FORM */
    .contact-form {
        flex-direction: column;
    }

    /* SECTION PADDING ADJUSTMENTS */
    .problem-section,
    .use-cases-section,
    .value-section,
    .team-section,
    .footer-cta {
        padding: 4rem 5%;
    }

    /* DEMO MODAL MOBILE */
    .demo-modal {
        padding: 1rem;
    }

    .demo-container {
        height: 90vh;
        max-height: none;
    }

    .demo-toast {
        font-size: 0.75rem;
        padding: 0.75rem 1.25rem;
        bottom: 1rem;
        white-space: nowrap;
    }
}

/* EXTRA SMALL MOBILE DEVICES */
@media (max-width: 414px) {
    .video-hero-title {
        font-size: clamp(1.75rem, 9vw, 2.5rem);
        margin-bottom: 1rem;
    }

    .hero-tagline {
        font-size: clamp(1.1rem, 5vw, 1.5rem);
        margin-bottom: 1.25rem;
    }

    .video-hero-subtitle {
        font-size: clamp(0.95rem, 4vw, 1.1rem);
        margin-bottom: 2rem;
    }

    .hero-cta-group {
        gap: 0.875rem;
    }

    .cta-primary,
    .cta-secondary {
        padding: 1rem 1.5rem;
        font-size: 0.85rem;
        min-height: 48px;
    }

    .nav {
        padding: 1rem 5%;
    }

    .logo {
        font-size: 1.25rem;
    }

    .nav-cta {
        padding: 0.65rem 1.5rem;
        font-size: 0.85rem;
    }

    .demo-toast {
        font-size: 0.7rem;
        padding: 0.65rem 1rem;
    }

    /* FIX PHANTOM SPACING ISSUES */
    .footer {
        margin-bottom: 0;
        padding-bottom: 2rem;
    }

    .footer-cta {
        margin-bottom: 0;
    }

    /* Ensure sections don't create extra spacing */
    section {
        margin-bottom: 0;
    }

    body {
        padding-bottom: 0;
    }
}

/* ============================================
   DESKTOP LAYOUT FIXES
   ============================================ */
@media (min-width: 769px) {
    /* Fix header overlap - add padding to hero content on desktop */
    .video-hero-content {
        padding-top: 12rem;
        padding-bottom: 8rem; /* Ensure buttons have space at bottom */
    }

    /* CRITICAL FIX: Ensure hero CTA buttons are visible on desktop */
    .hero-cta-group {
        display: flex !important;
        gap: 1.5rem;
        justify-content: center;
        flex-wrap: wrap;
        align-items: center;
        opacity: 1;
        visibility: visible;
        position: relative;
        z-index: 10;
    }

    .cta-primary,
    .cta-secondary {
        opacity: 1;
        visibility: visible;
        display: inline-block;
    }
}
