/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black: #000000;
    --dark-gray: #121212;
    --mid-gray: #1a1a1a;
    --light-gray: #303030;
    --border-gray: #424242;
    --text-gray: #a0a0a0;
    --white: #ffffff;
    --accent: #f5f5f5;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo h1 {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    transition: opacity 0.3s ease;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--white);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-mobile-toggle span {
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

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

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1200px;
    padding: 0 20px;
}

.hero-title {
    font-size: clamp(48px, 8vw, 112px);
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: clamp(18px, 3vw, 28px);
    font-weight: 300;
    margin-bottom: 60px;
    color: var(--accent);
    line-height: 1.4;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 80px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 700;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-arrow {
    width: 30px;
    height: 50px;
    border: 2px solid var(--white);
    border-radius: 20px;
    position: relative;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--white);
    border-radius: 50%;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        top: 10px;
        opacity: 1;
    }
    100% {
        top: 30px;
        opacity: 0;
    }
}

/* Section Styles */
.section {
    padding: 120px 0;
    position: relative;
}

.section-container {
    max-width: 1420px;
    margin: 0 auto;
    padding: 0 70px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.section-container.reverse {
    grid-template-columns: 1fr 1fr;
}

.section-container.reverse .section-content {
    order: 2;
}

.section-container.reverse .section-image {
    order: 1;
}

.section-container.center-content {
    grid-template-columns: 1fr;
    text-align: center;
    max-width: 1000px;
}

.full-width-container {
    max-width: 1420px;
    margin: 0 auto;
    padding: 0 70px;
}

.section-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--text-gray);
    margin-bottom: 16px;
    text-transform: uppercase;
}

.section-label.center {
    text-align: center;
}

.section-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    margin-bottom: 32px;
    letter-spacing: -1px;
    line-height: 1.2;
}

.section-title.center {
    text-align: center;
}

.section-text {
    font-size: 18px;
    line-height: 1.8;
    color: var(--accent);
    margin-bottom: 24px;
    font-weight: 300;
}

.section-text.center-text {
    text-align: center;
}

.section-text.large {
    font-size: 24px;
    font-weight: 400;
}

.section-image {
    width: 100%;
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--light-gray), var(--mid-gray));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-gray);
}

.image-placeholder.dark {
    background: linear-gradient(135deg, var(--mid-gray), var(--black));
}

.placeholder-text {
    color: var(--text-gray);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.dark-section {
    background-color: var(--dark-gray);
}

/* Abstract Background for Philosophy, Vision, Status, and Contact Sections */
.philosophy-section,
.vision-section,
.status-section,
.contact-section {
    position: relative;
    background-image: url('assets/images/abstract.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Very dark overlay to make background subtle */
.philosophy-section::before,
.vision-section::before,
.status-section::before,
.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 0;
}

/* Ensure content stays above overlay */
.philosophy-section > *,
.vision-section > *,
.status-section > *,
.contact-section > * {
    position: relative;
    z-index: 1;
}

/* Fallback for browsers that don't support WebP */
.no-webp .philosophy-section,
.no-webp .vision-section,
.no-webp .status-section,
.no-webp .contact-section {
    background-image: url('assets/images/abstract.png');
}


/* Technology Grid */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin: 60px 0;
}

.tech-card {
    padding: 40px;
    background: var(--dark-gray);
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.tech-card:hover {
    transform: translateY(-8px);
    border-color: var(--white);
}

.tech-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 24px;
    color: var(--white);
}

.tech-icon svg {
    width: 100%;
    height: 100%;
}

.tech-card h3 {
    font-size: 24px;
    margin-bottom: 16px;
    font-weight: 600;
}

.tech-card p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-gray);
    font-weight: 300;
}

.tech-callout {
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-top: 60px;
}

.tech-callout p {
    font-size: 20px;
    font-style: italic;
    color: var(--accent);
    font-weight: 300;
}

/* Feature List */
.feature-list {
    list-style: none;
    margin-top: 40px;
}

.feature-list li {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
    align-items: flex-start;
}

.feature-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: var(--white);
    color: var(--black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.feature-list strong {
    display: block;
    font-size: 20px;
    margin-bottom: 8px;
    font-weight: 600;
}

.feature-list p {
    color: var(--text-gray);
    font-size: 16px;
    margin: 0;
    font-weight: 300;
}

/* Learning Flow */
.learning-flow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 80px;
    gap: 20px;
    flex-wrap: wrap;
}

.flow-step {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 40px 20px;
    background: var(--dark-gray);
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.flow-step:hover {
    background: var(--mid-gray);
    border-color: var(--white);
}

.flow-number {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    opacity: 0.3;
}

.flow-step h4 {
    font-size: 24px;
    margin-bottom: 12px;
    font-weight: 600;
}

.flow-step p {
    font-size: 14px;
    color: var(--text-gray);
    font-weight: 300;
}

.flow-arrow {
    font-size: 32px;
    color: var(--text-gray);
    flex-shrink: 0;
}

/* Status Grid */
.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.status-card {
    padding: 40px;
    background: var(--dark-gray);
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.status-card:hover {
    transform: translateY(-8px);
    background: var(--mid-gray);
}

.status-card h3 {
    font-size: 24px;
    margin-bottom: 16px;
    font-weight: 600;
}

.status-card p {
    font-size: 16px;
    color: var(--text-gray);
    font-weight: 300;
}

/* Philosophy Section */
.philosophy-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 0;
}

/* Contact Section */
.contact-form-wrapper {
    max-width: 600px;
    margin: 60px auto 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    width: 100%;
}

.form-input {
    width: 100%;
    padding: 18px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border-gray);
    border-radius: 4px;
    color: var(--white);
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--white);
    background: var(--mid-gray);
}

.form-input::placeholder {
    color: var(--text-gray);
}

select.form-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a0a0a0' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    padding-right: 50px;
}

select.form-input option {
    background: var(--dark-gray);
    color: var(--white);
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

.cta-button {
    display: inline-block;
    padding: 20px 60px;
    background: var(--white);
    color: var(--black);
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    width: 100%;
}

.cta-button:hover {
    background: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.2);
}

.cta-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-message {
    text-align: center;
    padding: 16px;
    border-radius: 4px;
    font-size: 16px;
    margin-top: 16px;
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #4CAF50;
}

.form-message.error {
    display: block;
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #f44336;
}

/* Footer */
.footer {
    background: var(--dark-gray);
    border-top: 1px solid var(--border-gray);
    padding: 80px 0 40px;
}

.footer-container {
    max-width: 1420px;
    margin: 0 auto;
    padding: 0 70px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 60px;
    margin-bottom: 60px;
}

.footer-section h3 {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.footer-section h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-gray);
}

.footer-section p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
    font-weight: 300;
}

.footer-bottom {
    max-width: 1420px;
    margin: 0 auto;
    padding: 40px 70px 0;
    border-top: 1px solid var(--border-gray);
    text-align: center;
}

.footer-bottom p {
    font-size: 12px;
    color: var(--text-gray);
    font-weight: 300;
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 80%;
        max-width: 400px;
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 100px 40px 40px;
        gap: 30px;
        transition: right 0.3s ease;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 24px;
        padding: 10px 0;
    }

    .nav-mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

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

    .contact-form-wrapper {
        padding: 0 20px;
    }

    .form-input {
        font-size: 16px !important;
    }

    .cta-button {
        padding: 18px 40px;
        font-size: 16px;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-container {
        padding: 20px 40px;
    }

    .section-container {
        grid-template-columns: 1fr;
        gap: 60px;
        padding: 0 40px;
        display: flex;
        flex-direction: column;
    }

    .section-container.reverse {
        display: flex;
        flex-direction: column;
    }

    .section-container.reverse .section-content {
        order: 0;
    }

    .section-container.reverse .section-image {
        order: 1;
    }

    .full-width-container {
        padding: 0 40px;
    }

    .hero-stats {
        gap: 40px;
    }

    .learning-flow {
        flex-direction: column;
    }

    .flow-arrow {
        transform: rotate(90deg);
    }

    .footer-container {
        padding: 0 40px;
    }

    .footer-bottom {
        padding: 40px 40px 0;
    }
}

@media (max-width: 768px) {
    .nav-mobile-toggle {
        display: flex;
    }

    .nav-container {
        padding: 16px 20px;
    }

    .nav-logo h1 {
        font-size: 12px;
    }

    .section {
        padding: 80px 0;
    }

    .section-container {
        padding: 0 20px;
    }

    .full-width-container {
        padding: 0 20px;
    }

    .hero-title {
        font-size: 48px;
    }

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

    .section-title {
        font-size: 36px;
    }

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

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

    .footer-container {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }

    .footer-bottom {
        padding: 40px 20px 0;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-content,
.section-image,
.tech-card,
.status-card,
.flow-step {
    animation: fadeInUp 0.8s ease-out;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background: var(--white);
    color: var(--black);
}

/* Video Placeholder */
.hero-video {
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
}
