:root {
    --bg-color: #f2f2f5;
    --text-primary: #1d1d1f;
    --text-secondary: #6e6e73;
    --accent-1: #6E3AFF;
    --accent-2: #009cbc;
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(0, 0, 0, 0.08);
}

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

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

/* Anti-Gravity Background Shapes */
.background-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    filter: blur(100px);
}

.shape {
    position: absolute;
    border-radius: 50%;
    animation: floatBg 20s infinite alternate ease-in-out;
}

.shape-1 {
    top: -10%;
    left: -10%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(110,58,255,0.2) 0%, transparent 60%);
}

.shape-2 {
    bottom: -20%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(0,156,188,0.15) 0%, transparent 60%);
    animation-delay: -5s;
}

.shape-3 {
    top: 40%;
    left: 50%;
    width: 30vw;
    height: 30vw;
    background: radial-gradient(circle, rgba(255,58,200,0.1) 0%, transparent 60%);
    animation-delay: -10s;
}

@keyframes floatBg {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(10%, 10%) scale(1.2); }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 25px 0;
    z-index: 100;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

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

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

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    transition: width 0.3s ease;
}

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

/* Sections */
section {
    padding: 120px 30px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 60px;
    text-align: center;
    color: #000;
}

.section-title span {
    font-weight: 500;
    font-size: 2.2rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-top: -40px;
    margin-bottom: 60px;
    font-weight: 500;
}

/* Hero Section */
.hero {
    align-items: center;
    text-align: center;
    padding-top: 80px;
}

.hero-content {
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.center-logo {
    max-width: 380px;
    width: 90%;
    height: auto;
    margin-bottom: 5px;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.05));
    animation: slideDown 1s ease forwards;
}

.badge {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--accent-1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: slideDown 1s ease forwards;
}

.main-title {
    font-size: clamp(3.5rem, 8vw, 7rem);
    font-weight: 800;
    line-height: 1.1;
    margin: 15px 0;
    text-shadow: 0 0 40px rgba(110,58,255,0.2);
    letter-spacing: -2px;
}

.subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--text-secondary);
    max-width: 600px;
    animation: fadeInUp 1s ease 0.5s forwards;
    opacity: 0;
    font-weight: 400;
}

/* Floating Anti-Gravity Elements inside Hero */
.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.float-item {
    position: absolute;
    background: linear-gradient(135deg, rgba(255,255,255,0.7), rgba(255,255,255,0.2));
    border: 1px solid rgba(0,0,0,0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.box {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    top: 15%;
    left: 10%;
    animation: floatItem1 10s infinite ease-in-out;
}

.circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    bottom: 25%;
    right: 10%;
    animation: floatItem2 14s infinite ease-in-out reverse;
}

.triangle {
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 80px solid rgba(255,255,255,0.7);
    background: none;
    border-top: none;
    border-radius: 0;
    backdrop-filter: none;
    top: 25%;
    right: 20%;
    animation: floatItem1 12s infinite ease-in-out 2s;
    filter: drop-shadow(0 20px 20px rgba(0,0,0,0.05));
}

@keyframes floatItem1 {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-40px) rotate(180deg); }
    100% { transform: translateY(0) rotate(360deg); }
}

@keyframes floatItem2 {
    0% { transform: translateY(0) rotate(0deg) scale(1); }
    50% { transform: translateY(-50px) rotate(-180deg) scale(1.1); }
    100% { transform: translateY(0) rotate(-360deg) scale(1); }
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: fadeIn 1s ease 1s forwards;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--text-secondary);
    border-radius: 15px;
    position: relative;
    opacity: 0.6;
}

.wheel {
    width: 4px;
    height: 6px;
    background: var(--text-secondary);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 15px); opacity: 0; }
}

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

.service-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 0;
    border-radius: 30px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(110,58,255,0.05), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover {
    transform: translateY(-20px);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 30px 60px rgba(0,0,0,0.05);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-bottom: 1px solid var(--glass-border);
}

.service-card-content {
    padding: 40px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-card .icon {
    font-size: 3.5rem;
    margin-bottom: 25px;
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(110,58,255,0.2));
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 800;
    line-height: 1.3;
    text-align: center;
    color: #000;
}

.service-tags {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.service-tags span {
    background: #009cbc;
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
}

.service-desc {
    text-align: center;
    color: #000;
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.5;
}

/* Contact */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    padding: 70px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 40px 80px rgba(0,0,0,0.05);
}

.contact-info .section-title {
    text-align: left;
    margin-bottom: 30px;
    font-size: 3rem;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 50px;
    font-size: 1.1rem;
    font-weight: 400;
}

.info-item {
    margin-bottom: 35px;
}

.info-label {
    display: block;
    font-size: 0.85rem;
    color: var(--accent-1);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
    font-weight: 700;
}

.info-value {
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

/* Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.input-group {
    position: relative;
}

.input-group input,
.input-group textarea {
    width: 100%;
    background: rgba(255,255,255,0.6);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 16px;
    padding: 20px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1.05rem;
    outline: none;
    transition: all 0.3s ease;
}

.input-group textarea {
    resize: vertical;
    min-height: 150px;
}

.input-group label {
    position: absolute;
    left: 20px;
    top: 20px;
    color: var(--text-secondary);
    pointer-events: none;
    transition: all 0.3s ease;
    font-weight: 400;
}

.input-group input:focus,
.input-group textarea:focus {
    border-color: var(--accent-1);
    background: rgba(255,255,255,0.9);
    box-shadow: 0 0 20px rgba(110,58,255,0.1);
}

.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label,
.input-group textarea:focus ~ label,
.input-group textarea:not(:placeholder-shown) ~ label {
    top: -12px;
    left: 15px;
    font-size: 0.85rem;
    background: var(--glass-bg);
    padding: 0 8px;
    color: var(--accent-1);
    font-weight: 600;
    backdrop-filter: blur(10px);
    border-radius: 4px;
}

.submit-btn {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    border: none;
    padding: 20px;
    border-radius: 16px;
    color: white;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(110,58,255,0.2);
}

.submit-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.form-notice {
    font-size: 0.9rem;
    color: #ff4b4b;
    text-align: center;
    background: rgba(255, 75, 75, 0.1);
    padding: 10px;
    border-radius: 8px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 400;
}

/* Animations */
@keyframes slideDown {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeInUp {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Intersection Observer Classes */
.hidden {
    opacity: 0;
    transform: translateY(60px);
    transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.5s; }
.delay-4 { transition-delay: 0.7s; }

/* Responsive */
@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
        padding: 40px;
    }
    .contact-info .section-title {
        text-align: center;
    }
    .contact-info {
        text-align: center;
    }
}

@media (max-width: 768px) {
    section {
        padding: 80px 20px;
    }
    
    .nav-content {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    
    .nav-links {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-links a {
        font-size: 0.85rem;
    }

    .badge {
        padding: 8px 18px;
        font-size: 0.85rem;
    }

    .main-title {
        font-size: clamp(2.5rem, 10vw, 3.5rem);
        word-break: keep-all;
    }

    .subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }

    .section-title {
        font-size: 2.2rem;
        margin-bottom: 40px;
    }

    .service-card {
        padding: 30px 25px;
    }

    .contact-container {
        padding: 30px 20px;
        border-radius: 25px;
    }
    
    .input-group input,
    .input-group textarea {
        padding: 15px;
        font-size: 1rem;
    }

    .box {
        width: 50px;
        height: 50px;
    }

    .circle {
        width: 70px;
        height: 70px;
    }

    .triangle {
        border-left: 25px solid transparent;
        border-right: 25px solid transparent;
        border-bottom: 50px solid rgba(255,255,255,0.7);
    }
}

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

    .section-title {
        font-size: 1.8rem;
    }

    .info-value {
        font-size: 1.4rem;
    }
    
    .logo {
        font-size: 1.4rem;
    }
}
