/*
Theme Name: Mac Soft (AutoCount Expert)
Theme URI: https://example.com/mac-soft
Author: Antigravity
Author URI: https://example.com
Description: A high-performance, compliance-focused theme for Regulated Services in Malaysia.
Version: 2.0.0 (Ultra Luxury)
Text Domain: regulated-services
*/

:root {
    /* Design System - Human-Centric Premium Palette */
    --color-primary: #1e293b;
    /* Softer Deep Navy */
    --color-primary-light: #334155;
    --color-secondary: #475569;
    /* Slate for text */
    --color-text-main: #333333;
    /* Pure Charcoal */

    /* The Human Touch: Warmer Accent & Background */
    --color-accent: #c2410c;
    /* Burnt Orange/Gold */
    --color-accent-hover: #9a3412;
    --color-bg-light: #f8fafc;
    /* Premium Slate-White */
    --color-white: #ffffff;
    --color-border: #e2e8f0;

    /* Typography */
    --font-heading: 'Inter', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    --spacing-container: 1140px;
    --spacing-padding: 2rem;
    --border-radius: 16px;
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-main);
    background: var(--color-bg-light);
    line-height: 1.75;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* --- ULTRA-LUXURY ANIMATIONS --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Base Animation Application */
.card,
.section-title,
.hero h1,
.hero p {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
}

.card:nth-child(1) {
    animation-delay: 0.1s;
}

.card:nth-child(2) {
    animation-delay: 0.2s;
}

.card:nth-child(3) {
    animation-delay: 0.3s;
}

.card:nth-child(4) {
    animation-delay: 0.4s;
}

.hero h1 {
    animation-delay: 0.1s;
}

.hero p {
    animation-delay: 0.3s;
}

.btn {
    opacity: 1;
    /* Ensure buttons are always visible by default */
}


/* --- TYPOGRAPHY --- */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.8rem;
    letter-spacing: -0.03em;
    background: linear-gradient(to right, #ffffff, #cbd5e1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

h2 {
    font-size: 2.8rem;
    margin-top: 2rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-accent);
}

p {
    margin-bottom: 1.5rem;
    margin-left: auto;
    margin-right: auto;
    max-width: 70ch;
    opacity: 0.9;
}

ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
    text-align: left;
    /* Fixes alignment when inside centered text blocks */
}

li::before {
    content: "✓";
    color: var(--color-accent);
    position: absolute;
    left: 0;
    font-weight: bold;
}

footer li::before {
    content: none;
}


/* --- LAYOUT & HEADER (Glassmorphism) --- */
.container {
    max-width: var(--spacing-container);
    margin: 0 auto;
    padding: 0 var(--spacing-padding);
}

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: -0.05em;
}

nav ul {
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav li {
    padding: 0;
    margin: 0;
    font-weight: 600;
    font-size: 0.95rem;
}

nav li::before {
    content: none;
}


/* --- HERO SECTION --- */
.hero {
    /* Living Gradient */
    background: linear-gradient(-45deg, #0f172a, #1e293b, #334155, #1e3a8a);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: var(--color-white);
    padding: 8rem 0 6rem;
    text-align: center;
    position: relative;
}

/* Noise Texture */
.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0IiBoZWlnaHQ9IjQiPgo8cmVjdCB3aWR0aD0iNCIgaGVpZ2h0PSI0IiBmaWxsPSIjZmZmIiBmaWxsLW9wYWNpdHk9IjAuMDUiLz48L3N2Zz4=');
    opacity: 0.3;
    pointer-events: none;
    /* Crucial: Prevent blocking button clicks */
}

.hero .container {
    position: relative;
    z-index: 2;
    /* Put content above the overlay if needed */
}


/* --- SECTIONS & CARDS --- */
.section {
    padding: 5rem 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    -webkit-text-fill-color: initial;
    background: none;
}

/* Reset gradient for white bg */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.card {
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: 24px;
    /* Ultra Premium Roundness */
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.05);
    /* Deep Diffused Shadow */
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--color-accent), #ea580c);
}

.card:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.12);
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 1rem 3rem;
    background: linear-gradient(135deg, var(--color-accent) 0%, #ea580c 100%);
    color: white;
    border-radius: 100px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 10px 20px -5px rgba(194, 65, 12, 0.4);
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(194, 65, 12, 0.5);
    color: white;
    filter: brightness(1.1);
}

/* --- FOOTER --- */
footer {
    background: var(--color-primary);
    color: #94a3b8;
    padding: 5rem 0 2rem;
    font-size: 0.95rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer h4 {
    color: #f8fafc;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

footer a {
    color: #cbd5e1;
}

footer a:hover {
    color: white;
}

footer .btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: none;
    padding: 0.75rem 2rem;
    font-size: 0.9rem;
}

footer .btn:hover {
    background: white;
    color: var(--color-primary);
}

/* Mobile */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .hero {
        padding: 4rem 0;
    }

    .nav-flex {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
}