:root {
    --primary-color: #5F4DA0;
    --primary-dark: #4a3b80;
    --primary-light: #7f6db8;
    --text-color: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

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

body {
    font-family: '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;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: 70px;
    display: flex;
    align-items: center;
}

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

.logo a {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

nav ul {
    display: flex;
    gap: 30px;
}

nav a {
    font-weight: 500;
    font-size: 16px;
    color: var(--text-color);
}

nav a:hover {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    color: var(--text-color);
    cursor: pointer;
}

/* Hero Section */
#hero {
    padding-top: 140px;
    padding-bottom: 80px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

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

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 2;
}

.hero-content h1 {
    font-size: 48px;
    line-height: 1.3;
    margin-bottom: 20px;
    font-weight: 800;
    color: #1a1a1a;
    word-break: keep-all;
    word-wrap: break-word;
}

.hero-content h1 span {
    color: var(--primary-color);
}

.hero-content p {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 40px;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(95, 77, 160, 0.3);
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(95, 77, 160, 0.4);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.abstract-shape {
    position: absolute;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    opacity: 0.6;
    transform: translateZ(0);
    will-change: border-radius;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
    animation: morph 8s ease-in-out infinite;
    box-shadow: 0 0 60px 30px rgba(95, 77, 160, 0.4);
    z-index: 1;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, var(--primary-dark), var(--primary-color));
    animation: morph 10s ease-in-out infinite reverse;
    box-shadow: 0 0 50px 20px rgba(74, 59, 128, 0.4);
    z-index: 2;
    left: 10%;
    top: 10%;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, var(--primary-light), #9d8ec9);
    animation: morph 6s ease-in-out infinite 1s;
    box-shadow: 0 0 40px 15px rgba(127, 109, 184, 0.4);
    z-index: 3;
    right: 10%;
    bottom: 10%;
}

/* Mobile adjustments for shapes */
@media (max-width: 768px) {
    .shape-1 {
        width: 300px;
        height: 300px;
    }

    .shape-2 {
        width: 220px;
        height: 220px;
    }

    .shape-3 {
        width: 150px;
        height: 150px;
    }
}

@keyframes morph {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    50% {
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    }

    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

/* Sections General */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1a1a1a;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-light);
}

/* About Section */
#about {
    background-color: var(--white);
}

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

.about-card {
    text-align: center;
    padding: 40px 30px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: 1px solid #eee;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-light);
}

.about-card i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.about-card p {
    color: var(--text-light);
    font-size: 15px;
}

/* Services Section */
#services {
    background-color: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-item {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    transition: var(--transition);
}

.service-item:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

.service-item:hover h3,
.service-item:hover p,
.service-item:hover i {
    color: var(--white);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(95, 77, 160, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-item:hover .icon-box {
    background: rgba(255, 255, 255, 0.2);
}

.service-item i {
    font-size: 24px;
    color: var(--primary-color);
    transition: var(--transition);
}

.service-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #1a1a1a;
    transition: var(--transition);
}

.service-item p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
    transition: var(--transition);
}

/* Portfolio Section */
#portfolio {
    background-color: var(--white);
}

.portfolio-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.portfolio-item {
    display: flex;
    align-items: flex-start;
    padding: 30px;
    border-radius: 15px;
    background: var(--white);
    border: 1px solid #eee;
    transition: var(--transition);
}

.portfolio-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(95, 77, 160, 0.1);
}

.portfolio-year {
    font-weight: 800;
    font-size: 18px;
    color: var(--primary-color);
    width: 120px;
    flex-shrink: 0;
}

.portfolio-content h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.portfolio-content p {
    color: var(--text-light);
}

/* Contact Section */
#contact {
    background-color: var(--bg-light);
}

.contact-wrapper {
    background: var(--white);
    padding: 60px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-info h2 {
    font-size: 32px;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.contact-info>p {
    margin-bottom: 40px;
    color: var(--text-light);
}

.contact-info ul {
    text-align: left;
    display: inline-block;
}

.contact-info li {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    font-size: 16px;
}

.contact-info li i {
    color: var(--primary-color);
    margin-right: 15px;
    font-size: 20px;
    margin-top: 3px;
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: #999;
    padding: 60px 0;
    font-size: 14px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.footer-info p {
    margin-bottom: 8px;
    line-height: 1.6;
}

.copyright {
    margin-top: 20px;
    border-top: 1px solid #333;
    padding-top: 20px;
    width: 100%;
}

.copyright a {
    color: #ccc;
    margin: 0 10px;
}

.copyright a:hover {
    color: var(--white);
    text-decoration: underline;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

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

/* Responsive */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 40px;
    }

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

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

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    /* Adjust font size to ensure text fits on one line if possible, or breaks nicely */
    .hero-content h1 {
        font-size: 32px;
    }

    nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
        transform: translateY(-150%);
        transition: var(--transition);
        z-index: 999;
    }

    nav.active {
        transform: translateY(0);
    }

    nav ul {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    #hero {
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-top: 100px;
        position: relative;
    }

    .hero-content {
        margin-bottom: 0;
        z-index: 2;
        width: 100%;
    }

    .hero-image {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 1;
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .abstract-shape {
        position: absolute;
    }

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

    .contact-wrapper {
        padding: 30px;
    }
}

/* Privacy Policy Page Styles */
.privacy-page {
    padding-top: 100px;
    background-color: var(--bg-light);
    min-height: 100vh;
}

.privacy-content {
    background: var(--white);
    padding: 60px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    margin-bottom: 60px;
}

.privacy-content h1 {
    font-size: 32px;
    margin-bottom: 40px;
    text-align: center;
    color: #1a1a1a;
    position: relative;
    padding-bottom: 20px;
}

.privacy-content h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.privacy-text h3 {
    font-size: 20px;
    margin-top: 40px;
    margin-bottom: 15px;
    color: var(--primary-color);
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
}

.privacy-text p {
    margin-bottom: 15px;
    color: var(--text-light);
    line-height: 1.8;
}

.privacy-text ul,
.privacy-text ol {
    margin-bottom: 20px;
    padding-left: 20px;
    color: var(--text-light);
}

.privacy-text li {
    margin-bottom: 8px;
    list-style-type: disc;
}

.privacy-text ol li {
    list-style-type: decimal;
}

@media (max-width: 768px) {
    .privacy-content {
        padding: 30px;
    }

    .privacy-content h1 {
        font-size: 24px;
    }

    .privacy-text h3 {
        font-size: 18px;
    }
}