/* ===================================
   ML EXPERTS - Under Construction Page
   Design System & Styles
   Light & Professional Theme
   =================================== */

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
    /* Brand Colors - from logo */
    --color-primary: #7A1B1F;
    --color-primary-light: #9B2C31;
    --color-primary-dark: #5A1015;
    --color-primary-glow: rgba(122, 27, 31, 0.12);
    
    /* Warm Light Backgrounds */
    --color-bg: #FAFAFA;
    --color-bg-warm: #F7F5F3;
    --color-bg-card: rgba(255, 255, 255, 0.85);
    --color-bg-glass: rgba(255, 255, 255, 0.6);
    --color-surface: #FFFFFF;
    
    /* Borders */
    --color-border: rgba(122, 27, 31, 0.08);
    --color-border-hover: rgba(122, 27, 31, 0.18);
    --color-border-light: rgba(0, 0, 0, 0.06);
    
    /* Text — Dark grays matching logo */
    --color-text-primary: #1A1A2E;
    --color-text-secondary: #4A4A5A;
    --color-text-muted: #8E8E9A;
    --color-text-light: #B0B0BC;
    
    /* Accent */
    --color-accent-green: #16A34A;
    --color-accent-green-bg: rgba(22, 163, 74, 0.08);
    --color-accent-green-border: rgba(22, 163, 74, 0.2);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.03);
    --shadow-lg: 0 12px 40px rgba(122, 27, 31, 0.08), 0 4px 12px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 60px rgba(122, 27, 31, 0.12), 0 8px 20px rgba(0,0,0,0.05);
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Reset & Base --- */
*, *::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-body);
    background: var(--color-bg);
    color: var(--color-text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* --- Subtle Background Pattern --- */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 0%, rgba(122, 27, 31, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(122, 27, 31, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(247, 245, 243, 0.8) 0%, transparent 80%);
    z-index: 0;
    pointer-events: none;
}

/* --- Particle Canvas --- */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* --- Decorative Background Shapes --- */
.bg-shape {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
    pointer-events: none;
}

.bg-shape-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(122, 27, 31, 0.06) 0%, transparent 70%);
    top: -150px;
    right: -100px;
    animation: floatShape1 20s ease-in-out infinite;
}

.bg-shape-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(122, 27, 31, 0.04) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    animation: floatShape2 25s ease-in-out infinite;
}

.bg-shape-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(160, 160, 175, 0.06) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: floatShape3 18s ease-in-out infinite;
}

@keyframes floatShape1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-30px, 40px) scale(1.1); }
    66% { transform: translate(20px, -20px) scale(0.95); }
}

@keyframes floatShape2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(1.1); }
}

@keyframes floatShape3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.5; }
}

/* --- Container --- */
.container {
    position: relative;
    z-index: 1;
    max-width: 820px;
    margin: 0 auto;
    padding: var(--space-3xl) var(--space-lg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
}

/* --- Header / Logo --- */
.header {
    opacity: 0;
    animation: fadeInDown 0.8s ease-out 0.2s forwards;
}

.logo-wrapper {
    position: relative;
    display: inline-block;
}

.logo {
    width: 240px;
    height: auto;
    transition: var(--transition-smooth);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.06));
}

.logo:hover {
    transform: scale(1.03);
    filter: drop-shadow(0 8px 24px rgba(122, 27, 31, 0.12));
}

/* --- Main Content --- */
.main-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xl);
    width: 100%;
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 8px 18px;
    background: var(--color-accent-green-bg);
    border: 1px solid var(--color-accent-green-border);
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-accent-green);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out 0.4s forwards;
}

.badge-dot {
    width: 7px;
    height: 7px;
    background: var(--color-accent-green);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.35); }
    50% { opacity: 0.7; box-shadow: 0 0 0 8px rgba(22, 163, 74, 0); }
}

/* Title */
.title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: var(--color-text-primary);
    opacity: 0;
    animation: fadeInUp 0.7s ease-out 0.6s forwards;
}

.title-highlight {
    display: block;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 40%, #C94A4F 70%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 5s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Subtitle */
.subtitle {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--color-text-secondary);
    max-width: 540px;
    font-weight: 400;
    opacity: 0;
    animation: fadeInUp 0.7s ease-out 0.8s forwards;
}

/* --- Services Grid --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    width: 100%;
    opacity: 0;
    animation: fadeInUp 0.7s ease-out 1s forwards;
}

.service-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-xl) var(--space-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    cursor: default;
}

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

.service-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(122, 27, 31, 0.06);
    border-radius: var(--radius-md);
    color: var(--color-primary);
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
    background: var(--color-primary);
    color: #fff;
    transform: scale(1.05);
}

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

.service-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

.service-desc {
    font-size: 0.82rem;
    line-height: 1.6;
    color: var(--color-text-muted);
    font-weight: 400;
}

/* --- Section Divider --- */
.section-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-primary-glow), var(--color-primary), var(--color-primary-glow), transparent);
    border-radius: 2px;
    opacity: 0;
    animation: fadeInUp 0.5s ease-out 1.1s forwards;
}

/* --- Contact Section --- */
.contact-section {
    width: 100%;
    opacity: 0;
    animation: fadeInUp 0.7s ease-out 1.2s forwards;
}

.contact-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 6px;
}

.contact-subtitle {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    width: 100%;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--color-surface);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.contact-card:hover {
    border-color: var(--color-border-hover);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.contact-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(122, 27, 31, 0.05);
    border-radius: var(--radius-sm);
    color: var(--color-primary);
    transition: var(--transition-smooth);
}

.contact-card:hover .contact-icon {
    background: var(--color-primary);
    color: #fff;
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    text-align: left;
    flex: 1;
}

.contact-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    font-weight: 600;
    margin-bottom: 2px;
}

.contact-value {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-primary);
}

.contact-arrow {
    width: 16px;
    height: 16px;
    color: var(--color-text-light);
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.contact-card:hover .contact-arrow {
    color: var(--color-primary);
    transform: translate(3px, -3px);
}

/* --- Newsletter --- */
.newsletter {
    width: 100%;
    max-width: 500px;
    opacity: 0;
    animation: fadeInUp 0.7s ease-out 1.4s forwards;
}

.newsletter-text {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
    font-weight: 400;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    width: 100%;
}

.input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    transition: var(--transition-fast);
}

.input-icon {
    position: absolute;
    left: 16px;
    width: 18px;
    height: 18px;
    color: var(--color-text-light);
    pointer-events: none;
    transition: var(--transition-fast);
}

.email-input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    background: var(--color-surface);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: var(--transition-smooth);
    outline: none;
    box-shadow: var(--shadow-sm);
}

.email-input::placeholder {
    color: var(--color-text-light);
}

.email-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(122, 27, 31, 0.08), var(--shadow-sm);
}

.input-wrapper:focus-within .input-icon {
    color: var(--color-primary);
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 14px 26px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    border: none;
    border-radius: var(--radius-md);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(122, 27, 31, 0.25);
}

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

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

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(122, 27, 31, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 14px rgba(122, 27, 31, 0.25);
}

.btn-icon {
    width: 16px;
    height: 16px;
    transition: var(--transition-fast);
}

.submit-btn:hover .btn-icon {
    transform: translateX(3px);
}

/* Success Message */
.success-message {
    display: none;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: var(--color-accent-green-bg);
    border: 1px solid var(--color-accent-green-border);
    border-radius: var(--radius-md);
    color: var(--color-accent-green);
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: var(--space-md);
    animation: fadeInUp 0.5s ease-out;
}

.success-message svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.success-message.visible {
    display: flex;
}

/* --- Footer --- */
.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    opacity: 0;
    animation: fadeInUp 0.7s ease-out 1.6s forwards;
}

.social-links {
    display: flex;
    gap: var(--space-md);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--color-surface);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    color: var(--color-text-muted);
    transition: var(--transition-smooth);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

.social-link:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(122, 27, 31, 0.03);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.footer-divider {
    width: 50px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-border-light), transparent);
}

.copyright {
    font-size: 0.75rem;
    color: var(--color-text-light);
    font-weight: 400;
    letter-spacing: 0.02em;
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* --- Responsive Design --- */
@media (max-width: 640px) {
    .container {
        padding: var(--space-xl) var(--space-md);
        gap: var(--space-lg);
    }

    .logo {
        width: 180px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .service-card {
        flex-direction: row;
        text-align: left;
        padding: var(--space-md);
    }

    .service-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .submit-btn {
        justify-content: center;
    }

    .subtitle {
        font-size: 0.95rem;
    }

    .contact-card {
        padding: var(--space-md);
    }
}

/* --- Selection Style --- */
::selection {
    background: rgba(122, 27, 31, 0.15);
    color: var(--color-text-primary);
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background: rgba(122, 27, 31, 0.2);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(122, 27, 31, 0.35);
}
