/* ============================================================
   EVERWISE TECHNOLOGY — Main Stylesheet
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
    --bg-primary: #f5f8fb;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.72);

    --text-primary: #0b2340;
    --text-secondary: rgba(11, 35, 64, 0.68);
    --text-muted: rgba(11, 35, 64, 0.42);

    --accent-1: #0891b2;
    --accent-2: #0e7490;
    --accent-3: #22d3ee;
    --gradient-main: linear-gradient(135deg, #0e7490, #0891b2 45%, #22d3ee);
    --gradient-alt: linear-gradient(135deg, #164e63, #0891b2);

    --border-subtle: rgba(11, 35, 64, 0.1);
    --border-glow: rgba(8, 145, 178, 0.28);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Noto Sans TC', 'Inter', sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', monospace;

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

    --nav-height: 128px;
    --section-padding: clamp(80px, 12vh, 160px);
}

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

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-2) var(--bg-primary);
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    cursor: none;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent-2); border-radius: 3px; }

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

::selection {
    background: rgba(8, 145, 178, 0.22);
    color: var(--text-primary);
}

/* ---------- Custom Cursor ---------- */
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background: var(--accent-1);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: width 0.3s var(--ease-spring), height 0.3s var(--ease-spring),
                background 0.3s ease;
}

.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 1.5px solid rgba(8, 145, 178, 0.45);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: width 0.4s var(--ease-out-expo), height 0.4s var(--ease-out-expo),
                border-color 0.4s ease, opacity 0.3s ease;
}

body.cursor-hover .cursor-dot {
    width: 60px;
    height: 60px;
    background: rgba(8, 145, 178, 0.15);
}

body.cursor-hover .cursor-ring {
    width: 60px;
    height: 60px;
    border-color: var(--accent-1);
    opacity: 0.5;
}

/* ---------- Preloader ---------- */
#preloader {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

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

.preloader-logo {
    display: block;
    width: 88px;
    height: 88px;
    object-fit: contain;
    margin: 0 auto 28px;
    border-radius: 18px;
}

.preloader-bar-wrap {
    width: 200px;
    height: 2px;
    background: var(--border-subtle);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto 16px;
}

.preloader-bar {
    width: 0%;
    height: 100%;
    background: var(--gradient-main);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.preloader-percent {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--text-secondary);
    letter-spacing: 0.15em;
}

/* ---------- Scroll Progress ---------- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--gradient-main);
    z-index: 10001;
    transition: width 0.1s linear;
}

/* ---------- Navigation ---------- */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 9999;
    background: rgba(245, 248, 251, 0.72);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    backdrop-filter: blur(14px) saturate(160%);
    transition: background 0.4s ease, box-shadow 0.4s ease, height 0.4s ease;
}

#navbar.scrolled {
    background: rgba(245, 248, 251, 0.9);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 1px 0 var(--border-subtle), 0 8px 24px rgba(11, 35, 64, 0.06);
    height: 104px;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(24px, 4vw, 60px);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    cursor: none;
    line-height: 0;
}

.nav-logo-img {
    height: 100px;
    width: auto;
    max-width: min(520px, 74vw);
    object-fit: contain;
    display: block;
    transition: height 0.4s ease, opacity 0.3s ease;
}

#navbar.scrolled .nav-logo-img {
    height: 78px;
}

.logo-main {
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.logo-dot {
    color: var(--accent-1);
    font-size: 1.8rem;
    line-height: 1;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-secondary);
    position: relative;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
    cursor: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-main);
    transition: width 0.4s var(--ease-out-expo);
}

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

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

/* Nav Toggle (hamburger) */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    width: 28px;
    cursor: none;
    z-index: 10001;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.4s var(--ease-out-expo), opacity 0.3s ease;
    transform-origin: center;
}

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

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

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

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(245, 248, 251, 0.98);
    -webkit-backdrop-filter: blur(30px);
    backdrop-filter: blur(30px);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    gap: 32px;
    text-align: center;
}

.mobile-link {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    font-weight: 700;
    color: var(--text-primary);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s var(--ease-out-expo), color 0.3s ease;
    cursor: none;
}

.mobile-menu.active .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu.active .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-link:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-link:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu.active .mobile-link:nth-child(4) { transition-delay: 0.4s; }

.mobile-link:hover {
    color: var(--accent-1);
}

/* ---------- HERO SECTION ---------- */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0 clamp(24px, 4vw, 60px);
    background:
        radial-gradient(ellipse 70% 55% at 70% 15%, rgba(34, 211, 238, 0.16), transparent 60%),
        radial-gradient(ellipse 55% 50% at 15% 85%, rgba(8, 145, 178, 0.1), transparent 55%),
        linear-gradient(180deg, #eef6fa 0%, var(--bg-primary) 55%, #ffffff 100%);
}

#particleCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(8, 145, 178, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(8, 145, 178, 0.06) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 1;
    mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 20%, transparent 70%);
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    pointer-events: none;
}

.hero-glow-1 {
    width: 600px;
    height: 600px;
    background: rgba(34, 211, 238, 0.18);
    top: -20%;
    right: -10%;
    animation: floatGlow 8s ease-in-out infinite;
}

.hero-glow-2 {
    width: 500px;
    height: 500px;
    background: rgba(8, 145, 178, 0.12);
    bottom: -15%;
    left: -10%;
    animation: floatGlow 10s ease-in-out infinite reverse;
}

@keyframes floatGlow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    border: 1px solid var(--border-glow);
    border-radius: 100px;
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
    margin-bottom: 32px;
    background: var(--bg-glass);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.badge-pulse {
    width: 8px;
    height: 8px;
    background: var(--accent-3);
    border-radius: 50%;
    position: relative;
}

.badge-pulse::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid var(--accent-3);
    animation: pulseRing 2s ease-out infinite;
}

@keyframes pulseRing {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(2.5); opacity: 0; }
}

/* Hero Title */
.hero-title {
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.title-line {
    display: block;
}

.title-word {
    display: inline-block;
    margin: 0 4px;
}

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

/* Hero reveal animation */
.reveal-up {
    opacity: 0;
    transform: translateY(80px) rotateX(-15deg);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal-up.revealed {
    opacity: 1;
    transform: translateY(0) rotateX(0);
}

.reveal-fade {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s var(--ease-out-expo);
}

.reveal-fade.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays */
.reveal-up { transition-delay: calc(var(--d, 0) * 0.12s); }
.reveal-fade { transition-delay: calc(var(--d, 0) * 0.12s); }

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 48px;
    line-height: 1.8;
    letter-spacing: 0.08em;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: var(--gradient-main);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 100px;
    border: none;
    cursor: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-2), var(--accent-1));
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: inherit;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(8, 145, 178, 0.25);
}

.btn-text {
    position: relative;
    z-index: 1;
}

.btn-icon {
    position: relative;
    z-index: 1;
    display: inline-flex;
    transition: transform 0.3s var(--ease-out-expo);
}

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

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: transparent;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 100px;
    border: 1px solid var(--border-glow);
    cursor: none;
    transition: background 0.4s ease, border-color 0.4s ease,
                transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
}

.btn-outline:hover {
    background: rgba(8, 145, 178, 0.08);
    border-color: var(--accent-1);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(8, 145, 178, 0.1);
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 2;
    opacity: 0;
    animation: fadeInUp 1s ease 2s forwards;
}

@keyframes fadeInUp {
    to { opacity: 1; }
}

.mouse-icon {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.mouse-wheel {
    width: 3px;
    height: 8px;
    background: var(--accent-1);
    border-radius: 3px;
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(12px); }
}

.hero-scroll-indicator span {
    font-family: var(--font-display);
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    color: var(--text-muted);
}

/* Floating Shapes */
.floating-shape {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.shape-1 {
    width: 120px;
    height: 120px;
    border: 1px solid rgba(8, 145, 178, 0.1);
    top: 20%;
    right: 10%;
    animation: floatShape 12s ease-in-out infinite;
}

.shape-2 {
    width: 80px;
    height: 80px;
    background: rgba(14, 116, 144, 0.05);
    bottom: 25%;
    left: 8%;
    animation: floatShape 15s ease-in-out infinite reverse;
}

.shape-3 {
    width: 60px;
    height: 60px;
    border: 1px solid rgba(34, 211, 238, 0.08);
    top: 60%;
    right: 20%;
    animation: floatShape 10s ease-in-out infinite 2s;
}

@keyframes floatShape {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(20px, -30px) rotate(90deg); }
    50% { transform: translate(-10px, -50px) rotate(180deg); }
    75% { transform: translate(-30px, -20px) rotate(270deg); }
}

/* ---------- SECTIONS COMMON ---------- */
section {
    padding: var(--section-padding) 0;
    position: relative;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(24px, 4vw, 60px);
}

.section-header {
    text-align: center;
    margin-bottom: clamp(48px, 6vw, 80px);
}

.section-tag {
    font-family: var(--font-display);
    font-size: 0.75rem;
    letter-spacing: 0.35em;
    color: var(--accent-1);
    text-transform: uppercase;
    display: block;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
}

.section-line {
    width: 60px;
    height: 3px;
    background: var(--gradient-main);
    margin: 0 auto;
    border-radius: 3px;
}

/* Scroll Reveal Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
    transition-delay: calc(var(--d, 0) * 0.1s);
}

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

/* Glass Card */
.glass-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    backdrop-filter: blur(20px) saturate(150%);
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.glass-card:hover {
    border-color: var(--border-glow);
    box-shadow: 0 16px 40px rgba(11, 35, 64, 0.08);
}

/* ---------- ABOUT SECTION ---------- */
#about {
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

#about::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(8, 145, 178, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
    margin-bottom: clamp(60px, 8vw, 100px);
}

.about-text .about-lead {
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    line-height: 2;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.about-text p {
    font-size: 0.95rem;
    line-height: 1.9;
    color: var(--text-secondary);
}

.about-card {
    padding: 48px 36px;
    text-align: center;
}

.card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
}

.card-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--accent-1);
}

.about-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

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

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-bottom: clamp(60px, 8vw, 100px);
}

.stat-item {
    text-align: center;
    padding: 40px 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    background: var(--bg-glass);
    transition: border-color 0.4s ease, transform 0.4s var(--ease-out-expo);
}

.stat-item:hover {
    border-color: var(--border-glow);
    transform: translateY(-4px);
}

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline;
}

.stat-suffix {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 600;
    color: var(--accent-1);
    display: inline;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 12px;
    letter-spacing: 0.05em;
}

.stat-icon-wrap {
    width: 48px;
    height: 48px;
    margin: 0 auto 8px;
}

.stat-icon-wrap svg {
    width: 100%;
    height: 100%;
    stroke: var(--accent-1);
}

/* Mission Cards */
.mission-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.mission-card {
    padding: 48px 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    background: var(--bg-glass);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.mission-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-main);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s var(--ease-out-expo);
}

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

.mission-card:hover {
    border-color: var(--border-glow);
    box-shadow: 0 20px 60px rgba(11, 35, 64, 0.1), 0 0 30px rgba(8, 145, 178, 0.05);
}

.mission-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 24px;
    padding: 12px;
    border-radius: var(--radius-md);
    background: rgba(8, 145, 178, 0.08);
    border: 1px solid rgba(8, 145, 178, 0.15);
}

.mission-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--accent-1);
}

.mission-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.mission-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ---------- SERVICES SECTION ---------- */
#services {
    position: relative;
    overflow: hidden;
}

#services::before {
    content: '';
    position: absolute;
    bottom: -300px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(14, 116, 144, 0.03) 0%, transparent 60%);
    pointer-events: none;
}

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

.service-card {
    position: relative;
    padding: 48px 32px 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s var(--ease-out-expo);
}

.service-card-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(8, 145, 178, 0.06) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.service-card:hover .service-card-bg {
    opacity: 1;
}

.service-card:hover {
    border-color: var(--border-glow);
    box-shadow: 0 20px 60px rgba(11, 35, 64, 0.1), 0 0 30px rgba(8, 145, 178, 0.06);
}

.service-number {
    font-family: var(--font-display);
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    margin-bottom: 24px;
}

.service-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 24px;
    padding: 10px;
    border-radius: var(--radius-sm);
    background: rgba(8, 145, 178, 0.06);
    border: 1px solid rgba(8, 145, 178, 0.1);
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.4s var(--ease-spring);
}

.service-card:hover .service-icon {
    background: rgba(8, 145, 178, 0.12);
    border-color: rgba(8, 145, 178, 0.25);
    transform: scale(1.1);
}

.service-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--accent-1);
    transition: stroke 0.3s ease;
}

.service-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.service-card:hover .service-title {
    color: var(--accent-1);
}

.service-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.service-tag span {
    font-size: 0.72rem;
    padding: 4px 12px;
    border-radius: 100px;
    background: rgba(8, 145, 178, 0.08);
    border: 1px solid rgba(8, 145, 178, 0.15);
    color: var(--accent-1);
    font-weight: 500;
    letter-spacing: 0.05em;
}

.service-hover-line {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-main);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s var(--ease-out-expo);
}

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

/* ---------- BRAND SECTION ---------- */
#brand {
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.brand-showcase {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.brand-card {
    display: grid;
    grid-template-columns: 1fr 1.55fr;
    gap: 0;
    overflow: hidden;
    position: relative;
}

.brand-card-glow {
    position: absolute;
    top: -50%;
    left: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(8, 145, 178, 0.06) 0%, transparent 60%);
    pointer-events: none;
    animation: floatGlow 12s ease-in-out infinite;
}

.brand-logo-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 36px;
    border-right: 1px solid var(--border-subtle);
    position: relative;
    text-align: center;
    background: linear-gradient(180deg, rgba(8, 145, 178, 0.04), transparent 70%);
}

.brand-logo-img {
    width: auto;
    height: 140px;
    object-fit: contain;
    margin: 0;
    filter: drop-shadow(0 8px 18px rgba(11, 35, 64, 0.12));
}

.brand-mark {
    width: 72px;
    height: 72px;
    margin-bottom: 16px;
    color: var(--accent-1);
    display: grid;
    place-items: center;
}

.brand-mark svg {
    width: 100%;
    height: 100%;
}

.brand-logo-text {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3.4vw, 2.4rem);
    font-weight: 800;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    line-height: 1.15;
}

.brand-logo-text-sm {
    font-size: clamp(1.45rem, 3vw, 2rem);
}

.brand-name-main {
    color: var(--text-primary);
}

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

.brand-url {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    word-break: break-all;
}

.brand-info {
    padding: 40px 36px;
}

.brand-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.brand-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 22px;
}

.brand-services-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.brand-tag {
    font-size: 0.75rem;
    padding: 6px 14px;
    border-radius: 100px;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    transition: border-color 0.3s ease, color 0.3s ease;
}

.brand-tag:hover {
    border-color: var(--accent-1);
    color: var(--accent-1);
}

.brand-service-list {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
    display: grid;
    gap: 12px;
}

.brand-service-list li {
    display: grid;
    gap: 2px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    background: rgba(8, 145, 178, 0.03);
    transition: border-color 0.3s ease, background 0.3s ease;
}

.brand-service-list li:hover {
    border-color: rgba(8, 145, 178, 0.35);
    background: rgba(8, 145, 178, 0.06);
}

.brand-service-list strong {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
}

.brand-service-list span {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.brand-cta {
    padding: 14px 28px;
    font-size: 0.88rem;
}

/* ---------- CONTACT SECTION ---------- */
#contact {
    position: relative;
    overflow: hidden;
}

#contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 800px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-company-name {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 8px;
}

.contact-company-en {
    font-family: var(--font-display);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.contact-item:hover {
    border-color: var(--border-subtle);
    background: var(--bg-glass);
}

.contact-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    padding: 10px;
    border-radius: var(--radius-sm);
    background: rgba(8, 145, 178, 0.06);
    border: 1px solid rgba(8, 145, 178, 0.1);
}

.contact-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--accent-1);
}

.contact-detail {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-family: var(--font-display);
}

.contact-value {
    font-size: 1rem;
    color: var(--text-primary);
    line-height: 1.6;
}

.contact-value-sub {
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.contact-link {
    transition: color 0.3s ease;
    cursor: none;
}

.contact-link:hover {
    color: var(--accent-1);
}

/* Map */
.map-wrapper {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.map-wrapper iframe {
    filter: grayscale(15%) contrast(1.02) saturate(0.95);
    transition: filter 0.5s ease;
}

.map-wrapper:hover iframe {
    filter: grayscale(0%) contrast(1.05) saturate(1.05);
}

.map-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 2;
}

.map-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--text-secondary);
    box-shadow: 0 8px 24px rgba(11, 35, 64, 0.08);
    transition: border-color 0.3s ease, color 0.3s ease;
    cursor: none;
}

.map-link:hover {
    border-color: var(--accent-1);
    color: var(--accent-1);
}

/* ---------- FOOTER ---------- */
#footer {
    padding: 60px 0 30px;
    position: relative;
}

.footer-top-line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

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

.footer-logo-img {
    height: 88px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

.footer-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.footer-nav h4,
.footer-services h4,
.footer-contact-info h4 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
    letter-spacing: 0.05em;
}

.footer-nav a,
.footer-services span,
.footer-contact-info span {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    transition: color 0.3s ease;
    cursor: none;
}

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

.footer-bottom {
    border-top: 1px solid var(--border-subtle);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.footer-credit {
    margin-top: 10px;
}

.footer-credit-link {
    color: var(--accent-1);
    margin-left: 4px;
    transition: color 0.3s ease, opacity 0.3s ease;
    cursor: none;
}

.footer-credit-link:hover {
    color: var(--accent-2);
    opacity: 0.9;
}

/* ---------- Back to Top ---------- */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s var(--ease-out-expo),
                border-color 0.3s ease, background 0.3s ease;
    cursor: none;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

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

.back-to-top:hover {
    border-color: var(--accent-1);
    background: rgba(8, 145, 178, 0.1);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
    stroke: var(--accent-1);
}

/* ============================================================
   TILT CARD 3D EFFECT (JS controlled)
   ============================================================ */
.tilt-card {
    transform: perspective(800px) rotateX(0deg) rotateY(0deg);
    transition: transform 0.4s var(--ease-out-expo);
}

/* ============================================================
   MAGNETIC BUTTON EFFECT (JS controlled)
   ============================================================ */
.magnetic {
    transition: transform 0.3s var(--ease-spring);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .mission-card:last-child {
        grid-column: 1 / -1;
        max-width: 50%;
        margin: 0 auto;
    }

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

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

    .brand-logo-area {
        border-right: none;
        border-bottom: 1px solid var(--border-subtle);
        padding: 40px;
    }
}

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

    #navbar.scrolled {
        height: 76px;
    }

    .nav-logo-img {
        height: 68px;
        max-width: min(300px, 70vw);
    }

    #navbar.scrolled .nav-logo-img {
        height: 58px;
    }

    .footer-logo-img {
        height: 72px;
    }

    body {
        cursor: auto;
    }

    .cursor-dot, .cursor-ring {
        display: none;
    }

    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-title {
        font-size: clamp(2rem, 9vw, 3.5rem);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

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

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

    .mission-card:last-child {
        max-width: 100%;
    }

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

    .map-wrapper {
        height: 280px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary, .btn-outline {
        cursor: auto;
    }

    a, button {
        cursor: auto;
    }

    .brand-info {
        padding: 32px 24px;
    }

    .brand-logo-area {
        padding: 32px 24px;
    }

    .brand-logo-img {
        height: 112px;
    }

    .brand-mark {
        width: 60px;
        height: 60px;
    }

    .brand-showcase {
        gap: 20px;
    }
}

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

    .hero-badge {
        font-size: 0.6rem;
        padding: 6px 14px;
    }

    .stat-item {
        padding: 28px 16px;
    }

    .service-card {
        padding: 36px 24px 32px;
    }

    .contact-item {
        flex-direction: column;
        gap: 12px;
    }
}

/* ============================================================
   PARALLAX SECTION DIVIDERS
   ============================================================ */
section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    max-width: 400px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
    pointer-events: none;
}

#hero::after,
#footer::after {
    display: none;
}

/* ============================================================
   SMOOTH TEXT GLOW ANIMATION
   ============================================================ */
@keyframes textGlow {
    0%, 100% { text-shadow: 0 0 20px rgba(8, 145, 178, 0.12); }
    50% { text-shadow: 0 0 36px rgba(34, 211, 238, 0.22), 0 0 70px rgba(8, 145, 178, 0.08); }
}

.hero-title .gradient-text {
    animation: textGlow 4s ease-in-out infinite;
}

/* ============================================================
   LINE DRAWING ANIMATION FOR ICONS
   ============================================================ */
.service-icon svg,
.mission-icon svg,
.contact-icon svg {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    transition: stroke-dashoffset 1s var(--ease-out-expo);
}

.scroll-reveal.visible .service-icon svg,
.scroll-reveal.visible .mission-icon svg,
.scroll-reveal.visible .contact-icon svg,
.service-card.scroll-reveal.visible .service-icon svg {
    stroke-dashoffset: 0;
}
