/* ==========================================================================
   Terracraft Landing Page (index.html) Specific Overrides
   ========================================================================== */

/* Page Fade-In Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 1s ease-in-out forwards;
}

/* Updated 2-Column Hero Layout for AAA Feeling */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3rem 10% 8rem 10% !important;
    background: radial-gradient(circle at center, #022c22 0%, #030712 100%) !important;
    border-bottom: 1px solid var(--border);
    gap: 4rem; /* Spacing between text and 3D model */
}

.hero-content {
    flex: 1;
    max-width: 550px;
    text-align: left; /* Left aligned on PC */
}

.badge {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    display: inline-block;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 900;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    background: linear-gradient(90deg, #fff, var(--accent-vibrant));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-dim);
    margin-bottom: 3rem;
    line-height: 1.6;
}

/* 3D Model Container */
.hero-3d {
    flex: 1.2;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 450px;
    position: relative;
}

/* 3D Float Animation taake model zinda (alive) lage */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

model-viewer {
    width: 100%;
    height: 480px;
    background-color: transparent;
    outline: none;
    animation: float 6s ease-in-out infinite; /* Floating effect */
    --poster-color: transparent;
}

/* Customize the model-viewer default progress bar to look like an emerald laser */
model-viewer::part(default-progress-bar) {
    background-color: var(--accent) !important;
    height: 4px;
    box-shadow: 0 0 10px var(--accent);
}

/* Detailed Alternating Features Layout */
.detailed-features {
    padding: 6rem 0;
    background-color: var(--bg-dark);
}

/* Constrain content to the center of wide screens */
.detailed-features .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 6rem;
    background: linear-gradient(90deg, #fff, var(--text-dim));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8rem;
    gap: 5rem;
}

/* alternating alignment */
.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
    max-width: 480px;
    text-align: left;
}

.module-num {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--accent);
    letter-spacing: 2px;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0.2rem;
    display: inline-block;
}

.feature-text h3 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-top: 1.5rem;
    margin-bottom: 1.2rem;
    color: #fff;
    line-height: 1.2;
}

.feature-text p {
    color: var(--text-dim);
    font-size: 1.1rem;
    line-height: 1.7;
}

.feature-media {
    flex: 1.1;
    display: flex;
    justify-content: center;
}

/* Sleek AAA Mock Browser/Monitor Frame */
.mock-browser {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    width: 100%;
    max-width: 520px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px var(--accent-glow);
    transition: 0.4s ease-in-out;
}

.mock-browser:hover {
    transform: scale(1.02);
    border-color: var(--accent);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), 0 0 50px rgba(16, 185, 129, 0.2);
}

.browser-header {
    background: #090d16;
    padding: 0.8rem 1.2rem;
    display: flex;
    gap: 6px;
    border-bottom: 1px solid var(--border);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

/* Image Placeholder fallback if GIF is missing */
.feature-gif {
    width: 100%;
    height: 100%;
    min-height: 290px;
    object-fit: cover;
    background: linear-gradient(135deg, #022c22 0%, #080f1e 100%);
    display: block;
    color: var(--text-dim);
    text-align: center;
    line-height: 290px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Responsive Overrides */
@media (max-width: 900px) {
    .hero {
        flex-direction: column !important;
        text-align: center;
        padding: 8rem 5% 6rem 5% !important;
        gap: 3rem;
    }
    .hero-content {
        text-align: center;
        max-width: 100%;
    }
    model-viewer {
        height: 350px;
    }
    .feature-row, .feature-row.reverse {
        flex-direction: column !important;
        text-align: center;
        gap: 2.5rem;
        margin-bottom: 6rem;
    }
    .feature-text {
        text-align: center;
        max-width: 100%;
    }
    .hero h1 { font-size: 3rem; }
    .section-title { font-size: 2.2rem; }
}