/* Bauhaus-inspired CSS */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS Custom Properties for Bauhaus colors */
:root {
    --bauhaus-red: #E53935;
    --bauhaus-blue: #1E88E5;
    --bauhaus-yellow: #FFD600;
    --bauhaus-black: #000000;
    --bauhaus-white: #FFFFFF;
    --bauhaus-gray: #F5F5F5;
    
    /* Typography scale */
    --font-base: 16px;
    --font-scale: 1.25;
    --font-xl: calc(var(--font-base) * var(--font-scale) * var(--font-scale) * var(--font-scale) * var(--font-scale));
    --font-lg: calc(var(--font-base) * var(--font-scale) * var(--font-scale));
    --font-md: calc(var(--font-base) * var(--font-scale));
}

/* Base typography */
body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: var(--font-base);
    line-height: 1.5;
    color: var(--bauhaus-black);
    background-color: var(--bauhaus-white);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

/* Geometric background shapes */
.geometric-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Base shape styles */
.shape {
    position: absolute;
    opacity: 0.8;
}

.shape.circle {
    border-radius: 50%;
}

.shape.circle.red {
    width: 300px;
    height: 300px;
    background-color: var(--bauhaus-red);
    top: -50px;
    right: -100px;
}

.shape.circle.blue {
    width: 200px;
    height: 200px;
    background-color: var(--bauhaus-blue);
    bottom: 20%;
    left: -50px;
}

.shape.circle.blue.small {
    width: 80px;
    height: 80px;
    top: 60%;
    right: 10%;
}

.shape.square {
    transform: rotate(45deg);
}

.shape.square.blue {
    width: 250px;
    height: 250px;
    background-color: var(--bauhaus-blue);
    top: 30%;
    left: -125px;
}

.shape.square.yellow.medium {
    width: 150px;
    height: 150px;
    background-color: var(--bauhaus-yellow);
    bottom: 10%;
    right: 20%;
}

.shape.triangle {
    width: 0;
    height: 0;
    border-style: solid;
}

.shape.triangle.yellow {
    border-left: 150px solid transparent;
    border-right: 150px solid transparent;
    border-bottom: 260px solid var(--bauhaus-yellow);
    top: 50%;
    right: 30%;
    transform: rotate(15deg);
}

.shape.line {
    background-color: var(--bauhaus-black);
}

.shape.line.diagonal {
    width: 2px;
    height: 400px;
    transform: rotate(-45deg);
    top: 20%;
    left: 40%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 40px 0;
}

.hero-title {
    font-size: clamp(60px, 15vw, 180px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 0.9;
    display: flex;
    gap: 10px;
    margin-bottom: 40px;
}

.hero-title .letter {
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease;
}

.hero-title .letter:nth-child(odd) {
    color: var(--bauhaus-black);
}

.hero-title .letter:nth-child(even) {
    color: var(--bauhaus-red);
}

.hero-title .letter:hover {
    transform: scale(1.1) rotate(-5deg);
    color: var(--bauhaus-blue);
}

.tagline {
    font-size: var(--font-lg);
    font-weight: 400;
    text-align: center;
    max-width: 600px;
    opacity: 0.8;
}

.hero-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    overflow: hidden;
}

.shape-overlay {
    position: absolute;
    opacity: 0.1;
}

.red-overlay {
    width: 600px;
    height: 600px;
    background-color: var(--bauhaus-red);
    border-radius: 50%;
    top: -200px;
    left: -200px;
}

.blue-overlay {
    width: 400px;
    height: 400px;
    background-color: var(--bauhaus-blue);
    bottom: -100px;
    right: -100px;
    transform: rotate(45deg);
}

/* Section styles */
section {
    padding: 80px 0;
    position: relative;
}

.section-title {
    font-size: var(--font-xl);
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.1;
}

.section-text {
    font-size: var(--font-md);
    max-width: 600px;
    line-height: 1.6;
}

/* About Section */
.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.content-block {
    z-index: 2;
}

.square-frame {
    width: 400px;
    height: 400px;
    border: 20px solid var(--bauhaus-yellow);
    transform: rotate(15deg);
    position: relative;
    margin-left: auto;
}

.square-frame::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 20px solid var(--bauhaus-red);
    top: -40px;
    left: -40px;
    opacity: 0.5;
}

/* Why Section */
.why {
    background-color: var(--bauhaus-gray);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.content-block.reverse {
    grid-column: 2;
}

.feature-list {
    list-style: none;
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    font-size: var(--font-md);
}

.feature-icon {
    font-size: 24px;
    color: var(--bauhaus-blue);
}

.feature-item:nth-child(2) .feature-icon {
    color: var(--bauhaus-red);
}

.feature-item:nth-child(3) .feature-icon {
    color: var(--bauhaus-yellow);
}

.circle-accent {
    width: 300px;
    height: 300px;
    border: 30px solid var(--bauhaus-blue);
    border-radius: 50%;
    position: relative;
    grid-column: 1;
    grid-row: 1;
}

.circle-accent::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background-color: var(--bauhaus-yellow);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}

/* API Section */
.api {
    padding: 120px 0;
    position: relative;
}

.api-frame {
    background-color: var(--bauhaus-black);
    color: var(--bauhaus-white);
    padding: 60px;
    position: relative;
    max-width: 800px;
}

.api-frame .section-title {
    color: var(--bauhaus-white);
}

.endpoint-box {
    background-color: var(--bauhaus-blue);
    padding: 30px;
    margin: 30px 0;
    display: inline-block;
}

.endpoint-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 10px;
    opacity: 0.8;
}

.endpoint-url {
    font-size: var(--font-xl);
    font-weight: 700;
    font-family: 'DM Sans', monospace;
}

.code-example {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    margin-top: 30px;
    overflow-x: auto;
}

.code-example pre {
    margin: 0;
}

.code-example code {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
}

.api-shapes {
    position: absolute;
    top: 0;
    right: -100px;
    width: 300px;
    height: 100%;
}

.triangle-outline {
    width: 200px;
    height: 200px;
    border: 20px solid var(--bauhaus-red);
    transform: rotate(45deg);
    position: absolute;
    top: 50px;
    right: 0;
}

.line.horizontal {
    width: 300px;
    height: 3px;
    background-color: var(--bauhaus-yellow);
    position: absolute;
    bottom: 100px;
    right: -50px;
}

/* Footer */
.footer {
    background-color: var(--bauhaus-black);
    color: var(--bauhaus-white);
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

.footer-pattern {
    display: flex;
    gap: 20px;
    position: absolute;
    bottom: 0;
    left: 0;
    opacity: 0.1;
}

.pattern-shape {
    width: 100px;
    height: 100px;
    background-color: var(--bauhaus-white);
}

.pattern-shape:nth-child(1) {
    transform: rotate(45deg);
}

.pattern-shape:nth-child(2) {
    border-radius: 50%;
    transform: translateY(20px);
}

.pattern-shape:nth-child(3) {
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.footer-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.footer-text {
    font-size: var(--font-md);
    font-weight: 500;
    letter-spacing: 4px;
}

/* Floating shapes animation */
.floating-shapes {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
}

.float-shape {
    position: absolute;
    opacity: 0.03;
    animation: float 20s ease-in-out infinite;
}

.float-shape.circle {
    width: 200px;
    height: 200px;
    background-color: var(--bauhaus-red);
    border-radius: 50%;
    top: 20%;
    left: 80%;
    animation-delay: 0s;
}

.float-shape.square {
    width: 150px;
    height: 150px;
    background-color: var(--bauhaus-blue);
    top: 70%;
    left: 10%;
    transform: rotate(45deg);
    animation-delay: 7s;
}

.float-shape.triangle {
    width: 0;
    height: 0;
    border-left: 75px solid transparent;
    border-right: 75px solid transparent;
    border-bottom: 130px solid var(--bauhaus-yellow);
    top: 40%;
    left: 50%;
    animation-delay: 14s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    33% {
        transform: translateY(-30px) rotate(120deg);
    }
    66% {
        transform: translateY(20px) rotate(240deg);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .hero-title {
        font-size: clamp(40px, 12vw, 80px);
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .about,
    .why {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .square-frame,
    .circle-accent {
        width: 250px;
        height: 250px;
        margin: 0 auto;
    }
    
    .content-block.reverse {
        grid-column: 1;
    }
    
    .api-frame {
        padding: 40px 20px;
    }
    
    .endpoint-url {
        font-size: calc(var(--font-lg) * 0.8);
        word-break: break-all;
    }
    
    .api-shapes {
        display: none;
    }
}
