/**
 * ARCHITECT THEME - "Zaha Hadid Visionary"
 * Huippu arkkitehtitoimiston etusivu
 * Orgaaniset virtaavat muodot, futuristinen eleganssi
 */

/* Fontit ladataan index.html:n yhteisestä Google Fonts -pyynnöstä */

:root {
    /* Väripaletti - Luxury Architecture */
    --bg-color: #0a0a0a;
    --accent-primary: #ffffff;
    --accent-secondary: #c0a882;
    /* Kulta */
    --accent-tertiary: #2a2a2a;
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.6);

    /* Glassmorphism - tumma eleganssi */
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.08);

    /* Typografia - Klassinen eleganssi */
    --font-display: 'Cormorant Garamond', serif;
    --font-body: 'Inter', sans-serif;

    /* Muodot - orgaaniset käyrät */
    --border-radius-lg: 60px 20px 60px 20px;
    --border-radius-btn: 40px;

    /* Efektit */
    --cursor-type: default;
    --particle-shape: 'circle';

    /* Multakasa-värit - kultaiset partikkelit */
    --dirt-color-1: #c0a882;
    --dirt-color-2: #8a7355;
}

/* ====================================
   ARCHITECT THEME - GLOBAL STYLES
   ==================================== */

body {
    background: linear-gradient(180deg, #0a0a0a 0%, #151515 50%, #0a0a0a 100%);
    overflow-x: hidden;
    overflow-y: auto;
    /* Sallitaan scrollaus tässä teemassa */
}

/* Piilota canvas-lapio architect-teemassa - tehty varjomaisemmaksi */
body.theme-architect #hero-canvas {
    opacity: 0.06;
    filter: blur(6px);
    mask-image: radial-gradient(ellipse 70% 70% at 72% 50%, black 0%, transparent 65%);
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 72% 50%, black 0%, transparent 65%);
}

/* ====================================
   ARCHITECTURE SVG BACKGROUND
   ==================================== */

body.theme-architect::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        /* Zaha Hadid -tyylinen kaareva ruudukko */
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(192, 168, 130, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 60% 80% at 80% 80%, rgba(192, 168, 130, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse 100% 60% at 20% 100%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
}

/* Arkkitehtuuriviivat */
body.theme-architect::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000'%3E%3Cpath d='M0,500 Q250,200 500,500 T1000,500' stroke='rgba(192,168,130,0.1)' fill='none' stroke-width='1'/%3E%3Cpath d='M0,600 Q250,300 500,600 T1000,600' stroke='rgba(255,255,255,0.05)' fill='none' stroke-width='1'/%3E%3Cpath d='M0,400 Q250,100 500,400 T1000,400' stroke='rgba(192,168,130,0.08)' fill='none' stroke-width='1'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
    animation: architectWave 20s ease-in-out infinite;
}

@keyframes architectWave {

    0%,
    100% {
        transform: translateY(0) scaleY(1);
    }

    50% {
        transform: translateY(-20px) scaleY(1.02);
    }
}

/* ====================================
   LAYOUT OVERRIDES
   ==================================== */

body.theme-architect .layout-grid {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    height: auto;
    overflow: visible;
}

/* ====================================
   CONTENT CARD - ARCHITECT STYLE
   ==================================== */

body.theme-architect .content-card {
    max-width: 500px;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.03) 0%,
            rgba(255, 255, 255, 0.01) 50%,
            rgba(192, 168, 130, 0.02) 100%);
    border: 1px solid rgba(192, 168, 130, 0.15);
    border-radius: 80px 30px 80px 30px;
    box-shadow:
        0 50px 100px -30px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(40px);
    position: relative;
    overflow: visible;
}

/* Kultainen aksentti */
body.theme-architect .content-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50px;
    width: 150px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent-secondary), transparent);
    border-radius: 2px;
}

/* ====================================
   TYPOGRAPHY - ARCHITECT
   ==================================== */

body.theme-architect h1 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(3rem, 7vw, 6rem);
    letter-spacing: 0.05em;
    line-height: 0.9;
    background: linear-gradient(135deg, #ffffff 0%, #c0a882 50%, #ffffff 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: architectShimmer 8s ease-in-out infinite;
}

@keyframes architectShimmer {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

body.theme-architect p.lead {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
}

/* ====================================
   BUTTONS - ARCHITECT STYLE
   ==================================== */

body.theme-architect .btn {
    background: transparent;
    border: 1px solid var(--accent-secondary);
    color: var(--accent-secondary);
    border-radius: 50px;
    padding: 1.2rem 2.5rem;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-size: 0.75rem;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

body.theme-architect .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(192, 168, 130, 0.3), transparent);
    transition: left 0.5s ease;
}

body.theme-architect .btn:hover {
    background: var(--accent-secondary);
    color: #0a0a0a;
    border-color: var(--accent-secondary);
    transform: translateY(-3px);
    box-shadow: 0 20px 40px -15px rgba(192, 168, 130, 0.4);
}

body.theme-architect .btn:hover::before {
    left: 100%;
}

/* ====================================
   THEME TOGGLE - ARCHITECT
   ==================================== */

body.theme-architect .theme-toggle {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(192, 168, 130, 0.2);
    color: var(--accent-secondary);
    border-radius: 50px;
}

/* ====================================
   MODAL - ARCHITECT STYLE
   ==================================== */

body.theme-architect .modal-content {
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
    border: 1px solid rgba(192, 168, 130, 0.2);
    border-radius: 60px 20px 60px 20px;
}

body.theme-architect .modal-content input,
body.theme-architect .modal-content textarea {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(192, 168, 130, 0.2);
    border-radius: 20px;
}

body.theme-architect .modal-content input:focus,
body.theme-architect .modal-content textarea:focus {
    border-color: var(--accent-secondary);
    box-shadow: 0 0 20px rgba(192, 168, 130, 0.2);
}

/* ====================================
   FLOATING ARCHITECTURE ELEMENTS
   ==================================== */

.architect-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.architect-shape {
    position: absolute;
    border: 1px solid rgba(192, 168, 130, 0.1);
    border-radius: 50% 30% 70% 40% / 60% 40% 60% 50%;
    animation: architectFloat 15s ease-in-out infinite;
}

.architect-shape:nth-child(1) {
    width: 300px;
    height: 300px;
    top: 10%;
    right: -50px;
    animation-delay: 0s;
    border-color: rgba(192, 168, 130, 0.08);
}

.architect-shape:nth-child(2) {
    width: 200px;
    height: 200px;
    bottom: 20%;
    left: -30px;
    animation-delay: -5s;
    border-color: rgba(255, 255, 255, 0.05);
}

.architect-shape:nth-child(3) {
    width: 400px;
    height: 400px;
    top: 50%;
    right: 20%;
    animation-delay: -10s;
    border-color: rgba(192, 168, 130, 0.05);
}

@keyframes architectFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }

    25% {
        transform: translateY(-30px) rotate(5deg) scale(1.02);
    }

    50% {
        transform: translateY(-10px) rotate(-3deg) scale(0.98);
    }

    75% {
        transform: translateY(-40px) rotate(3deg) scale(1.01);
    }
}

/* ====================================
   SCROLL INDICATOR
   ==================================== */

.scroll-indicator {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(192, 168, 130, 0.5);
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    z-index: 50;
    animation: scrollPulse 2s ease-in-out infinite;
}

.scroll-indicator::after {
    content: '';
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent-secondary), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes scrollLine {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
    }

    50.01% {
        transform-origin: bottom;
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

/* ====================================
   PARALLAX BUILDINGS
   ==================================== */

.parallax-buildings {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.15;
}

.building {
    position: absolute;
    bottom: 0;
    background: linear-gradient(to top, rgba(192, 168, 130, 0.3) 0%, transparent 100%);
    transform-origin: bottom center;
}

.building:nth-child(1) {
    left: 5%;
    width: 80px;
    height: 40%;
    clip-path: polygon(20% 100%, 50% 0%, 80% 100%);
}

.building:nth-child(2) {
    left: 20%;
    width: 120px;
    height: 55%;
    clip-path: polygon(0% 100%, 30% 20%, 50% 0%, 70% 20%, 100% 100%);
}

.building:nth-child(3) {
    left: 40%;
    width: 100px;
    height: 45%;
    clip-path: polygon(10% 100%, 50% 0%, 90% 100%);
}

.building:nth-child(4) {
    right: 25%;
    width: 150px;
    height: 60%;
    clip-path: polygon(0% 100%, 20% 40%, 50% 0%, 80% 40%, 100% 100%);
}

.building:nth-child(5) {
    right: 5%;
    width: 90px;
    height: 35%;
    clip-path: polygon(15% 100%, 50% 0%, 85% 100%);
}

/* ====================================
   RESPONSIVE
   ==================================== */

@media (max-width: 768px) {
    body.theme-architect .content-card {
        border-radius: 40px 15px 40px 15px;
        margin: 1rem;
    }

    body.theme-architect h1 {
        font-size: clamp(2rem, 10vw, 3.5rem);
    }

    .architect-shape {
        display: none;
    }

    .parallax-buildings {
        opacity: 0.1;
    }
}