/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;500;700&family=Playfair+Display:ital,wght@0,600;1,600&display=swap');

:root {
    --bg-color: #0d1117;
    --second-bg-color: #161b22;
    --text-color: #e6edf3;
    --main-color: #58a6ff;
    --accent-color: #8b949e;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Outfit', sans-serif;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    cursor: none;
    /* Custom cursor */
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: rgba(13, 17, 23, 0.7);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo {
    font-size: 2.5rem;
    color: var(--text-color);
    font-weight: 700;
    cursor: default;
    transition: 0.3s;
}

.logo .dot {
    color: var(--main-color);
}

.footer-logo img {
    height: 50px;
    max-height: 50px;
    max-width: 150px;
    width: auto;
    border-radius: 50%;
    /* Fully rounded/circular */
    margin-right: 2rem;
    object-fit: cover;
    /* Ensures image isn't distorted if aspect ratio changes */
    border: 2px solid var(--glass-border);
    /* Optional subtle border */
}

/* Removed text styles as they are no longer needed
.logo .dot {
    color: var(--main-color);
}
*/

.navbar a {
    font-size: 1.7rem;
    color: var(--text-color);
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s;
    position: relative;
}

.navbar a:hover,
.navbar a.active {
    color: var(--main-color);
}

.navbar a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -6px;
    left: 0;
    background: var(--main-color);
    transition: 0.3s;
}

.navbar a:hover::after,
.navbar a.active::after {
    width: 100%;
}

#menu-icon {
    font-size: 3.6rem;
    color: var(--text-color);
    display: none;
    cursor: pointer;
}

/* Sections Global */
section {
    min-height: 100vh;
    padding: 10rem 9% 2rem;
}

span {
    color: var(--main-color);
}

.heading {
    text-align: center;
    font-size: 4.5rem;
    margin-bottom: 3rem;
}

/* Home Section */
.home {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
}

.home-content {
    max-width: 600px;
}

.home-welcome {
    font-size: 1.8rem;
    color: var(--accent-color);
    font-weight: 400;
    margin-bottom: 0.5rem;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
}

.home-content h1 {
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.home-content h1 .highlight-dot {
    color: var(--main-color);
}

.home-tagline {
    font-size: 2.8rem;
    font-weight: 500;
    color: var(--main-color);
    min-height: 4rem;
    margin-bottom: 2rem;
    font-family: 'Playfair Display', serif;
    font-style: italic;
}

.home-description {
    font-size: 1.7rem;
    color: var(--accent-color);
    line-height: 1.8;
    margin-bottom: 3rem;
}

.home-cta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--main-color);
    border-radius: 4rem;
    box-shadow: 0 0 1rem var(--main-color);
    font-size: 1.6rem;
    color: var(--bg-color);
    letter-spacing: 0.1rem;
    font-weight: 600;
    transition: 0.5s ease;
}

.btn:hover {
    box-shadow: none;
    transform: scale(1.05);
    background: transparent;
    color: var(--main-color);
    border: 2px solid var(--main-color);
}

.btn-outline {
    background: transparent;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 1rem var(--main-color);
}


.home-img {
    margin-top: 2rem;
}

/* Flow Philosophy Visualization - "Flow Makes You Grow" */
.flow-philosophy {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 배경 글로우 */
.philosophy-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(74, 144, 226, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    animation: philosophyPulse 4s ease-in-out infinite;
    z-index: 1;
}

@keyframes philosophyPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* 중앙 Flow 심볼 */
.flow-center {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.flow-orb {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg,
            rgba(74, 144, 226, 0.15) 0%,
            rgba(34, 211, 238, 0.1) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(74, 144, 226, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 8px 32px rgba(74, 144, 226, 0.2),
        inset 0 2px 10px rgba(255, 255, 255, 0.1),
        0 0 60px rgba(74, 144, 226, 0.3);
    animation: flowOrbFloat 6s ease-in-out infinite;
}

@keyframes flowOrbFloat {

    0%,
    100% {
        transform: translateY(0px) scale(1);
    }

    50% {
        transform: translateY(-15px) scale(1.05);
    }
}

.flow-icon {
    width: 80px;
    height: 80px;
    color: var(--main-color);
    filter: drop-shadow(0 0 10px rgba(74, 144, 226, 0.5));
}

.flow-label {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--main-color);
    text-shadow: 0 0 20px rgba(74, 144, 226, 0.5);
    letter-spacing: 2px;
}

.flow-subtitle {
    font-size: 1rem;
    color: var(--text-color);
    opacity: 0.8;
    font-weight: 300;
}

/* Growth 요소들 - Flow에서 파생 */
.growth-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.growth-particle {
    position: absolute;
    width: 40px;
    height: 40px;
    color: #4ade80;
    opacity: 0;
    filter: drop-shadow(0 0 8px rgba(74, 222, 128, 0.6));
    animation: growthEmerge 3s ease-out infinite;
}

.growth-particle svg {
    width: 100%;
    height: 100%;
}

/* Growth Particle 위치 및 애니메이션 */
.growth-particle-1 {
    top: 10%;
    right: 15%;
    animation-delay: 0s;
}

.growth-particle-2 {
    top: 30%;
    right: 5%;
    animation-delay: 0.5s;
}

.growth-particle-3 {
    bottom: 20%;
    right: 10%;
    animation-delay: 1s;
}

.growth-particle-4 {
    bottom: 35%;
    right: 20%;
    animation-delay: 1.5s;
}

@keyframes growthEmerge {
    0% {
        opacity: 0;
        transform: translate(-30px, -30px) scale(0.3);
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 0.8;
    }

    100% {
        opacity: 0;
        transform: translate(0, 0) scale(1.2);
    }
}

/* Growth 라벨 */
.growth-label-container {
    position: absolute;
    bottom: 10%;
    right: 5%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
    z-index: 2;
    animation: growthLabelFade 2s ease-in-out infinite;
}

@keyframes growthLabelFade {

    0%,
    100% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }
}

.growth-label {
    font-size: 1.4rem;
    font-weight: 600;
    color: #4ade80;
    text-shadow: 0 0 15px rgba(74, 222, 128, 0.5);
    letter-spacing: 1px;
}

.growth-subtitle {
    font-size: 0.85rem;
    color: var(--text-color);
    opacity: 0.7;
    font-weight: 300;
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.6;
        transform: translate(-50%, -60%) scale(1);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -60%) scale(1.1);
    }
}

@keyframes dashFlow {
    0% {
        stroke-dashoffset: 20;
    }

    100% {
        stroke-dashoffset: 0;
    }
}

/* About Section - FLOWLAB */
.about {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--second-bg-color);
    padding: 8rem 9%;
    min-height: auto;
}

.about-container {
    max-width: 1200px;
    width: 100%;
}

/* About Hero */
.about-hero {
    text-align: center;
    margin-bottom: 5rem;
}

.about-title {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.about-tagline {
    font-size: 3rem;
    font-weight: 600;
    color: var(--main-color);
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
    font-style: italic;
}

.about-subtitle {
    font-size: 1.8rem;
    color: var(--accent-color);
    line-height: 1.6;
}

/* Philosophy Cards */
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 5rem;
}

.philosophy-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 2rem;
    padding: 3rem 2.5rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

.philosophy-card:hover {
    transform: translateY(-10px);
    border-color: var(--main-color);
    box-shadow: 0 20px 40px rgba(88, 166, 255, 0.15);
}

.card-icon {
    width: 6rem;
    height: 6rem;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, var(--main-color), #22d3ee);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-icon i {
    font-size: 2.5rem;
    color: var(--bg-color);
}

.philosophy-card h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.philosophy-card p {
    font-size: 1.5rem;
    color: var(--accent-color);
    line-height: 1.7;
}

/* About Description */
.about-description {
    max-width: 800px;
    margin: 0 auto 5rem;
}

.desc-block {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
}

.desc-block p {
    font-size: 1.7rem;
    line-height: 1.9;
    color: var(--accent-color);
}

.highlight-text {
    font-size: 2rem !important;
    color: var(--text-color) !important;
}

.highlight-text span,
.desc-block p span {
    color: var(--main-color);
    font-weight: 600;
}

.ai-block {
    background: linear-gradient(135deg, rgba(88, 166, 255, 0.1), rgba(34, 211, 238, 0.1));
    border-radius: 2rem;
    padding: 3rem;
    border: 1px solid var(--glass-border);
}

.ai-icon {
    margin-bottom: 1.5rem;
}

.ai-icon i {
    font-size: 3rem;
    color: var(--main-color);
}

/* About Conclusion */
.about-conclusion {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--glass-bg);
    border-radius: 2rem;
    border: 1px solid var(--glass-border);
}

.flow-text {
    font-size: 2rem;
    line-height: 2;
    color: var(--accent-color);
    margin-bottom: 3rem;
}

.flow-text span {
    color: var(--main-color);
    font-weight: 600;
}

.conclusion-tagline {
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.conclusion-tagline p {
    font-size: 2.5rem;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--text-color);
}

.conclusion-tagline p span {
    color: var(--main-color);
}

/* Responsive About */
@media (max-width: 991px) {
    .philosophy-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .about-title {
        font-size: 3.5rem;
    }

    .about-tagline {
        font-size: 2.2rem;
    }

    .philosophy-grid {
        grid-template-columns: 1fr;
    }

    .conclusion-tagline {
        flex-direction: column;
        gap: 1rem;
    }

    .conclusion-tagline p {
        font-size: 2rem;
    }
}

/* Programs Section */
.programs {
    background: var(--bg-color);
    padding: 8rem 9%;
    min-height: auto;
}

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

/* Programs Header */
.programs-header {
    text-align: center;
    margin-bottom: 5rem;
}

.programs-title {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.programs-intro {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.programs-question {
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--main-color);
    margin-bottom: 2rem;
    font-family: 'Playfair Display', serif;
    font-style: italic;
}

.programs-desc {
    font-size: 1.6rem;
    color: var(--accent-color);
    line-height: 1.7;
}

/* Programs Grid */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-bottom: 5rem;
}

/* Program Card */
.program-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 2rem;
    padding: 3rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--main-color), #22d3ee);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.program-card:hover {
    transform: translateY(-8px);
    border-color: var(--main-color);
    box-shadow: 0 20px 40px rgba(88, 166, 255, 0.15);
}

.program-card:hover::before {
    transform: scaleX(1);
}

.program-card.featured {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(88, 166, 255, 0.1), rgba(34, 211, 238, 0.05));
    border-color: rgba(88, 166, 255, 0.3);
}

.program-icon {
    width: 5rem;
    height: 5rem;
    background: linear-gradient(135deg, var(--main-color), #22d3ee);
    border-radius: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.program-icon i {
    font-size: 2.2rem;
    color: var(--bg-color);
}

.program-card h3 {
    font-size: 2.2rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.program-card h3 span {
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--accent-color);
    display: block;
    margin-top: 0.3rem;
}

.program-summary {
    font-size: 1.5rem;
    color: var(--main-color);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.program-details {
    border-top: 1px solid var(--glass-border);
    padding-top: 1.5rem;
}

.program-details p {
    font-size: 1.4rem;
    color: var(--accent-color);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.program-details p.highlight {
    color: var(--text-color);
    font-weight: 500;
    font-style: italic;
}

/* Programs Footer */
.programs-footer {
    text-align: center;
    padding: 4rem;
    background: var(--glass-bg);
    border-radius: 2rem;
    border: 1px solid var(--glass-border);
}

.programs-footer p {
    font-size: 1.8rem;
    color: var(--accent-color);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.programs-footer .footer-highlight {
    font-size: 2.2rem;
    color: var(--main-color);
    font-weight: 600;
    margin-bottom: 0;
}

/* Responsive Programs */
@media (max-width: 991px) {
    .programs-grid {
        grid-template-columns: 1fr;
    }

    .program-card.featured {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .programs-title {
        font-size: 3.5rem;
    }

    .programs-question {
        font-size: 2rem;
    }

    .program-card {
        padding: 2rem;
    }
}



/* Products Section - Bento Grid Layout */
.products {
    background: linear-gradient(135deg, var(--second-bg-color) 0%, var(--bg-color) 100%);
    padding: 10rem 9%;
    min-height: 100vh;
    position: relative;
}

.products::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(88, 166, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(34, 211, 238, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.products-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 380px);
    gap: 2.5rem;
    margin-top: 4rem;
}

/* Card Size Utilities */
.card-2x2 {
    grid-column: span 2;
    grid-row: span 2;
}

.card-2x1 {
    grid-column: span 2;
    grid-row: span 1;
}

.product-card {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 2.4rem;
    padding: 3.5rem 2.5rem 3rem;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Gradient Overlay on Hover */
.product-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(88, 166, 255, 0.05) 0%, rgba(34, 211, 238, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    border-radius: 2.4rem;
}

.product-card:hover::after {
    opacity: 1;
}

/* Top Accent Bar */
.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--main-color);
    transition: all 0.5s ease;
    z-index: 2;
}

.card-temperament::before {
    background: linear-gradient(90deg, #8b5cf6 0%, #3b82f6 50%, #22d3ee 100%);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

.card-godsaeng::before {
    background: linear-gradient(90deg, #f59e0b 0%, #ef4444 50%, #f97316 100%);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
}

.card-newsletter::before {
    background: linear-gradient(90deg, #06b6d4 0%, #3b82f6 50%, #8b5cf6 100%);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
}

.product-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.06) 100%);
}

.product-card:hover::before {
    height: 6px;
    box-shadow: 0 0 30px currentColor;
}

.product-tag {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    padding: 0.7rem 1.6rem;
    border-radius: 50px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.25);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    z-index: 10;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.product-card:hover .product-tag {
    transform: scale(1.05);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.15) 100%);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.product-icon {
    width: 9rem;
    height: 9rem;
    margin: 2.5rem auto 2rem;
    border-radius: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3.8rem;
    color: #fff;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 1;
}

.product-icon::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 2.2rem;
    padding: 3px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.product-card:hover .product-icon::before {
    opacity: 1;
}

.card-temperament .product-icon {
    background: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 50%, #22d3ee 100%);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.card-temperament:hover .product-icon {
    transform: translateY(-5px) rotate(5deg) scale(1.1);
    box-shadow: 0 20px 45px rgba(59, 130, 246, 0.6),
        inset 0 0 30px rgba(255, 255, 255, 0.2);
}

.card-godsaeng .product-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 50%, #f97316 100%);
    box-shadow: 0 15px 35px rgba(239, 68, 68, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.card-godsaeng:hover .product-icon {
    transform: translateY(-5px) rotate(-5deg) scale(1.1);
    box-shadow: 0 20px 45px rgba(239, 68, 68, 0.6),
        inset 0 0 30px rgba(255, 255, 255, 0.2);
}

.card-newsletter .product-icon {
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #8b5cf6 100%);
    box-shadow: 0 15px 35px rgba(6, 182, 212, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.card-newsletter:hover .product-icon {
    transform: translateY(-5px) rotate(5deg) scale(1.1);
    box-shadow: 0 20px 45px rgba(6, 182, 212, 0.6),
        inset 0 0 30px rgba(255, 255, 255, 0.2);
}

/* Default card icon styling */
.product-card:not(.card-temperament):not(.card-godsaeng):not(.card-newsletter) .product-icon {
    background: linear-gradient(135deg, var(--main-color) 0%, #22d3ee 100%);
    box-shadow: 0 15px 35px rgba(88, 166, 255, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.product-card:not(.card-temperament):not(.card-godsaeng):not(.card-newsletter):hover .product-icon {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 20px 45px rgba(88, 166, 255, 0.6),
        inset 0 0 30px rgba(255, 255, 255, 0.2);
}

.product-card h3 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-weight: 700;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    letter-spacing: -0.5px;
}

.product-card:hover h3 {
    color: #fff;
    text-shadow: 0 0 20px rgba(88, 166, 255, 0.3);
}

.product-card p {
    font-size: 1.55rem;
    color: rgba(192, 192, 208, 0.9);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    flex-grow: 1;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.product-card:hover p {
    color: rgba(224, 224, 240, 0.95);
}

/* Responsive Grid for Bento (Placed LAST) */
@media (max-width: 1200px) {
    .bento-grid {
        grid-template-rows: repeat(2, 360px);
        gap: 2rem;
    }

    .product-card {
        padding: 3rem 2rem 2.5rem;
    }

    .product-icon {
        width: 8rem;
        height: 8rem;
        font-size: 3.5rem;
    }

    .product-card h3 {
        font-size: 2.2rem;
    }
}

@media (max-width: 991px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        gap: 2rem;
    }

    .card-2x2,
    .card-2x1 {
        grid-column: span 2;
        grid-row: auto;
    }

    .card-2x2 {
        grid-row: span 1;
        min-height: 420px;
    }

    .product-card {
        padding: 3.5rem 2.5rem 3rem;
    }
}

@media (max-width: 768px) {
    .products {
        padding: 8rem 5%;
    }

    .heading {
        font-size: 3.5rem;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .card-2x2,
    .card-2x1 {
        grid-column: span 1;
        min-height: auto;
    }

    .product-card {
        padding: 3rem 2rem 2.5rem;
        border-radius: 2rem;
    }

    .product-icon {
        width: 7.5rem;
        height: 7.5rem;
        font-size: 3.2rem;
        margin: 2rem auto 1.5rem;
    }

    .product-card h3 {
        font-size: 2rem;
        margin-bottom: 1.2rem;
    }

    .product-card p {
        font-size: 1.4rem;
        margin-bottom: 2rem;
    }

    .product-tag {
        top: 1.2rem;
        right: 1.2rem;
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }
}

.contact h2 {
    margin-bottom: 3rem;
}

.contact form {
    max-width: 70rem;
    margin: 1rem auto;
    text-align: center;
    margin-bottom: 3rem;
}

.contact form .input-box {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.contact form .input-box input,
.contact form textarea {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: var(--text-color);
    background: var(--second-bg-color);
    border-radius: .8rem;
    margin: .7rem 0;
    border: 1px solid var(--glass-border);
    transition: 0.3s;
}

.contact form .input-box input {
    width: 49%;
}

.contact form .input-box input:focus,
.contact form textarea:focus {
    border-color: var(--main-color);
    background: rgba(22, 27, 34, 0.8);
}


.contact form textarea {
    resize: none;
}

.contact form .btn {
    margin-top: 2rem;
    cursor: pointer;
}

/* Footer */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem 9%;
    background: var(--second-bg-color);
}

.footer-text p {
    font-size: 1.6rem;
}

.footer-iconTop a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0.8rem;
    background: var(--main-color);
    border-radius: 0.8rem;
    transition: 0.5s ease;
}

.footer-iconTop a:hover {
    box-shadow: 0 0 1rem var(--main-color);
}

.footer-iconTop a i {
    font-size: 2.4rem;
    color: var(--second-bg-color);
}

/* Breakpoints for Responsive Design */
@media (max-width: 1200px) {
    html {
        font-size: 55%;
    }
}

@media (max-width: 991px) {
    .header {
        padding: 2rem 3%;
    }

    section {
        padding: 10rem 3% 2rem;
    }

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

@media (max-width: 768px) {
    #menu-icon {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 3%;
        background: var(--bg-color);
        border-top: .1rem solid rgba(0, 0, 0, 0.2);
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, 0.2);
        display: none;
        /* Hidden by default */
    }

    .navbar.active {
        display: block;
        /* Show when active */
    }

    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }

    .home {
        flex-direction: column;
    }

    .home-content h3 {
        font-size: 2.6rem;
    }

    .home-content h1 {
        font-size: 5rem;
    }

    .home-img {
        width: 90vw;
        margin-top: 4rem;
    }

    .flow-philosophy {
        width: 300px;
        height: 300px;
        transform: scale(0.9);
    }

    .flow-orb {
        width: 120px;
        height: 120px;
    }

    .flow-icon {
        width: 60px;
        height: 60px;
    }

    .flow-label {
        font-size: 1.5rem;
    }

    .flow-subtitle {
        font-size: 0.85rem;
    }

    .growth-particle {
        width: 30px;
        height: 30px;
    }

    .growth-label {
        font-size: 1.2rem;
    }

    .growth-subtitle {
        font-size: 0.75rem;
    }


    .about {
        flex-direction: column-reverse;
    }

    .about img {
        width: 70vw;
        margin-top: 4rem;
    }

    .portfolio-container {
        grid-template-columns: 1fr;
    }
}