/* 
=====================================================
ENHANCED HP - UNIFIED CSS STYLESHEET
=====================================================
This file contains global styles and common components.
Page-specific styles have been migrated to CSS modules.

Migrated to CSS Modules:
- Services Page Styles → services/page.module.css
- Recruit Page Styles → recruit/page.module.css
- Development Page Styles → development/page.module.css
- Blog Page Styles → blog/page.module.css
- Support Page Styles → support/page.module.css
- News Modal Styles → components/NewsModal.module.css
- AI Training Page Styles → ai-training/page.module.css
- Global Services Page Styles → global-services/page.module.css

Current Structure:
1. CSS Reset & Variables
2. Base Typography & Layout
3. Common Components (Header, Footer, Buttons, Forms)
4. Dropdown Menu Styles
5. Responsive Design & Media Queries
6. CTA Button Styles (Global)
7. Animations & Keyframes
=====================================================
*/

/* =====================================================
   1. CSS RESET & VARIABLES
   ===================================================== */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Primary Colors */
    --primary-blue: #0a244d;
    --primary-purple: #9e3ffd;
    --gradient-purple: #a338fe;
    --gradient-blue: #5596fd;
    --gradient-blue-alt: #5c90fe;
    --muted-gray: #8996a9;
    --white: #ffffff;

    /* Gray Scale */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --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);

    /* Typography */
    --font-japanese: var(--font-noto-sans-jp), 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Helvetica Neue', sans-serif;
    --font-mono: var(--font-roboto-mono), 'Roboto Mono', 'Courier New', monospace;

    /* Common Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-purple) 100%);
    --gradient-shimmer: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    --gradient-purple-blue: linear-gradient(135deg, var(--gradient-purple) 0%, var(--gradient-blue) 100%);

    /* Transitions */
    --transition-default: all 0.3s ease;
    --transition-slow: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 20px;
    --radius-lg: 25px;
    --radius-xl: 50px;
    --radius-full: 60px;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 5rem;
}

/* =====================================================
   2. BASE TYPOGRAPHY & LAYOUT
   ===================================================== */

body {
    font-family: var(--font-japanese);
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    font-feature-settings: "palt";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
}

/* Typography - font-family is inherited from body, no need to redefine */

/* Ensure paragraphs have proper weight */
p {
    font-weight: 400;
}

/* Ensure list items have proper weight */
li {
    font-weight: 400;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    margin: 0;
}

/* Break mobile class for responsive text */
.break-mobile::before {
    content: "";
}

/* =====================================================
   3. COMMON COMPONENTS
   ===================================================== */

/* --- HEADER & NAVIGATION --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-logo .logo {
    height: 28px;
    font-weight: bold;
    font-size: 24px;
    color: #2563eb;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    position: relative;
    margin: 0;
    padding: 0;
    visibility: visible;
    opacity: 1;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: var(--transition-default);
}

.nav-menu a:hover {
    color: #2563eb;
}

.nav-menu a.active {
    color: var(--primary-purple);
    font-weight: 700;
}

/* Ensure contact button always has white text */
.nav-menu .contact-btn,
.nav-menu a.contact-btn {
    color: var(--white);
}

.nav-menu .contact-btn:hover,
.nav-menu a.contact-btn:hover {
    color: var(--white);
}

/* Mega Dropdown Menu Styles */
.mega-dropdown {
    position: relative;
}

.mega-dropdown-menu {
    position: absolute;
    top: 100%;
    left: -500px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-default);
    margin-top: 0.5rem;
    z-index: 100;
    width: 1400px;
    padding: 0;
    overflow: hidden;
}

.mega-dropdown:hover .mega-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-container {
    display: flex;
    gap: 0;
    padding: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mega-menu-section {
    padding: 0 2.5rem;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    min-width: 220px;
    flex-shrink: 0;
}

.mega-menu-section:last-child {
    border-right: none;
}

.mega-menu-section.featured {
    background: linear-gradient(135deg, #f8faff 0%, #f3f0ff 100%);
    margin: -2rem 0 -2rem 0;
    padding: 2rem;
    border-radius: 0 20px 20px 0;
    flex: 2;
    min-width: 380px;
}

.mega-menu-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #6b7280;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mega-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-menu-list li {
    margin-bottom: 0.75rem;
}

.mega-menu-list li:last-child {
    margin-bottom: 0;
}

.mega-menu-list li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #0a244d;
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition-default);
    padding: 0.5rem 0.75rem;
    margin: 0 -0.75rem;
    border-radius: 8px;
    white-space: nowrap;
}

.mega-menu-list li a:hover {
    background: rgba(102, 126, 234, 0.08);
    color: var(--primary-purple);
    transform: translateX(4px);
}

.menu-icon {
    font-size: 1.25rem;
    width: 1.5rem;
    text-align: center;
}

.featured-service {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: var(--transition-default);
    padding: 0.5rem;
}

.featured-service:hover {
    transform: translateY(-2px);
}

.featured-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.featured-content h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0a244d;
    margin-bottom: 0.5rem;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.3;
}

.featured-content p {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.6;
    white-space: normal;
}

.mega-menu-footer {
    padding: 1.25rem 2rem;
    background: #f9fafb;
    border-radius: 0 0 20px 20px;
    text-align: center;
    width: calc(100% + 4rem);
    box-sizing: border-box;
    margin: 0;
    margin-left: -2rem;
    margin-right: -2rem;
    padding-left: 2rem;
    padding-right: 2rem;
}

.view-all-services {
    color: var(--primary-purple);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition-default);
}

.view-all-services:hover {
    color: #764ba2;
    transform: translateX(3px);
}

/* Dropdown toggle styles */
.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.dropdown-arrow {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Mobile Menu Styles */
.mobile-menu-checkbox {
    /* Hidden but still functional */
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1002;
    position: relative;
    color: #333;
}

.hamburger {
    display: block;
    position: relative;
    width: 28px;
    height: 24px;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: #333;
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: 0.25s ease-in-out;
}

.hamburger span:nth-child(1) {
    top: 0px;
}

.hamburger span:nth-child(2) {
    top: 10px;
}

.hamburger span:nth-child(3) {
    top: 20px;
}

.mobile-menu-checkbox:checked ~ .mobile-menu-toggle .hamburger span:nth-child(1) {
    top: 10px;
    transform: rotate(135deg);
}

.mobile-menu-checkbox:checked ~ .mobile-menu-toggle .hamburger span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.mobile-menu-checkbox:checked ~ .mobile-menu-toggle .hamburger span:nth-child(3) {
    top: 10px;
    transform: rotate(-135deg);
}

/* Mobile Menu Responsive */
@media (max-width: 1024px) {
    .header .nav .mobile-menu-toggle {
        display: block;
        position: relative;
        margin-left: auto;
    }
    
    .header .nav .nav-menu {
        position: fixed;
        top: 60px;
        right: -100%;
        width: 100%;
        max-width: 400px;
        height: calc(100vh - 60px);
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
        gap: 1rem;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
        overflow-y: auto;
        z-index: 999;
        visibility: hidden;
        opacity: 0;
        display: flex;
    }
    
    /* Checkbox checked state - menu visible */
    .header .nav .mobile-menu-checkbox:checked ~ .nav-menu {
        right: 0;
        visibility: visible;
        opacity: 1;
    }
    
    .nav-menu > li {
        width: 100%;
    }
    
    .nav-menu > li > a {
        display: block;
        padding: 1rem 0;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    /* Special handling for contact button list item */
    .nav-menu > li:has(.contact-btn) {
        display: flex;
        justify-content: center;
        border-bottom: none;
        margin-top: 1rem;
    }
    
    /* Mobile Dropdown */
    .mega-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        width: 100%;
        margin-top: 1rem;
        box-shadow: none;
        background: #f8f9fa;
        display: none;
    }
    
    .mega-dropdown:hover .mega-dropdown-menu,
    .mega-dropdown.active .mega-dropdown-menu {
        display: block;
    }
    
    .mega-dropdown.active .dropdown-arrow {
        transform: rotate(180deg);
    }
    
    .mega-menu-container {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }
    
    .mega-menu-section {
        padding: 1rem;
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        min-width: auto;
    }
    
    .mega-menu-section:last-child {
        border-bottom: none;
    }
    
    .mega-menu-section.featured {
        margin: 0;
        border-radius: 10px;
    }
    
    .nav-menu .contact-btn {
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
        text-align: center;
        display: flex;
        align-items: center;
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    /* Footer Responsive for Tablet */
    .footer-links {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 640px) {
    .nav {
        padding: 0 15px;
    }
    
    .nav-menu {
        max-width: 100%;
        padding: 1.5rem;
    }
    
    .nav-logo img {
        height: 32px;
    }
}

/* --- BUTTONS --- */
.contact-btn {
    background: linear-gradient(135deg,
            var(--primary-blue) 0%,
            var(--primary-purple) 100%);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: var(--radius-lg);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 4px 16px rgba(59, 130, 246, 0.3),
        0 2px 8px rgba(139, 92, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    letter-spacing: 0.02em;
}

.contact-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    transition: left 0.8s ease;
}

.contact-btn:hover::before {
    left: 100%;
}

.contact-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow:
        0 8px 24px rgba(59, 130, 246, 0.4),
        0 4px 16px rgba(139, 92, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: 1rem;
    pointer-events: auto;
    transition: var(--transition-default);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
}

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

.cta-button.secondary {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    color: #0a244d;
    border: 2px solid rgba(10, 36, 77, 0.6);
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.cta-button.secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.cta-button.secondary:hover::before {
    left: 100%;
}

.cta-button.secondary:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-4px);
    box-shadow:
        0 15px 35px rgba(10, 36, 77, 0.4),
        0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-blue);
}

.cta-button.premium {
    background: linear-gradient(135deg,
            var(--primary-blue) 0%,
            var(--primary-purple) 100%);
    color: var(--white);
    padding: 1.5rem 3.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 8px 32px rgba(59, 130, 246, 0.3),
        0 4px 16px rgba(139, 92, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    letter-spacing: 0.02em;
}

.cta-button.premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    transition: left 0.8s ease;
}

.cta-button.premium:hover::before {
    left: 100%;
}

.cta-button.premium:hover {
    transform: translateY(-6px) scale(1.05);
    box-shadow:
        0 20px 60px rgba(59, 130, 246, 0.4),
        0 8px 32px rgba(139, 92, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.cta-button .arrow-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.cta-button:hover .arrow-icon {
    transform: translateX(4px);
}

.cta-button.premium .arrow-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.cta-button.premium:hover .arrow-icon {
    transform: translateX(6px);
}

/* Arrow Icon Component */
.arrow-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.cta-button.primary:hover .arrow-icon {
    transform: translateX(4px);
}

/* --- SECTION TITLES --- */
.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 900;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.section-subtitle {
    font-size: 1.2rem;
    text-align: center;
    color: var(--gray-600);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- TITLE MAIN SYSTEM --- */
/* Base title-main style - works for most cases */
.title-main {
    display: block;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.2;
    /* Default: dark text for light backgrounds */
    color: #0a244d;
}

/* Modifier: Light background with dark text (explicit) */
.title-main.with-light-bg {
    color: #0a244d;
}

/* Modifier: Dark background with gradient text */
.title-main.with-dark-bg {
    background: linear-gradient(135deg, #fff 0%, #e5e7eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent; /* Fallback for browsers that don't support background-clip */
}

/* Modifier: White text on dark backgrounds */
.title-main.title-white {
    color: #ffffff;
    background: none;
    -webkit-text-fill-color: #ffffff;
}

/* Context-specific size adjustments - inherit base styles */
/* Smaller size for contact and application sections */
.contact-title .title-main,
.application-title .title-main {
    font-size: clamp(2rem, 4vw, 2.5rem);
    line-height: 1.3;
}

/* Fixed size for company CTA section */
.company-cta-section .cta-title .title-main {
    font-size: 2.5rem;
    font-weight: 700; /* Slightly lighter weight */
}

/* Process sections maintain base color */
[class*="processTitle"] .title-main,
[class*="processSection"] .title-main {
    /* Inherits base color #0a244d */
}

.title-en {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-purple);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.title-ja {
    display: block;
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 900;
    color: var(--gray-900);
    line-height: 1.3;
}

/* --- TEXT UTILITIES --- */
.text-gradient {
    background: linear-gradient(135deg, var(--gradient-purple) 0%, var(--gradient-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent; /* Fallback for browsers that don't support background-clip */
}

.gradient-text-vibrant {
    background: linear-gradient(90deg, #FF006E 0%, #8338EC 50%, #3A86FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 1rem;
    transition: var(--transition-default);
    backdrop-filter: blur(10px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.required {
    color: #ff6b6b;
}

.submit-button {
    background: linear-gradient(135deg, var(--white) 0%, rgba(255, 255, 255, 0.9) 100%);
    color: var(--primary-blue);
    border: none;
    padding: 1.25rem 2.5rem;
    border-radius: var(--radius-xl);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-default);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    background: var(--white);
}

.submit-arrow {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

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

/* --- PAGE HEADER (Non-Homepage) --- */
.page-header {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 8rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

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

.breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.breadcrumb span {
    color: rgba(255, 255, 255, 0.6);
}

.page-title {
    margin-bottom: 1.5rem;
}

.page-title .title-en {
    display: block;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    color: var(--white);
}

.page-title .title-ja {
    display: block;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.9);
}

.page-subtitle {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.85);
}

.page-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.page-stats .stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 120px;
    transition: var(--transition-default);
}

.page-stats .stat-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.page-stats .stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    color: var(--white);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.page-stats .stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

/* --- COMPANY PAGE --- */
/* Company page styles have been migrated to company/page.module.css */

/* Responsive Design for Page Header */
@media (max-width: 768px) {
    .page-header {
        padding: 6rem 0 3rem;
    }

    .page-stats {
        gap: 1rem;
    }

    .page-stats .stat-item {
        min-width: 100px;
        padding: 1rem;
    }

    .page-stats .stat-number {
        font-size: 1.5rem;
    }
}

/* Responsive Design for Company Page - Migrated to company/page.module.css */

/* --- FOOTER --- */
footer {
    background: var(--gray-900);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1.5rem;
}

.footer-brand h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.footer-brand .logo-text {
    color: var(--white);
}

.footer-brand .logo-accent {
    color: rgba(255, 255, 255, 0.7);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

.footer-column h4 {
    color: var(--white);
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    font-size: 0.875rem;
}

.footer-column a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--white);
}

.social-links svg {
    width: 24px;
    height: 24px;
}

/* =====================================================
   4. HOMEPAGE SPECIFIC STYLES
   ===================================================== */
/* Homepage styles have been migrated to page.module.css */

/* --- OUR SERVICES SECTION --- */
/* Our Services section styles have been migrated to page.module.css */

/* --- CASE STUDIES SECTION --- */
/* Case Studies section styles have been migrated to page.module.css */

/* --- STATS SECTION --- */
.stats {
    padding: 3rem 0;
    background: #1f2937;
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

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

/* --- NEWS SECTION --- */
/* News section styles have been migrated to page.module.css */

/* --- CONTACT SECTION --- */
.contact-section {
    padding: 100px 0;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255, 255, 255, 0.03) 35px, rgba(255, 255, 255, 0.03) 70px);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 4rem;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

.contact-content {
    color: var(--white);
}

.contact-title {
    margin-bottom: 2rem;
}

.contact-title .title-small {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    opacity: 0.9;
}

/* .title-main styles moved to consolidated system at line ~830 */

.contact-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.8;
}

.contact-benefits {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-benefits .benefit-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
    border-radius: 0;
}

.contact-benefits .benefit-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--white);
}

.contact-benefits .benefit-item span {
    color: var(--white);
    font-weight: 600;
}

/* SSL note styles moved to component-specific CSS */

.form-wrapper {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form .form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.contact-form .required {
    color: var(--primary-purple);
}

.contact-form .form-group input,
.contact-form .form-group textarea {
    padding: 0.8rem 1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: var(--transition-default);
    background: var(--white);
    color: var(--gray-800);
}

.contact-form .form-group input:focus,
.contact-form .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(123, 58, 237, 0.1);
}

.contact-form .submit-button {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--radius-xl);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.contact-form .submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(123, 58, 237, 0.3);
}

.contact-form .submit-button:hover .submit-arrow {
    transform: translateX(4px);
}

/* Services Page Styles - Migrated to CSS modules */

/* Recruit Page Styles - Migrated to CSS modules */


/* =====================================================
   4. DROPDOWN MENU STYLES
   ===================================================== */

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.dropdown-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--gray-200);
    min-width: 320px;
    width: max-content;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-default);
    z-index: 1000;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--gray-700);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition-default);
    border-radius: 0;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background: var(--gray-50);
    color: var(--primary-purple);
    padding-left: 2rem;
}

/* Ensure dropdown works on mobile */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: var(--gray-50);
        margin: 0.5rem 0;
        border-radius: 4px;
        display: none;
        min-width: 100%;
        width: 100%;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-menu a {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .dropdown-menu a:hover {
        padding-left: 1.5rem;
    }
}

/* =====================================================
   5. RESPONSIVE DESIGN & MEDIA QUERIES
   ===================================================== */

/* --- TABLET & SMALL DESKTOP --- */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .nav {
        padding: 0 1rem;
    }

    .nav-menu {
        display: none;
    }

    /* Homepage */
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .break-mobile::before {
        content: "\A";
        white-space: pre;
    }

    .feature-item,
    .feature-item.reverse {
        grid-template-columns: 1fr;
        gap: 2rem;
        direction: ltr;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }

    .services {
        min-height: auto;
    }

    .services-content {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .services-image {
        min-height: 40vh;
        order: 1;
    }

    .services-text {
        padding: 3rem 2rem;
        text-align: center;
        order: 2;
    }

    .services-title {
        font-size: 2.2rem;
    }

    .services-description {
        font-size: 1rem;
    }

    .cases-section {
        background-attachment: scroll;
    }

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

    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

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

    .services-showcase {
        gap: 2rem;
    }

    .service-item {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2.5rem 0;
        text-align: center;
        transform: none !important;
        border-left: none !important;
        padding-left: 0 !important;
    }

    .service-item::before {
        display: none;
    }

    .service-item.featured {
        background: linear-gradient(135deg,
                rgba(59, 130, 246, 0.05) 0%,
                rgba(139, 92, 246, 0.03) 100%);
        border-radius: var(--radius-md);
        padding: 2.5rem 1.5rem;
    }

    .service-icon-wrapper {
        order: 1;
        margin: 0 auto 1.5rem;
    }

    .service-content {
        order: 2;
    }

    .service-stats-wrapper {
        order: 3;
        margin-top: 1.5rem;
    }

    .service-stats {
        justify-content: center;
        align-items: center;
    }

    .stat {
        min-width: auto;
        justify-content: center;
    }

    .cta-button.premium {
        padding: 1.2rem 2.5rem;
        font-size: 1.1rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .security-note {
        margin-top: 1.5rem;
        padding: 0.8rem 1rem;
        font-size: 0.85rem;
    }

    .security-icon {
        width: 18px;
        height: 18px;
    }

    .security-note span {
        font-size: 0.85rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    /* Services Page */
    .services-hero {
        min-height: 70vh;
        padding-top: 80px;
    }

    .overview-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .overview-item {
        padding: 2rem 1.5rem;
    }

    .detail-header {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .detail-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .features,
    .analytics-grid,
    .integration-logos {
        grid-template-columns: 1fr;
    }

    .detail-title {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .cta-button.primary,
    .cta-button.secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }


    /* Recruitment Page */
    .recruit-hero {
        min-height: 80vh;
        padding-top: 80px;
    }


    .culture-grid,
    .positions-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .position-card {
        padding: 2rem 1.5rem;
    }

    .position-card.featured {
        transform: none;
    }

    .position-details {
        flex-direction: column;
        gap: 1rem;
    }

    .application-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .application-form .form-row {
        grid-template-columns: 1fr;
    }

    .form-wrapper {
        padding: 2rem;
    }
    
    /* New Services Page Responsive */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 2rem;
    }
    
    .service-icon {
        font-size: 2.5rem;
    }
    
    .service-number {
        font-size: 3rem;
    }
    
    .why-us-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .process-timeline {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .process-timeline::before {
        display: none;
    }
    
    .clients-logos {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .client-logo {
        padding: 1.5rem 1rem;
    }
    
    .cta-features {
        gap: 1rem;
    }
    
    .global-grid,
    .regions-grid,
    .programs-grid {
        grid-template-columns: 1fr;
    }
}

/* --- MOBILE --- */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .nav {
        padding: 0 15px;
    }

    /* Homepage */
    .hero-title {
        font-size: 2.5rem;
    }

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

    /* Services Page */
    .services-hero .title-en {
        font-size: 2.5rem;
    }

    .services-hero .title-ja {
        font-size: 1.5rem;
    }

    .overview-item,
    .feature-item,
    .analytics-item {
        padding: 1.5rem;
    }

    .stats-card,
    .pricing-card {
        padding: 1.5rem;
    }

    .price-tier {
        padding: 1rem;
    }

    /* Recruitment Page */
    .recruit-hero .title-en {
        font-size: 2.5rem;
    }

    .recruit-hero .title-ja {
        font-size: 1.5rem;
    }

    .culture-item,
    .benefit-item {
        padding: 2rem 1.5rem;
    }
    
    /* New Services Page Mobile */
    .services-grid-section {
        padding: 60px 0;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .service-title {
        font-size: 1.3rem;
    }
    
    .service-description {
        font-size: 0.9rem;
    }
    
    .highlight-badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
    
    .why-us-section,
    .service-process-section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .why-us-card h3 {
        font-size: 1.3rem;
    }
    
    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }
    
    .clients-logos {
        grid-template-columns: 1fr;
    }
    
    .services-cta-section .title-ja {
        font-size: 2rem;
    }
    
    .cta-features {
        flex-direction: column;
        gap: 0.5rem;
    }

    /* Footer for Mobile */
    .footer-links {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-column {
        text-align: center;
    }

    .footer-column h4 {
        margin-bottom: 0.75rem;
    }

    .footer-column a {
        white-space: normal;
    }
}

/* =====================================================
   6. CTA BUTTON STYLES (GLOBAL)
   ===================================================== */

/* CTA Actions Container */
.cta-actions {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-top: 48px;
}

/* Base CTA Button Styles */
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    line-height: 1;
}

/* Primary CTA Button */
.cta-btn.cta-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 48px;
    font-size: 18px;
    font-weight: 700;
    border-radius: var(--radius-xl);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    transition: var(--transition-default);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.5);
}

.cta-btn.cta-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cta-btn.cta-btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 45px rgba(102, 126, 234, 0.6);
}

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

/* Secondary CTA Button */
.cta-btn.cta-btn-secondary {
    background: white;
    color: #667eea;
    padding: 20px 48px;
    font-size: 18px;
    font-weight: 700;
    border-radius: var(--radius-xl);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 3px solid #667eea;
    transition: var(--transition-default);
    cursor: pointer;
}

.cta-btn.cta-btn-secondary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
    background: #f8f9ff;
    border-color: #764ba2;
    color: #764ba2;
}

/* CTA Button Text and Icon */
.cta-btn.cta-btn-primary span,
.cta-btn.cta-btn-secondary span {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

.cta-btn.cta-btn-primary svg,
.cta-btn.cta-btn-secondary svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.cta-btn.cta-btn-primary:hover svg,
.cta-btn.cta-btn-secondary:hover svg {
    transform: translateX(6px);
}

/* Development Page Styles - Migrated to CSS modules */

/* =====================================================
   8. CASES PAGE STYLES
   ===================================================== */
/* Cases page styles have been migrated to cases/page.module.css */

/* =====================================================
   GLOBAL SERVICES PAGE STYLES - Using existing design patterns
   ===================================================== */

.global-strengths {
    padding: 4rem 0;
}

/* =====================================================
/* Blog Page Styles - Migrated to CSS modules */

/* =====================================================
   7. ANIMATIONS & KEYFRAMES
   ===================================================== */

/* --- GENERAL ANIMATIONS --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes shimmer {
    0% {
        transform: rotate(20deg) translateX(-100%);
    }

    100% {
        transform: rotate(20deg) translateX(300%);
    }
}

/* --- GRID ANIMATIONS --- */
@keyframes gridFlow {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(80px, 80px);
    }
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(60px, 60px);
    }
}

/* --- COMPLEX ANIMATIONS --- */
@keyframes gradientShift {

    0%,
    100% {
        filter: hue-rotate(0deg) brightness(1);
    }

    25% {
        filter: hue-rotate(15deg) brightness(1.05);
    }

    50% {
        filter: hue-rotate(-10deg) brightness(0.98);
    }

    75% {
        filter: hue-rotate(5deg) brightness(1.02);
    }
}

@keyframes conicRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.02);
        opacity: 1;
    }
}

@keyframes orbitalMotion {

    0%,
    100% {
        transform: rotate(0deg) scale(1);
        opacity: 0.7;
    }

    25% {
        transform: rotate(90deg) scale(1.1);
        opacity: 0.9;
    }

    50% {
        transform: rotate(180deg) scale(0.9);
        opacity: 0.6;
    }

    75% {
        transform: rotate(270deg) scale(1.2);
        opacity: 0.8;
    }
}

/* --- ELEMENT ANIMATIONS --- */
.service-item,
.feature-item,
.case-item,
.step {
    animation: fadeInUp 0.6s ease-out;
}

/* Support Page Styles - Migrated to CSS modules */

/* News Modal Styles - Migrated to CSS modules */

/* AI Training Page Styles - Migrated to CSS modules */

/* Global Services Page Styles - Migrated to CSS modules */


/* =====================================================
   HOMEPAGE-SPECIFIC ANIMATIONS (Scoped to .page-home)
   ===================================================== */

/* Homepage Hero Animation Keyframes */
@keyframes homeHeroFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes homeHeroScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Homepage Hero Animations - Scoped to .page-home */
.page-home .hero-content {
    opacity: 0;
    animation: homeHeroFade 0.8s ease-out 0.2s forwards;
}

.page-home .hero-text {
    opacity: 0;
    animation: homeHeroSlide 0.8s ease-out 0.4s forwards;
}

.page-home .hero-title {
    opacity: 0;
    animation: homeHeroFade 0.6s ease-out 0.5s forwards;
}

.page-home .hero-subtitle {
    opacity: 0;
    animation: homeHeroFade 0.6s ease-out 0.6s forwards;
}

.page-home .hero-cta {
    opacity: 0;
    animation: homeHeroFade 0.6s ease-out 0.7s forwards;
}

.page-home .hero-image {
    opacity: 0;
    animation: homeHeroScale 0.8s ease-out 0.6s forwards;
}

/* Mobile adjustments for homepage animations */
@media (max-width: 768px) {
    .page-home .hero-content,
    .page-home .hero-text,
    .page-home .hero-title,
    .page-home .hero-subtitle,
    .page-home .hero-cta,
    .page-home .hero-image {
        animation-duration: 0.6s;
        animation-delay: 0.1s;
    }
}

/* =====================================================
   ZOHO CRM FORM STYLES
   ===================================================== */
/* These styles must remain global because Zoho's JavaScript expects specific class names */

.formsubmit.zcwf_button {
  color: white !important;
  background: transparent linear-gradient(0deg, #0279FF 0%, #00A3F3 100%);
  border: none;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 4px;
}

.formsubmit.zcwf_button:disabled {
  background: #ccc !important;
  cursor: not-allowed;
}

#crmWebToEntityForm.zcwf_lblLeft {
  width: 100%;
  padding: 25px;
  margin: 0 auto;
  box-sizing: border-box;
}

#crmWebToEntityForm.zcwf_lblLeft * {
  box-sizing: border-box;
}

#crmWebToEntityForm {
  text-align: left;
}

#crmWebToEntityForm * {
  direction: ltr;
}

.zcwf_lblLeft .zcwf_title {
  word-wrap: break-word;
  padding: 0px 6px 10px;
  font-weight: bold;
}

.zcwf_lblLeft.cpT_primaryBtn:hover {
  background: linear-gradient(#02acff 0, #006be4 100%) no-repeat padding-box !important;
  box-shadow: 0 -2px 0 0 #0159b9 inset !important;
  border: 0 !important;
  color: #fff !important;
  outline: 0 !important;
}

.zcwf_lblLeft .zcwf_col_fld input[type=text], 
.zcwf_lblLeft .zcwf_col_fld input[type=password], 
.zcwf_lblLeft .zcwf_col_fld textarea {
  width: 60%;
  border: 1px solid #c0c6cc !important;
  resize: vertical;
  border-radius: 2px;
  float: left;
}

.zcwf_lblLeft .zcwf_col_lab {
  width: 30%;
  word-break: break-word;
  padding: 0px 6px 0px;
  margin-right: 10px;
  margin-top: 5px;
  float: left;
  min-height: 1px;
}

.zcwf_lblLeft .zcwf_col_fld {
  float: left;
  width: 68%;
  padding: 0px 6px 0px;
  position: relative;
  margin-top: 5px;
}

.zcwf_lblLeft .zcwf_privacy {
  padding: 6px;
}

.zcwf_lblLeft .wfrm_fld_dpNn {
  display: none;
}

.dIB {
  display: inline-block;
}

.zcwf_lblLeft .zcwf_col_fld_slt {
  width: 60%;
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 4px;
  font-size: 12px;
  float: left;
  resize: vertical;
  padding: 2px 5px;
}

.zcwf_lblLeft .zcwf_row:after, 
.zcwf_lblLeft .zcwf_col_fld:after {
  content: '';
  display: table;
  clear: both;
}

.zcwf_lblLeft .zcwf_col_help {
  float: left;
  margin-left: 7px;
  font-size: 12px;
  max-width: 35%;
  word-break: break-word;
}

.zcwf_lblLeft .zcwf_help_icon {
  cursor: pointer;
  width: 16px;
  height: 16px;
  display: inline-block;
  background: #fff;
  border: 1px solid #c0c6cc;
  color: #c1c1c1;
  text-align: center;
  font-size: 11px;
  line-height: 16px;
  font-weight: bold;
  border-radius: 50%;
}

.zcwf_lblLeft .zcwf_row {
  margin: 15px 0px;
}

.zcwf_lblLeft .formsubmit {
  margin-right: 5px;
  cursor: pointer;
  color: #313949;
  font-size: 12px;
}

.zcwf_lblLeft .zcwf_privacy_txt {
  width: 90%;
  color: rgb(0, 0, 0);
  font-size: 12px;
  font-family: Arial;
  display: inline-block;
  vertical-align: top;
  color: #313949;
  padding-top: 2px;
  margin-left: 6px;
}

.zcwf_lblLeft .zcwf_button {
  font-size: 12px;
  color: #313949;
  border: 1px solid #c0c6cc;
  padding: 3px 9px;
  border-radius: 4px;
  cursor: pointer;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zcwf_lblLeft .zcwf_tooltip_over {
  position: relative;
}

.zcwf_lblLeft .zcwf_tooltip_ctn {
  position: absolute;
  background: #dedede;
  padding: 3px 6px;
  top: 3px;
  border-radius: 4px;
  word-break: break-word;
  min-width: 100px;
  max-width: 150px;
  color: #313949;
  z-index: 100;
}

.zcwf_lblLeft .zcwf_ckbox {
  float: left;
}

.zcwf_lblLeft .zcwf_file {
  width: 55%;
  box-sizing: border-box;
  float: left;
}

.cBoth:after {
  content: '';
  display: block;
  clear: both;
}

@media all and (max-width: 600px) {
  .zcwf_lblLeft .zcwf_col_lab, 
  .zcwf_lblLeft .zcwf_col_fld {
    width: auto;
    float: none !important;
  }
  .zcwf_lblLeft .zcwf_col_help {
    width: 40%;
  }
}

/* Override for hidden fields to ensure they stay hidden */
.wfrm_fld_dpNn {
  display: none !important;
}

/* Reset styles for Zoho form elements within our form container */
.zcwf_lblLeft .zcwf_col_lab,
.zcwf_lblLeft .zcwf_col_fld,
.zcwf_lblLeft .zcwf_row,
.zcwf_lblLeft .zcwf_col_help,
.zcwf_lblLeft .zcwf_title {
  all: unset;
}
