/* ==========================================================================
   CSS Variables & Design System
   ========================================================================== */
:root {
    /* Colors based on benchmark (Navy & Vibrant Green/Blue) */
    --color-primary: #1A4F95; /* Navy Blue */
    --color-primary-light: #2A66B8;
    --color-primary-dark: #12376E;
    
    --color-accent: #00A69C; /* Vibrant Green-Blue */
    --color-accent-hover: #00BDB1;

    --color-text-main: #222222;
    --color-text-muted: #666666;
    --color-text-light: #999999;
    
    --color-bg-main: #FFFFFF;
    --color-bg-light: #F8F9FA;
    --color-bg-dark: #1A1A1A;
    
    --color-border: #E5E5E5;

    /* Typography */
    --font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
    
    /* Spacing */
    --section-padding: 100px 0;
    --section-padding-mobile: 60px 0;

    /* Shadows & Effects */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 16px 40px rgba(0,0,0,0.12);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--color-text-main);
    background-color: var(--color-bg-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography Classes */
.text-center { text-align: center; }
.text-white { color: #fff; }

/* Utilities */
.section {
    padding: var(--section-padding);
}
.bg-light { background-color: var(--color-bg-light); }
.bg-dark { background-color: var(--color-bg-dark); }

.section-header {
    margin-bottom: 60px;
}
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}
.section-title span {
    color: var(--color-primary);
}
.section-desc {
    font-size: 1.125rem;
    color: var(--color-text-muted);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 2px solid transparent; white-space: nowrap;
}
.btn-primary {
    background-color: var(--color-primary);
    color: #fff;
}
.btn-primary:hover {
    background-color: var(--color-primary-light);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.btn-outline {
    background-color: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}
.btn-outline:hover {
    background-color: var(--color-primary);
    color: #fff;
}
.btn-large {
    padding: 16px 40px;
    font-size: 1.125rem;
}
.btn-block {
    width: 100%;
}

/* Glassmorphism utility */
.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
    transition: var(--transition-fast);
}
.header.scrolled {
    box-shadow: var(--shadow-sm);
}
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}
.logo-text {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: -0.05em;
}
.nav-list {
    display: flex;
    gap: 40px;
}
.nav-link {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--color-text-main);
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width var(--transition-fast);
}
.nav-link:hover::after {
    width: 100%;
}
.nav-link:hover {
    color: var(--color-primary);
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-text-main);
    cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    padding-top: 80px; /* Offset for header */
}
.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&q=80&w=2000');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -2;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(26,79,149,0.85) 0%, rgba(0,166,156,0.6) 100%);
    z-index: -1;
}
.hero-content {
    color: #fff;
    max-width: 800px;
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}
.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}
.hero-title span {
    color: #E2FFF8;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 40px;
    opacity: 0.9;
}
.hero-buttons {
    display: flex;
    gap: 16px;
}
.hero-buttons .btn-outline {
    border-color: #fff;
    color: #fff;
}
.hero-buttons .btn-outline:hover {
    background-color: #fff;
    color: var(--color-primary);
}

/* ==========================================================================
   Features / ONE-STOP Service
   ========================================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.feature-card {
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    opacity: 0;
    transform: translateY(20px);
}
.feature-card.animate {
    opacity: 1;
    transform: translateY(0);
}
.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent);
}
.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background-color: rgba(26, 79, 149, 0.05);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: var(--transition-fast);
}
.feature-card:hover .feature-icon {
    background-color: var(--color-primary);
    color: #fff;
}
.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
}
.feature-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* ==========================================================================
   Property Types
   ========================================================================== */
.property-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.property-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 300px;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.95);
}
.property-item.animate {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.property-image {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s ease;
}
.property-item::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.1) 100%);
    transition: background 0.4s ease;
}
.property-item:hover .property-image {
    transform: scale(1.05);
}
.property-item:hover::after {
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 100%);
}
.property-info {
    position: absolute;
    bottom: 30px;
    left: 30px;
    z-index: 10;
    color: #fff;
}
.property-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

/* ==========================================================================
   Portfolio (Recent Work)
   ========================================================================== */
.portfolio-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.portfolio-item {
    display: flex;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-fast), transform var(--transition-fast);
    opacity: 0;
    transform: translateX(-20px);
}
.portfolio-item.animate {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.portfolio-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}
.portfolio-img {
    width: 250px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
}
.portfolio-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.badge {
    align-self: flex-start;
    padding: 6px 12px;
    background-color: rgba(0, 166, 156, 0.1);
    color: var(--color-accent-hover);
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 4px;
    margin-bottom: 12px;
}
.portfolio-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.portfolio-date {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.contact-desc {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 40px;
}
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.contact-details li {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 1.2rem;
    font-weight: 500;
}
.contact-details i {
    width: 48px;
    height: 48px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
}
.contact-form-wrap {
    background: rgba(255, 255, 255, 0.05); /* Dark theme glass */
    padding: 40px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1);
}
.form-group {
    margin-bottom: 24px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #fff;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background-color: rgba(255,255,255,0.9);
    border: 1px solid transparent;
    border-radius: 6px;
    font-family: var(--font-family);
    font-size: 1rem;
    transition: border var(--transition-fast);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: #111;
    color: #999;
    padding: 60px 0 30px;
}
.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr;
    gap: 40px;
}
.footer-brand p {
    margin-top: 16px;
}
.footer-logo {
    color: #fff;
    font-weight: 800;
    font-size: 1.75rem;
}
.footer-links h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 20px;
}
.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-links a:hover {
    color: #fff;
}
.footer-legal {
    font-size: 0.9rem;
    line-height: 1.8;
}
.copyright {
    margin-top: 20px;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    .property-grid {
        grid-template-columns: 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: var(--section-padding-mobile);
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.125rem;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: #fff;
        flex-direction: column;
        justify-content: flex-start;
        padding: 40px 24px;
        transition: left var(--transition-normal);
    }
    .nav.active {
        left: 0;
    }
    .nav-list {
        flex-direction: column;
        gap: 24px;
        width: 100%;
        text-align: center;
    }
    .nav-link {
        font-size: 1.25rem;
        display: block;
        padding: 10px;
    }
    .header-actions .btn {
        display: none;
    }
    .menu-toggle {
        display: block;
    }
    .portfolio-item {
        flex-direction: column;
    }
    .portfolio-img {
        width: 100%;
        height: 200px;
    }
}
