/* 
   DHSL & Co - Chartered Accountants
   Minimal Modern Design Theme (No Gradients)
*/

:root {
    --primary-color: #06221C;   /* Deep Dark Green */
    --primary-dark: #03110E;
    --accent-light: #00C875;    /* Vibrant Green */
    --accent-lighter: #F7F4EE;  /* Cream */
    --white: #FFFFFF;
    --loading-ease: cubic-bezier(0.65, 0, 0.35, 1);
    --perspective: 1200px;
}

/* Custom fonts setup through HTML link to Inter */
body {
    font-family: 'Inter', sans-serif;
    background-color: #F8FAFC; /* Slate 50 background */
    color: #475569; /* Slate 600 text */
}

/* Micro-scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Slide in left and right micro-reveals */
.reveal-left {
    opacity: 0;
    transform: translateX(-16px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(16px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Loading Screen Animation */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #FFFFFF;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.6s var(--loading-ease), visibility 0.6s var(--loading-ease);
    overflow: hidden;
}

.loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.ca-animation {
    position: relative;
    width: 220px;
    height: 130px;
    margin-bottom: 24px;
    perspective: var(--perspective);
}

.ca-animation .letter {
    position: absolute;
    font-size: 90px;
    font-weight: 800;
    color: var(--primary-color);
    opacity: 0;
    transform: translateY(30px) rotateX(30deg);
}

.ca-animation .letter-c {
    left: 30px;
    animation: fadeInUp3D 1.2s var(--loading-ease) forwards, float 3s ease-in-out infinite 1.2s;
}

.ca-animation .letter-a {
    right: 50px;
    animation: fadeInUp3D 1.2s var(--loading-ease) 0.3s forwards, float 3s ease-in-out infinite 1.5s;
}

.ca-animation .dot {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--accent-light);
    opacity: 0;
}

.ca-animation .dot-1 {
    top: 25px;
    left: 85px;
    animation: fadeIn 0.5s ease 0.6s forwards, floatDot 3s ease-in-out infinite 1.6s;
}

.ca-animation .dot-2 {
    top: 25px;
    left: 105px;
    animation: fadeIn 0.5s ease 0.7s forwards, floatDot 3s ease-in-out infinite 1.7s alternate-reverse;
}

.loading-text {
    font-size: 18px;
    color: var(--primary-color);
    letter-spacing: 3px;
    font-weight: 700;
    animation: fadeInUp 1s var(--loading-ease) 0.8s forwards, pulse 3s ease infinite 1.8s;
    opacity: 0;
    transform: translateY(20px);
    padding: 5px 10px;
}

.loading-bar {
    width: 240px;
    height: 4px;
    background-color: #E2E8F0;
    border-radius: 10px;
    margin-top: 24px;
    overflow: hidden;
    position: relative;
}

.loading-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 60px;
    background-color: var(--accent-light);
    animation: loadingBar 2s var(--loading-ease) infinite;
}

@keyframes fadeInUp3D {
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

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

@keyframes floatDot {
    0%, 100% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(-6px);
        opacity: 0.7;
    }
}

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

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

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

@keyframes loadingBar {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(400%);
    }
}

@media (max-width: 768px) {
    .ca-animation {
        width: 180px;
        height: 110px;
    }
    .ca-animation .letter {
        font-size: 70px;
    }
    .ca-animation .letter-c {
        left: 20px;
    }
    .ca-animation .letter-a {
        right: 40px;
    }
    .ca-animation .dot-1 {
        left: 70px;
        top: 20px;
    }
    .ca-animation .dot-2 {
        left: 85px;
        top: 20px;
    }
}

/* Custom utilities for interactive visual refinements */
.custom-shadow {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
}

.custom-shadow-hover:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
}