/* Global Reset and Variables */
:root {
    --color-primary: #8257e5;
    --color-secondary: #00e6ff;
    --color-background-dark: #0a0a14;
    --color-glass-bg: rgba(255, 255, 255, 0.03);
    --color-glass-border: rgba(255, 255, 255, 0.08);
    --color-text-light: #e0e0ff;
    --color-text-muted: #8f8fa3;
    --color-accent: #ff6b81;
    --transition-speed: 0.3s;
    --card-bg: rgba(255, 255, 255, 0.02);
}

/* Base Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', 'Noto Sans KR', sans-serif;
    background-color: var(--color-background-dark);
    color: var(--color-text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Glassmorphism Container */
.glass-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 40px 60px 40px;
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    background: rgba(15, 15, 30, 0.6);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 30px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
    border: 1px solid var(--color-glass-border);
}

/* Header Styling */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 0;
    border-bottom: 1px solid var(--color-glass-border);
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(130, 87, 229, 0.6));
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.highlight {
    color: var(--color-secondary);
    font-weight: 600;
}

/* Navigation */
nav {
    display: flex;
    justify-content: flex-end;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-item a {
    text-decoration: none;
    color: var(--color-text-muted);
    font-weight: 500;
    transition: color var(--transition-speed);
    position: relative;
    font-size: 1.05rem;
}

.nav-item a:hover,
.nav-item a.active {
    color: #fff;
}

.nav-item a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    border-radius: 2px;
}

/* Hero Section */
main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 0 100px 0;
    border-bottom: 1px solid var(--color-glass-border);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.2;
    letter-spacing: -2px;
}

.gradient-text {
    background: linear-gradient(135deg, #b088ff 0%, #00e6ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: var(--color-text-muted);
    max-width: 800px;
    margin-bottom: 50px;
    line-height: 1.8;
}

/* Buttons */
.primary-btn {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.3); /* Premium top highlight */
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    cursor: pointer;
    border-radius: 50px;
    transition: all var(--transition-speed) cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 25px rgba(130, 87, 229, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.primary-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 230, 255, 0.4);
    border-top-color: rgba(255, 255, 255, 0.45);
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-glass-border);
    border-top: 1px solid rgba(255, 255, 255, 0.15); /* Top highlight */
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    cursor: pointer;
    border-radius: 50px;
    transition: all var(--transition-speed);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-text-light);
    border-top-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-4px);
}

/* Sections Styling */
.section-container {
    padding: 100px 0;
    border-bottom: 1px solid var(--color-glass-border);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    margin: 12px auto 0 auto;
    border-radius: 2px;
}

.section-header p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.about-card {
    background: var(--card-bg);
    border: 1px solid var(--color-glass-border);
    border-radius: 20px;
    padding: 40px 30px;
    transition: all var(--transition-speed);
}

.about-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(0, 230, 255, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.about-card .icon-box {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: rgba(130, 87, 229, 0.1);
    border: 1px solid rgba(130, 87, 229, 0.2);
    color: var(--color-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 25px;
    transition: transform var(--transition-speed);
}

.about-card:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
    background: rgba(0, 230, 255, 0.1);
    border-color: rgba(0, 230, 255, 0.2);
}

.about-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.about-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-item {
    background: var(--card-bg);
    border: 1px solid var(--color-glass-border);
    border-radius: 20px;
    padding: 35px;
    text-align: center;
    transition: all var(--transition-speed);
}

.service-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(130, 87, 229, 0.3);
    box-shadow: 0 15px 35px rgba(130, 87, 229, 0.1);
    transform: translateY(-5px);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 20px;
    display: block;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-item h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.service-item p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Eterna Studio Showcase & Gallery */
.gallery-container {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--color-glass-border);
    border-radius: 24px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.01);
}

.gallery-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-glass-border);
    color: var(--color-text-muted);
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-speed);
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.08);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-color: rgba(255, 255, 255, 0.15);
    color: white;
    box-shadow: 0 5px 15px rgba(130, 87, 229, 0.3);
}

.gallery-display {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    aspect-ratio: 16/10;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.floorplan-iframe {
    width: 100%;
    height: 650px;
}

.gallery-item {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    flex-direction: column;
}

.gallery-item.active {
    display: flex;
    opacity: 1;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #0d0d18;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(6, 6, 12, 0.95) 40%);
    padding: 30px 25px 25px 25px;
    color: white;
}

.gallery-caption h5 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-secondary);
}

.gallery-caption p {
    font-size: 0.95rem;
    color: #c4c4d4;
    line-height: 1.5;
}

/* Call to Action Box */
.review-cta-box {
    background: linear-gradient(135deg, rgba(130, 87, 229, 0.08) 0%, rgba(0, 230, 255, 0.05) 100%);
    border: 1px solid rgba(130, 87, 229, 0.25);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.cta-text {
    flex: 1 1 500px;
}

.cta-text h4 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: white;
}

.cta-text p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.review-btn {
    flex-shrink: 0;
    gap: 8px;
}

/* Contact Area */
.contact-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.contact-glass-form {
    background: var(--card-bg);
    border: 1px solid var(--color-glass-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.form-row .form-group {
    flex: 1 1 280px;
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-light);
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--color-glass-border);
    color: white;
    padding: 14px 18px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all var(--transition-speed);
}

.form-group select option {
    background-color: var(--color-background-dark);
    color: white;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #555566;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 10px rgba(0, 230, 255, 0.2);
    background: rgba(0, 0, 0, 0.4);
}

/* Footer styling */
footer {
    padding: 40px 0 20px 0;
    text-align: center;
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

/* Responsive Design */
@media (max-width: 900px) {
    .glass-container {
        margin: 20px;
        padding: 0 25px 40px 25px;
    }

    header {
        flex-direction: column;
        gap: 20px;
        padding: 30px 0;
    }

    nav {
        width: 100%;
        justify-content: center;
    }

    .nav-list {
        gap: 20px;
    }

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

    .section-container {
        padding: 70px 0;
    }

    .gallery-container {
        padding: 15px;
    }

    .gallery-caption {
        padding: 20px 15px;
    }

    .review-cta-box {
        padding: 30px;
        text-align: center;
        flex-direction: column;
    }

    .contact-glass-form {
        padding: 30px 20px;
    }
}

@media (max-width: 768px) {
    .gallery-tabs {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
        width: 100%;
        padding: 0 4px;
        flex-wrap: nowrap;
    }

    .tab-btn {
        padding: 10px 4px;
        font-size: 0.78rem;
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 4px;
        border-radius: 8px;
        white-space: nowrap;
    }

    .tab-btn i {
        font-size: 0.95rem;
        margin: 0;
    }

    .gallery-tabs .sub-label {
        display: none;
    }
    
    .floorplan-iframe {
        height: 520px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .nav-list {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-item a {
        font-size: 0.9rem;
    }

    .gallery-caption h5 {
        font-size: 1.1rem;
    }

    .gallery-caption p {
        font-size: 0.85rem;
    }
}
