/**
 * Earth 프로젝트 메인 스타일 V2
 * BizVision 스타일 기반 - 중국 전통 색상 테마 (차이나 레드 & 골드)
 */

/* Import local fonts (for China hosting) */
@import url('fonts.css');

/* ==========================================================================
   Base Styles V2
   ========================================================================== */
:root {
    --primary-color: #C8102E;      /* 차이나 레드 */
    --primary-light: #E63946;      /* 라이트 레드 */
    --secondary-color: #D4AF37;    /* 골드 (더 밝게) */
    --secondary-dark: #B8860B;     /* 다크 골드 */
    --gold-color: #FFD700;         /* 골드 */
    --gold-light: #FFE55C;         /* 라이트 골드 */
    --dark-red: #8B0000;           /* 다크 레드 */
    --dark-color: #1a1a1a;         /* 더 진한 다크 */
    --light-color: #FFF8DC;        /* 코른실크 (따뜻한 느낌) */
    --light-bg: #FAFAFA;           /* 라이트 배경 */
    --text-color: #2c3e50;         /* 더 진한 텍스트 */
    --text-light: #6c757d;         /* 라이트 텍스트 */
    --border-color: #E8E8E8;       /* 보더 색상 */
    --border-gold: #F4E4C1;        /* 골드 보더 */
    --success-color: #10b981;
    --danger-color: #C8102E;
    --warning-color: #FFD700;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
    --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.2);
    --shadow-red: 0 4px 20px rgba(200, 16, 46, 0.2);
}

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

html {
    height: 100%;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
    color: var(--text-color);
    line-height: 1.7;
    font-size: 16px;
    background-color: #fff;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

body > header,
body > div > header {
    flex-shrink: 0;
}

body > section:not(.hero):not(.hero-compact),
body > main,
body > div > section:not(.hero):not(.hero-compact),
body > div > main {
    flex: 1 0 auto;
}

body > section.hero,
body > div > section.hero {
    flex-shrink: 0;
}

body > footer,
body > div > footer {
    flex-shrink: 0;
    margin-top: auto;
}

/* Page wrapper for pages with div wrapper */
body > div[id] {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Page wrapper for pages with div wrapper */
body > div[id] {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   Header & Navigation V2
   ========================================================================== */
.header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

.header.transparent {
    background: transparent;
    box-shadow: none;
}

.navbar {
    padding: 1.2rem 0;
    transition: padding 0.3s ease;
}

.header.scrolled .navbar {
    padding: 0.8rem 0;
}

.navbar-brand {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dark-color) !important;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    margin: 0 0.2rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0.3rem;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: transform 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
    background: rgba(200, 16, 46, 0.05);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

.btn-login {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.6rem 1.8rem;
    border-radius: 30px;
    margin-left: 1rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-login:hover {
    color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-red);
}

.btn-login:hover::before {
    left: 0;
}

/* ==========================================================================
   Hero Section V2
   ========================================================================== */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    margin-top: 70px;
    display: flex;
    align-items: center;
    overflow: hidden;
    z-index: 1;
    transform: none !important;
    flex-shrink: 0;
}

/* Compact hero for board pages */
.hero-compact {
    height: auto;
    min-height: auto;
    padding: 80px 0 40px;
    background: linear-gradient(135deg, rgba(200, 16, 46, 0.1) 0%, rgba(212, 175, 55, 0.05) 100%);
}

.hero-compact .container {
    position: relative;
    z-index: 3;
}

.hero-compact h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.hero-compact p {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 0;
}

.hero-background-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: translateX(100%);
    transition: transform 1s ease-in-out;
    background-attachment: fixed;
}

.hero-slide.active {
    transform: translateX(0);
    z-index: 2;
}

.hero-slide.prev {
    transform: translateX(-100%);
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 2;
}

.hero .container {
    position: relative;
    z-index: 3;
    height: 100%;
}

.hero .row {
    height: 100%;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 215, 0, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(200, 16, 46, 0.15) 0%, transparent 50%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.08)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,112C1248,107,1344,117,1392,122.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 1;
    animation: heroBackground 20s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, transparent 100%);
    pointer-events: none;
}

@keyframes heroBackground {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.95; }
}

.hero-content {
    position: relative;
    z-index: 3;
    color: #fff;
    padding: 2rem;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
    letter-spacing: -0.5px;
    color: #fff;
    white-space: nowrap;
    width: fit-content;
}

.hero-content .lead {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.8;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    color: #fff;
}

.hero-buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-hero-primary,
.btn-hero-secondary {
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex: 0 0 auto;
    white-space: nowrap;
    border: 2px solid transparent;
}

.btn-hero-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-red));
    color: #fff;
    box-shadow: 0 4px 15px rgba(200, 16, 46, 0.4);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(200, 16, 46, 0.6);
    color: #fff;
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    animation: bounce 2s infinite;
}

.scroll-down {
    color: #fff;
    font-size: 2rem;
    opacity: 0.8;
    transition: all 0.3s ease;
    display: block;
    text-decoration: none;
}

.scroll-down:hover {
    opacity: 1;
    transform: translateY(5px);
    color: var(--gold-color);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 5px;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background: var(--dark-red) !important;
    color: #fff !important;
    border-color: var(--dark-red) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(200, 16, 46, 0.4);
}

/* Bootstrap button overrides */
.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active,
.show > .btn-primary.dropdown-toggle {
    background: var(--dark-red) !important;
    border-color: var(--dark-red) !important;
    color: #fff !important;
}

/* Light variant for use on colored backgrounds */
.btn-primary-light {
    background: #fff;
    color: var(--primary-color);
    padding: 1rem 2.8rem;
    border-radius: 30px;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
    transition: left 0.4s ease;
    z-index: -1;
}

.btn-primary-light:hover,
.btn-primary-light:focus,
.btn-primary-light:active {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-primary-light:hover::before {
    left: 0;
}

.btn-secondary {
    background: #6c757d;
    color: #fff;
    padding: 0.75rem 2rem;
    border-radius: 5px;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #5a6268;
    color: #fff;
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--primary-color);
    color: #fff;
    padding: 0.75rem 2rem;
    border-radius: 5px;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background: var(--dark-red);
    color: #fff;
    transform: translateY(-2px);
}

/* ==========================================================================
   Sections V2
   ========================================================================== */
.section {
    padding: 100px 0;
    position: relative;
    z-index: 2;
    /* Hero 섹션과의 겹침 방지 */
    clear: both;
}

.section.bg-light {
    background: var(--light-bg);
}

.section-title {
    text-align: center;
    margin-bottom: 70px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-title h2 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 1.2rem;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.section-title p {
    font-size: 1.15rem;
    color: var(--text-light);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ==========================================================================
   Feature Cards V2
   ========================================================================== */
.feature-card {
    padding: 2.5rem;
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-gold);
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.8rem;
    color: #fff;
    font-size: 2.2rem;
    transition: all 0.4s ease;
    box-shadow: var(--shadow-gold);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-gold);
}

.feature-card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: var(--dark-color);
    transition: color 0.3s ease;
}

.feature-card:hover h3 {
    color: var(--primary-color);
}

.feature-card p {
    color: var(--text-color);
    line-height: 1.8;
    font-size: 1rem;
}

/* ==========================================================================
   Board List
   ========================================================================== */
.board-item {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.board-item:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.board-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-right: 0.5rem;
}

.board-badge.notice {
    background: #FFE5E5;
    color: #C8102E;
}

.board-badge.event {
    background: #FFF8DC;
    color: #B8860B;
}

.board-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-color);
    margin: 0.5rem 0;
}

.board-meta {
    color: #9ca3af;
    font-size: 0.875rem;
}

/* ==========================================================================
   Board Section Card (for homepage board list)
   ========================================================================== */
.board-section-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.board-section-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: var(--border-gold);
}

.board-section-header {
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 2px solid var(--light-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(200, 16, 46, 0.02) 0%, rgba(212, 175, 55, 0.02) 100%);
}

.board-section-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0;
    display: flex;
    align-items: center;
}

.board-section-header h3 i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.board-section-more {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.board-section-more:hover {
    color: var(--primary-color);
    transform: translateX(3px);
}

.board-section-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.board-loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
}

.board-loading i {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

.board-empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--text-light);
}

.board-empty-state i {
    display: block;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.board-list-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.board-list-item:last-child {
    border-bottom: none;
}

.board-list-item:hover {
    padding-left: 0.5rem;
}

.board-list-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s ease;
}

.board-list-link:hover {
    color: var(--primary-color);
}

.board-list-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    line-height: 1.5;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.board-list-link:hover .board-list-title {
    color: var(--primary-color);
}

.board-list-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.board-list-meta span {
    display: flex;
    align-items: center;
}

.board-list-meta i {
    font-size: 0.75rem;
    margin-right: 0.25rem;
}

/* Responsive adjustments for board section */
@media (max-width: 991px) {
    .board-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .board-section-more {
        align-self: flex-end;
    }
}

@media (max-width: 768px) {
    .board-section-card {
        margin-bottom: 1.5rem;
    }

    .board-section-header h3 {
        font-size: 1.2rem;
    }

    .board-list-title {
        font-size: 0.95rem;
    }

    .board-list-meta {
        font-size: 0.8rem;
    }
}

/* ==========================================================================
   Form Styles
   ========================================================================== */
.form-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 3rem;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.form-title {
    text-align: center;
    margin-bottom: 2rem;
}

.form-title h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    display: block;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.1);
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: linear-gradient(135deg, var(--dark-red), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(200, 16, 46, 0.4);
}

/* ==========================================================================
   Statistics Section V2
   ========================================================================== */
.statistics-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-red) 50%, var(--secondary-color) 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.statistics-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(200, 16, 46, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.statistics-section .section-title {
    position: relative;
    z-index: 1;
}

.statistics-section .section-title h2 {
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.statistics-section .section-title p {
    color: rgba(255, 255, 255, 0.9);
}

.statistics-section .section-title::after {
    background: linear-gradient(90deg, rgba(255,255,255,0.8), rgba(255,255,255,0.4));
}

.stat-item {
    padding: 3rem 1rem;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    background: linear-gradient(135deg, #fff, rgba(255,255,255,0.9));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 1.15rem;
    opacity: 0.95;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

/* ==========================================================================
   Value Proposition V2
   ========================================================================== */
.value-item {
    transition: transform 0.3s ease;
}

.value-item:hover {
    transform: translateX(10px);
}

.value-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.8rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-gold);
    transition: all 0.4s ease;
}

.value-item:hover .value-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: var(--shadow-lg);
}

.value-item h4 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: var(--dark-color);
    transition: color 0.3s ease;
}

.value-item:hover h4 {
    color: var(--primary-color);
}

.value-item p {
    color: var(--text-color);
    line-height: 1.8;
    font-size: 1rem;
}

/* ==========================================================================
   Skills Section V2
   ========================================================================== */
.skill-item {
    padding: 2rem 1.5rem;
    background: #fff;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--dark-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.skill-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    transform: scaleY(0);
    transition: transform 0.4s ease;
}

.skill-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-gold);
}

.skill-item:hover::before {
    transform: scaleY(1);
}

.skill-item i {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-right: 1rem;
    transition: all 0.3s ease;
}

.skill-item:hover i {
    transform: scale(1.2);
    color: var(--secondary-color);
}

/* ==========================================================================
   Parallax Section V2
   ========================================================================== */
.parallax-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-red) 50%, var(--secondary-color) 100%);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.parallax-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(200, 16, 46, 0.15) 0%, transparent 50%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.08)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,112C1248,107,1344,117,1392,122.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat center;
    background-size: cover;
    pointer-events: none;
    animation: parallaxBackground 25s ease-in-out infinite;
}

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

.parallax-section h2,
.parallax-section p {
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   Clients Section
   ========================================================================== */
.client-logo {
    padding: 1.5rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    transition: all 0.3s ease;
}

.client-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.client-logo img {
    max-height: 60px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.client-logo:hover img {
    opacity: 1;
}

/* ==========================================================================
   Country Selector & Phone Input
   ========================================================================== */
.iti {
    width: 100%;
}

.iti__flag-container {
    border-radius: 8px 0 0 8px;
}

.iti__selected-flag {
    border-radius: 8px 0 0 8px;
    padding: 0 8px;
}

.iti input {
    border-radius: 0 8px 8px 0;
}

/* Custom Country Selector */
.custom-country-selector {
    position: relative;
    width: 100%;
}

.country-selector-selected {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 48px;
}

.country-selector-selected:hover {
    border-color: var(--primary-color);
}

.country-selector-selected .iti__flag {
    margin-right: 8px;
}

.country-selector-selected .country-name {
    flex: 1;
}

.country-selector-arrow {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #555;
    margin-left: auto;
}

.country-selector-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    z-index: 1000;
    display: none;
    max-height: 300px;
    overflow: hidden;
}

.country-selector-dropdown.open {
    display: flex;
    flex-direction: column;
}

.country-selector-search {
    padding: 10px 12px;
    border: none;
    border-bottom: 1px solid #ccc;
    border-radius: 8px 8px 0 0;
    outline: none;
    font-size: 0.95rem;
}

.country-selector-search:focus {
    border-bottom-color: var(--primary-color);
}

.country-selector-list {
    overflow-y: auto;
    max-height: 250px;
}

.country-selector-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.country-selector-item:hover {
    background-color: rgba(200, 16, 46, 0.1);
}

.country-selector-item .iti__flag {
    flex-shrink: 0;
}

.country-selector-item .country-name {
    flex: 1;
}

/* Improve intl-tel-input country dropdown styling */
.iti__country-list {
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    max-height: 250px;
}

.iti__country {
    padding: 8px 12px;
    transition: background-color 0.2s ease;
}

.iti__country:hover {
    background-color: rgba(200, 16, 46, 0.1);
}

.iti__selected-flag:hover,
.iti__selected-flag:focus {
    background-color: rgba(200, 16, 46, 0.05);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: var(--dark-color);
    color: #fff;
    padding: 60px 0 30px;
    margin-top: auto;
    width: 100%;
}

.footer h5 {
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 0.75rem;
}

.footer a {
    color: #d1d5db;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 3rem;
    padding-top: 2rem;
    text-align: center;
    color: #9ca3af;
}

/* ==========================================================================
   Loading Spinner
   ========================================================================== */
#loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   Board Search Section
   ========================================================================== */
/* Search input and button 고정 높이 및 정렬 */
#searchKeyword {
    height: 56px;
    padding: 1rem 1.5rem;
}

#searchBtn {
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding: 0.75rem 1rem;
}

#searchBtn i {
    margin-right: 0.5rem;
}

/* 작은 화면에서는 Search 텍스트 숨기고 아이콘만 표시 */
@media (max-width: 991px) and (min-width: 769px) {
    #searchBtn {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }

    #searchBtn i {
        margin-right: 0.3rem;
    }
}

@media (max-width: 768px) {
    /* 모바일에서는 버튼이 전체 너비로 표시되므로 텍스트 유지 */
    #searchKeyword,
    #searchBtn {
        height: 56px;
    }

    .hero-compact {
        padding: 60px 0 30px;
    }

    .hero-compact h1 {
        font-size: 1.6rem;
    }

    .hero-compact p {
        font-size: 0.9rem;
    }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
    .hero {
        height: 100vh;
        min-height: 600px;
    }

    .hero-overlay {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%);
    }

    .hero-content {
        text-align: center;
        padding: 1rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content .lead {
        font-size: 1.1rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        white-space: normal;
        width: 100%;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        max-width: 300px;
        min-width: auto;
    }
}

    .section {
        padding: 60px 0;
    }

    .section-title {
        margin-bottom: 50px;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .section-title p {
        font-size: 1rem;
    }

    .feature-card {
        padding: 1.8rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .form-container {
        padding: 2rem 1.5rem;
    }

    .navbar-brand {
        font-size: 1.3rem;
    }
}

/* ==========================================================================
   Custom Alert & Notification
   ========================================================================== */
#custom-alert-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

.custom-alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-left: 4px solid;
    min-width: 300px;
    transition: all 0.3s ease;
}

.custom-alert-enter {
    opacity: 0;
    transform: translateX(100%);
}

.custom-alert-exit {
    opacity: 0;
    transform: translateX(100%);
}

.custom-alert-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.custom-alert-content i {
    font-size: 1.25rem;
}

.custom-alert-message {
    font-size: 0.95rem;
    color: #374151;
}

.custom-alert-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7280;
    font-size: 1rem;
    padding: 0;
    margin-left: 12px;
    transition: color 0.2s ease;
}

.custom-alert-close:hover {
    color: #374151;
}

/* Alert Types */
.custom-alert-success {
    border-left-color: var(--success-color);
}

.custom-alert-success .custom-alert-content i {
    color: var(--success-color);
}

.custom-alert-error {
    border-left-color: var(--danger-color);
}

.custom-alert-error .custom-alert-content i {
    color: var(--danger-color);
}

.custom-alert-warning {
    border-left-color: var(--warning-color);
}

.custom-alert-warning .custom-alert-content i {
    color: var(--warning-color);
}

.custom-alert-info {
    border-left-color: #3b82f6;
}

.custom-alert-info .custom-alert-content i {
    color: #3b82f6;
}

/* Confirmation Dialog */
.custom-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-alert-overlay.show {
    opacity: 1;
}

.custom-alert-dialog {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.custom-alert-overlay.show .custom-alert-dialog {
    transform: scale(1);
}

.custom-alert-dialog-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-red) 100%);
    color: #fff;
}

.custom-alert-dialog-header i {
    font-size: 1.5rem;
}

.custom-alert-dialog-header h4 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.custom-alert-dialog-body {
    padding: 2rem 1.5rem;
}

.custom-alert-dialog-body p {
    margin: 0;
    color: #374151;
    font-size: 1rem;
    line-height: 1.6;
}

.custom-alert-dialog-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

.custom-alert-dialog-footer .btn {
    min-width: 80px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #custom-alert-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: 100%;
    }

    .custom-alert {
        min-width: auto;
    }

    .custom-alert-dialog {
        width: 95%;
    }
}

/* ==========================================================================
   Error Pages
   ========================================================================== */
.error-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 100px 0 80px;
    background: linear-gradient(135deg, rgba(200, 16, 46, 0.03) 0%, rgba(184, 134, 11, 0.03) 100%);
}

.error-content {
    padding: 40px 20px;
}

.error-code {
    font-size: 10rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 10px 30px rgba(200, 16, 46, 0.2);
}

.error-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
}

.error-message {
    font-size: 1.15rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

.error-actions {
    margin: 3rem 0;
}

.error-actions .btn {
    padding: 0.875rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.error-actions .btn-primary {
    box-shadow: 0 4px 15px rgba(200, 16, 46, 0.3);
}

.error-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 16, 46, 0.4);
}

.error-actions .btn-secondary {
    background: #6b7280;
    border-color: #6b7280;
}

.error-actions .btn-secondary:hover {
    background: #4b5563;
    border-color: #4b5563;
    transform: translateY(-2px);
}

.error-search {
    max-width: 500px;
    margin: 0 auto;
}

.error-search p {
    font-size: 1rem;
    color: #6b7280;
    font-weight: 500;
}

.error-search .input-group {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.error-search .form-control {
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
}

.error-search .form-control:focus {
    box-shadow: none;
}

.error-search .btn {
    padding: 0 2rem;
    border: none;
}

.error-help {
    margin-top: 3rem;
}

.error-help p {
    font-size: 0.95rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .error-code {
        font-size: 6rem;
    }

    .error-title {
        font-size: 1.75rem;
    }

    .error-message {
        font-size: 1rem;
    }

    .error-actions .btn {
        width: 100%;
        margin-bottom: 0.75rem;
    }

    .error-actions .btn.me-3 {
        margin-right: 0 !important;
    }
}

/* ==========================================================================
   Animations
   ========================================================================== */

/* ==========================================================================
   Animations V2 - Enhanced
   ========================================================================== */

/* Hero Section Animation - Sequential with enhanced effects */
/* 기본적으로 보이게 설정 (no-js fallback) */
.hero-content h1,
.hero-content .lead,
.hero-content .hero-buttons {
    opacity: 1;
    transform: translateX(0);
}

/* JavaScript가 로드되면 초기 상태를 숨김 */
.js-loaded .hero-content:not(.animate-slide-up) h1,
.js-loaded .hero-content:not(.animate-slide-up) .lead,
.js-loaded .hero-content:not(.animate-slide-up) .hero-buttons {
    opacity: 0;
    transform: translateX(-50px);
}

.hero-content.animate-slide-up h1 {
    animation: slideLeftFadeIn 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 0.2s;
}

.hero-content.animate-slide-up .lead {
    animation: slideLeftFadeIn 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 0.5s;
}

.hero-content.animate-slide-up .hero-buttons {
    animation: slideLeftFadeIn 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 0.8s;
}

@keyframes slideLeftFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideUpFadeIn {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Fade in animation for sections - 기본적으로 보이게 설정 (no-js fallback) */
.fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* JavaScript가 로드되면 초기 상태를 숨김 */
.js-loaded .fade-in:not(.visible) {
    opacity: 0;
    transform: translateY(30px);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Slide in from left */
.slide-in-left {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.js-loaded .slide-in-left:not(.visible) {
    opacity: 0;
    transform: translateX(-50px);
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Slide in from right */
.slide-in-right {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.js-loaded .slide-in-right:not(.visible) {
    opacity: 0;
    transform: translateX(50px);
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Scale in animation */
.scale-in {
    opacity: 1;
    transform: scale(1);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.js-loaded .scale-in:not(.visible) {
    opacity: 0;
    transform: scale(0.9);
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Feature cards stagger animation - 기본적으로 보이게 설정 */
.feature-card {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.js-loaded .feature-card:not(.visible) {
    opacity: 0;
    transform: translateY(30px);
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:nth-child(1) { transition-delay: 0.1s; }
.feature-card:nth-child(2) { transition-delay: 0.2s; }
.feature-card:nth-child(3) { transition-delay: 0.3s; }
.feature-card:nth-child(4) { transition-delay: 0.4s; }
.feature-card:nth-child(5) { transition-delay: 0.5s; }
.feature-card:nth-child(6) { transition-delay: 0.6s; }

/* Statistics Section Animation */
.statistics-section {
    opacity: 1;
    transition: opacity 0.5s ease;
}

.stat-number {
    transition: all 0.3s ease;
}

/* Smooth number transition during counter animation */
.stat-number.counting {
    color: rgba(255, 255, 255, 0.9);
}

/* Partners Section - Rolling Animation */
.partners-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 20px 0;
}

.partners-track {
    display: flex;
    gap: 40px;
    align-items: center;
}

.partners-track.rolling {
    animation: scroll-left 15s linear infinite;
}

.partner-logo-item {
    flex-shrink: 0;
    width: 150px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-logo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.partner-logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Rolling animation */
@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Pause animation on hover */
.partners-container:hover .partners-track.rolling {
    animation-play-state: paused;
}

/* ==========================================================================
   Scroll to Top Button (PC only)
   ========================================================================== */
.scroll-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--dark-red));
    color: #fff;
    border: none;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
}

.scroll-to-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top-btn:hover {
    background: linear-gradient(135deg, var(--dark-red), var(--primary-color));
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(200, 16, 46, 0.5);
}

.scroll-to-top-btn:active {
    transform: translateY(-2px);
}

.scroll-to-top-btn i {
    transition: transform 0.3s ease;
}

.scroll-to-top-btn:hover i {
    transform: translateY(-2px);
}

/* Hide on mobile devices */
@media (max-width: 991px) {
    .scroll-to-top-btn {
        display: none !important;
    }
}

/* ==========================================================================
   Custom Cursor Effect (PC only) - Following effect only
   ========================================================================== */
.cursor-follower {
    position: fixed;
    width: 50px;
    height: 50px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    background: rgba(200, 16, 46, 0.05);
    backdrop-filter: blur(2px);
}

.cursor-follower.active {
    opacity: 0.7;
}

.cursor-follower.hover {
    width: 70px;
    height: 70px;
    border-color: var(--secondary-color);
    background: rgba(212, 175, 55, 0.1);
    border-width: 3px;
}

.cursor-dot {
    position: fixed;
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease, height 0.2s ease, background 0.2s ease, opacity 0.2s ease;
    opacity: 0;
    box-shadow: 0 0 10px rgba(200, 16, 46, 0.5);
}

.cursor-dot.active {
    opacity: 0.8;
}

.cursor-dot.hover {
    width: 14px;
    height: 14px;
    background: var(--secondary-color);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
}

/* Hide cursor effect on mobile */
@media (max-width: 991px) {
    .cursor-follower,
    .cursor-dot {
        display: none !important;
    }
}
