/* Landing Page Specific Styles */

/* Override gradient background for landing page - Set to white */
body.landing-page {
    background: #ffffff !important;
    position: relative;
}

/* Top Hero Section with Radial Gradient */
.top-hero-section {
    height: 85vh;
    width: 95%;
    max-width: 1800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, #595959 0%, #404040 50%, #0D0D0D 100%);
    position: relative;
}

.top-hero-container {
    text-align: center;
    padding: 2rem;
    width: 100%;
}

.top-hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    margin: 0 auto;
    max-width: 70%;
}

/* Content Wrapper with Linear Gradient */
.content-wrapper {
    background: linear-gradient(to bottom, #97a6c1c5, #c1c9d8da, #c1c9d8da, #e1e5ebd2);
    background-attachment: fixed;
    width: 95%;
    max-width: 1800px;
    margin: 3rem auto 0 auto;
    padding: 2rem 0;
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
    width: 100%;
}

.hero-container {
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 500;
    color: #2d353b;
    line-height: 1.3;
    width: 100%;
}

.hero-title.hero-title-sm {
    font-size: 2.2rem;
    max-width: none;
    margin: 0 auto;
}

/* Tables Container - Full Width */
.tables-container {
    margin-bottom: 3rem;
    width: 100%;
    padding: 0 2rem;
}

.table-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    max-width: 1600px;
    margin: 0 auto;
    justify-content: center;
}

.table-wrapper {
    flex: 1;
    text-align: center;
    max-width: 750px;
}

.table-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #434a50;
    margin-bottom: 1rem;
}

.table-image {
    width: 100%;
    max-width: 750px;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    filter: drop-shadow(2px 2px 6px rgba(0,0,0,0.15));
}

.arrow-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    flex-shrink: 0;
    height: 100%;
    min-height: 400px;
}

.arrow {
    width: 24px;
    height: 44px;
    position: relative;
}

.arrow::before,
.arrow::after {
    content: '';
    position: absolute;
    left: 0;
    width: 24px;
    height: 3px;
    background: #4f565c;
    border-radius: 2px;
}

.arrow::before {
    top: 50%;
    transform: rotate(30deg);
    transform-origin: right center;
}

.arrow::after {
    display: block;
    top: 50%;
    transform: rotate(-30deg);
    transform-origin: right center;
}

/* Process Container - Full Width */
.process-container {
    margin-bottom: 3rem;
    width: 100%;
    padding: 0 2rem;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
    align-items: center;
}

.step {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #4f565c;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
    width: 600px;
}

.step-button {
    
    width: 100%;
    padding: 0.75rem 1rem;
    background: #4f565c;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.25rem;
    font-weight: 500;
    cursor: default;
    text-align: left;
}

/* Call to Action Section */
.cta-section {
    text-align: center;
    margin-bottom: 1.5rem;
    width: 100%;
}

.cta-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.25rem;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(0,123,255,0.3);
}

.cta-button:hover {
    background: #0056b3;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,123,255,0.45);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .top-hero-title {
        font-size: 2.5rem;
    }
    
    .table-container {
        max-width: 1000px;
        gap: 2rem;
    }
    
    .table-wrapper {
        max-width: 500px;
    }
    
    .table-image {
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .top-hero-section {
        width: 95%;        /* Match desktop behavior - keep white space on sides */
        height: 100vh;      /* Fill full mobile viewport height */
        min-height: 100vh;
        padding: 2rem 0;    /* Keep internal spacing */
    }
    
    .top-hero-container {
        padding: 1.5rem 1rem; /* Reduce padding */
    }
    
    .top-hero-title {
        font-size: 1.5rem; /* Reduce from 1.8rem */
        max-width: 90%; /* Increase from 70% */
        line-height: 1.4; /* Slightly tighter */
    }
    
    .section-label-title {
        font-size: 1.8rem;
    }

    .scroll-indicator {
        bottom: 1.5rem;
    }

    .scroll-indicator i {
        font-size: 1.4rem;
    }
    
    .content-wrapper {
        width: 95%;        /* Match desktop behavior - keep white space on sides */
        margin-top: 1.5rem; /* Reduce from 2rem */
        padding: 1.5rem 0; /* Reduce from 2rem */
    }
    
    .hero-section {
        padding: 1.5rem 0; /* Reduce from 2rem */
        margin-bottom: 2rem; /* Reduce from 3rem */
    }
    
    .hero-container {
        padding: 0 1rem; /* Reduce from 2rem */
    }
    
    .hero-title {
        font-size: 1.5rem; /* Reduce from 2rem */
        line-height: 1.4; /* Tighter line height */
    }

    .hero-title.hero-title-sm {
        font-size: 1.3rem;
    }
    
    .tables-container {
        padding: 0 1rem;
        margin-bottom: 1.5rem; /* Reduced spacing */
    }
    
    .table-container {
        flex-direction: column;
        gap: 0.5rem; /* Reduced from 1rem - half the spacing */
        max-width: 100%;
    }
    
    .table-wrapper {
        max-width: 100%;
    }
    
    .table-title {
        font-size: 1.1rem; /* Slightly smaller */
        margin-bottom: 0.5rem; /* Reduced from 0.75rem */
    }
    
    .table-image {
        max-width: 100%;
        /* Add horizontal scroll for wide tables */
        overflow-x: auto;
        display: block;
    }
    
    .arrow-container {
        transform: rotate(90deg);
        min-height: 60px;
        padding: 0.25rem;
    }
    
    .arrow {
        width: 20px;
        height: 36px;
    }
    
    .process-container {
        padding: 0 1rem;
        margin-bottom: 2rem; /* Reduce from 3rem */
    }
    
    .process-steps {
        gap: 1rem;
    }
    
    .step {
        flex-direction: row;      /* Number on the left, bar on the right */
        align-items: center;      /* Vertically center number and bar */
        text-align: left;
        gap: 0.5rem;
        width: 100%;              /* Ensure full width */
    }
    
    .step-number {
        width: 35px;              /* Reduce from 40px */
        height: 35px;
        font-size: 1.2rem;        /* Reduce from 1.4rem */
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .step-content {
        width: 100%;              /* Bar uses remaining width */
    }
    
    .step-button {
        font-size: 1rem;          /* Reduce from 1.1rem */
        padding: 0.75rem 0.5rem;  /* Adjust padding */
        text-align: left;         /* Left-align text inside bar */
        word-wrap: break-word;    /* Allow text wrapping */
        overflow-wrap: break-word;
        width: 100%;
    }
    
    .cta-section {
        margin-bottom: 1rem; /* Reduce margin */
    }
    
    .cta-container {
        padding: 0 1rem;
    }
    
    .cta-button {
        font-size: 1.1rem; /* Reduce from 1.25rem */
        padding: 0.875rem 1.5rem; /* Slightly smaller */
        width: 100%; /* Full width on mobile */
        max-width: 100%;
        display: block; /* Block display for full width */
    }
}

/* Very Small Phones */
@media (max-width: 480px) {
    .top-hero-section {
        min-height: 50vh; /* Even smaller */
        padding: 1.5rem 0;
    }
    
    .top-hero-container {
        padding: 1rem 0.75rem;
    }
    
    .top-hero-title {
        font-size: 1.25rem; /* Even smaller */
        max-width: 95%;
        line-height: 1.3;
    }
    
    .content-wrapper {
        margin-top: 1rem;
        padding: 1rem 0;
    }
    
    .hero-section {
        padding: 1rem 0;
        margin-bottom: 1.5rem;
    }
    
    .hero-container {
        padding: 0 0.75rem;
    }
    
    .hero-title {
        font-size: 1.25rem;
    }

    .hero-title.hero-title-sm {
        font-size: 1.1rem;
    }
    
    .tables-container {
        padding: 0 0.75rem;
        margin-bottom: 1.5rem;
    }
    
    .table-title {
        font-size: 1rem;
    }
    
    .process-container {
        padding: 0 0.75rem;
        margin-bottom: 1.5rem;
    }
    
    .step-number {
        width: 32px;
        height: 32px;
        font-size: 1.1rem;
    }
    
    .step-button {
        font-size: 0.95rem;
        padding: 0.65rem 0.5rem;
    }
    
    .cta-button {
        font-size: 1rem;
        padding: 0.75rem 1.25rem;
    }
}

/* Section Labels */
.section-label {
    text-align: center;
    padding: 1.5rem 0 0 0;
}

.section-label-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d353b;
    margin: 0;
    letter-spacing: 0.02em;
}

/* Scroll-Down Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    animation: bounceDown 2s ease infinite;
}

.scroll-indicator i {
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s ease;
}

.scroll-indicator:hover i {
    color: rgba(255, 255, 255, 0.9);
}

@keyframes bounceDown {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(10px); }
    60% { transform: translateX(-50%) translateY(5px); }
}

/* Scroll-Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Footer Spacing */
.content-wrapper:last-of-type {
    margin-bottom: 3rem;
}

/* Image Lightbox Modal */
.clickable-image {
    cursor: pointer;
    transition: opacity 0.2s ease;
    position: relative;
}

.clickable-image:hover {
    opacity: 0.85;
}

/* Click-to-enlarge hint */
.table-wrapper {
    position: relative;
}

.table-wrapper .enlarge-hint {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 0.35rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.table-wrapper:hover .enlarge-hint {
    opacity: 1;
}

.image-modal-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.image-modal-overlay.active {
    display: flex;
}

.image-modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90vw;
    max-height: 90vh;
}

.image-modal-title {
    color: white;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    text-align: center;
}

.image-modal-content {
    max-width: 90vw;
    max-height: calc(90vh - 3rem);
    border-radius: 8px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

.image-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    color: white;
    font-size: 2.5rem;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.image-modal-close:hover {
    color: #ccc;
}
