/* ===== Reset & Variables ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* BCG-inspired green + McKinsey-inspired dark blue */
    --primary: #0a3d2e;
    --primary-mid: #14654d;
    --primary-light: #1a8a68;
    --accent: #3ee8a5;
    --accent-glow: rgba(62, 232, 165, 0.15);
    --dark: #0c1117;
    --dark-card: #131a22;
    --dark-border: #1e2a35;
    --text: #1a1d23;
    --text-secondary: #4a5568;
    --text-muted: #8896a6;
    --bg: #ffffff;
    --bg-warm: #fafbfc;
    --bg-section: #f5f7f9;
    --border: #e2e8f0;
    --border-light: #edf2f7;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow: 0 4px 24px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 48px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.12);
    --radius: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.2s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ===== Typography ===== */
.serif {
    font-family: 'Playfair Display', Georgia, serif;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0);
    backdrop-filter: blur(0px);
    transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

.navbar.scrolled {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(24px);
    box-shadow: 0 1px 0 var(--border);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
}

.logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 8px;
    letter-spacing: -0.5px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.logo-sub {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: var(--transition-fast);
}

.nav-menu a:hover {
    color: var(--primary);
    background: var(--accent-glow);
}

.nav-cta {
    background: var(--primary) !important;
    color: #fff !important;
    padding: 10px 24px !important;
    border-radius: 6px !important;
    margin-left: 8px;
}

.nav-cta:hover {
    background: var(--primary-mid) !important;
    color: #fff !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 10;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: var(--transition);
    border-radius: 2px;
}

/* ===== Language Switch ===== */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: 16px;
    background: rgba(255,255,255,0.08);
    border-radius: 6px;
    padding: 3px;
}

.lang-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.4);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.5px;
}

.lang-btn:hover {
    color: rgba(255,255,255,0.7);
}

.lang-btn.active {
    background: var(--accent);
    color: var(--primary);
}

.navbar.scrolled .lang-switch {
    background: rgba(0,0,0,0.06);
}

.navbar.scrolled .lang-btn {
    color: rgba(0,0,0,0.35);
}

.navbar.scrolled .lang-btn:hover {
    color: rgba(0,0,0,0.6);
}

.navbar.scrolled .lang-btn.active {
    background: var(--primary);
    color: #fff;
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, #0a3d2e 0%, #0c2e22 40%, #0c1117 100%);
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}

.hero-glow-1 {
    width: 600px;
    height: 600px;
    top: -15%;
    right: -5%;
    background: radial-gradient(circle, rgba(62,232,165,0.15) 0%, transparent 70%);
    animation: heroGlow 8s ease-in-out infinite;
}

.hero-glow-2 {
    width: 400px;
    height: 400px;
    bottom: 5%;
    left: 10%;
    background: radial-gradient(circle, rgba(62,232,165,0.08) 0%, transparent 70%);
    animation: heroGlow 10s ease-in-out 3s infinite;
}

.hero-glow-3 {
    width: 300px;
    height: 300px;
    top: 40%;
    right: 25%;
    background: radial-gradient(circle, rgba(62,232,165,0.05) 0%, transparent 70%);
    animation: heroGlow 12s ease-in-out 6s infinite;
}

@keyframes heroGlow {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.15); }
}

.hero-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(62,232,165,0.08);
}

.hero-ring-1 {
    width: 500px;
    height: 500px;
    top: -10%;
    right: -8%;
    animation: heroRingSpin 40s linear infinite;
}

.hero-ring-2 {
    width: 350px;
    height: 350px;
    bottom: -5%;
    left: 5%;
    border-style: dashed;
    border-color: rgba(62,232,165,0.05);
    animation: heroRingSpin 30s linear reverse infinite;
}

@keyframes heroRingSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-line-deco {
    position: absolute;
    background: linear-gradient(180deg, rgba(62,232,165,0.15), transparent);
    width: 1px;
}

.hero-line-deco:nth-child(1) {
    height: 30%;
    top: 0;
    left: 20%;
    animation: heroLineFade 4s ease-in-out infinite;
}

.hero-line-deco:nth-child(2) {
    height: 40%;
    top: 10%;
    right: 15%;
    animation: heroLineFade 5s ease-in-out 1.5s infinite;
}

.hero-line-deco:nth-child(3) {
    height: 25%;
    top: 5%;
    right: 35%;
    animation: heroLineFade 6s ease-in-out 3s infinite;
}

@keyframes heroLineFade {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image:
        linear-gradient(rgba(255,255,255,0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 8s infinite;
}

@keyframes particleFloat {
    0% { opacity: 0; transform: translateY(100vh) scale(0); }
    10% { opacity: 0.6; }
    90% { opacity: 0.1; }
    100% { opacity: 0; transform: translateY(-10vh) scale(1); }
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 160px 32px 100px;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(62, 232, 165, 0.1);
    border: 1px solid rgba(62, 232, 165, 0.2);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 1px;
    margin-bottom: 32px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.7s ease 0.2s forwards;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero-title {
    margin-bottom: 28px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease 0.4s forwards;
}

.hero-line {
    display: block;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 300;
    color: rgba(255,255,255,0.7);
    line-height: 1.3;
    letter-spacing: -1px;
}

.hero-line-accent {
    font-weight: 700;
    color: #fff;
}

.hero-desc {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.9;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease 0.6s forwards;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 72px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease 0.8s forwards;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 40px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease 1s forwards;
}

.hero-stat {
    display: flex;
    flex-direction: column;
}

.hero-stat-num {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    display: inline;
    font-family: 'Playfair Display', Georgia, serif;
}

.hero-stat-suffix {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    font-family: 'Playfair Display', Georgia, serif;
}

.hero-stat-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    margin-top: 6px;
    letter-spacing: 1px;
}

.hero-stat-divider {
    width: 1px;
    height: 48px;
    background: rgba(255,255,255,0.1);
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    right: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 1;
    opacity: 0;
    animation: fadeUp 0.8s ease 1.2s forwards;
}

.hero-scroll span {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.3);
    letter-spacing: 2px;
    text-transform: uppercase;
    writing-mode: vertical-lr;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {
    0% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.3; transform: scaleY(0.6); }
    100% { opacity: 1; transform: scaleY(1); }
}

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

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: inherit;
    letter-spacing: 0.3px;
}

.btn-arrow {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.btn:hover .btn-arrow {
    transform: translateX(4px);
}

.btn-primary {
    background: var(--accent);
    color: var(--dark);
}

.btn-primary:hover {
    background: #5bf0b8;
    box-shadow: 0 8px 32px rgba(62, 232, 165, 0.3);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.2);
}

.btn-ghost:hover {
    color: #fff;
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.05);
}

.btn-dark {
    background: var(--primary);
    color: #fff;
    padding: 14px 28px;
}

.btn-dark:hover {
    background: var(--primary-mid);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(10,61,46,0.3);
}

.btn-accent {
    background: var(--accent);
    color: var(--dark);
    padding: 18px 40px;
    font-size: 1rem;
}

.btn-accent:hover {
    background: #5bf0b8;
    box-shadow: 0 8px 32px rgba(62, 232, 165, 0.3);
    transform: translateY(-2px);
}

/* ===== Sections ===== */
.section {
    padding: 120px 0;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-light);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

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

.section-title {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
    letter-spacing: -1px;
}

.section-title-lg {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text);
    letter-spacing: -1px;
    line-height: 1.3;
}

.section-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ===== About Section ===== */
.about {
    background: var(--bg);
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-left .section-label {
    margin-bottom: 16px;
}

.about-accent-line {
    width: 48px;
    height: 3px;
    background: var(--accent);
    margin-bottom: 28px;
    border-radius: 2px;
}

.about-text {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 16px;
}

.about-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.about-card {
    background: var(--bg-section);
    padding: 28px 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.about-card-num {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    opacity: 0.5;
    margin-bottom: 12px;
}

.about-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.about-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===== Services Section ===== */
.services {
    background: var(--bg-section);
}

.service-tabs {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 48px;
    flex-wrap: wrap;
    background: var(--bg);
    border-radius: var(--radius);
    padding: 6px;
    border: 1px solid var(--border);
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.service-tab {
    padding: 12px 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-fast);
    font-family: inherit;
    white-space: nowrap;
}

.service-tab:hover {
    color: var(--primary);
    background: var(--accent-glow);
}

.service-tab.active {
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.service-panels {
    position: relative;
}

.service-panel {
    display: none;
    animation: panelFadeIn 0.4s ease;
}

.service-panel.active {
    display: block;
}

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

.panel-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 64px;
    background: var(--bg);
    border-radius: var(--radius-xl);
    padding: 56px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    align-items: center;
}

.panel-number {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent);
    opacity: 0.2;
    line-height: 1;
    margin-bottom: 16px;
}

.panel-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.panel-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
}

.panel-list {
    list-style: none;
    margin-bottom: 32px;
}

.panel-list li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 8px 0 8px 24px;
    position: relative;
    border-bottom: 1px solid var(--border-light);
}

.panel-list li:last-child {
    border-bottom: none;
}

.panel-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

.panel-right {
    display: flex;
    align-items: center;
    justify-content: center;
}

.panel-visual {
    width: 280px;
    height: 280px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.panel-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 30%, rgba(62,232,165,0.1) 0%, transparent 60%);
}

.visual-icon {
    width: 80px;
    height: 80px;
    color: var(--accent);
    position: relative;
    z-index: 1;
}

.visual-icon svg {
    width: 100%;
    height: 100%;
}

.visual-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    text-align: center;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.panel-info {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-section);
    border-radius: var(--radius);
    margin-bottom: 28px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-left: 3px solid var(--accent);
}

.panel-info-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.panel-platform-box {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%);
    border-radius: var(--radius);
    margin: 24px 0;
    color: #fff;
}

.panel-platform-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(62, 232, 165, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.panel-platform-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--accent);
}

.panel-platform-text {
    flex: 1;
}

.panel-platform-text strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 4px;
    color: var(--accent);
}

.panel-platform-text span {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.5;
}

/* ===== Process Section ===== */
.process-section {
    background: var(--dark);
    position: relative;
    overflow: hidden;
}

.process-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(62,232,165,0.05) 0%, transparent 70%);
}

.section-header-light .section-label {
    color: var(--accent);
}

.section-header-light .section-title {
    color: #fff;
}

.section-header-light .section-desc {
    color: rgba(255,255,255,0.5);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}

.process-step {
    text-align: center;
    padding: 40px 24px;
    position: relative;
}

.process-num {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    opacity: 0.3;
    margin-bottom: 16px;
    line-height: 1;
}

.process-line {
    width: 48px;
    height: 2px;
    background: var(--accent);
    margin: 0 auto 20px;
    opacity: 0.4;
}

.process-step h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
}

.process-step p {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.4);
    line-height: 1.7;
}

/* ===== Portfolio Section ===== */
.portfolio {
    background: var(--bg);
}

.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-section);
    border: 1px solid var(--border);
    border-radius: 100px;
    cursor: pointer;
    transition: var(--transition-fast);
    font-family: inherit;
}

.filter-btn:hover {
    color: var(--primary);
    border-color: var(--primary-light);
}

.filter-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

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

.portfolio-card {
    background: var(--bg);
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.portfolio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.portfolio-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

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

.portfolio-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.portfolio-category {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-light);
    background: var(--accent-glow);
    padding: 4px 14px;
    border-radius: 100px;
    letter-spacing: 0.5px;
}

.portfolio-year {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: 'Playfair Display', Georgia, serif;
}

.portfolio-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text);
    line-height: 1.5;
}

.portfolio-card > p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.portfolio-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.portfolio-tags span {
    font-size: 0.72rem;
    color: var(--text-muted);
    background: var(--bg-section);
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid var(--border-light);
}

.portfolio-card.hidden {
    display: none;
}

/* ===== CTA Section ===== */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, #0a2e22 50%, #061a14 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(62,232,165,0.12) 0%, transparent 60%);
    animation: ctaPulse 6s ease-in-out infinite;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 50%;
    height: 160%;
    background: radial-gradient(ellipse, rgba(62,232,165,0.06) 0%, transparent 60%);
    animation: ctaPulse 8s ease-in-out 3s infinite;
}

@keyframes ctaPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.cta-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(62,232,165,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(62,232,165,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
}

.cta-float-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(62,232,165,0.12);
}

.cta-float-circle:nth-child(1) {
    width: 300px;
    height: 300px;
    top: -80px;
    right: -60px;
    animation: ctaFloat 12s ease-in-out infinite;
}

.cta-float-circle:nth-child(2) {
    width: 200px;
    height: 200px;
    bottom: -40px;
    left: 10%;
    animation: ctaFloat 10s ease-in-out 2s infinite;
}

.cta-float-circle:nth-child(3) {
    width: 120px;
    height: 120px;
    top: 20%;
    left: 30%;
    border-color: rgba(62,232,165,0.06);
    animation: ctaFloat 14s ease-in-out 4s infinite;
}

@keyframes ctaFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.4;
    letter-spacing: -1px;
}

.cta-content p {
    font-size: 1rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 40px;
    line-height: 1.8;
}

/* ===== Contact Section ===== */
.contact {
    background: var(--bg-section);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: stretch;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px 24px;
    background: var(--bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.contact-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--accent);
}

.contact-card-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-glow);
    border-radius: 12px;
    color: var(--primary);
}

.contact-card-icon svg {
    width: 22px;
    height: 22px;
}

.contact-card-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-card-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 2px;
}

.contact-card-value {
    font-size: 1rem;
    color: var(--text);
    font-weight: 500;
    text-decoration: none;
    line-height: 1.5;
}

.contact-card-value:hover {
    color: var(--primary);
}

.contact-map-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    min-height: 340px;
}

/* ===== Contact Form ===== */
.contact-form-wrap {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 36px;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.contact-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 0;
}

.contact-form .form-group:last-child {
    margin-bottom: 0;
}

.contact-form label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
}

.contact-form label .required {
    color: #e74c3c;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--text);
    background: var(--bg-section);
    transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-muted);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234a5568' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.btn-full {
    width: 100%;
    justify-content: center;
    margin-top: 20px;
}

.form-group + .btn-full {
    margin-top: 20px;
}

.form-message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 0.85rem;
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(62, 232, 165, 0.1);
    color: var(--primary);
    border: 1px solid var(--accent);
}

.form-message.error {
    display: block;
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid #e74c3c;
}

/* ===== Footer ===== */
.footer {
    background: var(--dark);
    color: #ccc;
    padding: 64px 0 0;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--dark-border);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer .logo-mark {
    width: 36px;
    height: 36px;
    font-size: 0.7rem;
}

.footer .logo-main {
    color: #fff;
    font-size: 1rem;
}

.footer .logo-sub {
    color: rgba(255,255,255,0.3);
    font-size: 0.6rem;
}

.footer-desc {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.35);
    line-height: 1.7;
    max-width: 280px;
}

.footer-links {
    display: flex;
    gap: 56px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col h4 {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.footer-col a {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.35);
    text-decoration: none;
    transition: var(--transition-fast);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.2);
}

.footer-contact {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-contact span {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.2);
}

/* ===== Scroll Animations ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .about-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .panel-content {
        grid-template-columns: 1fr;
        padding: 40px 32px;
    }

    .panel-right {
        display: none;
    }

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

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .footer-top {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .nav-toggle {
        display: flex;
    }

    .lang-switch {
        margin-left: auto;
        margin-right: 12px;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 360px;
        height: 100vh;
        background: var(--bg);
        flex-direction: column;
        padding: 100px 32px 32px;
        gap: 4px;
        transition: right 0.4s ease;
        box-shadow: -8px 0 32px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu a {
        display: block;
        padding: 14px 16px;
        font-size: 1rem;
        border-radius: 8px;
    }

    .nav-cta {
        margin-left: 0 !important;
        margin-top: 16px;
        text-align: center;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .hero-content {
        padding: 120px 20px 80px;
    }

    .hero-stats {
        gap: 24px;
    }

    .hero-stat-num {
        font-size: 2rem;
    }

    .hero-stat-divider {
        height: 32px;
    }

    .hero-scroll {
        display: none;
    }

    .section {
        padding: 80px 0;
    }

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

    .service-tabs {
        gap: 4px;
        padding: 4px;
    }

    .service-tab {
        padding: 10px 14px;
        font-size: 0.78rem;
    }

    .panel-content {
        padding: 28px 20px;
    }

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

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

    .portfolio-filter {
        gap: 6px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

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

    .contact-map-wrap {
        min-height: 280px;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-wrap {
        padding: 24px;
    }

    .cta-section {
        padding: 72px 0;
    }

    .footer-links {
        gap: 32px;
        flex-wrap: wrap;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-contact {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-line {
        font-size: 1.75rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        justify-content: center;
        width: 100%;
    }

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

    .hero-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .hero-stat-divider {
        display: none;
    }

    .hero-stat {
        flex-direction: row;
        align-items: baseline;
        gap: 8px;
    }
}
