/*
Theme Name: 프리미엄 탐정 테마
Theme URI: https://www.example.com/
Author: Professional Detective Agency
Author URI: https://www.example.com/
Description: 최신 디자인과 SEO 최적화된 프리미엄 탐정사무소 워드프레스 테마. 네이버 검색 최적화, 현대적 디자인, 합법적 탐정업 홍보 전문.
Version: 3.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: detective-theme
Tags: business, professional, detective, modern, responsive, premium
*/

/* ===========================
   CSS Reset & Base Styles
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Premium Blue/Purple Palette */
    --primary-color: #0a0e27;
    --secondary-color: #1a1f3a;
    --accent-color: #2d3561;
    --highlight-color: #6366f1;
    --highlight-light: #818cf8;
    --highlight-dark: #4f46e5;
    --cyan-accent: #06b6d4;
    --purple-accent: #a855f7;
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --bg-dark: #050816;
    --bg-section: #0f172a;
    --bg-card: #1e293b;
    --border-color: rgba(99, 102, 241, 0.2);
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --gradient-secondary: linear-gradient(135deg, #06b6d4 0%, #6366f1 100%);

    /* Typography */
    --font-primary: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Noto Sans KR', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    --spacing-xxl: 6rem;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 40px rgba(99, 102, 241, 0.2);
    --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.4);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    overflow-x: hidden;
    width: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
    background: var(--bg-dark);
    overflow-x: hidden;
    width: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===========================
   Typography
   =========================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    letter-spacing: -0.02em;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--highlight-color);
    font-weight: 600;
}

p {
    margin-bottom: var(--spacing-sm);
    line-height: 1.8;
}

a {
    color: var(--highlight-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--highlight-light);
}

/* Gradient Text */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===========================
   Container & Layout
   =========================== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-xxl) 0;
    position: relative;
    overflow: hidden;
}

.hero-section+.section {
    padding-top: var(--spacing-xl);
    /* Reduce top gap after full-screen hero */
}

.section-dark {
    background: var(--bg-section);
}

.section-darker {
    background: linear-gradient(180deg, var(--bg-section) 0%, var(--bg-dark) 100%);
}

/* Decorative Elements */
.section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* ===========================
   Header Styles
   =========================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-normal);
}

.site-header.scrolled {
    background: rgba(10, 14, 39, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem var(--spacing-md);
    max-width: 1400px;
    margin: 0 auto;
}

.site-logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
}

.main-navigation a {
    color: var(--text-secondary);
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    position: relative;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-normal);
}

.main-navigation a:hover {
    color: var(--text-primary);
}

.main-navigation a:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===========================
   Hero Section - Modern Style
   =========================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    /* Make children fill height */
    justify-content: center;
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

/* Animated Background Elements */
.hero-section::before,
.hero-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
    filter: blur(60px);
    animation: float 20s ease-in-out infinite;
}

.hero-section::before {
    width: 400px;
    height: 400px;
    background: rgba(99, 102, 241, 0.3);
    top: 10%;
    left: -100px;
}

.hero-section::after {
    width: 500px;
    height: 500px;
    background: rgba(168, 85, 247, 0.2);
    bottom: 10%;
    right: -150px;
    animation-delay: -10s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) translateX(0);
    }

    50% {
        transform: translateY(-30px) translateX(30px);
    }
}

.hero-slider {
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #000;
}

.hero-track {
    display: flex;
    transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide {
    flex: 0 0 100%;
    min-height: 100vh;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(10, 10, 15, 0.3) 0%,
            rgba(10, 10, 15, 0.6) 50%,
            rgba(10, 10, 15, 0.85) 100%);
    z-index: 1;
}

.hero-slide-1 {
    background-image: url('images/hero1.jpg');
}

.hero-slide-2 {
    background-image: url('images/hero2.jpg');
}

.hero-slide-3 {
    background-image: url('images/hero3.png');
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
    padding: 120px var(--spacing-md) 60px;
    /* Reduced padding and adjusted for header */
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s ease-out 0.3s;
}

.hero-slide.active .hero-content {
    transform: translateY(0);
    opacity: 1;
}

.hero-title {
    margin-bottom: var(--spacing-lg);
    line-height: 1.1;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    line-height: 1.8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    background: var(--gradient-primary);
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.hero-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition-slow);
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
}

.hero-cta:hover::before {
    left: 100%;
}

/* Slider Navigation */
.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(99, 102, 241, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 1rem 1.25rem;
    z-index: 100;
    transition: var(--transition-normal);
    border-radius: var(--radius-md);
}

.slider-prev {
    left: 2rem;
}

.slider-next {
    right: 2rem;
}

.slider-prev:hover,
.slider-next:hover {
    background: var(--gradient-primary);
    border-color: var(--highlight-color);
    transform: translateY(-50%) scale(1.05);
}

/* ===========================
   Section Headers
   =========================== */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-subtitle {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--highlight-color);
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
}

.section-header h2 {
    margin-bottom: var(--spacing-md);
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* ===========================
   Section Headers
   =========================== */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-subtitle {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--highlight-color);
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
}

.section-header h2 {
    margin-bottom: var(--spacing-md);
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* ===========================
   Certifications Slider Section
   =========================== */
.cert-slider-section {
    background: var(--bg-section);
}

.cert-slider {
    position: relative;
    max-width: 1240px;
    margin: 0 auto;
    overflow: hidden;
    padding: 2.5rem 0;
}

.cert-track-container {
    overflow: hidden;
    margin: 0 50px;
}

.cert-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 20px;
}

.cert-slide {
    flex: 0 0 calc(25% - 15px);
    /* 4 items */
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.cert-slide:hover {
    transform: translateY(-8px);
    border-color: var(--highlight-color);
    box-shadow: var(--shadow-lg);
}

.cert-slide img {
    width: 100%;
    height: 280px;
    object-fit: contain;
    padding: 20px;
    display: block;
}

.cert-prev,
.cert-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(99, 102, 241, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    transition: var(--transition-normal);
    font-size: 1rem;
}

.cert-prev {
    left: 0;
}

.cert-next {
    right: 0;
}

.cert-prev:hover,
.cert-next:hover {
    background: var(--gradient-primary);
    border-color: var(--highlight-color);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

@media (max-width: 1100px) {
    .cert-slide {
        flex: 0 0 calc(33.333% - 14px);
        /* 3 items */
    }
}

@media (max-width: 768px) {
    .cert-slide {
        flex: 0 0 calc(50% - 10px);
        /* 2 items */
    }

    .cert-track-container {
        margin: 0 40px;
    }
}

@media (max-width: 480px) {
    .cert-slide {
        flex: 0 0 100%;
        /* 1 item */
    }
}

/* ===========================
   National Branches Section
   =========================== */
.branches-section {
    padding-top: var(--spacing-xl);
}

.branch-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 2rem;
}

.branch-card {
    background: rgba(45, 45, 55, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px 15px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.branch-card:hover {
    background: var(--gradient-primary);
    transform: translateY(-5px);
    border-color: var(--highlight-color);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.branch-name {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.branch-tel {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 700;
}

.branch-card:hover .branch-name,
.branch-card:hover .branch-tel {
    color: #fff;
}

@media (max-width: 1024px) {
    .branch-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .branch-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .branch-card {
        padding: 15px 10px;
        min-height: 90px;
    }
}

@media (max-width: 480px) {
    .branch-grid {
        gap: 10px;
    }

    .branch-name {
        font-size: 0.9rem;
    }

    .branch-tel {
        font-size: 0.95rem;
    }
}

/* ===========================
   About Section
   =========================== */
.about-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
}

.about-card {
    background: var(--bg-card);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-normal);
}

.about-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--highlight-color);
}

.about-card:hover::before {
    transform: scaleX(1);
}

.about-card h4 {
    color: var(--highlight-color);
    margin-bottom: var(--spacing-md);
}

.about-card ul {
    list-style: none;
    padding-left: 0;
}

.about-card li {
    padding: var(--spacing-xs) 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-secondary);
}

.about-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--cyan-accent);
    font-weight: bold;
    font-size: 1.25rem;
}

/* ===========================
   Services Section - Card Grid
   =========================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.service-card {
    background: var(--bg-card);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: var(--transition-normal);
    position: relative;
    cursor: pointer;
}

.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 2px;
    background: var(--gradient-primary);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::after {
    opacity: 1;
}

.service-card h4 {
    color: var(--highlight-light);
    margin-bottom: var(--spacing-sm);
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===========================
   CTA Sections - Modern
   =========================== */
.cta-middle-section,
.cta-bottom-section {
    background:
        linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(168, 85, 247, 0.2) 100%),
        linear-gradient(rgba(5, 8, 22, 0.85), rgba(5, 8, 22, 0.85)),
        url('images/cta-background.jpg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.cta-banner-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.cta-banner-content h2 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-md);
}

.cta-banner-content p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    font-size: 1.25rem;
    line-height: 1.8;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    background: var(--gradient-primary);
    color: var(--text-primary);
    font-weight: 600;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
    transition: var(--transition-normal);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
}

/* ===========================
   Features Grid
   =========================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
}

.feature-item {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(31, 41, 55, 0.8) 100%);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: var(--transition-normal);
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--highlight-color);
}

.feature-item h5 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-md);
}

.feature-item ul {
    list-style: none;
    padding-left: 0;
}

.feature-item li {
    padding: var(--spacing-xs) 0;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* ===========================
   Process Section - Timeline
   =========================== */
.process-section-with-bg {
    background:
        linear-gradient(rgba(5, 8, 22, 0.9), rgba(5, 8, 22, 0.9)),
        url('images/process-bg.jpg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.process-step {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(168, 85, 247, 0.05) 100%);
    backdrop-filter: blur(10px);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    text-align: center;
    position: relative;
    transition: var(--transition-normal);
}

.process-step::before {
    content: attr(data-step);
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.process-step:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--highlight-color);
}

.process-step h4 {
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    color: var(--highlight-light);
}

/* ===========================
   Certifications Grid
   =========================== */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--spacing-lg);
}

.cert-card {
    background: var(--bg-card);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition-normal);
}

.cert-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--highlight-color);
}

.cert-icon {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-md);
    filter: grayscale(30%);
}

.cert-card h4 {
    color: var(--highlight-light);
    margin-bottom: var(--spacing-sm);
}

/* ===========================
   Testimonials
   =========================== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
}

.testimonial-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(31, 41, 55, 0.6) 100%);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: var(--transition-normal);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 4rem;
    color: var(--highlight-color);
    opacity: 0.2;
    font-family: Georgia, serif;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.testimonial-text {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    color: var(--highlight-light);
    font-weight: 600;
}

/* ===========================
   FAQ Section
   =========================== */
.faq-flex-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-xl);
}

.faq-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.faq-item {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition-normal);
}

.faq-question {
    padding: var(--spacing-md);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.faq-question:hover {
    background: rgba(99, 102, 241, 0.1);
}

.faq-toggle {
    transition: var(--transition-normal);
    color: var(--highlight-color);
    font-size: 1.25rem;
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer {
    max-height: 600px;
}

.faq-answer-content {
    padding: 0 var(--spacing-md) var(--spacing-md);
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ===========================
   Footer Styles
   =========================== */
.site-footer {
    background: var(--bg-section);
    padding: var(--spacing-xl) 0 var(--spacing-md);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-section h3 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-md);
}

.footer-nav {
    list-style: none;
    padding-left: 0;
}

.footer-nav li {
    margin-bottom: var(--spacing-xs);
}

.footer-nav a {
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.footer-nav a:hover {
    color: var(--highlight-light);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ===========================
   Floating Contact Buttons
   =========================== */
.floating-contact {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 999;
}

.floating-btn {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transition: var(--transition-normal);
    position: relative;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.8);
    /* 흰색 테두리 추가 */
    animation: floating-pulse 2s infinite ease-in-out;
    /* 펄스 애니메이션 */
    color: #ffffff;
    /* 아이콘 색상을 흰색으로 고정 */
}

@keyframes floating-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    }
}

.floating-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    border-color: #ffffff;
    animation: none;
    /* 호버 시 애니메이션 중지 */
}

.floating-btn.phone {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

.floating-btn.sms {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

.floating-btn.kakao {
    background: #fee500;
    color: #000000;
    font-size: 1.5rem;
    box-shadow: 0 0 15px rgba(254, 229, 0, 0.4);
    border-color: rgba(0, 0, 0, 0.1);
    /* 카카오는 밝으므로 어두운 테두리 */
}

.floating-btn.telegram {
    background: linear-gradient(135deg, #0088cc, #00aced);
    box-shadow: 0 0 15px rgba(0, 136, 204, 0.4);
}

.floating-btn .tooltip {
    position: absolute;
    right: 75px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-fast);
    font-size: 0.875rem;
}

.floating-btn:hover .tooltip {
    opacity: 1;
}

/* ===========================
   Scroll Reveal Animation
   =========================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .main-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 14, 39, 0.98);
        backdrop-filter: blur(12px);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border-bottom: 1px solid var(--border-color);
    }

    .main-navigation.active {
        max-height: 500px;
    }

    .main-navigation ul {
        flex-direction: column;
        padding: var(--spacing-md);
    }

    .container {
        padding: 0 var(--spacing-sm);
    }

    .about-grid,
    .services-grid,
    .features-grid,
    .cert-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .about-card,
    .service-card,
    .feature-item,
    .testimonial-card {
        padding: var(--spacing-md);
    }

    .faq-flex-container {
        grid-template-columns: 1fr;
    }

    .faq-image {
        display: none;
    }

    .slider-prev,
    .slider-next {
        padding: 0.6rem 0.8rem;
        font-size: 1.1rem;
        background: rgba(10, 14, 39, 0.4);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .slider-prev {
        left: 0.5rem;
    }

    .slider-next {
        right: 0.5rem;
    }

    /* Hero Section Mobile Adjustments */
    .hero-content {
        padding: 120px 2.5rem 80px;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .hero-title {
        font-size: clamp(1.6rem, 7.5vw, 2.4rem) !important;
        margin-bottom: var(--spacing-md);
        word-break: keep-all;
        text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
        line-height: 1.25;
        letter-spacing: -0.01em;
    }

    .hero-description {
        font-size: 0.9rem;
        margin-bottom: var(--spacing-xl);
        line-height: 1.7;
        padding: 0 0.5rem;
        word-break: keep-all;
        opacity: 0.85;
        max-width: 320px;
        /* Keep description narrow on mobile for better balance */
    }

    .hero-cta {
        padding: 0.9rem 2rem;
        font-size: 1rem;
        width: auto;
        min-width: 200px;
        justify-content: center;
    }

    .floating-contact {
        bottom: 1.5rem;
        right: 1.5rem;
        gap: 0.75rem;
    }

    .floating-btn {
        width: 55px;
        height: 55px;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }
}