/* Index Page Specific Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: #ffffff;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #5a67d8 50%, #4c51bf 75%, #434190 100%);
    color: #ffffff;
    padding: 8rem 2rem 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* 3D Architectural Animation */
.architectural-3d {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    perspective: 1200px;
    perspective-origin: center center;
    z-index: 1;
    pointer-events: none;
}

.building {
    position: absolute;
    transform-style: preserve-3d;
    animation: floatBuildings 20s ease-in-out infinite;
}

.building-1 {
    width: 120px;
    height: 180px;
    left: 10%;
    top: 50%;
    animation-delay: 0s;
    animation-duration: 15s;
}

.building-2 {
    width: 100px;
    height: 220px;
    right: 15%;
    top: 45%;
    animation-delay: -5s;
    animation-duration: 18s;
}

.building-3 {
    width: 140px;
    height: 160px;
    left: 50%;
    top: 55%;
    transform: translateX(-50%);
    animation-delay: -10s;
    animation-duration: 22s;
}

.building-face {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

/* Front face */
.building-face.front {
    width: 100%;
    height: 100%;
    transform: rotateY(0deg) translateZ(60px);
    background: 
        linear-gradient(to bottom, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 20px,
            rgba(255, 255, 255, 0.1) 20px,
            rgba(255, 255, 255, 0.1) 22px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 20px,
            rgba(255, 255, 255, 0.1) 20px,
            rgba(255, 255, 255, 0.1) 22px
        );
}

/* Back face */
.building-face.back {
    width: 100%;
    height: 100%;
    transform: rotateY(180deg) translateZ(60px);
    background: 
        linear-gradient(to bottom, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.03) 100%),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 20px,
            rgba(255, 255, 255, 0.08) 20px,
            rgba(255, 255, 255, 0.08) 22px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 20px,
            rgba(255, 255, 255, 0.08) 20px,
            rgba(255, 255, 255, 0.08) 22px
        );
}

/* Right face */
.building-face.right {
    width: 120px;
    height: 100%;
    right: 0;
    transform: rotateY(90deg) translateZ(50%);
    background: 
        linear-gradient(to bottom, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 20px,
            rgba(255, 255, 255, 0.06) 20px,
            rgba(255, 255, 255, 0.06) 22px
        );
}

/* Left face */
.building-face.left {
    width: 120px;
    height: 100%;
    left: 0;
    transform: rotateY(-90deg) translateZ(50%);
    background: 
        linear-gradient(to bottom, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 20px,
            rgba(255, 255, 255, 0.06) 20px,
            rgba(255, 255, 255, 0.06) 22px
        );
}

/* Top face */
.building-face.top {
    width: 100%;
    height: 120px;
    top: 0;
    transform: rotateX(90deg) translateZ(90px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

/* Bottom face */
.building-face.bottom {
    width: 100%;
    height: 120px;
    bottom: 0;
    transform: rotateX(-90deg) translateZ(90px);
    background: rgba(0, 0, 0, 0.2);
}

/* Adjust building-2 dimensions */
.building-2 .building-face.front,
.building-2 .building-face.back {
    transform: rotateY(0deg) translateZ(50px);
}

.building-2 .building-face.back {
    transform: rotateY(180deg) translateZ(50px);
}

.building-2 .building-face.right {
    width: 100px;
    transform: rotateY(90deg) translateZ(50%);
}

.building-2 .building-face.left {
    width: 100px;
    transform: rotateY(-90deg) translateZ(50%);
}

.building-2 .building-face.top {
    transform: rotateX(90deg) translateZ(110px);
}

.building-2 .building-face.bottom {
    transform: rotateX(-90deg) translateZ(110px);
}

/* Adjust building-3 dimensions */
.building-3 .building-face.front,
.building-3 .building-face.back {
    transform: rotateY(0deg) translateZ(70px);
}

.building-3 .building-face.back {
    transform: rotateY(180deg) translateZ(70px);
}

.building-3 .building-face.right {
    width: 140px;
    transform: rotateY(90deg) translateZ(50%);
}

.building-3 .building-face.left {
    width: 140px;
    transform: rotateY(-90deg) translateZ(50%);
}

.building-3 .building-face.top {
    transform: rotateX(90deg) translateZ(80px);
}

.building-3 .building-face.bottom {
    transform: rotateX(-90deg) translateZ(80px);
}

@keyframes floatBuildings {
    0% {
        transform: translateY(0) rotateY(0deg) rotateX(5deg);
    }
    25% {
        transform: translateY(-30px) rotateY(90deg) rotateX(2deg);
    }
    50% {
        transform: translateY(-15px) rotateY(180deg) rotateX(-2deg);
    }
    75% {
        transform: translateY(-25px) rotateY(270deg) rotateX(3deg);
    }
    100% {
        transform: translateY(0) rotateY(360deg) rotateX(5deg);
    }
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(0, 0, 0, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(-30px, -30px) rotate(180deg);
    }
}

.hero-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -0.5px;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary,
.btn-outline {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 30px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #2c384d;
    color: #ffffff;
    font-weight: 600;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(44, 56, 77, 0.25);
    background: #3d4a5f;
}

.btn-secondary {
    background: transparent;
    color: #2c384d;
    border: 2px solid #2c384d;
    font-weight: 600;
}

.btn-secondary:hover {
    background: #2c384d;
    color: #ffffff;
    border-color: #2c384d;
}

.btn-outline {
    background: transparent;
    color: #2c384d;
    border: 2px solid #2c384d;
    font-weight: 600;
}

.btn-outline:hover {
    background: #2c384d;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 56, 77, 0.2);
}

.hero-section .btn-primary {
    background: #ffffff;
    color: #434190;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2), 0 4px 12px rgba(102, 126, 234, 0.4);
    font-weight: 600;
}

.hero-section .btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    background: #f8f9fa;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25), 0 8px 16px rgba(102, 126, 234, 0.5);
}

.hero-section .btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.hero-section .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    border-color: #ffffff;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2), 0 4px 12px rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Features Section */
.features-section {
    padding: 6rem 2rem;
    background: #ffffff;
}

.section-title {
    font-size: 2.75rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 1.15rem;
    text-align: center;
    color: #666666;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    background: #ffffff;
    padding: 3rem 2.5rem;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #e8e8e8;
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(44, 56, 77, 0.12);
    border-color: #d0d5dc;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: #1a1a1a;
    letter-spacing: -0.3px;
}

.feature-card p {
    color: #555555;
    line-height: 1.75;
    font-size: 1rem;
    font-weight: 400;
}

/* How to Use Section */
.how-to-use-section {
    padding: 6rem 2rem;
    background: #f8f9fa;
}

.user-type-toggles {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.toggle-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    color: #555555;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
}

.toggle-btn span:first-child {
    font-size: 1.5rem;
}

.toggle-btn:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.toggle-btn.active {
    background: #2c384d;
    border-color: #2c384d;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(44, 56, 77, 0.2);
}

.toggle-btn.active:hover {
    background: #3d4a5f;
    border-color: #3d4a5f;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 56, 77, 0.3);
}

.how-to-content {
    position: relative;
    min-height: 400px;
}

.how-to-panel {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

.how-to-panel.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-card {
    display: flex;
    gap: 2rem;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.step-card:hover {
    border-color: #667eea;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
    transform: translateY(-4px);
}

.step-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: #2c384d;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(44, 56, 77, 0.25);
}

.step-content {
    flex: 1;
}

.step-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #1a1a1a;
    letter-spacing: -0.3px;
}

.step-content p {
    color: #555555;
    line-height: 1.7;
    font-size: 1rem;
}

/* CTA Section */
.cta-section {
    padding: 6rem 2rem;
    background: transparent;
    color: #1a1a1a;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
    color: #1a1a1a;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: #555555;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn-primary {
    background: #2c384d;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(44, 56, 77, 0.25);
}

.cta-buttons .btn-primary:hover {
    background: #3d4a5f;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(44, 56, 77, 0.3);
}

.cta-buttons .btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.9);
}

.cta-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    backdrop-filter: blur(10px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .architectural-3d {
        opacity: 0.6;
    }
    
    .building-1 {
        width: 80px;
        height: 120px;
        left: 5%;
    }
    
    .building-2 {
        width: 70px;
        height: 150px;
        right: 10%;
    }
    
    .building-3 {
        width: 90px;
        height: 110px;
    }
    
    .building-1 .building-face.front,
    .building-1 .building-face.back {
        transform: rotateY(0deg) translateZ(40px);
    }
    
    .building-1 .building-face.back {
        transform: rotateY(180deg) translateZ(40px);
    }
    
    .building-1 .building-face.right,
    .building-1 .building-face.left {
        width: 80px;
    }
    
    .building-1 .building-face.top {
        transform: rotateX(90deg) translateZ(60px);
    }
    
    .building-1 .building-face.bottom {
        transform: rotateX(-90deg) translateZ(60px);
    }
    
    .building-2 .building-face.front,
    .building-2 .building-face.back {
        transform: rotateY(0deg) translateZ(35px);
    }
    
    .building-2 .building-face.back {
        transform: rotateY(180deg) translateZ(35px);
    }
    
    .building-2 .building-face.right,
    .building-2 .building-face.left {
        width: 70px;
    }
    
    .building-2 .building-face.top {
        transform: rotateX(90deg) translateZ(75px);
    }
    
    .building-2 .building-face.bottom {
        transform: rotateX(-90deg) translateZ(75px);
    }
    
    .building-3 .building-face.front,
    .building-3 .building-face.back {
        transform: rotateY(0deg) translateZ(45px);
    }
    
    .building-3 .building-face.back {
        transform: rotateY(180deg) translateZ(45px);
    }
    
    .building-3 .building-face.right,
    .building-3 .building-face.left {
        width: 90px;
    }
    
    .building-3 .building-face.top {
        transform: rotateX(90deg) translateZ(55px);
    }
    
    .building-3 .building-face.bottom {
        transform: rotateX(-90deg) translateZ(55px);
    }
    
    .hero-section {
        padding: 5rem 1.5rem 4rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 3rem;
        padding: 0 1rem;
    }

    .features-section,
    .how-to-use-section,
    .cta-section {
        padding: 4rem 1.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .feature-card {
        padding: 2rem 1.5rem;
    }

    .user-type-toggles {
        flex-direction: row;
        align-items: center;
        gap: 0.4rem;
        flex-wrap: wrap;
    }

    .toggle-btn {
        flex: 1;
        min-width: 0;
        justify-content: center;
        padding: 0.5rem 0.4rem;
        font-size: 0.7rem;
        gap: 0.3rem;
    }

    .toggle-btn span:first-child {
        font-size: 0.9rem;
    }

    .toggle-btn span:last-child {
        font-size: 0.7rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .step-card {
        flex-direction: column;
        gap: 1.5rem;
        padding: 2rem 1.5rem;
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .how-to-content {
        min-height: 300px;
    }

    .cta-section h2 {
        font-size: 2rem;
    }

    .cta-section p {
        font-size: 1.1rem;
    }

    .hero-cta,
    .cta-buttons {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary,
    .btn-outline {
        width: 100%;
    }
}
