/* ========================================
   Landing Page Styles
   ======================================== */

/* Prevent horizontal scroll */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    position: relative;
}

/* Hero Section */
.hero-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, #764ba2 100%);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: 300px;
    animation: float 20s linear infinite;
}

@keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-50px) rotate(360deg); }
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto; /* Center the hero content */
    gap: 3rem;
    z-index: 1;
}

.hero-text {
    flex: 1;
    color: white;
    text-align: right;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-text p {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-image {
    flex: 0.8;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 350px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
    animation: bounce 3s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    color: var(--primary-color);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.cta-button .icon {
    font-size: 1.5rem;
}

/* Hero Buttons Container */
.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Secondary CTA Button (Know More) - Same style as primary */
.cta-button.cta-secondary {
    background: white;
    color: var(--primary-color);
}

.cta-button.cta-secondary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

/* Dark Mode: Fix button visibility */
[data-theme="dark"] .hero-section .cta-button {
    background: white !important;
    color: #000000 !important;
    box-shadow: 0 10px 30px rgba(255,255,255,0.15) !important;
}

[data-theme="dark"] .hero-section .cta-button span {
    color: #000000 !important;
}

[data-theme="dark"] .hero-section .cta-button:hover {
    box-shadow: 0 15px 40px rgba(255,255,255,0.25) !important;
}

/* Larger Steps for How It Works */
.steps-container.steps-large {
    margin-bottom: 3rem;
}

.steps-container.steps-large .step-card {
    padding: 2rem 1.5rem;
    min-width: 200px;
    flex: 1 1 200px;
}

.steps-container.steps-large .step-number {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
    top: -20px;
}

.steps-container.steps-large h4 {
    font-size: 1.15rem;
    margin-top: 0.5rem;
}

.steps-container.steps-large p {
    font-size: 0.95rem;
}

/* Walkthrough CTA Section */
.walkthrough-cta {
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.walkthrough-cta h3 {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.walkthrough-cta p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Benefits Section */
.benefits-section {
    padding: 5rem 2rem;
    background: var(--bg-primary);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.benefit-card {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.15);
}

.benefit-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: block;
}

.benefit-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.benefit-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* How It Works Section */
.how-it-works-section {
    padding: 5rem 2rem;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.csi-diagram {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
}

.csi-diagram img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.steps-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.step-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 1.5rem;
    flex: 1 1 220px;
    max-width: 280px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.step-card:hover {
    border-color: var(--primary-color);
}

.step-number {
    position: absolute;
    top: -15px;
    right: 50%;
    transform: translateX(50%);
    background: var(--primary-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.step-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0.5rem 0;
    color: var(--text-primary);
}

.step-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Walkthrough Section */
.walkthrough-section {
    padding: 5rem 2rem;
    background: var(--bg-primary);
}

.walkthrough-example {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.walkthrough-header {
    text-align: center;
    margin-bottom: 2rem;
}

.walkthrough-header h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.walkthrough-header p {
    color: var(--text-secondary);
}

.walkthrough-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.walkthrough-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--bg-primary);
    border-radius: 12px;
    border-right: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.walkthrough-step:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateX(-5px);
}

.walkthrough-step .step-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.walkthrough-step .step-content {
    flex: 1;
}

.walkthrough-step .step-label {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.walkthrough-step .step-value {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* CTA Section */
.cta-section {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #764ba2 100%);
    text-align: center;
}

.cta-section h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

.cta-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* 4-Button CTA Grid */
.cta-buttons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 700px;
    margin: 0 auto;
}

.cta-main-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: white;
    color: var(--primary-color);
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    position: relative;
}

.cta-main-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
}

.cta-icon {
    font-size: 1.5rem;
}

.cta-dev {
    opacity: 0.9;
}

.cta-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}

@media (max-width: 600px) {
    .cta-buttons-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-image img {
        max-width: 250px;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .benefit-card {
        padding: 2rem 1.5rem;
    }
    
    .steps-container {
        flex-direction: column;
        align-items: center;
    }
    
    .step-card {
        max-width: 100%;
    }
    
    .walkthrough-step {
        flex-direction: column;
        text-align: center;
        border-right: none;
        border-bottom: 3px solid var(--primary-color);
    }
    
    .cta-section h2 {
        font-size: 1.75rem;
    }
}

/* Dark mode adjustments */
[data-theme="dark"] .benefit-card:hover {
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.25);
}

[data-theme="dark"] .csi-diagram img {
    opacity: 0.9;
}

/* ========================================
   Tools Section - 5 Cards Grid
   ======================================== */
.tools-section {
    padding: 4rem 2rem;
    background: var(--card-background);
}

.tools-section .section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.tool-card {
    background: var(--background-color);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
    display: block;
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
}

.tool-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.tool-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 1rem;
    border-radius: 12px;
}

.tool-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.tool-card p {
    font-size: 0.95rem;
    opacity: 0.8;
    line-height: 1.5;
}

/* Tool under development */
.tool-dev {
    position: relative;
    opacity: 0.85;
}

.dev-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Coming soon card */
.tool-coming-soon {
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    border: 2px dashed #d1d5db;
    cursor: default;
}

.tool-coming-soon:hover {
    transform: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.tool-coming-soon .tool-icon {
    opacity: 0.5;
}

.tool-coming-soon h3 {
    color: #9ca3af;
}

/* ========================================
   Why BIMitPlaniT Section
   ======================================== */
.why-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 50%, #7dd3fc 100%);
    color: #0c4a6e;
}

.why-header {
    text-align: center;
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
}

.why-title-img {
    max-width: 600px;
    width: 100%;
    height: auto;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Tool Detail Sections */
.tool-detail {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 24px;
    padding: 2rem;
    margin: 0 auto 2rem;
    max-width: 900px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.15);
}

.tool-detail-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.tool-detail-icon {
    font-size: 3.5rem;
    flex-shrink: 0;
}

.tool-detail-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0369a1;
    margin-bottom: 0.5rem;
}

.tool-brief {
    font-size: 1.1rem;
    color: #334155;
    line-height: 1.6;
}

.tool-how-it-works {
    background: rgba(14, 165, 233, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.tool-how-it-works h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0c4a6e;
    margin-bottom: 1rem;
    text-align: center;
}

.mini-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.mini-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.mini-step span {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.mini-step p {
    font-size: 0.9rem;
    color: #334155;
    margin: 0;
}

.tool-diagram {
    margin-top: 1.5rem;
    text-align: center;
}

.tool-diagram img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.tool-how-it-works .dev-badge {
    display: inline-block;
    margin-top: 1rem;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .mini-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tool-detail-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

.why-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(14, 165, 233, 0.2);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

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

.hamburger-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

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

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

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

@media (max-width: 768px) {
    .hamburger-btn {
        display: flex;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--sidebar-bg);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
        z-index: 1000;
    }
    
    .nav-links.mobile-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .nav-links a {
        padding: 0.75rem 1rem;
        border-radius: 8px;
    }
    
    .nav-links a:hover {
        background: var(--bg-color);
    }
}
}

