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

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/*
html {
    scroll-behavior: smooth;
}
*/


/* ============================================================
   LAYOUT
   ============================================================ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    margin: 0 auto;
    max-width: 1200px;
    min-height: 50vh;
    padding: 20px 0;
    display: flex;
    align-items: center;
}

.section:nth-child(odd) {
    background-color: #f8f9fa;
}

.grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

#about .grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(2, 1fr);
}


/* ============================================================
   NAVBAR
   ============================================================ */
.nav-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: transparent;
}

.nav {
    width: 100%;
    max-width: 1200px;
    padding: 10px 0;
    transition: background-color 0.3s;
}

.nav.scrolled {
    background-color: rgba(255, 255, 255, 0);
    /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); */
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.nav.scrolled .logo {
    color: #333;
}

.nav.scrolled .hamburger span {
    background-color: #333;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.nav.scrolled .nav-menu a {
    color: #333;
}

.nav-menu a:hover {
    color: #007bff;
}


/* ============================================================
   HAMBURGER BUTTON
   ============================================================ */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
    background: none;
    border: none;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #FFF;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}


/* ============================================================
   SIDEBAR MENU
   ============================================================ */
.sidebar-menu {
    position: fixed;
    top: 0;
    left: -60%;
    width: 60%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    display: flex;
    flex-direction: column;
    padding-top: 80px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.sidebar-menu.active {
    left: 0;
}

.sidebar-menu a {
    font-size: 1.1rem;
    margin: 0rem 1rem;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.2s ease-in-out;
    border-radius: 8px;
    border-bottom: 1px solid #eee;
}

.sidebar-menu a:hover {
    color: #007bff;
    background: rgba(0, 123, 255, 0.05);
    transform: translateX(5px);
}

.sidebar-menu a:active {
    background: rgba(0, 123, 255, 0.1);
    transform: translateX(3px);
}


/* ============================================================
   OVERLAY
   ============================================================ */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}


/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.hero-text {
    text-align: left;
}

.hero-text p,
.hero-text button {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.3, 0.8, 0.3, 1);
}

.hero-text.show p,
.hero-text.show button {
    opacity: 1;
    transform: translateY(0);
}

.hero-text.show button {
    transition-delay: 0.3s;
}


/* ============================================================
   SCROLL ARROW
   ============================================================ */
.scroll-arrow {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40%  { transform: translateY(-30px); }
    60%  { transform: translateY(-15px); }
}


/* ============================================================
   CARDS
   ============================================================ */
.card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    margin-top: 20px;
}

.card:hover {
    transform: translateY(-10px);
}

.card-img {
    width: 100%;
    height: 230px;
    object-fit: cover;
}

.card-body {
    padding: 2px;
}


/* ============================================================
   BUTTON
   ============================================================ */
.btn {
    padding: 1px 2px;
    border: none;
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #0056b3;
}


/* ============================================================
   TABLE
   ============================================================ */
table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 3px;
    border: 1px solid #ddd;
    text-align: center;
    font-size: 12px;
}

th {
    background: linear-gradient(to bottom, #f8f8f8, #e0e0e0);
    font-weight: bold;
    color: #333;
}

tr:hover {
    background-color: #f1f1f1;
}


/* ============================================================
   UTILITIES
   ============================================================ */
.highlight {
    position: relative;
    display: inline-block;
    z-index: 1;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background-color: rgba(0, 123, 255, 0.2);
    z-index: -1;
    transform: skewX(-15deg);
}

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

.ss {
    text-decoration: line-through;
}


/* ============================================================
   FADE-UP ANIMATION
   ============================================================ */
.fade-up {
    opacity: 0;
    transform: translateY(50px);
    transition:
        opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1),
        transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.fade-up.show {
    opacity: 1;
    transform: translateY(0);
}


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    max-width: 1200px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0);
    color: black;
    padding: 0;
    text-align: center;
}


/* ============================================================
   CONTACT (모바일 전용 · 769px 이상에서 숨김)
   ============================================================ */
@media (min-width: 769px) {
    .contact {
        display: none;
    }
}

    #recent-board {
        display: none;
    }
}

.contact {
    padding: 28px 20px;
    background: #fff;
    text-align: center;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 10px;
}

.contact-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.contact-divider hr {
    flex: 1;
    border: none;
    border-top: 1px solid #e5e5e5;
}

.contact-divider span {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    white-space: nowrap;
}

.contact p {
    font-size: 13px;
    color: #777;
    margin: 0 0 20px;
    line-height: 1.6;
}

.contact-wrap {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.contact-btn {
    flex: 1;
    max-width: 200px;
    height: 52px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    letter-spacing: -0.2px;
    transition: all 0.15s ease;
    border: none;
}

.contact-btn:active {
    transform: scale(0.97);
}

.phone-btn {
    background: #fff;
    color: #333;
    border: 1px solid #e5e5e5;
    box-shadow: none;
}

.sms-wrap {
    position: relative;
    flex: 1;
    max-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pulse-ring {
    position: absolute;
    inset: 0;
    border-radius: 14px;
    background: #2f80ed;
    opacity: 0.15;
    animation: pulse 2.2s ease-out infinite;
}

@keyframes pulse {
    0%   { transform: scale(1);    opacity: 0.15; }
    100% { transform: scale(1.10); opacity: 0; }
}

.sms-btn {
    width: 100%;
    height: 52px;
    background: #2f80ed;
    color: #fff;
    box-shadow: none;
    position: relative;
    z-index: 1;
}


/* ============================================================
   RESPONSIVE — 모바일 (max-width: 768px)
   ============================================================ */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .search-container {
        position: fixed;
        top: 100px;
        right: 5px;
        z-index: 999;
        background: rgba(255, 255, 255, 0.3);
        padding: 6px;
        border-radius: 8px;
        display: flex;
        gap: 10px;
    }

    .section {
        padding: 40px 0;
    }

    #about .grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 2px;
        width: 100%;
    }

    .contact {
        padding: 24px 16px;
    }

    .contact-wrap {
        gap: 10px;
    }

    .contact-btn {
        height: 54px;
        font-size: 15px;
    }
}


/* ============================================================
   RESPONSIVE — 데스크톱 (min-width: 768px)
   ============================================================ */
@media (min-width: 768px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text p {
        font-size: 1.2rem;
    }

    .hero {
        width: 100%;
        max-width: 1200px;
        max-height: 600px;
        margin: 0 auto;
        z-index: 1;
    }

    .search-container {
        max-width: 1200px;
        margin: 0 auto;
        background: rgba(255, 255, 255, 0);
        padding: 6px;
        border-radius: 6px;
        display: flex;
        gap: 10px;
        z-index: 999;
    }

    /* .card-img {
        display: none;
    } */

    .grid {
        grid-template-columns: repeat(1, 1fr);
    }
}
