/* ============================
   UNNYBUS Portfolio — Design System
   ============================ */

/* --- Custom Properties --- */
:root {
    --bg-primary: #0F1117;
    --bg-secondary: #161a24;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --bg-glass: rgba(255, 255, 255, 0.05);
    --border-glass: rgba(255, 255, 255, 0.08);
    --text-primary: #f0f0f5;
    --text-secondary: #9898b0;
    --text-muted: #5a5a78;
    --accent: #3B82F6;
    --accent-primary: #3B82F6;
    --accent-light: #60A5FA;
    --accent-glow: rgba(59, 130, 246, 0.3);
    --accent-gradient: linear-gradient(135deg, #3B82F6, #60A5FA);
    --accent-gradient-wide: linear-gradient(135deg, #3B82F6 0%, #60A5FA 50%, #93C5FD 100%);
    --success: #00cec9;
    --gold: #f0c27f;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 8px 32px rgba(0,0,0,0.4);
    --shadow-lg: 0 16px 64px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 40px var(--accent-glow);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --font-en: 'Inter', sans-serif;
    --font-kr: 'Noto Sans KR', sans-serif;
    --nav-height: 80px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-kr);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--font-en); font-weight: 700; line-height: 1.2; }

.section-label {
    font-family: var(--font-en);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-light);
    margin-bottom: 12px;
    display: block;
}

.section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    margin-bottom: 16px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-desc {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.8;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    transition: var(--transition);
}

.nav.scrolled {
    background: rgba(10, 10, 26, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    box-shadow: var(--shadow-sm);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1001;
}

.nav-logo-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-en);
    font-weight: 800;
    font-size: 18px;
    color: white;
}

.nav-logo-text {
    font-family: var(--font-en);
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 2px;
}

.nav-logo-img {
    height: 34px;
    width: auto;
    object-fit: contain;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
    letter-spacing: 0.3px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: var(--transition);
    border-radius: 2px;
}

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

.nav-cta {
    padding: 10px 24px;
    background: var(--accent-gradient);
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    color: white !important;
    transition: var(--transition);
    box-shadow: 0 4px 15px var(--accent-glow);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--accent-glow);
}

.nav-cta::after { display: none !important; }

/* Mobile Menu Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
    padding: 4px;
}

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

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

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

.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, transparent 70%);
    animation: float 8s ease-in-out infinite;
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(96,165,250,0.1) 0%, transparent 70%);
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    padding: 0 24px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent-light);
    margin-bottom: 32px;
    backdrop-filter: blur(10px);
}

.hero-badge .dot {
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

.hero-title {
    font-size: clamp(40px, 7vw, 80px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-title .gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(16px, 2.5vw, 22px);
    color: var(--text-secondary);
    margin-bottom: 48px;
    line-height: 1.6;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 36px;
    background: var(--accent-gradient);
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    color: white;
    transition: var(--transition);
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 35px var(--accent-glow);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 36px;
    background: transparent;
    border: 1px solid var(--border-glass);
    border-radius: 50px;
    font-weight: 500;
    font-size: 16px;
    color: var(--text-primary);
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: var(--bg-glass);
    border-color: var(--accent);
    transform: translateY(-3px);
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 12px;
    letter-spacing: 2px;
    animation: bobble 2s ease-in-out infinite;
}

.hero-scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent), transparent);
}

@keyframes bobble {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* --- Sections Common --- */
.section {
    padding: 120px 48px;
    position: relative;
}

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

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

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s 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; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* --- About Section --- */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 1;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(59,130,246,0.2), transparent);
    pointer-events: none;
}

.about-text .section-label { text-align: left; }
.about-text .section-title { text-align: left; }
.about-text .section-desc { margin-bottom: 40px; }

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

.stat-item {
    text-align: center;
    padding: 24px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.stat-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent);
    transform: translateY(-4px);
}

.stat-number {
    font-family: var(--font-en);
    font-size: 36px;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
}

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

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

.service-card {
    position: relative;
    padding: 0;
    background: #111;
    border: none;
    border-radius: var(--radius-lg);
    transition: all 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.service-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.service-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card:hover .service-card-img img {
    transform: scale(1.08);
}

/* 하단 그라디언트 오버레이 */
.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    z-index: 1;
    transition: height 0.45s ease;
}

.service-card:hover::after {
    height: 75%;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: var(--accent-gradient);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.service-card h3 {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    font-size: 20px;
    margin-bottom: 0;
    font-family: var(--font-kr);
    font-weight: 700;
    color: #fff;
    padding: 0 24px;
    z-index: 2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    transition: bottom 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card:hover h3 {
    bottom: 60px;
}

.service-card p {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    padding: 0 24px 20px;
    z-index: 2;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card:hover p {
    opacity: 1;
    transform: translateY(0);
}


.service-price {
    margin-top: 20px;
    font-family: var(--font-en);
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-light);
}

/* --- Portfolio Section --- */
.portfolio-filters {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    border: 1px solid var(--border-glass);
    border-radius: 50px;
    transition: var(--transition);
    background: transparent;
}

.filter-btn:hover {
    color: var(--text-primary);
    border-color: var(--accent);
    background: rgba(59, 130, 246, 0.1);
}

.filter-btn.active {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px var(--accent-glow);
}

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

.portfolio-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    aspect-ratio: 4/3;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    display: block;
    text-decoration: none;
    color: inherit;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.portfolio-item:hover img {
    transform: scale(1.08);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,10,26,0.95) 0%, rgba(10,10,26,0.3) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
    opacity: 1;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
    background: linear-gradient(to top, rgba(10,10,26,0.98) 0%, rgba(10,10,26,0.5) 60%, transparent 100%);
}

.portfolio-overlay h3 {
    font-size: 18px;
    margin-bottom: 6px;
    font-family: var(--font-kr);
    font-weight: 700;
}

.portfolio-overlay .work-type {
    font-size: 13px;
    color: var(--accent-light);
    margin-bottom: 8px;
    font-weight: 500;
}

.portfolio-overlay p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.ai-tag {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 14px;
    background: rgba(59, 130, 246, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
}

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

/* --- AI Strategy Section --- */
.ai-section {
    background: var(--bg-secondary);
}

.ai-content {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 64px;
    align-items: start;
}

.ai-text .section-label { text-align: right; }
.ai-text .section-title { text-align: right; font-size: clamp(28px, 4vw, 44px); }
.ai-text .section-desc { margin-bottom: 32px; text-align: right; }

.ai-comparison {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.ai-comparison table {
    width: 100%;
    border-collapse: collapse;
}

.ai-comparison th {
    padding: 16px 20px;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    color: var(--text-secondary);
    background: rgba(59, 130, 246, 0.1);
    letter-spacing: 0.5px;
}

.ai-comparison td {
    padding: 16px 20px;
    font-size: 15px;
    border-top: 1px solid var(--border-glass);
}

.ai-comparison .highlight {
    color: var(--accent-light);
    font-weight: 700;
}

.ai-save {
    font-size: 13px;
    color: var(--success);
    font-weight: 600;
}

.ai-visual {
    position: relative;
}

.ai-visual-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
}

.ai-big-number {
    font-family: var(--font-en);
    font-size: 96px;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.ai-big-label {
    font-size: 20px;
    color: var(--text-secondary);
    margin-top: 8px;
    font-weight: 500;
}

.ai-cases {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.ai-case {
    padding: 16px;
    background: rgba(59, 130, 246, 0.08);
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
}

.ai-case strong {
    display: block;
    color: var(--text-primary);
    font-size: 14px;
    margin-bottom: 4px;
}

/* --- Clients / Social Proof --- */
.clients-track {
    display: flex;
    gap: 60px;
    animation: scroll-x 30s linear infinite;
    padding: 20px 0;
}

.clients-track span {
    font-family: var(--font-en);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    transition: var(--transition);
}

.clients-track span:hover {
    color: var(--accent-light);
}

@keyframes scroll-x {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.clients-wrapper {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
}

/* --- Contact Section --- */
.contact-section {
    text-align: center;
}

.contact-card {
    max-width: 700px;
    margin: 0 auto;
    padding: 64px 48px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(59,130,246,0.08) 0%, transparent 50%);
    pointer-events: none;
}

.contact-card h2 {
    font-size: 36px;
    margin-bottom: 16px;
}

.contact-card p {
    color: var(--text-secondary);
    margin-bottom: 36px;
    font-size: 16px;
}

.contact-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
}

.contact-info-item svg {
    color: var(--accent-light);
}

/* --- Footer --- */
.footer {
    padding: 48px;
    border-top: 1px solid var(--border-glass);
    text-align: center;
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-en);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 2px;
}

.footer-logo-icon {
    width: 32px;
    height: 32px;
    background: var(--accent-gradient);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    color: white;
}

.loader-logo img {
    height: 60px;
    margin-bottom: 16px;
}

.loader-symbol-img {
    height: 60px;
    width: auto;
    margin: 0 auto 16px auto;
    object-fit: contain;
    display: block;
}

.footer-logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    opacity: 0.9;
}

.footer-copy {
    font-size: 13px;
    color: var(--text-muted);
}

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

.footer-links a {
    font-size: 13px;
    color: var(--text-secondary);
    transition: var(--transition);
}

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

/* --- Mobile Responsive --- */
@media (max-width: 1024px) {
    .nav { padding: 0 24px; }
    .section { padding: 80px 24px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .about-content { grid-template-columns: 1fr; gap: 48px; }
    .about-image { max-width: 500px; margin: 0 auto; }
    .ai-content { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
    :root { --nav-height: 64px; }

    /* ===== FIX 1: Hamburger menu — CTA buttons fixed at bottom, side by side ===== */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 360px;
        height: 100vh;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 100px;
        gap: 24px;
        background: rgba(10, 10, 26, 0.98);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        transition: var(--transition);
        padding-left: 40px;
        padding-right: 40px;
        padding-bottom: 120px;
        border-left: 1px solid var(--border-glass);
        align-items: center;
    }

    .nav-links.open { right: 0; }

    .nav-links a {
        font-size: 18px;
        padding: 8px 0;
    }

    /* CTA buttons: fix to bottom of nav panel, side by side */
    .nav-links .nav-cta {
        position: absolute !important;
        bottom: 48px !important;
        width: calc(50% - 28px) !important;
        text-align: center !important;
        justify-content: center !important;
        font-size: 14px !important;
        padding: 14px 0 !important;
        border-radius: 12px !important;
    }
    .nav-links .nav-cta:first-of-type {
        left: 24px !important;
    }
    .nav-links .nav-cta:last-of-type {
        right: 24px !important;
        left: auto !important;
    }

    .nav-toggle { display: flex; }

    .section { padding: 64px 20px; }
    .section-header { margin-bottom: 48px; text-align: center; }

    .hero-title { font-size: clamp(32px, 9vw, 56px); }
    .hero-subtitle { font-size: 16px; }
    .hero-buttons { flex-direction: column; align-items: stretch; }

    /* ===== FIX 3-6: All CTA buttons — same width, centered ===== */
    .btn-primary, .btn-outline { 
        justify-content: center;
        width: 80%;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
        display: flex;
    }

    .services-grid { grid-template-columns: 1fr; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .about-stats { grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .stat-number { font-size: 28px; }

    .ai-comparison td,
    .ai-comparison th { padding: 12px 14px; font-size: 13px; }

    .ai-cases { grid-template-columns: 1fr; }
    .ai-big-number { font-size: 64px; }

    .contact-card { padding: 40px 24px; }
    .contact-info { flex-direction: column; gap: 16px; }

    .footer-content { flex-direction: column; gap: 16px; }

    .portfolio-filters { gap: 8px; }
    .filter-btn { padding: 8px 16px; font-size: 13px; }

    /* ===== FIX 7: Service section text/button center alignment ===== */
    .text-center { text-align: center; }
    .section-desc { margin-left: auto; margin-right: auto; }

    /* ===== FIX 8: About Us text center alignment on mobile ===== */
    .about-text {
        text-align: center;
    }
    .about-text .section-label,
    .about-text .section-title,
    .about-text .section-desc {
        text-align: center;
    }

    /* ===== FIX 5-6: Package buttons centered ===== */
    .svc-pkg-promo { 
        flex-direction: column; 
        text-align: center; 
        align-items: center;
        gap: 16px;
    }
    .svc-pkg-promo .pkg-btn { 
        margin-left: auto !important; 
        margin-right: auto !important;
        width: 80%;
        max-width: 320px;
        justify-content: center;
        text-align: center;
        display: flex;
    }

    /* ===== FIX 9: AI Carousel — horizontal, 60% size, no edge blur ===== */
    .ai-carousel-wrapper {
        mask-image: none !important;
        -webkit-mask-image: none !important;
        height: auto !important;
        margin-top: 24px !important;
        margin-bottom: 24px !important;
    }
    .ai-carousel-track {
        flex-direction: row !important;
        animation: scroll-horizontal-mobile 30s linear infinite !important;
    }
    .ai-carousel-item {
        width: 60% !important;
        min-width: 60% !important;
        flex-shrink: 0;
    }

    /* AI text center on mobile */
    .ai-text { text-align: center; }
    .ai-text .section-title { text-align: center !important; }
    .ai-text .section-label,
    .ai-text .section-desc { text-align: center !important; }
}

/* --- Scroll to top --- */
.scroll-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: var(--shadow-glow);
    transition: var(--transition);
    opacity: 0;
    pointer-events: none;
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    pointer-events: all;
}

/* --- Mobile Fixed Bottom CTA Bar --- */
.mobile-bottom-cta {
    display: none;
}
@media (max-width: 768px) {
    .mobile-bottom-cta {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 998;
        gap: 8px;
        padding: 12px 16px;
        padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        background: rgba(10, 10, 26, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }
    .mobile-cta-btn {
        flex: 1;
        text-align: center;
        padding: 14px 0;
        border-radius: 12px;
        font-size: 15px;
        font-weight: 700;
        text-decoration: none;
        transition: var(--transition);
    }
    .mobile-cta-btn.primary {
        background: linear-gradient(120deg, var(--accent-primary), #0984e3);
        color: #fff;
        border: none;
    }
    .mobile-cta-btn.outline {
        background: transparent;
        color: #fff;
        border: 1.5px solid rgba(255, 255, 255, 0.5);
    }
    /* Move scroll-top button up to avoid overlap */
    .scroll-top {
        bottom: 80px;
    }
}

.scroll-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

/* --- Loading screen --- */
.loader {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    width: 60px;
    height: 60px;
    background: var(--accent-gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-en);
    font-weight: 800;
    font-size: 24px;
    color: white;
    margin: 0 auto 20px;
    animation: pulse-scale 1.5s ease-in-out infinite;
}

@keyframes pulse-scale {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.loader-bar {
    width: 120px;
    height: 3px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
    margin: 0 auto;
}

.loader-bar-fill {
    width: 0%;
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 3px;
    animation: load 1.2s ease-out forwards;
}

@keyframes load {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* === New Sections: Sales Hook, Process, Guarantee === */

/* Sales Hook */
.sales-hook-card {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 40px;
    background: rgba(30, 30, 50, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 32px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.sales-title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 24px;
    background: linear-gradient(120deg, #fff, var(--accent-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    word-break: keep-all;
}

.sales-desc {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-secondary);
    font-weight: 400;
    word-break: keep-all;
}
.sales-desc strong {
    color: #fff;
    font-weight: 600;
}

/* Process Grid */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 60px;
}

.process-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px 32px;
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.process-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-light));
    opacity: 0;
    transition: var(--transition);
}

.process-card:hover {
    background: rgba(255, 255, 255, 0.03);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.1);
}

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

.process-step {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-light);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.process-icon {
    font-size: 48px;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 10px rgba(59,130,246,0.2));
}

.process-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #fff;
}

.process-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    word-break: keep-all;
}

@media (max-width: 1024px) {
    .process-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .process-grid { grid-template-columns: 1fr; }
    .sales-title { font-size: 28px; }
    .sales-desc { font-size: 16px; }
    .sales-hook-card { padding: 40px 24px; }
    /* FIX 2: Strategy grid — equal width cards on mobile */
    .strategy-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    .sales-hook-card {
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

.text-center {
    text-align: center;
}

/* Guarantee Section */
.guarantee-card {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 40px;
    background: rgba(9, 132, 227, 0.05); /* Slight blue tint */
    border: 1px solid rgba(9, 132, 227, 0.2);
    border-radius: 32px;
    position: relative;
}

.guarantee-icon {
    font-size: 56px;
    margin-bottom: 24px;
}

.guarantee-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 24px;
    color: #fff;
    word-break: keep-all;
}

.guarantee-title .highlight {
    background: linear-gradient(120deg, var(--accent-light), #0984e3);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.guarantee-desc {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    word-break: keep-all;
}

.guarantee-desc strong {
    color: #fff;
    font-weight: 600;
}

@media (max-width: 768px) {
    .guarantee-card { padding: 40px 24px; }
    .guarantee-title { font-size: 24px; }
}

/* Strategy Grid */
.strategy-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 32px;
    align-items: stretch;
}

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

/* AI Image Carousel */
.ai-carousel-wrapper {
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
    margin-top: -120px;
    margin-bottom: -120px;
    height: 750px;
}

@media (max-width: 1024px) {
    .ai-carousel-wrapper {
        margin-top: -64px;
        margin-bottom: -64px;
        height: 600px;
    }
}

.ai-carousel-track {
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: scroll-vertical 55s linear infinite;
}

.ai-carousel-wrapper:hover .ai-carousel-track {
    animation-play-state: paused;
}

.ai-carousel-item {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
    background: var(--bg-card);
    transition: transform 0.3s ease, border-color 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.ai-carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ai-carousel-item:hover img {
    transform: scale(1.05);
}

@keyframes scroll-vertical {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(calc(-50% - 8px)); /* Moves exactly half the track up */
    }
}

/* AI Compare Cards (Side-by-Side Column Layout) */
.ai-compare-cards {
    display: grid;
    grid-template-columns: auto 1fr 1fr;
    gap: 8px;
    margin-top: 8px;
}

.ai-compare-labels {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ai-compare-label-header {
    height: 52px;
    display: flex;
    align-items: center;
}

.ai-compare-label {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 16px 16px 16px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

.ai-compare-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-radius: 20px;
    overflow: hidden;
    padding-bottom: 8px;
}

.ai-compare-old {
    background: rgba(255, 255, 255, 0.04);
}

.ai-compare-new {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.35), rgba(59, 130, 246, 0.15));
}

.ai-compare-header {
    text-align: center;
    padding: 14px 16px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--text-secondary);
}

.ai-compare-new .ai-compare-header {
    color: var(--accent-light);
}

.ai-compare-cell {
    text-align: center;
    padding: 16px 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    margin: 0 8px;
}

.ai-compare-new .ai-compare-cell {
    background: rgba(59, 130, 246, 0.15);
    color: #fff;
}

@media (max-width: 768px) {
    .ai-compare-cards {
        grid-template-columns: auto 1fr 1fr;
    }
    .ai-compare-label {
        font-size: 12px;
        padding: 12px 8px 12px 0;
    }
    .ai-compare-cell {
        font-size: 12px;
        padding: 12px 8px;
    }
    .ai-compare-header {
        font-size: 11px;
        padding: 10px 8px;
    }
}

/* ============================
   Package Pricing Cards
   ============================ */
.pkg-section {
    padding: 100px 0;
    text-align: center;
}
.pkg-section .section-desc {
    margin-left: auto;
    margin-right: auto;
}
.pkg-section-sub {
    padding-top: 40px;
}
.pkg-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}
.pkg-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 40px 32px 32px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pkg-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}
.pkg-card.popular {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(96, 165, 250, 0.08) 100%);
    border-color: var(--accent-primary);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.15);
}
/* Section Tag (button-style title) */
.pkg-section-tag {
    display: inline-block;
    padding: 16px 44px;
    background: linear-gradient(270deg, #3B82F6, #60A5FA, #3B82F6, #60A5FA);
    background-size: 300% 100%;
    animation: gradientMove 4s ease infinite;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    border-radius: 50px;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 24px rgba(59, 130, 246, 0.45);
}
@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.pkg-badge-popular {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    color: #0F1117;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 8px 24px;
    border-radius: 50px;
    white-space: nowrap;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.pkg-badge-popular::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 7px solid #fff;
}
.pkg-card.popular {
    padding-top: 48px;
}
.pkg-tier {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent-light);
    margin-bottom: 8px;
}
.pkg-name {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
}
.pkg-sub {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
}
.pkg-price {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.pkg-price .price-unit {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
}
.pkg-features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    flex-grow: 1;
}
.pkg-features li {
    padding: 8px 0;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.pkg-features li.included {
    color: var(--text-primary);
}
.pkg-features li.included::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.2);
    color: var(--accent-light);
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}
.pkg-features li.excluded {
    color: rgba(255, 255, 255, 0.25);
    text-decoration: line-through;
}
.pkg-features li.excluded::before {
    content: '—';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.2);
    font-size: 11px;
    flex-shrink: 0;
}
.pkg-btn {
    display: block;
    text-align: center;
    padding: 14px 24px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-decoration: none;
    transition: var(--transition);
}
.pkg-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}
.pkg-btn.primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-light));
    border: none;
    color: #fff;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}
.pkg-btn.primary:hover {
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
}

/* Package cards responsive */
@media (max-width: 768px) {
    .pkg-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .pkg-card {
        padding: 32px 24px 24px;
    }
    .pkg-name {
        font-size: 24px;
    }
    .pkg-price {
        font-size: 30px;
    }
}

/* ============================
   Page Hero (sub-pages)
   ============================ */
.page-hero {
    padding: 120px 0 20px;
    text-align: center;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.08) 0%, transparent 100%);
}
.page-hero + .section { padding-top: 40px; }
.page-hero + .pkg-section { padding-top: 80px; }
.page-hero .section-label { margin: 0 auto 12px; }
.page-hero .section-title { margin-bottom: 12px; }
.page-hero .section-desc { margin-bottom: 0; }

/* ============================
   Package Promo Row (index.html compact)
   ============================ */
.svc-pkg-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 40px;
}
.svc-pkg-promo {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 32px;
    display: flex;
    align-items: center;
    gap: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.svc-pkg-promo:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}
.svc-pkg-icon {
    font-size: 40px;
    flex-shrink: 0;
}
.svc-pkg-promo h3 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}
.svc-pkg-promo p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
}
.svc-pkg-promo .pkg-btn {
    flex-shrink: 0;
    white-space: nowrap;
    margin-left: auto;
}
@media (max-width: 768px) {
    .svc-pkg-row { grid-template-columns: 1fr; }
    .svc-pkg-promo { flex-direction: column; text-align: center; }
}

/* ============================
   Blog / Insight Cards
   ============================ */
.blog-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 40px;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.blog-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}
.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}
.blog-thumb {
    position: relative;
    height: 200px;
    overflow: hidden;
}
.blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.blog-card:hover .blog-thumb img {
    transform: scale(1.05);
}
.blog-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(59, 130, 246, 0.85);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 50px;
    letter-spacing: 0.5px;
}
.blog-body {
    padding: 24px;
}
.blog-body h3 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
}
.blog-read { color: var(--accent-light); }

/* Active nav link */
.nav-links a.active {
    color: var(--accent-light);
}

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

/* ============================
   Pricing Section Nav Buttons
   ============================ */
.pricing-nav {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}
.pricing-nav-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}
.pricing-nav-btn:hover,
.pricing-nav-btn.active {
    background: rgba(59, 130, 246, 0.15);
    border-color: var(--accent-primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.2);
}
.pricing-nav-icon { font-size: 22px; }
@media (max-width: 768px) {
    .pricing-nav-btn { padding: 12px 20px; font-size: 13px; }
}

/* ============================
   Custom Estimate Builder
   ============================ */
.estimate-builder {
    margin-top: 40px;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: start;
}
.est-tabs {
    grid-column: 1 / -1;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 8px;
}
.est-tab {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.est-tab:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.est-tab.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #fff;
}

.est-services {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.est-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    transition: all 0.2s ease;
}
.est-item-active {
    border-color: var(--accent-primary);
    background: rgba(59, 130, 246, 0.06);
}
.est-item-info h4 {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}
.est-item-info p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}
.est-item-price {
    font-size: 13px;
    color: var(--accent-light);
    font-weight: 600;
}
.est-item-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.est-qty-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.est-qty-btn:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}
.est-qty-input {
    width: 48px;
    text-align: center;
    padding: 8px 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    -moz-appearance: textfield;
    appearance: textfield;
}
.est-qty-input::-webkit-outer-spin-button,
.est-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

/* Summary Panel */
.est-summary {
    position: sticky;
    top: 100px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 28px;
}
.est-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.est-summary-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}
.est-reset {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.est-reset:hover { background: rgba(255, 82, 82, 0.2); color: #ff5252; border-color: #ff5252; }

.est-empty {
    color: var(--text-secondary);
    font-size: 14px;
    text-align: center;
    padding: 20px 0;
}
.est-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 14px;
    color: var(--text-secondary);
}
.est-line span:last-child {
    font-weight: 700;
    color: #fff;
}
.est-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0 12px;
    margin-top: 8px;
    border-top: 2px solid var(--accent-primary);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
}
.est-total-price {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-light), var(--accent-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.est-note {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 8px;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .estimate-builder { grid-template-columns: 1fr; }
    .est-summary { position: static; }
    .est-item { flex-direction: column; gap: 16px; align-items: stretch; }
    .est-item-controls { justify-content: center; }
}

/* Custom Estimate Section – distinct background */
.pkg-section-estimate {
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Section Divider for Pricing */
.pkg-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin: 0 auto;
    max-width: 1200px;
}

/* ============================================
   MOBILE OPTIMIZATION (max-width: 480px)
   Targets phone screens specifically
   ============================================ */
@media (max-width: 480px) {

    /* --- Global Spacing & Typography --- */
    .section { padding: 48px 16px; }
    .section-header { margin-bottom: 32px; text-align: center; }
    .section-label { font-size: 11px; letter-spacing: 2px; margin-bottom: 10px; }
    .section-title { font-size: clamp(22px, 7vw, 30px); margin-bottom: 12px; }
    .section-desc { font-size: 15px; line-height: 1.7; margin-left: auto; margin-right: auto; }

    /* --- Hero --- */
    .hero { min-height: 85vh; padding: 0 20px; }
    .hero-badge { font-size: 13px; padding: 8px 20px; margin-bottom: 20px; }
    .hero-title { font-size: clamp(26px, 8vw, 36px); line-height: 1.3; }
    .hero-subtitle { font-size: 14px; line-height: 1.7; margin-bottom: 28px; }
    .hero-buttons { gap: 12px; }
    .btn-primary, .btn-outline { font-size: 15px; padding: 14px 24px; }
    .scroll-indicator { font-size: 11px; }

    /* ===== FIX 1: Hamburger menu — CTA buttons fixed to bottom ===== */
    .nav { padding: 0 16px; }
    .nav-links {
        width: 85%;
        padding: 32px 24px 100px;  /* extra bottom space for fixed buttons */
        gap: 20px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .nav-links a { font-size: 16px; }
    /* CTA buttons pinned to bottom of mobile menu */
    .nav-links .nav-cta {
        position: fixed !important;
        bottom: 0 !important;
        left: 50% !important;
        width: calc(50% - 12px) !important;
        text-align: center !important;
        justify-content: center !important;
        font-size: 14px !important;
        padding: 16px 0 !important;
        border-radius: 0 !important;
        z-index: 1001 !important;
    }
    /* First CTA (무료 진단하기) — left half */
    .nav-links .nav-cta:nth-of-type(1) {
        left: 20% !important;
        transform: translateX(0) !important;
        right: auto !important;
        width: calc(40% - 8px) !important;
        bottom: 24px !important;
        border-radius: 12px !important;
    }
    /* Second CTA (문의하기) — right half */
    .nav-links .nav-cta:nth-of-type(2) {
        left: auto !important;
        right: calc(20% - 80% * 0.15 + 12px) !important;
        width: calc(40% - 8px) !important;
        bottom: 24px !important;
        border-radius: 12px !important;
    }

    /* ===== FIX 2: Reality & Standard card width matching ===== */
    .reality-card,
    .standard-card { padding: 28px 20px; margin-left: 0; margin-right: 0; }
    .reality-card h2,
    .standard-card h2 { font-size: clamp(20px, 6vw, 26px); line-height: 1.4; }
    .reality-card p,
    .standard-card p { font-size: 14px; line-height: 1.8; }
    .standard-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .standard-stat-number { font-size: 24px; }
    .standard-stat-label { font-size: 11px; }

    /* ===== FIX 3-6: All CTA buttons — same width, centered ===== */
    .btn-primary,
    .btn-outline {
        width: 80% !important;
        max-width: 320px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        justify-content: center !important;
        text-align: center !important;
        display: flex !important;
    }
    /* Text-center helper for button parent areas */
    .text-center { text-align: center; }

    /* ===== FIX 7: Service section text center alignment ===== */
    .services-grid + .text-center,
    .services-grid ~ div { text-align: center; }

    /* ===== FIX 8: About Us section — center text on mobile ===== */
    .about-text {
        text-align: center !important;
    }
    .about-text .section-label,
    .about-text .section-title,
    .about-text .section-desc {
        text-align: center !important;
    }
    .about-text .section-desc {
        margin-left: auto;
        margin-right: auto;
    }

    /* --- Stats / About Stats --- */
    .about-stats { 
        grid-template-columns: 1fr !important; 
        gap: 12px; 
        max-width: 280px;
        margin: 0 auto;
    }
    .stat-card { padding: 16px; }
    .stat-number { font-size: 32px; }
    .stat-label { font-size: 13px; }

    /* --- Service Cards (Image Overlay) --- */
    .services-grid { gap: 16px; }
    .service-card { border-radius: 16px; min-height: 200px; }
    .service-card img { height: 200px; }
    .service-card-content { padding: 16px; }
    .service-card-content h3 { font-size: 18px; }
    .service-card-content p { font-size: 13px; }
    .service-card-content .service-tags { gap: 6px; }
    .service-card-content .service-tags span { font-size: 11px; padding: 4px 10px; }

    /* --- Portfolio Grid --- */
    .portfolio-grid { gap: 16px; }
    .pf-card { border-radius: 14px; min-height: 280px; }
    .pf-card-img { height: 280px; }
    .pf-card-overlay { padding: 16px; }
    .pf-card-overlay h3 { font-size: 18px; }
    .pf-card-overlay .pf-tags { font-size: 13px; }
    .pf-card-overlay p { font-size: 12px; }

    /* ===== FIX 9: AI Carousel — horizontal, 60% size, no edge blur ===== */
    .ai-carousel-wrapper {
        mask-image: none !important;
        -webkit-mask-image: none !important;
        height: auto !important;
        margin-top: 24px !important;
        margin-bottom: 24px !important;
        overflow: hidden;
    }
    .ai-carousel-track {
        flex-direction: row !important;
        animation: scroll-horizontal-mobile 30s linear infinite !important;
    }
    .ai-carousel-item {
        width: 60% !important;
        min-width: 60% !important;
        aspect-ratio: 4 / 3;
        flex-shrink: 0;
    }

    /* AI text section center on mobile */
    .ai-text { text-align: center; }
    .ai-text .section-title { 
        font-size: clamp(20px, 6vw, 28px) !important; 
        text-align: center !important; 
    }
    .ai-text .section-label,
    .ai-text .section-desc { text-align: center !important; }
    .ai-big-number { font-size: 48px; }
    .ai-comparison { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .ai-comparison table { min-width: 480px; }
    .ai-comparison td,
    .ai-comparison th { padding: 10px 12px; font-size: 12px; }

    /* --- Packages Section (centered) --- */
    .svc-pkg-promo { 
        padding: 24px 20px; 
        flex-direction: column; 
        text-align: center; 
        align-items: center;
        gap: 16px;
    }
    .svc-pkg-promo .pkg-btn { 
        margin-left: auto; 
        margin-right: auto;
        width: 80%;
        max-width: 320px;
        justify-content: center;
        text-align: center;
    }
    .svc-pkg-icon { margin-bottom: 4px; }
    .svc-pkg-promo h3 { font-size: 18px; }
    .svc-pkg-promo p { font-size: 13px; }

    /* --- Contact Section --- */
    .contact-card { padding: 32px 20px; }
    .contact-title { font-size: clamp(24px, 7vw, 32px) !important; line-height: 1.3; }
    .contact-subtitle { font-size: 14px; line-height: 1.7; }
    .contact-info { gap: 12px; }
    .contact-info-item { font-size: 14px; }

    /* --- Footer --- */
    .footer { padding: 32px 16px 24px; }
    .footer-content { gap: 12px; }
    .footer-brand { font-size: 16px; }
    .footer-links { gap: 12px; }
    .footer-links a { font-size: 13px; }
    .footer-copyright { font-size: 12px; }

    /* --- Scroll Top Button --- */
    .scroll-top { 
        bottom: 20px; 
        right: 16px; 
        width: 40px; 
        height: 40px; 
    }

    /* --- Blog / Insight Cards --- */
    .blog-card { border-radius: 14px; }
    .blog-card-body { padding: 16px; }
    .blog-card-title { font-size: 16px; }
    .blog-card-desc { font-size: 13px; }

    /* --- Portfolio Filters --- */
    .portfolio-filters { gap: 6px; flex-wrap: wrap; justify-content: center; }
    .filter-btn { padding: 6px 14px; font-size: 12px; }

    /* --- Page Hero (sub-pages) --- */
    .page-hero { min-height: 200px; padding: 80px 20px 40px; }
    .page-hero .section-title { font-size: clamp(24px, 7vw, 32px); }
    .page-hero .section-desc { font-size: 14px; }
}

/* Horizontal scroll animation for mobile AI carousel */
@keyframes scroll-horizontal-mobile {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 8px)); }
}

/* Extra small phones (under 360px like iPhone SE) */
@media (max-width: 360px) {
    .hero-title { font-size: 24px; }
    .section-title { font-size: 22px; }
    .reality-card h2,
    .standard-card h2 { font-size: 20px; }
    .stat-number { font-size: 28px; }
    .about-stats { max-width: 240px; }
    .service-card { min-height: 180px; }
    .pf-card { min-height: 240px; }
}
