/* DIGIKAIZEN Custom Styles */

:root {
    /* Color Tokens */
    --digi-orange: #FF5344;
    --digi-orange-dark: #E64438;
    --digi-orange-light: #FF7A6E;
    --digi-anthracite: #3C3C3B;
    --digi-anthracite-light: #5C5C5B;
    --digi-light-gray: #E5E5E5;
    --digi-alt-row: #F5F5F5;
    --digi-glacier: #FFF5F4;
    --digi-white: #FFFFFF;

    /* Semantic Colors */
    --color-success: #22C55E;
    --color-warning: #F59E0B;
    --color-error: #EF4444;

    /* Spacing Scale (8-point grid) */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;

    /* Typography Scale */
    --text-xs: 12px;
    --text-sm: 14px;
    --text-base: 16px;
    --text-lg: 18px;
    --text-xl: 20px;
    --text-2xl: 24px;
    --text-3xl: 30px;
    --text-4xl: 36px;
    --text-5xl: 48px;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(60, 60, 59, 0.05);
    --shadow-md: 0 4px 6px rgba(60, 60, 59, 0.1);
    --shadow-lg: 0 10px 15px rgba(60, 60, 59, 0.1);
    --shadow-xl: 0 20px 25px rgba(60, 60, 59, 0.15);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 350ms ease;
}

/* Base Styles */
body {
    font-family: 'Open Sans', sans-serif;
    color: var(--digi-anthracite);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Open Sans', sans-serif;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
    cursor: pointer;
    text-decoration: none;
    border: none;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-sm {
    padding: 6px 12px;
    font-size: var(--text-sm);
    gap: 6px;
}

.btn-md {
    padding: 10px 20px;
    font-size: var(--text-base);
    gap: 8px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: var(--text-lg);
    gap: 10px;
}

.btn-primary {
    background: var(--digi-orange);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: var(--digi-orange-dark);
}

.btn-primary:active:not(:disabled) {
    background: #D13B30;
}

.btn-secondary {
    background: var(--digi-anthracite);
    color: white;
}

.btn-secondary:hover:not(:disabled) {
    background: var(--digi-anthracite-light);
}

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

.btn-outline:hover:not(:disabled) {
    background: var(--digi-orange);
    color: white;
}

.btn-ghost {
    background: transparent;
    color: var(--digi-orange);
}

.btn-ghost:hover:not(:disabled) {
    background: var(--digi-glacier);
}

/* Card Styles */
.card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.card-hover {
    transition: all var(--transition-normal);
}

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

/* Input Styles */
.input {
    font-family: 'Open Sans', sans-serif;
    transition: all var(--transition-fast);
}

.input:focus {
    outline: none;
}

/* Focus Ring for Accessibility */
.focus-ring:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 83, 68, 0.3);
}

.focus-ring:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 83, 68, 0.5);
}

/* Active Navigation Link */
.nav-active {
    color: var(--digi-orange) !important;
    position: relative;
}

.nav-active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--digi-orange);
}

/* Ensure buttons keep white text even when nav-active */
.btn-primary.nav-active {
    color: white !important;
}

.btn-primary.nav-active::after {
    display: none;
}

/* Section Title with Accent */
.section-title-accent {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title-accent::before {
    content: '';
    width: 32px;
    height: 4px;
    background: var(--digi-orange);
    border-radius: 2px;
}

/* Gradient Backgrounds */
.bg-gradient-hero {
    background: linear-gradient(135deg, var(--digi-anthracite) 0%, #2a2a29 50%, #1a1a19 100%);
}

/* Text Gradient */
.text-gradient-orange {
    background: linear-gradient(135deg, var(--digi-orange) 0%, var(--digi-orange-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Underline Effect for H1 */
.h1-underline {
    position: relative;
    display: inline-block;
}

.h1-underline::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--digi-orange);
    border-radius: 2px;
}

/* Service Icon Container */
.service-icon {
    width: 64px;
    height: 64px;
    background: var(--digi-glacier);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon svg {
    width: 32px;
    height: 32px;
    color: var(--digi-orange);
}

/* Stat Card */
.stat-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.stat-number {
    font-size: var(--text-4xl);
    font-weight: 800;
    color: var(--digi-orange);
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--digi-anthracite-light);
    margin-top: var(--space-2);
}

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: var(--text-xs);
    font-weight: 700;
    border-radius: var(--radius-full);
}

.badge-primary {
    background: var(--digi-glacier);
    color: var(--digi-orange);
}

.badge-secondary {
    background: var(--digi-alt-row);
    color: var(--digi-anthracite);
}

/* Process Step */
.process-step {
    position: relative;
    padding-left: 48px;
}

.process-step::before {
    content: attr(data-step);
    position: absolute;
    left: 0;
    top: 0;
    width: 36px;
    height: 36px;
    background: var(--digi-orange);
    color: white;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Menu */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.mobile-menu.open {
    max-height: 400px;
}

/* ========================================
   Animation Keyframes
   These are required for inline CSS classes
   that use raw animation: properties.
   Note: Tailwind config keyframes only work
   with utility classes (animate-*), not raw CSS.
   ======================================== */

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

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

@keyframes float-geo-1 {
    0%, 100% { transform: translateY(0) rotate(15deg); }
    50% { transform: translateY(-20px) rotate(20deg); }
}

@keyframes float-geo-2 {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-15px) scale(1.08); }
}

@keyframes float-geo-3 {
    0%, 100% { transform: translateY(0) rotate(45deg); }
    50% { transform: translateY(-12px) rotate(50deg); }
}

@keyframes float-geo-4 {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.1); }
}

@keyframes float-code {
    0%, 100% { transform: translateY(0); opacity: 0.25; }
    50% { transform: translateY(-15px); opacity: 0.4; }
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

