:root {
    --primary-color: #0A2540;
    --primary-light: #204B7A;
    --accent-color: #3D85C6;
    --text-main: #1A1A1A;
    --text-light: #666666;
    --bg-white: #FFFFFF;
    --bg-light: #F7F9FC;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

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

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.navigation ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.navigation a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 1.05rem;
    transition: var(--transition);
    position: relative;
}

.navigation a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.navigation a:hover {
    color: var(--accent-color);
}

.navigation a:hover::after {
    width: 100%;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 14px rgba(10, 37, 64, 0.15);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(10, 37, 64, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--bg-light);
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 6rem 2rem 2rem;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    animation: slideUp 1s ease-out;
}

.subtitle {
    color: var(--accent-color);
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: inline-block;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-description strong {
    color: var(--primary-color);
    font-weight: 600;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.hero-image-container {
    flex: 1;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    animation: fadeIn 1.2s ease-out;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transform: scale(1.05);
    transition: transform 0.5s ease;
}

.hero-image-container:hover .hero-image {
    transform: scale(1);
}

/* Swimming Fish Animation */
.fish-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* 클릭 방해 금지 */
    overflow: hidden;
    z-index: 2;
    border-radius: 24px;
}

.swimming-fish {
    position: absolute;
    width: 60px;
    height: auto;
    border-radius: 50%;
    mix-blend-mode: multiply; /* 흰색 배경을 투명하게 만들어 물결과 자연스럽게 섞이게 함 */
    opacity: 0.85;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.fish-1 {
    top: 25%;
    left: -100px;
    animation: swimRight 14s ease-in-out infinite;
    animation-delay: 0s;
}

.fish-2 {
    top: 60%;
    right: -100px;
    animation: swimLeft 17s ease-in-out infinite;
    animation-delay: 3s;
    transform: scaleX(-1);
}

.fish-3 {
    top: 80%;
    left: -100px;
    animation: swimRight 22s ease-in-out infinite;
    animation-delay: 7s;
    width: 45px;
}

.fish-4 {
    top: 40%;
    right: -100px;
    animation: swimLeft 19s ease-in-out infinite;
    animation-delay: 11s;
    transform: scaleX(-1);
    width: 50px;
}

@keyframes swimRight {
    0% {
        transform: translate(0, 0) rotate(5deg);
    }
    25% {
        transform: translate(25vw, -30px) rotate(-5deg);
    }
    50% {
        transform: translate(50vw, 20px) rotate(5deg);
    }
    75% {
        transform: translate(75vw, -20px) rotate(-5deg);
    }
    100% {
        transform: translate(100vw, 0) rotate(5deg);
    }
}

@keyframes swimLeft {
    0% {
        transform: translate(0, 0) scaleX(-1) rotate(5deg);
    }
    25% {
        transform: translate(-25vw, 30px) scaleX(-1) rotate(-5deg);
    }
    50% {
        transform: translate(-50vw, -20px) scaleX(-1) rotate(5deg);
    }
    75% {
        transform: translate(-75vw, 20px) scaleX(-1) rotate(-5deg);
    }
    100% {
        transform: translate(-100vw, 0) scaleX(-1) rotate(5deg);
    }
}

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

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

/* About Section */
.about-section {
    background-color: var(--bg-white);
    padding: 6rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.about-intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 5rem;
}

.about-intro h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.about-intro p {
    font-size: 1.15rem;
    color: var(--text-light);
    line-height: 1.8;
}

.about-activities {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
}

.activity-card {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: 20px;
    transition: var(--transition);
}

.activity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
}

.activity-card h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.activity-card p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
}

.about-cert {
    background: var(--primary-color);
    border-radius: 24px;
    padding: 4rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 4rem;
}

.cert-text {
    flex: 1;
}

.cert-text h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cert-text p {
    font-size: 1.1rem;
    opacity: 0.8;
    line-height: 1.6;
}

.cert-images {
    flex: 1.5;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.cert-image-wrapper {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    text-align: center;
}

.cert-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.image-placeholder {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

@media (max-width: 992px) {
    .about-cert {
        flex-direction: column;
        padding: 2.5rem;
        gap: 2.5rem;
    }
}
@media (max-width: 768px) {
    .cert-images {
        grid-template-columns: 1fr;
    }
}

/* Works Section */
.works-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

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

/* Works Filters */
.works-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--bg-light);
    color: var(--text-light);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.work-card {
    background: var(--bg-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
    cursor: pointer;
}

.work-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.work-image-wrapper {
    position: relative;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    overflow: hidden;
}

.work-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.work-card:hover .work-image-wrapper img {
    transform: scale(1.08);
}

.work-info {
    padding: 2rem;
    text-align: center;
}

.work-info h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.work-info p {
    color: var(--text-light);
    font-size: 0.95rem;
}

@media (max-width: 1200px) {
    .works-grid {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .works-grid {
        grid-template-columns: 1fr;
    }
}

/* Classes Section */
.classes-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

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

.class-card {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 3rem 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
    border: 1px solid #E2E8F0;
    text-align: center;
}

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

.class-info h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.class-duration {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.class-desc {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

@media (max-width: 992px) {
    .classes-grid {
        grid-template-columns: 1fr;
    }
}

/* Contact Section */
.contact-section {
    background-color: var(--bg-light);
    padding: 6rem 2rem;
    max-width: 100vw;
}

.contact-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.text-left {
    text-align: left;
    margin-bottom: 1rem;
}

.contact-details p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

.contact-links .btn-secondary {
    width: 100%;
    text-align: center;
}

.contact-map {
    margin-top: 1rem;
}

.map-placeholder {
    width: 100%;
    height: 250px;
    background-color: #E2E8F0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-weight: 500;
}

.contact-form-wrapper {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.contact-form h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.form-row {
    display: flex;
    gap: 1.5rem;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    padding: 1rem;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-main);
    transition: var(--transition);
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(10, 37, 64, 0.1);
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 2rem;
    margin-top: 1rem;
}

.form-checkbox input[type="checkbox"] {
    margin-top: 0.3rem;
    width: 18px;
    height: 18px;
}

.form-checkbox label {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

.form-submit {
    width: 100%;
    font-size: 1.1rem;
    padding: 1.2rem;
    border-radius: 12px;
    cursor: pointer;
}

@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* Footer Section */
.footer {
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 2rem 2rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-logo {
    color: var(--bg-white);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.footer-details p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.divider {
    margin: 0 0.8rem;
    opacity: 0.5;
}

.footer-badge {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem !important;
    margin-top: 0.5rem;
    color: var(--bg-white);
}

.footer-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
}

.footer-links {
    margin-top: 1.5rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
}

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

.footer-design-protection {
    padding-top: 1rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.15);
}

.design-notice {
    font-size: 0.9rem;
    margin-top: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}

@media (min-width: 768px) {
    .footer-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        flex-wrap: wrap;
    }
    .footer-copyright {
        width: 100%;
    }
}

/* Responsive */
@media (max-width: 992px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: 8rem;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .navigation {
        display: none; /* simple mobile view */
    }
}
