/**
 * ImmortalityLab.ai Stylesheet
 * AltosLabs-inspired design with ImmortalityLab.ai branding
 */

/* ========================================
   CSS VARIABLES
   ======================================== */
:root {
    /* Colors - Base */
    --bg-color: #ffffff;
    --section-bg: #f8f8f8;
    --text-color: #000000;
    --muted-text: #4a4a4a;

    /* Colors - ImmortalityLab.ai Branding */
    --accent-teal: #00897B;        /* Consciousness theme */
    --accent-blue: #1A237E;        /* Technology theme */
    --gradient-primary: linear-gradient(135deg, #00897B 0%, #1A237E 100%);

    /* Layout */
    --border-radius-lg: 16px;      /* Reduced from 50px to match AltosLabs */
    --border-radius-sm: 12px;      /* Reduced from 24px to match AltosLabs */
    --container-padding: 4%;
    --max-width: 1300px;

    /* Typography */
    --font-size-hero: clamp(2.5rem, 7vw, 5.5rem);
    --font-size-h2: 2.4rem;
    --font-size-h3: 1.5rem;
    --font-size-body: 1.1rem;

    /* Transitions */
    --transition-standard: 0.3s ease;
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    letter-spacing: -0.01em;
    line-height: 1.6;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1 {
    font-size: var(--font-size-hero);
    font-weight: 800;
    line-height: 1.0;
    letter-spacing: -0.04em;
}

h2 {
    font-size: var(--font-size-h2);
    font-weight: 700;
    line-height: 1.15;
}

h3 {
    font-size: var(--font-size-h3);
    font-weight: 600;
    line-height: 1.3;
}

p {
    font-size: var(--font-size-body);
    color: var(--muted-text);
    line-height: 1.5;
}

/* ========================================
   PILL TAGS
   ======================================== */
.pill-tag {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid #d1d1d1;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.5rem;
    transition: all var(--transition-standard);
}

.pill-tag:hover {
    border-color: var(--accent-teal);
    color: var(--accent-teal);
}

/* ========================================
   NAVIGATION
   ======================================== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4%;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Navigation becomes white with border when scrolled */
nav.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.logo-text {
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
    flex: 0 0 auto;
    color: #fff;
    transition: color var(--transition-standard);
}

nav.scrolled .logo-text {
    color: #000;
}

.nav-links {
    display: flex;
    gap: 8px;
    list-style: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-links a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    font-size: 1rem;
    padding: 10px 24px;
    border-radius: 100px;
    transition: all var(--transition-standard);
    position: relative;
}

nav.scrolled .nav-links a {
    color: #000;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.2);
}

nav.scrolled .nav-links a:hover {
    background: rgba(0, 0, 0, 0.05);
}

.nav-links a.active {
    background: #fff;
    color: #000;
}

nav.scrolled .nav-links a.active {
    background: #000;
    color: #fff;
}

/* Contact button on right (separate from nav-links) */
.nav-contact {
    flex: 0 0 auto;
}

.contact-button {
    display: inline-block;
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    font-size: 1rem;
    padding: 10px 28px;
    border: 1px solid #fff;
    border-radius: 100px;
    transition: all var(--transition-standard);
}

nav.scrolled .contact-button {
    color: #000;
    border-color: #000;
}

.contact-button:hover,
.contact-button.active {
    background: #fff;
    color: #000;
}

nav.scrolled .contact-button:hover,
nav.scrolled .contact-button.active {
    background: #000;
    color: #fff;
}

/* Mobile Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: #fff;
    transition: all var(--transition-standard);
}

nav.scrolled .hamburger span {
    background: var(--text-color);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Navigation Drawer */
.mobile-nav {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 20px 0;
    z-index: 999;
    transform: translateY(-100%);
    transition: transform var(--transition-standard);
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.mobile-nav.active {
    transform: translateY(0);
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav li {
    padding: 15px var(--container-padding);
}

.mobile-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 1.1rem;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    padding: 160px var(--container-padding) 60px;
    max-width: var(--max-width);
}

/* Hero with background image or video (like AltosLabs) */
.hero-with-image {
    position: relative;
    min-height: 100vh;
    max-width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    border-radius: 0;
}

/* Rounded hero wrapper (for inside pages like AltosLabs) */
.hero-rounded-wrapper {
    padding: 100px var(--container-padding) 20px;
    background: #fff;
}

.hero-rounded {
    min-height: 80vh;
    border-radius: 24px;
    overflow: hidden;
}

/* Video background styling */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

.hero-with-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 100%);
    z-index: 1;
}

.hero-with-image .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 60px var(--container-padding);
    max-width: 1200px;
    margin: 0 auto;
}

.hero-with-image h1 {
    color: #ffffff;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-with-image .pill-tag {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
}

.hero-with-image .hero-subtitle {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 10px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--muted-text);
    margin-top: 1.5rem;
    max-width: 800px;
}

/* ========================================
   CONTENT SECTIONS
   ======================================== */
.content-section {
    margin: 15px var(--container-padding);
    background: var(--section-bg);
    border-radius: var(--border-radius-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    min-height: 550px;
}

.text-box {
    padding: 60px 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.text-box h2 {
    margin-bottom: 1.2rem;
}

.text-box p {
    margin-bottom: 1rem;
}

.image-box {
    position: relative;
    background-color: #e5e5e5;
}

.image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(10%);
}

/* ========================================
   PEOPLE GRID
   ======================================== */
.people-section {
    padding: 100px var(--container-padding);
    max-width: var(--max-width);
    margin: 0 auto;
}

.people-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 40px 15px;
    margin-top: 50px;
    max-width: 1000px;
}

.person-card {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform var(--transition-standard);
}

.person-card:hover {
    transform: translateY(-5px);
}

.person-image-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1.15;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    margin-bottom: 15px;
    background: #eee;
}

.person-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(10%);
}

.person-name {
    font-weight: 700;
    font-size: 1.1rem;
}

.person-title {
    font-size: 0.85rem;
    color: var(--muted-text);
    margin-top: 4px;
    line-height: 1.3;
}

/* ========================================
   TECH PILLAR CARDS
   ======================================== */
.tech-pillars-preview {
    padding: 100px var(--container-padding);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.tech-pillar-card {
    background: var(--section-bg);
    border-radius: var(--border-radius-sm);
    padding: 40px 30px;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all var(--transition-standard);
    border: 1px solid transparent;
}

.tech-pillar-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-teal);
    box-shadow: 0 10px 30px rgba(0,137,123,0.1);
}

.pillar-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.tech-pillar-card h3 {
    margin-bottom: 15px;
    color: var(--text-color);
}

.tech-pillar-card p {
    font-size: 0.95rem;
    color: var(--muted-text);
    line-height: 1.6;
}

/* ========================================
   CTA SECTIONS
   ======================================== */
.cta-section {
    background: var(--gradient-primary);
    padding: 100px var(--container-padding);
    text-align: center;
    color: white;
}

.cta-section h2 {
    color: white;
    margin-bottom: 20px;
}

.cta-section p {
    color: rgba(255,255,255,0.9);
    font-size: 1.2rem;
    margin-bottom: 40px;
}

/* CTA Buttons */
.cta-button,
.cta-button-white {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-standard);
    cursor: pointer;
}

.cta-button {
    background: var(--accent-blue);
    color: white;
    border: 2px solid var(--accent-blue);
}

.cta-button:hover {
    background: var(--accent-teal);
    border-color: var(--accent-teal);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,137,123,0.3);
}

.cta-button-white {
    background: white;
    color: var(--accent-blue);
    border: 2px solid white;
}

.cta-button-white:hover {
    background: transparent;
    color: white;
    transform: translateY(-2px);
}

/* ========================================
   CONTACT FORM
   ======================================== */
.contact-form-section {
    padding: 60px var(--container-padding);
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    background: var(--section-bg);
    border-radius: var(--border-radius-sm);
    padding: 50px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #d1d1d1;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border-color var(--transition-standard);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-teal);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-button {
    background: var(--accent-blue);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-standard);
}

.submit-button:hover {
    background: var(--accent-teal);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,137,123,0.3);
}

/* ========================================
   FOOTER
   ======================================== */
footer {
    padding: 60px var(--container-padding);
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #888;
}

footer a {
    color: #888;
    text-decoration: none;
    transition: color var(--transition-standard);
}

footer a:hover {
    color: var(--accent-teal);
}

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

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 900px) {
    /* Navigation */
    .nav-links {
        display: none;
    }

    .nav-contact {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .mobile-nav {
        display: block;
    }

    /* Content Sections */
    .content-section {
        grid-template-columns: 1fr;
        border-radius: 12px;
        min-height: auto;
    }

    .text-box {
        padding: 40px 25px;
    }

    .image-box {
        height: 350px;
        order: -1;
    }

    /* Hero */
    .hero {
        padding: 120px var(--container-padding) 40px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    /* Hero with image on mobile */
    .hero-with-image {
        min-height: 100vh;
    }

    .hero-with-image h1 {
        font-size: 2.5rem;
    }

    .hero-with-image .hero-subtitle {
        font-size: 1rem;
    }

    /* Rounded hero on mobile */
    .hero-rounded-wrapper {
        padding: 100px 2% 20px;
    }

    .hero-rounded {
        min-height: 60vh;
        border-radius: 16px;
    }

    /* Typography */
    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    /* Tech Grid */
    .tech-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* People Section */
    .people-section {
        padding: 60px var(--container-padding);
    }

    /* People Grid */
    .people-grid {
        grid-template-columns: 1fr;
        gap: 30px 10px;
        max-width: 100%;
    }

    /* Footer */
    footer {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }

    /* Contact Form */
    .contact-form {
        padding: 30px 20px;
    }

    /* CTA Section */
    .cta-section {
        padding: 60px var(--container-padding);
    }

    .cta-section h2 {
        font-size: 2rem;
    }

    .cta-section p {
        font-size: 1rem;
    }
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .people-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}
