/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'SongamLeeHyeongSik';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2604-1@1.0/SongamIhyeongsik-Regular.woff2') format('woff2');
    font-weight: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PyeojinGothic';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2504-1@1.0/PyeojinGothic-Light.woff2') format('woff2');
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'Isamanru';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_20-10@1.0/GongGothicLight.woff') format('woff');
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'A2z';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2601-6@1.0/에이투지체-1Thin.woff2') format('woff2');
    font-weight: 100;
    font-display: swap;
}

@font-face {
    font-family: 'A2z';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2601-6@1.0/에이투지체-2ExtraLight.woff2') format('woff2');
    font-weight: 200;
    font-display: swap;
}

@font-face {
    font-family: 'A2z';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2601-6@1.0/에이투지체-3Light.woff2') format('woff2');
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'A2z';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2601-6@1.0/에이투지체-4Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'A2z';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2601-6@1.0/에이투지체-5Medium.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'A2z';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2601-6@1.0/에이투지체-6SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'A2z';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2601-6@1.0/에이투지체-7Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'A2z';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2601-6@1.0/에이투지체-8ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-display: swap;
}

@font-face {
    font-family: 'A2z';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2601-6@1.0/에이투지체-9Black.woff2') format('woff2');
    font-weight: 900;
    font-display: swap;
}

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #c63737 0%, #c98e41 100%);
    background-attachment: fixed;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
header {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 12px 36px rgba(0, 0, 0, 0.4);
    z-index: 1000;
}

.navbar {
    padding: 0.75rem 2rem;
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav-brand a {
    text-decoration: none;
    display: flex;
    align-items: center;
    padding-right: auto;
}

.logo {
    width: 320px;
    height: 120px;
    border-radius: 4px;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1rem;
    margin-left: auto;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
    position: relative;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 1.5rem;
    letter-spacing: 0.5px;
}

.nav-menu a:hover {
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(255, 255, 255, 0.2);
}

.nav-menu a.active {
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 16px rgba(255, 255, 255, 0.25);
}

#navi_menubtn {
    position: absolute;
    display: none;
    top: 12px;
    right: 5px;
    width: 50px;
    height: 50px;
    z-index: 1001;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: -15px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    z-index: 999;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    margin-top: 180px;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    text-align: center;
    transition: all 0.3s ease;
    font-weight: 600;
}

.mobile-menu a:hover {
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(255, 255, 255, 0.2);
}

/* Main Content */
main {
    min-height: calc(100vh - 200px);
    position: relative;
    z-index: 1;
}

/* Hero Section */
.hero {
    color: white;
    padding: 100px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, #8b3e33 0%, #9b453d 10%, #ab4e43 20%, #bb554d 30%, #cb5e53 40%, #db655d 50%, #cb5e53 60%, #bb554d 70%, #ab4e43 80%, #9b453d 90%, #8b3e33 100%);
    background-size: 200% 100%;
    animation: gradientFlow 6s linear infinite reverse;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 200% 0%;
    }
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero h2 {
    font-family: 'A2z';
    font-weight: 700;
    font-size: 7rem;
    margin-bottom: -1rem;
    animation: fadeInDown 1.2s ease 0.8s both;
}

.hero p {
    font-family: 'A2z';
    font-weight: 300;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1.2s ease 1.6s both;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* About Section */
.about {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 60px 0;
    text-align: center;
    margin: 6rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 1;
}

.about h2 {
    font-family: 'A2z';
    font-weight: 600;
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    color: white;
}

.about p {
    font-family: 'SongamLeeHyeongSik', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 2.5rem;
    margin-left: 1.5rem;
    margin-right: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Services Section */
.services {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 60px 0;
    margin: 6rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.services h2 {
    font-family: 'A2z';
    font-weight: 600;
    font-size: 4rem;
    text-align: center;
    margin-bottom: 3rem;
    color: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    display: flex;
    gap: 1.5rem;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 40px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.service-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card h3 {
    margin: 0;
    color: white;
    font-size: 1.5rem;
}

.service-image {
    flex: 0 0 150px;
    width: 150px;
    height: 150px;
    overflow: hidden;
    border-radius: 8px;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Buttons */
.btn {
    font-family: 'Isamanru';
    padding: 1rem 3rem;
    border: none;
    border-radius: 50px;
    font-size: 2.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: visible;
    display: inline-block;
    z-index: 10;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    animation: slideInUp 1.2s ease 2.8s both;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.4);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */
footer {
    font-family: 'A2z';
    font-weight: 500;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-container {
        flex-wrap: nowrap;
        gap: 1rem;
    }

    .logo {
        width: 200px;
        height: 75px;
        flex-shrink: 0;
    }

    .nav-menu {
        display: none;
    }

    #navi_menubtn {
        display: block;
    }

    .mobile-menu {
        left: 1rem;
        right: 1rem;
        margin-top: 130px;
        border-radius: 12px;
        gap: 0.5rem;
    }

    .hero h2 {
        font-size: 3.8rem;
        margin-bottom: 0.5rem;
    }

    .hero p {
        font-size: 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0.5rem;
    }

    .service-image {
        flex: 0 0 150px;
    }

    .about p {
        font-size: 1rem;
        margin-left: .1rem;
        margin-right: .1rem;
    }

    .about h2,
    .services h2 {
        font-size: 3rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 2.5rem;
    }

    .about,
    .services {
        margin: 0.5rem;
    }

    body::before {
        width: 600px;
        height: 600px;
        right: -20%;
        top: -60%;
    }
}
