/* ==========================================================================
   AI Jonbin - Corporate Website Styles
   A sophisticated, modern design with AI-inspired aesthetics
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties (Design Tokens)
   -------------------------------------------------------------------------- */
:root {
    /* Primary Colors - Blue Palette */
    --color-primary-50: #eff6ff;
    --color-primary-100: #dbeafe;
    --color-primary-200: #bfdbfe;
    --color-primary-300: #93c5fd;
    --color-primary-400: #60a5fa;
    --color-primary-500: #3b82f6;
    --color-primary-600: #2563eb;
    --color-primary-700: #1d4ed8;
    --color-primary-800: #1e40af;
    --color-primary-900: #1e3a8a;

    /* Accent Colors */
    --color-accent-cyan: #06b6d4;
    --color-accent-indigo: #6366f1;
    --color-accent-violet: #8b5cf6;

    /* Neutral Colors */
    --color-neutral-50: #f8fafc;
    --color-neutral-100: #f1f5f9;
    --color-neutral-200: #e2e8f0;
    --color-neutral-300: #cbd5e1;
    --color-neutral-400: #94a3b8;
    --color-neutral-500: #64748b;
    --color-neutral-600: #475569;
    --color-neutral-700: #334155;
    --color-neutral-800: #1e293b;
    --color-neutral-900: #0f172a;
    --color-neutral-950: #020617;

    /* Semantic Colors */
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-error: #ef4444;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0ea5e9 0%, #6366f1 50%, #8b5cf6 100%);
    --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    --gradient-card: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 100%);
    --gradient-text: linear-gradient(90deg, #0ea5e9 0%, #6366f1 50%, #8b5cf6 100%);

    /* Typography */
    --font-family-sans: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-family-display: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;

    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    --font-size-6xl: 3.75rem;

    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.3);
    --shadow-glow-lg: 0 0 60px rgba(59, 130, 246, 0.4);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
    --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Z-Index Scale */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;
    --z-loader: 1000;

    /* Container */
    --container-max: 1280px;
    --container-padding: var(--space-6);
}

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

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

body {
    font-family: var(--font-family-sans);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-normal);
    color: var(--color-neutral-700);
    background-color: var(--color-neutral-50);
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

img,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul,
ol {
    list-style: none;
}

input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
}

/* Selection */
::selection {
    background-color: var(--color-primary-500);
    color: white;
}

/* --------------------------------------------------------------------------
   Loader
   -------------------------------------------------------------------------- */
.loader {
    position: fixed;
    inset: 0;
    background: var(--color-neutral-950);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-loader);
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

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

.loader-logo {
    font-family: var(--font-family-display);
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: white;
    margin-bottom: var(--space-6);
    letter-spacing: 0.05em;
}

.loader-bar {
    width: 200px;
    height: 3px;
    background: var(--color-neutral-800);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.loader-bar span {
    display: block;
    width: 0;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    animation: loader-progress 1.5s ease forwards;
}

@keyframes loader-progress {
    0% { width: 0; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

section {
    position: relative;
}

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    padding: var(--space-4) 0;
    transition: all var(--transition-base);
}

header.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: var(--space-3) 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: white;
    z-index: 10;
}

.logo-icon {
    width: 40px;
    height: 40px;
    transition: transform var(--transition-base);
}

.logo:hover .logo-icon {
    transform: rotate(10deg);
}

.logo-text {
    font-family: var(--font-family-display);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.02em;
}

/* Navigation */
.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.nav-link {
    position: relative;
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    padding: var(--space-2) 0;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: white;
}

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

.nav-cta {
    background: var(--gradient-primary);
    color: white !important;
    padding: var(--space-2) var(--space-5) !important;
    border-radius: var(--radius-full);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

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

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

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 10;
}

.hamburger {
    position: relative;
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    border-radius: var(--radius-full);
    transition: background var(--transition-fast);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: white;
    border-radius: var(--radius-full);
    transition: transform var(--transition-base);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active .hamburger::after {
    transform: translateY(-8px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-hero);
    overflow: hidden;
}

#hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.6;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(15, 23, 42, 0.5) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: var(--space-32) 0 var(--space-20);
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-6);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--color-success);
    border-radius: var(--radius-full);
    animation: pulse 2s infinite;
}

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

.hero-title {
    font-family: var(--font-family-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    color: white;
    margin-bottom: var(--space-6);
}

.title-line {
    display: block;
}

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

.hero-description {
    font-size: var(--font-size-lg);
    color: rgba(255, 255, 255, 0.7);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-10);
    max-width: 600px;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin-bottom: var(--space-12);
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-8);
    padding-top: var(--space-8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.stat-number {
    font-family: var(--font-family-display);
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    color: white;
    line-height: 1;
}

.stat-suffix {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary-400);
}

.stat-label {
    display: block;
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.6);
    margin-top: var(--space-1);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    color: rgba(255, 255, 255, 0.5);
    animation: float 3s ease-in-out infinite;
}

.scroll-text {
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
}

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

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    padding: var(--space-4) var(--space-8);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-white {
    background: white;
    color: var(--color-neutral-900);
}

.btn-white:hover {
    background: var(--color-neutral-100);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-large {
    font-size: var(--font-size-lg);
    padding: var(--space-5) var(--space-10);
}

.btn-full {
    width: 100%;
}

.btn-arrow {
    width: 20px;
    height: 20px;
    transition: transform var(--transition-fast);
}

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

/* --------------------------------------------------------------------------
   Section Styles
   -------------------------------------------------------------------------- */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-16);
}

.section-label {
    display: inline-block;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-primary-600);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-3);
}

.section-title {
    font-family: var(--font-family-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: var(--font-weight-bold);
    color: var(--color-neutral-900);
    line-height: var(--line-height-tight);
    margin-bottom: var(--space-4);
}

.section-description {
    font-size: var(--font-size-lg);
    color: var(--color-neutral-600);
    line-height: var(--line-height-relaxed);
}

/* --------------------------------------------------------------------------
   About Section
   -------------------------------------------------------------------------- */
.about {
    padding: var(--space-24) 0;
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

.about-headline {
    font-family: var(--font-family-display);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: var(--font-weight-bold);
    color: var(--color-neutral-900);
    line-height: var(--line-height-tight);
    margin-bottom: var(--space-6);
}

.about-description {
    font-size: var(--font-size-base);
    color: var(--color-neutral-600);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-4);
}

.about-signature {
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    border-top: 1px solid var(--color-neutral-200);
}

.signature-title {
    display: block;
    font-size: var(--font-size-sm);
    color: var(--color-neutral-500);
    margin-bottom: var(--space-1);
}

.signature-name {
    font-family: var(--font-family-display);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--color-neutral-900);
}

/* Visual Card */
.visual-card {
    position: relative;
    background: var(--gradient-hero);
    border-radius: var(--radius-2xl);
    padding: var(--space-10);
    overflow: hidden;
}

.visual-bg {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.visual-content {
    position: relative;
    z-index: 1;
}

.visual-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto var(--space-8);
    animation: float-slow 6s ease-in-out infinite;
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.visual-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

.v-stat {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.v-stat-icon {
    width: 24px;
    height: 24px;
    color: var(--color-primary-400);
}

.v-stat-text {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.9);
    font-weight: var(--font-weight-medium);
}

/* --------------------------------------------------------------------------
   Services Section
   -------------------------------------------------------------------------- */
.services {
    position: relative;
    padding: var(--space-24) 0;
    background: var(--color-neutral-50);
    overflow: hidden;
}

.services-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(180deg, white 0%, var(--color-neutral-50) 100%);
}

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

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
}

.service-card {
    position: relative;
    background: white;
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-neutral-100);
    transition: all var(--transition-base);
    overflow: hidden;
}

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

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

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

.service-card.featured {
    background: var(--gradient-hero);
    border-color: transparent;
}

.service-card.featured::before {
    background: var(--gradient-text);
    transform: scaleX(1);
}

.service-card.featured .service-title,
.service-card.featured .service-description,
.service-card.featured .service-features li {
    color: rgba(255, 255, 255, 0.9);
}

.service-card.featured .service-icon {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.service-card.featured .service-link {
    color: white;
}

.service-badge {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    background: var(--color-warning);
    color: white;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
}

.service-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-50);
    color: var(--color-primary-600);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-6);
}

.service-icon svg {
    width: 32px;
    height: 32px;
}

.service-title {
    font-family: var(--font-family-display);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-neutral-900);
    margin-bottom: var(--space-3);
}

.service-description {
    font-size: var(--font-size-base);
    color: var(--color-neutral-600);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-6);
}

.service-features {
    margin-bottom: var(--space-6);
}

.service-features li {
    position: relative;
    font-size: var(--font-size-sm);
    color: var(--color-neutral-700);
    padding-left: var(--space-5);
    margin-bottom: var(--space-2);
}

.service-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--color-primary-500);
    border-radius: var(--radius-full);
}

.service-card.featured .service-features li::before {
    background: var(--color-primary-400);
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-primary-600);
    transition: gap var(--transition-fast);
}

.service-link svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-fast);
}

.service-link:hover {
    gap: var(--space-3);
}

.service-link:hover svg {
    transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   Achievements Section
   -------------------------------------------------------------------------- */
.achievements {
    padding: var(--space-24) 0;
    background: white;
}

.achievements-showcase {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
    margin-bottom: var(--space-12);
}

.achievement-category {
    text-align: center;
    padding: var(--space-8);
    background: var(--color-neutral-50);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--color-neutral-100);
    transition: all var(--transition-base);
}

.achievement-category:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary-200);
}

.category-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--space-4);
    color: var(--color-primary-600);
}

.category-icon svg {
    width: 100%;
    height: 100%;
}

.category-title {
    font-family: var(--font-family-display);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--color-neutral-900);
    margin-bottom: var(--space-2);
}

.category-description {
    font-size: var(--font-size-sm);
    color: var(--color-neutral-500);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-4);
}

.category-stats {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: var(--space-1);
}

.cat-stat-number {
    font-family: var(--font-family-display);
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cat-stat-label {
    font-size: var(--font-size-base);
    color: var(--color-neutral-600);
}

/* Trust Banner */
.trust-banner {
    background: var(--gradient-hero);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
}

.trust-content {
    display: flex;
    align-items: center;
    gap: var(--space-6);
}

.trust-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    color: var(--color-success);
}

.trust-icon svg {
    width: 28px;
    height: 28px;
}

.trust-text h4 {
    font-family: var(--font-family-display);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: white;
    margin-bottom: var(--space-1);
}

.trust-text p {
    font-size: var(--font-size-base);
    color: rgba(255, 255, 255, 0.7);
}

/* --------------------------------------------------------------------------
   CTA Section
   -------------------------------------------------------------------------- */
.cta-section {
    position: relative;
    padding: var(--space-24) 0;
    background: var(--gradient-primary);
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
}

.cta-particles {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Ccircle cx='20' cy='20' r='2'/%3E%3Ccircle cx='80' cy='40' r='1.5'/%3E%3Ccircle cx='40' cy='80' r='2'/%3E%3Ccircle cx='90' cy='90' r='1'/%3E%3Ccircle cx='10' cy='60' r='1.5'/%3E%3C/g%3E%3C/svg%3E");
    animation: drift 30s linear infinite;
}

@keyframes drift {
    from { background-position: 0 0; }
    to { background-position: 100px 100px; }
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-family: var(--font-family-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: var(--font-weight-bold);
    color: white;
    line-height: var(--line-height-tight);
    margin-bottom: var(--space-4);
}

.cta-description {
    font-size: var(--font-size-lg);
    color: rgba(255, 255, 255, 0.9);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-8);
}

/* --------------------------------------------------------------------------
   Contact Section
   -------------------------------------------------------------------------- */
.contact {
    padding: var(--space-24) 0;
    background: var(--color-neutral-50);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: start;
}

.contact-info .section-header {
    text-align: left;
    margin-bottom: var(--space-6);
}

.contact-description {
    font-size: var(--font-size-base);
    color: var(--color-neutral-600);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-8);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.contact-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-50);
    border-radius: var(--radius-lg);
    color: var(--color-primary-600);
}

.contact-icon svg {
    width: 24px;
    height: 24px;
}

.contact-label {
    display: block;
    font-size: var(--font-size-sm);
    color: var(--color-neutral-500);
    margin-bottom: var(--space-1);
}

.contact-value {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    color: var(--color-neutral-900);
}

/* Company Info */
.company-info {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    border: 1px solid var(--color-neutral-200);
}

.company-title {
    font-family: var(--font-family-display);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-bold);
    color: var(--color-neutral-900);
    margin-bottom: var(--space-4);
}

.company-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.company-row {
    display: flex;
    gap: var(--space-4);
}

.company-row dt {
    flex-shrink: 0;
    width: 80px;
    font-size: var(--font-size-sm);
    color: var(--color-neutral-500);
}

.company-row dd {
    font-size: var(--font-size-sm);
    color: var(--color-neutral-700);
}

/* Contact Form */
.contact-form-wrapper {
    background: white;
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-neutral-100);
}

.form-group {
    margin-bottom: var(--space-5);
}

.form-label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-neutral-700);
    margin-bottom: var(--space-2);
}

.required {
    color: var(--color-error);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-size: var(--font-size-base);
    color: var(--color-neutral-900);
    background: var(--color-neutral-50);
    border: 2px solid var(--color-neutral-200);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    background: white;
    border-color: var(--color-primary-500);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--color-neutral-400);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6,9 12,15 18,9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-3) center;
    background-size: 20px;
    padding-right: var(--space-10);
}

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

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
    background: var(--color-neutral-900);
    color: rgba(255, 255, 255, 0.7);
    padding: var(--space-16) 0 var(--space-8);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: var(--space-12);
    padding-bottom: var(--space-12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: white;
    margin-bottom: var(--space-4);
}

.footer-logo .logo-icon {
    width: 36px;
    height: 36px;
}

.footer-logo span {
    font-family: var(--font-family-display);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
}

.footer-tagline {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.5);
}

.footer-nav {
    display: flex;
    gap: var(--space-16);
}

.footer-nav-title {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: white;
    margin-bottom: var(--space-4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-nav-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-nav-list a {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition-fast);
}

.footer-nav-list a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-8);
}

.copyright,
.footer-location {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.4);
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate="fade-up"].animated {
    opacity: 1;
    transform: translateY(0);
}

[data-animate="fade-right"] {
    transform: translateX(-30px);
}

[data-animate="fade-right"].animated {
    opacity: 1;
    transform: translateX(0);
}

[data-animate="fade-left"] {
    transform: translateX(30px);
}

[data-animate="fade-left"].animated {
    opacity: 1;
    transform: translateX(0);
}

/* --------------------------------------------------------------------------
   Responsive Design
   -------------------------------------------------------------------------- */

/* Large Tablets and Small Desktops */
@media (max-width: 1024px) {
    :root {
        --container-padding: var(--space-5);
    }

    .about-content {
        gap: var(--space-10);
    }

    .services-grid {
        gap: var(--space-6);
    }

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

    .footer-nav {
        gap: var(--space-10);
    }
}

/* Tablets */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--color-neutral-950);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: var(--space-6);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
    }

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

    .nav-link {
        font-size: var(--font-size-xl);
    }

    .nav-cta {
        margin-top: var(--space-4);
    }

    .hero-content {
        padding: var(--space-24) 0 var(--space-16);
    }

    .hero-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-6);
    }

    .stat-divider {
        display: none;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: var(--space-12);
    }

    .about-visual {
        order: -1;
    }

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

    .achievements-showcase {
        grid-template-columns: 1fr 1fr;
    }

    .trust-content {
        flex-direction: column;
        text-align: center;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: var(--space-10);
    }

    .contact-info .section-header {
        text-align: center;
    }

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

    .footer-content {
        flex-direction: column;
        gap: var(--space-8);
    }

    .footer-nav {
        width: 100%;
        justify-content: space-between;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-2);
        text-align: center;
    }
}

/* Mobile */
@media (max-width: 480px) {
    :root {
        --container-padding: var(--space-4);
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .visual-stats {
        grid-template-columns: 1fr;
    }

    .achievements-showcase {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: var(--space-6);
    }

    .contact-form-wrapper {
        padding: var(--space-6);
    }

    .footer-nav {
        flex-direction: column;
        gap: var(--space-8);
    }

    .sp-hide {
        display: none;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    [data-animate] {
        opacity: 1;
        transform: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --color-primary-500: #0066cc;
        --color-neutral-600: #333333;
    }

    .hero-description,
    .section-description,
    .about-description,
    .service-description {
        color: var(--color-neutral-800);
    }
}

/* Print Styles */
@media print {
    header,
    .hero-canvas,
    .scroll-indicator,
    .cta-section,
    .loader {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: black;
        background: white;
    }

    .hero {
        min-height: auto;
        padding: 2rem 0;
        background: white;
    }

    .hero-title,
    .section-title {
        color: black;
    }

    a {
        text-decoration: underline;
    }
}
