/* Index styles (migrated) */

body {
    font-family: var(--font-family-body);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(74, 144, 226, 0.7), rgba(0, 0, 0, 0.3));
    z-index: 0;
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 1;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-title {
    font-size: clamp(2rem, 8vw, 5rem);
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(90deg, var(--blue-energy), var(--fresh-sky));
    color: var(--white);
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: transform 0.25s ease, background 0.25s ease, opacity 0.4s ease;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    z-index: 20;
    box-shadow: 0 10px 30px rgba(83, 144, 217, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.12);
    /* Initial visual state for fade-in */
    opacity: 0;
    transform: translateY(30px);
    will-change: transform, opacity;
}

.hero-cta:hover {
    background: linear-gradient(90deg, var(--royal-violet), var(--indigo-bloom));
    transform: translateY(-2px);
}

.hero-cta span {
    display: inline-block;
    color: inherit;
}

.cta-arrow {
    margin-left: 0.5rem;
    transition: transform 0.3s ease, opacity 0.2s ease;
}

/* Fallback class in case JS animation doesn't run */
.hero-cta.fade-in-fallback {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Ensure about page footer sticks to bottom */
.about-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.about-page main {
    flex: 1 0 auto;
}

/* Process Section */
.process-section {
    padding: 100px 0;
    background: #f8f9fa;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #333;
}

.process-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.process-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: #e9ecef;
    transform: translateY(-50%);
    z-index: 1;
}

.process-line-fill {
    height: 100%;
    background: #4A90E2;
    width: 0%;
}

.process-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.process-step {
    text-align: center;
    flex: 1;
    padding: 0 2rem;
}

.process-step svg {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
}

.process-filament {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 4px;
    background: var(--blue-energy);
    transform: translateY(-50%) scaleX(0);
    transform-origin: left center;
}

/* Response Process Section */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.8rem;
        padding: 0 15px;
    }

    .process-timeline {
        padding: 60px 0;
        /* Add some vertical space for staggered labels */
    }

    .process-step {
        padding: 0 0.5rem;
        position: relative;
    }

    .process-step svg {
        width: 60px;
        height: 60px;
    }

    .process-step p {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: 120px;
        font-size: 0.85rem;
        line-height: 1.2;
    }

    /* Stagger labels: 1st and 3rd below, 2nd above */
    .process-step:nth-child(1) p,
    .process-step:nth-child(3) p {
        top: 75px;
    }

    .process-step:nth-child(2) p {
        bottom: 75px;
    }
}

@media (max-width: 480px) {
    .process-step p {
        width: 90px;
        font-size: 0.75rem;
    }
}

/* Products Section */
.products-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.products-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: -1;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    align-items: stretch;
}

.product-card,
.shop-product-card {
    perspective: 900px;
}

.product-image {
    transform-style: preserve-3d;
    will-change: transform;
}

.product-image img {
    backface-visibility: hidden;
    display: block;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    min-height: 460px;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-image {
    position: relative;
    height: 340px;
    flex: 0 0 340px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease, transform 0.5s ease;
}

.product-image-real {
    opacity: 1;
    z-index: 2;
}

.product-image-wireframe {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    z-index: 1;
    transform: scale(1.1);
}

.product-card:hover .product-image-real {
    opacity: 0;
}

.product-card:hover .product-image-wireframe {
    opacity: 1;
    transform: scale(1);
}

.product-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    font-size: 1.5rem;
    color: #333;
}

.product-card p {
    padding: 0 1.5rem 1.5rem;
    color: #666;
}

/* Card actions (buttons inside product cards) */
.card-actions {
    display: flex;
    gap: 0.75rem;
    padding: 0 1.5rem 1.5rem;
    margin-top: auto;
}

.product-card .btn {
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(90deg, var(--blue-energy), var(--fresh-sky));
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-secondary {
    background: #fff;
    color: var(--muted);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.product-card .btn:hover {
    transform: translateY(-4px);
}

/* Impact Section */
.impact-section {
    padding: 100px 0;
    background: #fff;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.impact-card {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.impact-counter {
    font-size: 3rem;
    font-weight: bold;
    color: var(--blue-energy);
    margin-bottom: 0.5rem;
}

.impact-card p {
    color: #666;
    font-size: 1.1rem;
}