@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Noto+Sans+KR:wght@300;400;700&display=swap');

:root {
    --primary-color: #1a1a1a;
    --accent-color: #2c3e50;
    --text-color: #333333;
    --light-text: #777777;
    --bg-color: #ffffff;
    --off-white: #fcfcfc;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --nav-height: 90px;
    --card-bg: #ffffff;
    --border-color: #eee;
    --white: #ffffff;
}

body.dark-mode {
    --primary-color: #fcfcfc;
    --accent-color: #3498db;
    --text-color: #f0f0f0;
    --light-text: #bbb;
    --bg-color: #121212;
    --off-white: #1a1a1a;
    --glass-bg: rgba(18, 18, 18, 0.9);
    --card-bg: #1e1e1e;
    --border-color: #333;
    --white: #121212;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.8;
    overflow-x: hidden;
    transition: background-color 0.3s, color 0.3s;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-left: 2rem;
    transition: transform 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--off-white);
    border: 1px solid var(--border-color);
}

.dark-mode-toggle:hover {
    transform: scale(1.1);
}

body.dark-mode .dark-mode-toggle i::before {
    content: "\f185"; /* sun icon */
}

/* Navbar */
.navbar {
    height: var(--nav-height);
    background: transparent;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    align-items: center;
}

.navbar.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 30px rgba(0,0,0,0.05);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 900;
    text-decoration: none;
    color: var(--primary-color);
    letter-spacing: -1px;
}

.logo span {
    color: var(--accent-color);
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-color);
    margin-left: 3rem;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--off-white);
    position: relative;
}

.hero::before {
    content: 'IMAGINE';
    position: absolute;
    font-family: 'Playfair Display', serif;
    font-size: 15vw;
    font-weight: 900;
    color: var(--primary-color);
    opacity: 0.02;
    z-index: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.hero-content h1 span {
    font-style: italic;
    color: var(--accent-color);
}

.hero-content p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 3rem;
    color: var(--light-text);
    font-weight: 300;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--bg-color);
}

.btn-primary:hover {
    background: var(--accent-color);
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--bg-color);
}

/* About Section & Building */
.section-content {
    padding: 150px 0;
}

.about-flex {
    display: flex;
    align-items: center;
    gap: 100px;
}

.about-text-content {
    flex: 1;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.about-description {
    font-size: 1.1rem;
    color: var(--light-text);
    margin-bottom: 4rem;
}

.vision-statement {
    position: relative;
    padding-left: 20px;
}

.vision-quote {
    margin-bottom: 3rem;
}

.vision-quote i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    display: block;
}

.vision-quote p {
    font-size: 1.8rem;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.4;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.vision-quote span {
    font-size: 0.9rem;
    color: var(--light-text);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
}

.vision-image-box {
    position: relative;
    width: 100%;
    height: 350px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
    background-color: var(--off-white);
}

.vision-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s ease;
    display: block;
}

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

.vision-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--bg-color);
    padding: 10px 20px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary-color);
    border: 1px solid var(--border-color);
}

.about-visual {
    flex: 1;
    position: relative;
}

.building-image-container {
    position: relative;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
    aspect-ratio: 4/5;
}

.building-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s ease;
}

.building-image-container:hover .building-img {
    transform: scale(1.1);
}

.building-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.7));
    z-index: 1;
}

.building-info {
    position: absolute;
    bottom: 40px;
    left: 40px;
    z-index: 2;
    color: #fff;
}

.building-info .location {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 3px;
    margin-bottom: 5px;
    opacity: 0.8;
}

.building-info .name {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
}

/* Services Section */
.services {
    background-color: var(--off-white);
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card {
    background: var(--card-bg);
    padding: 60px 40px;
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
}

.card:hover {
    border-color: var(--primary-color);
    transform: translateY(-10px);
}

.card-icon i {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

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

.form-group input, .form-group textarea {
    width: 100%;
    padding: 1.5rem 0;
    border: none;
    border-bottom: 1px solid var(--border-color);
    outline: none;
    font-size: 1rem;
    transition: border-color 0.3s;
    background: transparent;
    color: var(--text-color);
}

.form-group input:focus, .form-group textarea:focus {
    border-bottom-color: var(--primary-color);
}

.btn-submit {
    margin-top: 50px;
    width: 100%;
}

/* Footer */
footer {
    padding: 100px 0;
    text-align: center;
}

.social-links {
    margin-top: 30px;
}

.social-links a {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin: 0 15px;
    transition: opacity 0.3s;
}

.social-links a:hover {
    opacity: 0.5;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeIn 1.2s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }

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

.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.js-reveal {
    opacity: 0;
    transform: translateY(40px);
}

.js-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .about-flex {
        flex-direction: column;
        gap: 60px;
    }
    .service-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 4rem;
    }
    .nav-links {
        display: none;
    }
    .dark-mode-toggle {
        margin-left: auto;
        margin-right: 1rem;
    }
}
