/* ============================================
   NATUREFRACTAL - Light Theme
   AI & Software Development
   ============================================ */

/* ============================================
   PAGE TRANSITIONS
   ============================================ */
@view-transition {
    navigation: auto;
}

::view-transition-old(root) {
    animation: fade-out 0.15s ease-out forwards;
}

::view-transition-new(root) {
    animation: fade-in 0.2s ease-in forwards;
}

@keyframes fade-out {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    ::view-transition-old(root),
    ::view-transition-new(root) {
        animation: none;
    }
}

body {
    animation: page-enter 0.25s ease-out;
}

@keyframes page-enter {
    from { 
        opacity: 0;
        transform: translateY(8px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

body.page-exit {
    animation: page-leave 0.15s ease-in forwards;
}

@keyframes page-leave {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    /* Primary Colors - Light Theme */
    --primary: #ffffff;
    --primary-light: #f8fafc;
    --secondary: #1e293b;
    --accent: #0ea5e9;
    --accent-light: #38bdf8;
    --accent-dark: #0284c7;
    
    /* Background */
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --bg-dark: #0f172a;
    
    /* Text Colors */
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    
    /* Gray Scale */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    --gradient-accent: linear-gradient(135deg, #06b6d4 0%, #0ea5e9 50%, #8b5cf6 100%);
    --gradient-dark: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    
    /* Fonts */
    --font-display: 'Sora', 'Noto Sans KR', sans-serif;
    --font-body: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 30px rgba(14, 165, 233, 0.3);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Layout */
    --navbar-height: 53px;
}

/* ============================================
   BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition-base);
}

a:hover {
    color: var(--accent-dark);
}

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

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-200);
    height: var(--navbar-height);
    padding: 0;
    transition: var(--transition-base);
}

.navbar > .container {
    display: flex;
    align-items: center;
    height: 100%;
}

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

.navbar-brand {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand i {
    color: var(--accent);
    font-size: 1.75rem;
}

.nav-link {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-secondary) !important;
    padding: 0.5rem 1.25rem !important;
    position: relative;
    transition: var(--transition-base);
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent) !important;
}

@media (min-width: 992px) {
    .navbar .nav-link::before,
    .navbar .nav-link::after {
        position: absolute;
        opacity: 0;
        color: var(--accent);
        transition: var(--transition-base);
        font-weight: 400;
    }

    .navbar .nav-link::before {
        content: '[';
        left: 0.25rem;
    }

    .navbar .nav-link::after {
        content: ']';
        right: 0.25rem;
    }

    .navbar .nav-link:hover::before,
    .navbar .nav-link:hover::after,
    .navbar .nav-link.active::before,
    .navbar .nav-link.active::after {
        opacity: 1;
    }
}

/* Mobile Menu */
.navbar-toggler {
    border: 2px solid var(--accent) !important;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%230ea5e9' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

@media (max-width: 991.98px) {
    .navbar {
        position: relative;
    }
    
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        border-top: 1px solid var(--gray-200);
        z-index: 1000;
    }
    
    .navbar-nav {
        padding: 0.5rem 0;
        flex-direction: column !important;
        width: 100%;
    }
    
    .navbar-nav .nav-item {
        width: 100%;
        display: block;
    }
    
    .navbar-nav .nav-link {
        display: block !important;
        width: 100%;
        padding: 1rem 1.5rem !important;
        font-size: 1.05rem;
        color: var(--text-primary) !important;
        border-bottom: 1px solid var(--gray-100);
        white-space: normal;
    }
    
    .navbar-nav .nav-item:last-child .nav-link {
        border-bottom: none;
    }
    
    .navbar-nav .nav-link::before,
    .navbar-nav .nav-link::after {
        display: none !important;
        content: none !important;
    }
    
    .navbar-nav .nav-link:hover {
        background: var(--gray-50);
        color: var(--accent) !important;
    }
}

.btn-close {
    filter: none;
    opacity: 0.7;
}

.btn-close:hover {
    opacity: 1;
}

/* ============================================
   HERO SECTION - Index Page
   ============================================ */
.hero-section-enhanced {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: 6rem 0 4rem;
    overflow: hidden;
    background: linear-gradient(180deg, var(--bg-main) 0%, #e0f2fe 100%);
}

.hero-bg-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: rgba(14, 165, 233, 0.2);
    top: -100px;
    right: -100px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: rgba(6, 182, 212, 0.2);
    bottom: -50px;
    left: -50px;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: rgba(139, 92, 246, 0.15);
    top: 50%;
    left: 30%;
}

.shape-4 {
    width: 250px;
    height: 250px;
    background: rgba(14, 165, 233, 0.15);
    bottom: 20%;
    right: 20%;
}

.grid-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(14, 165, 233, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 165, 233, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* ============================================
   HERO SECTION - Subpages (Blueprint Style)
   ============================================ */
.hero-section {
    position: relative;
    padding: 5rem 0 4rem;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 50%, #f5f9ff 100%);
    overflow: hidden;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

/* Grid Pattern */
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(59, 130, 246, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.08) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

/* Decorative Elements Container */
.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        /* Top-right corner bracket */
        linear-gradient(to left, rgba(14, 165, 233, 0.3) 2px, transparent 2px) no-repeat calc(100% - 30px) 30px / 40px 2px,
        linear-gradient(to bottom, rgba(14, 165, 233, 0.3) 2px, transparent 2px) no-repeat calc(100% - 30px) 30px / 2px 40px,
        /* Bottom-left corner bracket */
        linear-gradient(to right, rgba(14, 165, 233, 0.3) 2px, transparent 2px) no-repeat 30px calc(100% - 30px) / 40px 2px,
        linear-gradient(to top, rgba(14, 165, 233, 0.3) 2px, transparent 2px) no-repeat 30px calc(100% - 30px) / 2px 40px,
        /* Accent circles */
        radial-gradient(circle at calc(100% - 120px) 50%, rgba(14, 165, 233, 0.06) 0%, rgba(14, 165, 233, 0.06) 80px, transparent 80px),
        radial-gradient(circle at calc(100% - 80px) 30%, rgba(59, 130, 246, 0.04) 0%, rgba(59, 130, 246, 0.04) 120px, transparent 120px),
        /* Horizontal accent lines */
        linear-gradient(to right, transparent 0%, rgba(14, 165, 233, 0.15) 10%, rgba(14, 165, 233, 0.15) 12%, transparent 12%) no-repeat 0 60% / 100% 1px,
        linear-gradient(to right, transparent 85%, rgba(14, 165, 233, 0.2) 90%, rgba(14, 165, 233, 0.2) 95%, transparent 100%) no-repeat 0 40% / 100% 1px;
    pointer-events: none;
}

/* Blueprint Decorative Dots */
.hero-section .container::before {
    content: '';
    position: absolute;
    top: 0;
    right: 60px;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.4;
    box-shadow: 
        0 20px 0 rgba(14, 165, 233, 0.3),
        0 40px 0 rgba(14, 165, 233, 0.2),
        -20px 10px 0 rgba(14, 165, 233, 0.15),
        -20px 30px 0 rgba(14, 165, 233, 0.1);
}

/* Coordinate marker style decoration */
.hero-section .container::after {
    content: '[ 0x00 ]';
    position: absolute;
    bottom: -10px;
    right: 40px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: rgba(14, 165, 233, 0.3);
    letter-spacing: 1px;
}

.hero-section h1 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    position: relative;
    display: inline-block;
}



/* Underline decoration for h1 */
.hero-section h1::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
    border-radius: 2px;
}

.hero-section .lead {
    color: var(--text-secondary);
    font-size: 1.1rem;
    position: relative;
    margin-top: 1rem;
    padding-left: 1rem;
    border-left: 2px solid rgba(14, 165, 233, 0.3);
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section .breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.hero-section .breadcrumb-item a {
    color: var(--accent);
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.2s;
}

.hero-section .breadcrumb-item a:hover {
    color: var(--accent-dark);
}

.hero-section .breadcrumb-item.active {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.hero-section .breadcrumb-item + .breadcrumb-item::before {
    content: '>';
    color: var(--gray-400);
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

/* Hero Tech Decorations Container */
.hero-tech-decorations {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

/* AI Neural Network Nodes */
.hero-neural-nodes {
    position: absolute;
    top: 20%;
    right: 5%;
    width: 180px;
    height: 120px;
}

.neural-node {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.4;
}

.neural-node:nth-child(1) { top: 0; left: 50%; }
.neural-node:nth-child(2) { top: 35%; left: 15%; }
.neural-node:nth-child(3) { top: 35%; left: 85%; }
.neural-node:nth-child(4) { top: 75%; left: 30%; }
.neural-node:nth-child(5) { top: 75%; left: 70%; }

.neural-node::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.3;
    animation: pulse-ring 2s ease-out infinite;
}

.neural-node:nth-child(2)::before { animation-delay: 0.3s; }
.neural-node:nth-child(3)::before { animation-delay: 0.6s; }
.neural-node:nth-child(4)::before { animation-delay: 0.9s; }
.neural-node:nth-child(5)::before { animation-delay: 1.2s; }

.neural-connection {
    position: absolute;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    height: 1px;
    opacity: 0.2;
    transform-origin: left center;
}

.neural-connection:nth-child(6) { top: 8px; left: calc(50% + 8px); width: 55px; transform: rotate(32deg); }
.neural-connection:nth-child(7) { top: 8px; left: calc(50% - 55px); width: 55px; transform: rotate(-32deg); }
.neural-connection:nth-child(8) { top: calc(35% + 8px); left: calc(15% + 8px); width: 45px; transform: rotate(35deg); }
.neural-connection:nth-child(9) { top: calc(35% + 8px); left: calc(85% - 45px); width: 45px; transform: rotate(-35deg); }

@keyframes pulse-ring {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}

.hero-anim-set {
    display: none;
    position: absolute;
    top: 50%;
    right: 3%;
    transform: translateY(-50%);
    width: 45%;
    height: 70%;
    pointer-events: none;
    opacity: 0.7;
    z-index: 0;
}

.hero-anim-set.active {
    display: block;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* ====== ANIMATION SET 1: Address Recognition Pipeline ====== */
.hero-address-pipeline {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.pipeline-stages {
    position: absolute;
    top: 5%;
    left: 3%;
    right: 3%;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pipeline-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    opacity: 0.2;
}

.pipeline-stage.active { opacity: 0.6; }

.stage-icon {
    width: 32px;
    height: 32px;
    border: 1px solid var(--accent);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: var(--accent);
    background: rgba(14, 165, 233, 0.05);
}

.stage-label {
    font-family: var(--font-mono);
    font-size: 0.5rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pipeline-arrow {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    opacity: 0.15;
    margin: 0 8px;
    position: relative;
    top: -8px;
}

.pipeline-arrow::after {
    content: '→';
    position: absolute;
    right: -4px;
    top: -8px;
    font-size: 0.7rem;
    color: var(--accent);
    opacity: 0.4;
}

.pipeline-flow {
    position: absolute;
    top: 35%;
    left: 3%;
    right: 3%;
    height: 55%;
}

.flow-track {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(14, 165, 233, 0.1);
    border-radius: 2px;
}

.flow-envelope {
    position: absolute;
    top: -20px;
    width: 50px;
    height: 35px;
    background: linear-gradient(135deg, #fff 0%, #f0f7ff 100%);
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.1);
    opacity: 0;
    animation: envelope-flow 10s ease-in-out infinite;
}

.flow-envelope::before {
    content: '서울시 강남구\\A테헤란로 152';
    white-space: pre;
    position: absolute;
    top: 6px;
    left: 5px;
    font-family: var(--font-mono);
    font-size: 0.4rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

.flow-envelope:nth-child(2) { animation-delay: 3.3s; }
.flow-envelope:nth-child(2)::before { content: '경기도 성남시\\A분당구 판교로'; }
.flow-envelope:nth-child(3) { animation-delay: 6.6s; }
.flow-envelope:nth-child(3)::before { content: '부산시 해운대\\A센텀중앙로 79'; }

.flow-scan {
    position: absolute;
    top: -22px;
    left: 12%;
    width: 60px;
    height: 40px;
    border: 2px dashed rgba(14, 165, 233, 0.4);
    border-radius: 4px;
    opacity: 0;
    animation: scan-pulse 10s ease-in-out infinite;
}

.flow-scan::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    animation: scan-line 0.8s ease-in-out infinite;
}

.flow-scan::after {
    content: 'OCR SCAN';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: 0.45rem;
    color: var(--accent);
    white-space: nowrap;
}

@keyframes scan-line {
    0%, 100% { top: 0; opacity: 0.5; }
    50% { top: calc(100% - 2px); opacity: 1; }
}

@keyframes scan-pulse {
    0%, 8% { opacity: 0; }
    10%, 22% { opacity: 0.8; }
    25%, 100% { opacity: 0; }
}

.flow-parsed {
    position: absolute;
    top: -28px;
    left: 35%;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.45rem;
    color: var(--accent);
    opacity: 0;
    animation: parsed-show 10s ease-in-out infinite;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.1);
}

.flow-parsed span {
    display: inline-block;
    background: rgba(14, 165, 233, 0.15);
    padding: 1px 3px;
    border-radius: 2px;
    margin: 0 1px;
}

@keyframes parsed-show {
    0%, 25% { opacity: 0; transform: translateY(5px); }
    30%, 55% { opacity: 0.9; transform: translateY(0); }
    60%, 100% { opacity: 0; transform: translateY(-5px); }
}

.flow-result {
    position: absolute;
    top: -18px;
    left: 60%;
    display: flex;
    gap: 4px;
    opacity: 0;
    animation: result-show 10s ease-in-out infinite;
}

.result-tag {
    padding: 3px 6px;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 3px;
    font-family: var(--font-mono);
    font-size: 0.4rem;
    color: rgba(34, 197, 94, 0.8);
}

@keyframes result-show {
    0%, 55% { opacity: 0; }
    60%, 80% { opacity: 0.9; }
    85%, 100% { opacity: 0; }
}

.sorter-slots {
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    height: 25px;
    display: flex;
    gap: 1px;
}

.sorter-slot {
    flex: 1;
    height: 100%;
    border: 1px solid rgba(14, 165, 233, 0.12);
    border-top: 2px solid rgba(14, 165, 233, 0.2);
    border-radius: 0 0 2px 2px;
    background: linear-gradient(180deg, rgba(14, 165, 233, 0.02) 0%, transparent 100%);
}

.sorter-slot:nth-child(5n) {
    border-color: rgba(14, 165, 233, 0.2);
    border-top-color: rgba(14, 165, 233, 0.35);
}

.sorted-doc {
    position: absolute;
    top: 50px;
    width: 10px;
    height: 14px;
    background: linear-gradient(180deg, rgba(14, 165, 233, 0.5), rgba(14, 165, 233, 0.25));
    border: 1px solid rgba(14, 165, 233, 0.4);
    border-radius: 1px;
    opacity: 0;
}

.sorted-doc:nth-child(1) { animation: sort-drop-1 10s ease-in-out infinite; }
.sorted-doc:nth-child(2) { animation: sort-drop-2 10s ease-in-out 3.3s infinite; }
.sorted-doc:nth-child(3) { animation: sort-drop-3 10s ease-in-out 6.6s infinite; }

@keyframes sort-drop-1 {
    0%, 78% { left: 80%; top: 8px; opacity: 0; }
    80% { left: 80%; top: 8px; opacity: 0.8; }
    85%, 100% { left: 80%; top: 55px; opacity: 0.5; }
}

@keyframes sort-drop-2 {
    0%, 78% { left: 50%; top: 8px; opacity: 0; }
    80% { left: 50%; top: 8px; opacity: 0.8; }
    85%, 100% { left: 50%; top: 55px; opacity: 0.5; }
}

@keyframes sort-drop-3 {
    0%, 78% { left: 20%; top: 8px; opacity: 0; }
    80% { left: 20%; top: 8px; opacity: 0.8; }
    85%, 100% { left: 20%; top: 55px; opacity: 0.5; }
}

@keyframes envelope-flow {
    0% { left: -5%; opacity: 0; }
    5% { left: 0%; opacity: 0.8; }
    20% { left: 12%; opacity: 0.8; }
    25% { left: 12%; opacity: 0.9; }
    45% { left: 35%; opacity: 0.9; }
    55% { left: 55%; opacity: 0.8; }
    70% { left: 75%; opacity: 0.6; }
    80% { left: 85%; opacity: 0.3; }
    85%, 100% { left: 90%; opacity: 0; }
}

/* ====== ANIMATION SET 2: Weight Scale Measurement ====== */
.hero-weight-scale {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.scale-device {
    position: absolute;
    left: 3%;
    top: 5%;
    width: 80px;
    height: 65px;
}

.scale-platform {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(180deg, rgba(14, 165, 233, 0.4), rgba(14, 165, 233, 0.2));
    border-radius: 2px;
    animation: scale-bounce 8s ease-in-out infinite;
}

@keyframes scale-bounce {
    0%, 15% { transform: translateY(0); }
    20%, 25% { transform: translateY(3px); }
    30%, 100% { transform: translateY(1px); }
}

.scale-pillar {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 25px;
    background: linear-gradient(180deg, rgba(14, 165, 233, 0.3), rgba(14, 165, 233, 0.5));
    border-radius: 2px;
}

.scale-display {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 65px;
    height: 32px;
    background: rgba(0, 20, 40, 0.9);
    border: 1px solid rgba(14, 165, 233, 0.4);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scale-value {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    color: #00ff88;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
    animation: weight-change 8s ease-in-out infinite;
}

.scale-value::after {
    content: ' kg';
    font-size: 0.45rem;
    opacity: 0.7;
}

@keyframes weight-change {
    0%, 10% { content: '0.000'; }
    20%, 30% { content: '25.847'; }
    35%, 100% { content: '25.847'; }
}

.scale-object {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 30px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.3), rgba(14, 165, 233, 0.15));
    border: 1px solid rgba(14, 165, 233, 0.4);
    border-radius: 3px;
    opacity: 0;
    animation: object-drop 8s ease-in-out infinite;
}

@keyframes object-drop {
    0%, 10% { opacity: 0; bottom: 60px; }
    15%, 20% { opacity: 0.8; bottom: 12px; }
    25%, 100% { opacity: 0.6; bottom: 12px; }
}

.analysis-flow {
    position: absolute;
    left: 0;
    right: 0;
    top: 42%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
}

.flow-arrow {
    width: 20px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    margin-top: 16px;
    opacity: 0.3;
    position: relative;
}

.flow-arrow::after {
    content: '→';
    position: absolute;
    right: -4px;
    top: -8px;
    color: var(--accent);
    font-size: 0.6rem;
    opacity: 0.5;
}

.analysis-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    opacity: 0.3;
}

.analysis-stage.active { opacity: 0.8; }

.stage-box {
    width: 50px;
    height: 38px;
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.5);
    gap: 2px;
}

.stage-icon {
    font-size: 0.75rem;
}

.stage-name {
    font-family: var(--font-mono);
    font-size: 0.4rem;
    color: var(--accent);
}

.analysis-stage:nth-child(1) { animation: stage-activate 8s ease-in-out infinite; }
.analysis-stage:nth-child(3) { animation: stage-activate 8s ease-in-out 1.5s infinite; }
.analysis-stage:nth-child(5) { animation: stage-activate 8s ease-in-out 3s infinite; }
.analysis-stage:nth-child(7) { animation: stage-activate 8s ease-in-out 4.5s infinite; }

@keyframes stage-activate {
    0%, 15% { opacity: 0.2; }
    20%, 40% { opacity: 0.8; }
    45%, 100% { opacity: 0.3; }
}

.sensitivity-graph {
    position: absolute;
    right: 3%;
    top: 3%;
    width: 80px;
    height: 45px;
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.3);
    overflow: hidden;
}

.sensitivity-graph::before {
    content: '민감도 분석';
    position: absolute;
    top: -14px;
    left: 0;
    font-family: var(--font-mono);
    font-size: 0.4rem;
    color: var(--accent);
    opacity: 0.5;
}

.graph-line {
    position: absolute;
    bottom: 8px;
    left: 4px;
    width: 72px;
    height: 35px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        transparent 10%,
        rgba(14, 165, 233, 0.3) 10%,
        rgba(14, 165, 233, 0.3) 11%,
        transparent 11%,
        transparent 20%,
        rgba(14, 165, 233, 0.3) 20%,
        rgba(14, 165, 233, 0.3) 21%,
        transparent 21%
    );
    clip-path: polygon(0% 80%, 15% 60%, 30% 70%, 45% 30%, 60% 45%, 75% 20%, 90% 35%, 100% 25%, 100% 100%, 0% 100%);
    animation: graph-draw 8s ease-in-out infinite;
}

@keyframes graph-draw {
    0%, 40% { opacity: 0; clip-path: polygon(0% 80%, 0% 80%, 0% 80%, 0% 80%, 0% 80%, 0% 80%, 0% 80%, 0% 80%, 0% 100%, 0% 100%); }
    60%, 100% { opacity: 0.6; clip-path: polygon(0% 80%, 15% 60%, 30% 70%, 45% 30%, 60% 45%, 75% 20%, 90% 35%, 100% 25%, 100% 100%, 0% 100%); }
}

.ai-opinion {
    position: absolute;
    right: 3%;
    bottom: 3%;
    width: 100px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 6px;
    opacity: 0;
    animation: opinion-show 8s ease-in-out infinite;
}

.ai-opinion::before {
    content: '🤖 AI 분석';
    display: block;
    font-family: var(--font-mono);
    font-size: 0.45rem;
    color: rgba(34, 197, 94, 0.8);
    margin-bottom: 4px;
    padding-bottom: 3px;
    border-bottom: 1px solid rgba(34, 197, 94, 0.2);
}

.opinion-text {
    font-family: var(--font-mono);
    font-size: 0.4rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.opinion-text .highlight {
    color: rgba(34, 197, 94, 0.9);
    font-weight: 600;
}

@keyframes opinion-show {
    0%, 60% { opacity: 0; transform: translateX(10px); }
    70%, 95% { opacity: 0.9; transform: translateX(0); }
    100% { opacity: 0; }
}

/* ====== ANIMATION SET 3: Power Quality Analyzer ====== */
.hero-power-analyzer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.power-waveform {
    position: absolute;
    left: 2%;
    top: 3%;
    width: 40%;
    height: 35%;
    background: rgba(0, 15, 30, 0.85);
    border: 1px solid rgba(14, 165, 233, 0.4);
    border-radius: 4px;
    overflow: hidden;
}

.waveform-grid {
    position: absolute;
    inset: 5px;
    background: 
        linear-gradient(rgba(14, 165, 233, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 165, 233, 0.1) 1px, transparent 1px);
    background-size: 10px 10px;
}

.wave-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 200%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, #00ff88, #00ff88, transparent,
        transparent, #00ff88, #00ff88, transparent
    );
    background-size: 50% 100%;
    clip-path: polygon(
        0% 50%, 5% 20%, 10% 50%, 15% 80%, 20% 50%, 25% 20%, 30% 50%, 35% 80%, 40% 50%, 45% 20%, 50% 50%,
        50% 50%, 55% 20%, 60% 50%, 65% 80%, 70% 50%, 75% 20%, 80% 50%, 85% 80%, 90% 50%, 95% 20%, 100% 50%
    );
    animation: wave-scroll 2s linear infinite;
    opacity: 0.8;
}

.wave-line.voltage { top: 35%; }
.wave-line.current { top: 65%; background: linear-gradient(90deg, transparent, #ffaa00, #ffaa00, transparent, transparent, #ffaa00, #ffaa00, transparent); animation-delay: -0.3s; }

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

.power-metrics {
    position: absolute;
    left: 2%;
    top: 42%;
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    width: 94%;
}

.metric-box {
    width: 48px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(14, 165, 233, 0.25);
    border-radius: 3px;
    text-align: center;
}

.metric-label {
    font-family: var(--font-mono);
    font-size: 0.35rem;
    color: var(--accent);
    opacity: 0.7;
    margin-bottom: 2px;
}

.metric-value {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    font-weight: 600;
    color: var(--text-primary);
}

.metric-value.warning { color: #f59e0b; }
.metric-value.good { color: #22c55e; }

.metric-box:nth-child(1) .metric-value { animation: metric-update-1 6s ease-in-out infinite; }
.metric-box:nth-child(2) .metric-value { animation: metric-update-2 6s ease-in-out infinite; }
.metric-box:nth-child(3) .metric-value { animation: metric-update-3 6s ease-in-out infinite; }
.metric-box:nth-child(4) .metric-value { animation: metric-update-4 6s ease-in-out infinite; }

@keyframes metric-update-1 { 0%, 100% { opacity: 0.7; } 50% { opacity: 1; } }
@keyframes metric-update-2 { 0%, 100% { opacity: 0.7; } 60% { opacity: 1; } }
@keyframes metric-update-3 { 0%, 100% { opacity: 0.7; } 40% { opacity: 1; } }
@keyframes metric-update-4 { 0%, 100% { opacity: 0.7; } 70% { opacity: 1; } }

.harmonic-chart {
    position: absolute;
    left: 2%;
    top: 62%;
    width: 55%;
    height: 30%;
    display: flex;
    align-items: flex-end;
    gap: 2px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 4px;
}

.harmonic-chart::before {
    content: '고조파 분석';
    position: absolute;
    top: -12px;
    left: 0;
    font-family: var(--font-mono);
    font-size: 0.35rem;
    color: var(--accent);
    opacity: 0.6;
}

.harmonic-bar {
    flex: 1;
    background: linear-gradient(180deg, var(--accent), rgba(14, 165, 233, 0.4));
    border-radius: 2px 2px 0 0;
    animation: harmonic-dance 3s ease-in-out infinite;
}

.harmonic-bar:nth-child(1) { animation-delay: 0s; }
.harmonic-bar:nth-child(2) { animation-delay: 0.1s; }
.harmonic-bar:nth-child(3) { animation-delay: 0.2s; }
.harmonic-bar:nth-child(4) { animation-delay: 0.3s; }
.harmonic-bar:nth-child(5) { animation-delay: 0.4s; }
.harmonic-bar:nth-child(6) { animation-delay: 0.5s; }
.harmonic-bar:nth-child(7) { animation-delay: 0.6s; }
.harmonic-bar:nth-child(8) { animation-delay: 0.7s; }
.harmonic-bar:nth-child(9) { animation-delay: 0.8s; }
.harmonic-bar:nth-child(10) { animation-delay: 0.9s; }

@keyframes harmonic-dance {
    0%, 100% { height: 30%; opacity: 0.5; }
    50% { height: 85%; opacity: 0.8; }
}

.power-quality-badge {
    position: absolute;
    right: 3%;
    top: 3%;
    padding: 6px 10px;
    background: rgba(34, 197, 94, 0.1);
    border: 2px solid rgba(34, 197, 94, 0.4);
    border-radius: 6px;
    text-align: center;
    animation: quality-pulse 4s ease-in-out infinite;
}

.quality-label {
    font-family: var(--font-mono);
    font-size: 0.35rem;
    color: rgba(34, 197, 94, 0.8);
    margin-bottom: 2px;
}

.quality-grade {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 700;
    color: #22c55e;
}

@keyframes quality-pulse {
    0%, 100% { transform: scale(1); border-color: rgba(34, 197, 94, 0.3); }
    50% { transform: scale(1.05); border-color: rgba(34, 197, 94, 0.6); }
}

.power-ai-opinion {
    position: absolute;
    right: 3%;
    bottom: 3%;
    width: 100px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: 6px;
    opacity: 0;
    animation: power-opinion-show 8s ease-in-out infinite;
}

.power-ai-opinion::before {
    content: '🔌 AI 분석';
    display: block;
    font-family: var(--font-mono);
    font-size: 0.4rem;
    color: var(--accent);
    margin-bottom: 4px;
    padding-bottom: 3px;
    border-bottom: 1px solid rgba(14, 165, 233, 0.2);
}

@keyframes power-opinion-show {
    0%, 50% { opacity: 0; transform: translateY(5px); }
    60%, 90% { opacity: 0.9; transform: translateY(0); }
    100% { opacity: 0; }
}

/* ====== ANIMATION SET 4: Truck Scale System ====== */
.hero-truck-scale {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.truck-visual {
    position: absolute;
    left: 2%;
    top: 8%;
    width: 85px;
    height: 50px;
}

.truck-body {
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 65px;
    height: 28px;
    background: linear-gradient(180deg, rgba(14, 165, 233, 0.4), rgba(14, 165, 233, 0.2));
    border: 1px solid rgba(14, 165, 233, 0.5);
    border-radius: 3px 6px 3px 3px;
    animation: truck-arrive 10s ease-in-out infinite;
}

.truck-body::before {
    content: '';
    position: absolute;
    right: -16px;
    bottom: 0;
    width: 20px;
    height: 20px;
    background: linear-gradient(180deg, rgba(14, 165, 233, 0.5), rgba(14, 165, 233, 0.3));
    border: 1px solid rgba(14, 165, 233, 0.5);
    border-radius: 2px 5px 2px 2px;
}

.truck-wheel {
    position: absolute;
    bottom: 0;
    width: 10px;
    height: 10px;
    background: rgba(14, 165, 233, 0.6);
    border: 2px solid rgba(14, 165, 233, 0.8);
    border-radius: 50%;
}

.truck-wheel:nth-child(2) { left: 8px; }
.truck-wheel:nth-child(3) { left: 45px; }

@keyframes truck-arrive {
    0%, 5% { transform: translateX(-40px); opacity: 0; }
    15%, 85% { transform: translateX(0); opacity: 0.7; }
    95%, 100% { transform: translateX(100px); opacity: 0; }
}

.scale-platform-truck {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 90px;
    height: 5px;
    background: linear-gradient(90deg, rgba(14, 165, 233, 0.3), rgba(14, 165, 233, 0.5), rgba(14, 165, 233, 0.3));
    border-radius: 2px;
}

.scale-platform-truck::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--accent) 0px, var(--accent) 3px, transparent 3px, transparent 6px);
    opacity: 0.4;
}

.truck-display {
    position: absolute;
    left: 2%;
    top: 38%;
    width: 75px;
    height: 38px;
    background: rgba(0, 20, 40, 0.95);
    border: 2px solid rgba(14, 165, 233, 0.5);
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.truck-weight {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 700;
    color: #00ff88;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
    animation: truck-weight-change 10s ease-in-out infinite;
}

.truck-weight::after {
    content: ' ton';
    font-size: 0.4rem;
    opacity: 0.7;
}

.truck-status {
    font-family: var(--font-mono);
    font-size: 0.35rem;
    color: #ffaa00;
    animation: status-blink 1s ease-in-out infinite;
}

@keyframes truck-weight-change {
    0%, 10% { content: '0.00'; }
    20%, 25% { content: '12.45'; }
    30%, 80% { content: '28.73'; }
    90%, 100% { content: '0.00'; }
}

@keyframes status-blink {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.service-flow {
    position: absolute;
    left: 2%;
    top: 62%;
    display: flex;
    gap: 6px;
    align-items: center;
}

.service-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    opacity: 0.3;
}

.service-icon {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.6);
}

.service-label {
    font-family: var(--font-mono);
    font-size: 0.35rem;
    color: var(--accent);
}

.service-arrow {
    font-size: 0.6rem;
    color: var(--accent);
    opacity: 0.3;
}

.service-node:nth-child(1) { animation: service-activate 10s ease-in-out infinite; }
.service-node:nth-child(3) { animation: service-activate 10s ease-in-out 2s infinite; }
.service-node:nth-child(5) { animation: service-activate 10s ease-in-out 4s infinite; }

@keyframes service-activate {
    0%, 15% { opacity: 0.2; }
    25%, 45% { opacity: 0.9; }
    55%, 100% { opacity: 0.3; }
}

.mobile-weighing {
    position: absolute;
    right: 3%;
    top: 5%;
    width: 40px;
    height: 65px;
    background: linear-gradient(180deg, #1a1a2e, #16213e);
    border: 2px solid rgba(14, 165, 233, 0.4);
    border-radius: 6px;
    padding: 3px;
    opacity: 0;
    animation: mobile-show 10s ease-in-out infinite;
}

.mobile-screen {
    width: 100%;
    height: 100%;
    background: rgba(14, 165, 233, 0.1);
    border-radius: 3px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

.mobile-value {
    font-family: var(--font-mono);
    font-size: 0.5rem;
    color: #00ff88;
}

.mobile-label {
    font-family: var(--font-mono);
    font-size: 0.3rem;
    color: var(--accent);
    opacity: 0.7;
}

@keyframes mobile-show {
    0%, 40% { opacity: 0; transform: translateY(8px); }
    50%, 85% { opacity: 0.8; transform: translateY(0); }
    95%, 100% { opacity: 0; }
}

.truck-ai-opinion {
    position: absolute;
    right: 3%;
    bottom: 5%;
    width: 100px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 6px;
    opacity: 0;
    animation: truck-ai-show 10s ease-in-out infinite;
}

.truck-ai-opinion::before {
    content: '🚛 AI 분석';
    display: block;
    font-family: var(--font-mono);
    font-size: 0.4rem;
    color: rgba(34, 197, 94, 0.8);
    margin-bottom: 4px;
    padding-bottom: 3px;
    border-bottom: 1px solid rgba(34, 197, 94, 0.2);
}

@keyframes truck-ai-show {
    0%, 60% { opacity: 0; transform: translateX(8px); }
    70%, 90% { opacity: 0.9; transform: translateX(0); }
    100% { opacity: 0; }
}

/* ====== Hero Animation Responsive ====== */
@media (max-width: 991.98px) {
    .hero-anim-set {
        display: none !important;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-anim-set {
        width: 40%;
        opacity: 0.6;
    }
}

/* Data Flow Dots */
.hero-data-flow {
    position: absolute;
    bottom: 30%;
    right: 12%;
    display: flex;
    gap: 6px;
    align-items: center;
}

.data-dot {
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.25;
    animation: data-pulse 1.5s ease-in-out infinite;
}

.data-dot:nth-child(1) { animation-delay: 0s; }
.data-dot:nth-child(2) { animation-delay: 0.12s; }
.data-dot:nth-child(3) { animation-delay: 0.24s; }
.data-dot:nth-child(4) { animation-delay: 0.36s; }
.data-dot:nth-child(5) { animation-delay: 0.48s; }
.data-dot:nth-child(6) { animation-delay: 0.6s; }
.data-dot:nth-child(7) { animation-delay: 0.72s; }
.data-dot:nth-child(8) { animation-delay: 0.84s; }

@keyframes data-pulse {
    0%, 100% { opacity: 0.15; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.4); }
}

/* Measurement Ruler */
.hero-ruler {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 16px;
    display: flex;
    justify-content: space-between;
    padding: 0 4%;
}

.ruler-mark {
    width: 1px;
    background: var(--accent);
    opacity: 0.12;
    height: 5px;
}

.ruler-mark:nth-child(5n) {
    height: 9px;
    opacity: 0.2;
}

.ruler-mark:nth-child(10n) {
    height: 14px;
    opacity: 0.3;
}

/* Binary/Hex Code Decoration */
.hero-binary {
    position: absolute;
    top: 18%;
    left: 2.5%;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--accent);
    opacity: 0.12;
    line-height: 1.5;
    letter-spacing: 1px;
}

.hero-address-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.address-float {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--accent);
    opacity: 0.08;
    line-height: 1.6;
    white-space: nowrap;
}

.address-float:nth-child(1) {
    top: 12%;
    left: 8%;
    transform: rotate(-3deg);
}

.address-float:nth-child(2) {
    top: 25%;
    right: 15%;
    transform: rotate(2deg);
    opacity: 0.06;
}

.address-float:nth-child(3) {
    top: 45%;
    left: 15%;
    transform: rotate(-1deg);
    opacity: 0.05;
}

.address-float:nth-child(4) {
    top: 60%;
    right: 25%;
    transform: rotate(1deg);
    opacity: 0.07;
}

.address-float:nth-child(5) {
    top: 75%;
    left: 25%;
    transform: rotate(-2deg);
    opacity: 0.04;
}

.address-float:nth-child(6) {
    top: 35%;
    left: 45%;
    transform: rotate(1deg);
    opacity: 0.05;
}

.address-float .hl {
    background: rgba(14, 165, 233, 0.15);
    padding: 0 3px;
    border-radius: 2px;
    color: rgba(14, 165, 233, 0.6);
}

.address-float .bracket {
    color: rgba(14, 165, 233, 0.4);
}

.address-float .parsed {
    text-decoration: underline;
    text-decoration-color: rgba(14, 165, 233, 0.3);
    text-underline-offset: 2px;
}

.ocr-box {
    position: absolute;
    border: 1px dashed rgba(14, 165, 233, 0.25);
    border-radius: 2px;
    padding: 4px 8px;
    font-family: var(--font-mono);
    font-size: 0.55rem;
    color: var(--accent);
    opacity: 0.15;
}

.ocr-box::before {
    content: 'OCR';
    position: absolute;
    top: -8px;
    left: 4px;
    font-size: 0.45rem;
    background: rgba(240, 247, 255, 0.9);
    padding: 0 3px;
    color: rgba(14, 165, 233, 0.5);
}

.ocr-box:nth-child(1) { top: 20%; left: 12%; }
.ocr-box:nth-child(2) { top: 38%; right: 8%; }
.ocr-box:nth-child(3) { top: 55%; left: 22%; }
.ocr-box:nth-child(4) { top: 70%; right: 18%; }

.ocr-box .scanned {
    background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.2), transparent);
    animation: ocr-scan 2s ease-in-out infinite;
}

@keyframes ocr-scan {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

.ai-process {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 0.5rem;
    color: var(--accent);
    opacity: 0.1;
    white-space: nowrap;
}

.ai-process:nth-child(1) { top: 15%; right: 5%; }
.ai-process:nth-child(2) { top: 50%; left: 5%; }
.ai-process:nth-child(3) { top: 80%; left: 40%; }

.ai-process .tag {
    display: inline-block;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.2);
    padding: 1px 4px;
    border-radius: 2px;
    margin: 0 2px;
    font-size: 0.45rem;
}

.ai-process .confidence {
    color: rgba(34, 197, 94, 0.6);
}

.ai-process .arrow {
    margin: 0 4px;
    opacity: 0.5;
}

/* Circuit Pattern */
.hero-circuit {
    position: absolute;
    bottom: 22%;
    left: 4%;
    width: 100px;
    height: 50px;
}

.circuit-line {
    position: absolute;
    background: var(--accent);
    opacity: 0.12;
}

.circuit-line.h { height: 1px; }
.circuit-line.v { width: 1px; }

.circuit-line:nth-child(1).h { top: 0; left: 0; width: 35px; }
.circuit-line:nth-child(2).v { top: 0; left: 35px; height: 18px; }
.circuit-line:nth-child(3).h { top: 18px; left: 35px; width: 35px; }
.circuit-line:nth-child(4).v { top: 18px; left: 70px; height: 16px; }
.circuit-line:nth-child(5).h { top: 34px; left: 50px; width: 35px; }
.circuit-line:nth-child(6).v { top: 34px; left: 85px; height: 16px; }
.circuit-line:nth-child(7).h { top: 50px; left: 70px; width: 30px; }

.circuit-node {
    position: absolute;
    width: 5px;
    height: 5px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.2;
}

.circuit-node:nth-child(8) { top: -2px; left: -2px; }
.circuit-node:nth-child(9) { top: 15px; left: 68px; }
.circuit-node:nth-child(10) { top: 48px; left: 98px; }

/* Gauge/Meter Arc */
.hero-gauge {
    position: absolute;
    top: 25%;
    left: 35%;
    width: 60px;
    height: 30px;
    border: 1px solid var(--accent);
    border-bottom: none;
    border-radius: 60px 60px 0 0;
    opacity: 0.1;
}

.hero-gauge::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 2px;
    height: 25px;
    background: var(--accent);
    transform-origin: bottom center;
    transform: rotate(-30deg);
    opacity: 0.4;
}

.hero-gauge::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    transform: translateX(-50%);
    opacity: 0.3;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 4rem 0 3rem;
    }
    
    .hero-section .container::before,
    .hero-section .container::after {
        display: none;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .hero-tech-decorations {
        display: none;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--accent-dark);
}

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

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

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

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

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 540px;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn-hero-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient-primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    border: none;
    overflow: hidden;
    transition: var(--transition-base);
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    color: white;
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: 0.5s;
}

.btn-hero-primary:hover .btn-shine {
    left: 100%;
}

.btn-hero-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--text-primary);
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    border: 2px solid var(--gray-300);
    transition: var(--transition-base);
}

.btn-hero-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(14, 165, 233, 0.05);
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding-top: 1rem;
}

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

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.stat-divider {
    width: 1px;
    background: var(--gray-300);
    align-self: stretch;
}

/* Hero Visual - Terminal */
.hero-visual {
    position: relative;
    z-index: 2;
}

.terminal-window {
    background: var(--bg-dark);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    border: 1px solid var(--gray-700);
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    background: var(--gray-800);
    border-bottom: 1px solid var(--gray-700);
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-dot.red { background: #ef4444; }
.terminal-dot.yellow { background: #eab308; }
.terminal-dot.green { background: #22c55e; }

.terminal-title {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--gray-500);
}

.terminal-body {
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.8;
}

.terminal-line {
    margin-bottom: 0.5rem;
    color: var(--gray-300);
}

.terminal-line.output {
    color: var(--gray-400);
}

.terminal-prompt {
    color: var(--accent);
    margin-right: 0.5rem;
}

.terminal-command {
    color: #e2e8f0;
}

.terminal-success {
    color: #22c55e;
}

.terminal-cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: var(--accent);
    animation: blink 1s step-end infinite;
    vertical-align: middle;
}

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

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--gray-400);
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--accent);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 20px; }
}

/* ============================================
   SECTIONS
   ============================================ */
.py-6 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.section-header {
    margin-bottom: 3rem;
}

.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.5rem;
}

.section-title-modern {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
}

/* ============================================
   SERVICE CARDS
   ============================================ */
.services-section {
    background: var(--bg-main);
}

.service-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
    border: 1px solid var(--gray-200);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition-base);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

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

.service-icon-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
}

.service-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(6, 182, 212, 0.1));
    border-radius: var(--radius-md);
    font-size: 1.75rem;
    color: var(--accent);
    position: relative;
    z-index: 1;
    transition: var(--transition-base);
}

.service-icon-bg {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    opacity: 0;
    transition: var(--transition-base);
}

.service-card:hover .service-icon {
    background: var(--gradient-primary);
    color: white;
}

.service-card:hover .service-icon-bg {
    opacity: 0.2;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.service-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.service-features li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.service-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

.service-hover-content {
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition-base);
}

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

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.875rem;
}

.service-link:hover {
    gap: 0.75rem;
}

/* ============================================
   PROJECT CARDS
   ============================================ */
.projects-section {
    background: linear-gradient(180deg, var(--bg-main) 0%, #e0f2fe 100%);
}

.project-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    height: 100%;
    transition: var(--transition-base);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.project-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: var(--gray-100);
}

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

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 4rem;
    color: var(--gray-300);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-base);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    background: transparent;
    border: 2px solid white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--transition-base);
}

.project-view-btn:hover {
    background: white;
    color: var(--bg-dark);
}

.project-content {
    padding: 1.5rem;
}

.project-category {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.project-summary {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: var(--gray-100);
    color: var(--text-secondary);
    border-radius: 50px;
}

/* ============================================
   WHY SECTION / FEATURES
   ============================================ */
.why-section {
    background: var(--bg-main);
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.feature-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(6, 182, 212, 0.1));
    border-radius: var(--radius-md);
    font-size: 1.5rem;
    color: var(--accent);
}

.feature-content h5 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.feature-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
}

.pulse-animation {
    animation: featurePulse 2s infinite;
}

.pulse-animation.delay-1 {
    animation-delay: 0.3s;
}

.pulse-animation.delay-2 {
    animation-delay: 0.6s;
}

@keyframes featurePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.3); }
    50% { box-shadow: 0 0 0 10px rgba(14, 165, 233, 0); }
}

/* CTA Card */
.cta-card {
    background: var(--gradient-dark);
    border-radius: var(--radius-xl);
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.cta-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cta-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(14, 165, 233, 0.2);
}

.cta-circle:nth-child(1) {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
}

.cta-circle:nth-child(2) {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: -50px;
}

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

.cta-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 50%;
    font-size: 2rem;
    color: white;
}

.cta-card h4 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1rem;
}

.cta-card p {
    color: var(--gray-400);
    margin-bottom: 1.5rem;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--gradient-primary);
    color: white !important;
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    border: none;
    transition: var(--transition-base);
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    color: white !important;
}

.btn-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transition: var(--transition-base);
}

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

/* ============================================
   TECH STACK SECTION
   ============================================ */
.tech-section {
    background: var(--bg-main);
    overflow: hidden;
}

.tech-showcase {
    position: relative;
    overflow: hidden;
    padding: 1rem 0;
}

.tech-showcase::before,
.tech-showcase::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.tech-showcase::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-main), transparent);
}

.tech-showcase::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-main), transparent);
}

.tech-track {
    display: flex;
    gap: 1rem;
    animation: marquee 30s linear infinite;
    width: max-content;
}

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

.tech-item {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--gray-200);
    border-radius: 2rem;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    transition: var(--transition-base);
}

.tech-item:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
    transform: scale(1.05);
}

.tech-item i {
    font-size: 1.125rem;
    color: var(--accent);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg-dark);
    color: var(--gray-400);
    padding: 4rem 0 2rem;
    margin-top: auto;
}

.footer h5 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer a {
    color: var(--gray-400);
    transition: var(--transition-base);
}

.footer a:hover {
    color: var(--accent-light);
    padding-left: 5px;
}

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

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    font-family: var(--font-display);
    font-weight: 600;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-md);
    transition: var(--transition-base);
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline-accent {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
}

.btn-outline-accent:hover {
    background: var(--accent);
    color: white;
}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb-section {
    background: var(--gray-100);
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.breadcrumb {
    margin: 0;
    background: transparent;
    padding: 0;
}

.breadcrumb-item {
    font-size: 0.875rem;
}

.breadcrumb-item a {
    color: var(--text-secondary);
}

.breadcrumb-item a:hover {
    color: var(--accent);
}

.breadcrumb-item.active {
    color: var(--text-primary);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--gray-400);
}

/* ============================================
   FORMS
   ============================================ */
.form-control,
.form-select {
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: var(--transition-base);
    background-color: var(--bg-card);
    color: var(--text-primary);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
    outline: none;
}

.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* ============================================
   CARDS (General)
   ============================================ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.card-header {
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    padding: 1rem 1.5rem;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

/* ============================================
   TABLES
   ============================================ */
.table {
    color: var(--text-primary);
}

.table thead th {
    background: var(--gray-100);
    color: var(--text-primary);
    font-weight: 600;
    border-bottom: 2px solid var(--gray-300);
    padding: 1rem;
}

.table tbody td {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
    vertical-align: middle;
}

.table tbody tr:hover {
    background: var(--gray-50);
}

/* ============================================
   BADGES
   ============================================ */
.badge {
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
}

.badge.bg-primary {
    background: var(--gradient-primary) !important;
}

.badge.bg-success {
    background: #22c55e !important;
}

.badge.bg-warning {
    background: #eab308 !important;
    color: var(--text-primary) !important;
}

.badge.bg-danger {
    background: #ef4444 !important;
}

.badge.bg-secondary {
    background: var(--gray-500) !important;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    gap: 0.25rem;
}

.page-link {
    border: 1px solid var(--gray-300);
    color: var(--text-primary);
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius-sm);
}

.page-link:hover {
    background: var(--gray-100);
    border-color: var(--accent);
    color: var(--accent);
}

.page-item.active .page-link {
    background: var(--gradient-primary);
    border-color: var(--accent);
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    border-radius: var(--radius-md);
    border: none;
    padding: 1rem 1.25rem;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    color: #166534;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #991b1b;
}

.alert-warning {
    background: rgba(234, 179, 8, 0.1);
    color: #854d0e;
}

.alert-info {
    background: rgba(14, 165, 233, 0.1);
    color: #0c4a6e;
}

/* ============================================
   ADMIN STYLES
   ============================================ */
.admin-sidebar {
    background: var(--bg-card);
    border-right: 1px solid var(--gray-200);
    min-height: calc(100vh - 56px);
    padding: 0;
}

.admin-sidebar .nav-link {
    display: flex;
    align-items: center;
    padding: 0.875rem 1.25rem !important;
    color: var(--text-secondary) !important;
    border-radius: 0;
    border-left: 3px solid transparent;
    margin: 0;
}

.admin-sidebar .nav-link:hover {
    background: var(--gray-100);
    color: var(--accent) !important;
}

.admin-sidebar .nav-link.active {
    background: rgba(14, 165, 233, 0.1);
    color: var(--accent) !important;
    border-left-color: var(--accent);
}

.admin-sidebar .nav-link::after {
    display: none;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.animate-fade-in {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

.animate-fade-in-delay-1 {
    opacity: 0;
    animation: fadeIn 0.6s ease 0.1s forwards;
}

.animate-fade-in-delay-2 {
    opacity: 0;
    animation: fadeIn 0.6s ease 0.2s forwards;
}

.animate-fade-in-delay-3 {
    opacity: 0;
    animation: fadeIn 0.6s ease 0.3s forwards;
}

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

/* ============================================
   UTILITIES
   ============================================ */
.text-accent {
    color: var(--accent) !important;
}

.bg-accent {
    background-color: var(--accent) !important;
}

.min-vh-75 {
    min-height: 75vh;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991.98px) {
    .hero-section-enhanced {
        min-height: auto;
        padding: 4rem 0 3rem;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .py-6 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    .cta-card {
        padding: 2rem;
    }
}

@media (max-width: 767.98px) {
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .stat-divider {
        display: none;
    }
    
    .hero-stats {
        justify-content: space-around;
    }
    
    .section-header-flex {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .scroll-indicator {
        display: none;
    }
}

/* ============================================
   PORTFOLIO DETAIL
   ============================================ */
.portfolio-hero {
    background: linear-gradient(180deg, var(--bg-main) 0%, #e0f2fe 100%);
    padding: 3rem 0;
}

.portfolio-hero-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.portfolio-hero-image img {
    width: 100%;
    height: auto;
}

.portfolio-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.meta-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.meta-value {
    font-weight: 600;
    color: var(--text-primary);
}

/* ============================================
   BOARD / POSTS
   ============================================ */
.post-card {
    background: var(--bg-card);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: var(--transition-base);
}

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

.post-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.post-title a {
    color: inherit;
}

.post-title a:hover {
    color: var(--accent);
}

.post-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.post-content {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-info-card {
    background: var(--bg-card);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
}

.contact-info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-info-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(6, 182, 212, 0.1));
    border-radius: var(--radius-md);
    font-size: 1.25rem;
    color: var(--accent);
    flex-shrink: 0;
}

.contact-info-content h6 {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.contact-info-content p {
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

/* ============================================
   MODAL STYLES
   ============================================ */
.modal-content {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.modal-header {
    border-bottom: 1px solid var(--gray-200);
    padding: 1.25rem 1.5rem;
}

.modal-title {
    font-weight: 700;
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--gray-200);
    padding: 1rem 1.5rem;
}
