/* ===================================
   AURASTYLE HOMES - CSS
   Design System: Silence and Light
   =================================== */

/* === CSS VARIABLES === */
:root {
    --color-bg: #0a0a0a;
    --color-text: #e8e8e8;
    --color-accent: #c9b896;
    --color-muted: #666;
    --font-serif-en: 'Cormorant Garamond', serif;
    --font-serif-ja: 'Noto Serif JP', serif;
    --font-sans: 'Inter', sans-serif;
    --spacing-unit: clamp(1rem, 2vw, 2rem);
    --section-gap: clamp(8rem, 15vh, 15rem);
}

/* === BASE RESET === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {

    scroll-behavior: smooth;
    font-size: clamp(14px, 1.2vw, 18px);
}

body {
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-serif-ja);
    line-height: 1.8;
    overflow-x: hidden;
    font-weight: 300;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* === HEADER === */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: clamp(1.5rem, 3vw, 3rem) clamp(2rem, 5vw, 5rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.95), transparent);
    transition: background 0.3s;
}

header.scrolled {
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(10px);
}

.logo {
    font-family: var(--font-serif-en);
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 300;
    letter-spacing: 0.15em;
    color: var(--color-text);
}

nav {
    display: flex;
    gap: clamp(2rem, 4vw, 4rem);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
}

nav a {
    color: var(--color-muted);
    text-decoration: none;
    transition: color 0.3s;
    position: relative;
}

nav a:hover {
    color: var(--color-text);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent);
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

/* === HERO SECTION === */
.hero {
    height: 700px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
    z-index: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%);
    animation: zoomIn 20s ease-out forwards;
}

@keyframes zoomIn {
    from {
        transform: scale(1.1);
    }

    to {
        transform: scale(1);
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    padding-top:10rem;
    padding-left: 4rem;
    max-width: 1200px;
}

.hero-title {
    font-size: 48px;
    font-weight: 300;
    letter-spacing: 0.08em;
    line-height: 1.4;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 1.2s ease-out 0.5s forwards;
}

.hero-description {
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 0.1em;
    line-height: 2;
    opacity: 0;
    animation: fadeInUp 1.2s ease-out 1s forwards;
}

.hero-description p {
    margin-bottom: 0.5rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: rgb(199, 198, 198);
    writing-mode: vertical-rl;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

/* === SECTION BASE === */
section {
    padding: 140px;
    padding-left: 120px;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s, transform 1s;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-label {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: var(--color-accent);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.section-title {
    font-size:32px;
    font-weight: 300;
    letter-spacing: 0.05em;
    margin-bottom: 3rem;
    line-height: 1.3;
}

/* === CONCEPT SECTION === */
#concept {
    background: linear-gradient(to bottom, var(--color-bg), #111);
}

.concept-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.concept-text {
    max-width: 600px;
}

.concept-subtitle {
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.concept-description {
    font-size: 14px;
    line-height: 2;
    color: var(--color-muted);
}

.concept-description p {
    margin-bottom: 1rem;
}

.concept-image {
    width: 500px;
    height: 550px;
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    border-radius: 4px;
}

.concept-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(30%);
    transition: transform 0.6s;
}

.concept-image:hover img {
    transform: scale(1.05);
}

/* === WORKS SECTION === */
#works {
    background: var(--color-bg);
}

.works-description {
    font-size:14px;
    line-height: 2;
    color: var(--color-muted);
    max-width: 800px;
    margin-bottom: 5rem;
}

.works-grid {
    display: flex;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.work-item {
    position: relative;
}

.work-image {
    width: 260px;
    height: auto;
    aspect-ratio: 3/4;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    cursor: pointer;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(50%);
    transition: filter 0.4s, transform 0.6s;
}

.work-item:hover .work-image img {
    filter: grayscale(0%);
    transform: scale(1.08);
}

.work-title {
    font-size: 14px;
    font-weight: 200;
    letter-spacing: 0.05em;
    line-height: 1.6;
    text-align: center;
}

.works-button-wrapper {
    text-align: center;
    margin-top: 5rem;
}

/* === CTA BUTTON === */
.cta-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    border: 1px solid var(--color-accent);
    color: var(--color-text);
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    background: transparent;
}

.cta-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--color-accent);
    transform: translateX(-100%);
    transition: transform 0.3s;
    z-index: -1;
}

.cta-button:hover {
    color: var(--color-bg);
}

.cta-button:hover::before {
    transform: translateX(0);
}

/* === FEATURES SECTION === */
#features {
    background: #111;
}

.features-list {
    display: grid;
    gap: clamp(6rem, 10vw, 12rem);
    margin-top: 5rem;
}

.feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(4rem, 6vw, 8rem);
    align-items: center;
}

.feature:nth-child(even) {
    direction: rtl;
}

.feature:nth-child(even)>* {
    direction: ltr;
}

.feature-content {
    max-width: 600px;
}

.feature-number {
    font-family: var(--font-serif-en);
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 300;
    color: var(--color-accent);
    opacity: 0.15;
    line-height: 1;
    margin-bottom: 1rem;
}

.feature-heading {
    font-size: clamp(1.3rem, 2.2vw, 1.8rem);
    font-weight: 400;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
    line-height: 1.6;
}

.feature-text {
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    line-height: 2;
    color: var(--color-muted);
    margin-bottom: 2rem;
}

.feature-list {
    list-style: none;
    font-size: clamp(0.9rem, 1.1vw, 1rem);
    line-height: 2;
    color: var(--color-muted);
}

.feature-list li {
    margin-bottom: 0.5rem;
}

.feature-image {
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 4px;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(40%);
    transition: transform 0.6s;
}

.feature:hover .feature-image img {
    transform: scale(1.05);
}

/* === MODEL HOUSE SECTION === */
#model {
    background: var(--color-bg);
}

.model-description {
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    line-height: 2;
    color: var(--color-muted);
    max-width: 800px;
    margin-bottom: 5rem;
}

.model-slider {
    position: relative;
    margin-bottom: 5rem;
    overflow: hidden;
}

.slider-track {
    display: flex;
    gap: 2rem;
    animation: slideScroll 40s linear infinite;
}

@keyframes slideScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.slider-track:hover {
    animation-play-state: paused;
}

.slide {
    flex: 0 0 clamp(350px, 40vw, 600px);
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 4px;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(30%);
    transition: filter 0.3s;
}

.slide:hover img {
    filter: grayscale(0%);
}

.model-cta {
    text-align: center;
}

/* === FOOTER === */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4rem clamp(2rem, 5vw, 5rem);
    background: #0a0a0a;
}

.footer-content {
    margin-bottom: 3rem;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: clamp(2rem, 4vw, 4rem);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    flex-wrap: wrap;
}

.footer-nav a {
    color: var(--color-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: var(--color-accent);
}

.copyright {
    text-align: center;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--color-muted);
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* === PAGE TOP BUTTON === */
.page-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border: 1px solid var(--color-accent);
    background: rgba(10, 10, 10, 0.9);
    color: var(--color-accent);
    font-family: var(--font-sans);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
    backdrop-filter: blur(10px);
}

.page-top.is-active {
    opacity: 1;
    visibility: visible;
}

.page-top:hover {
    background: var(--color-accent);
    color: var(--color-bg);
    transform: translateY(-3px);
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1024px) {
    nav {
        display: none;
    }

    .concept-wrapper,
    .feature {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .feature:nth-child(even) {
        direction: ltr;
    }

    .works-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .feature-content {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    header {
        padding: 1.5rem;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .hero-description {
        font-size: 0.9rem;
    }

    section {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .slide {
        flex: 0 0 80vw;
    }

    .footer-nav {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .page-top {
        width: 45px;
        height: 45px;
        bottom: 1.5rem;
        right: 1.5rem;
    }
}