/* 
 * Premium CA & Finance Firm Template
 * Visual Identity: Executive Corporate Minimalism / Fintech UI
 * Primary Colors: Navy Blue (#0A2540), Gold (#C9A050), Matte Black (#121212)
 */

/* --- Fonts --- */
@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Outfit';
    src: url('../fonts/outfit.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Outfit';
    src: url('../fonts/outfit-bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary-color: #0A2540;
    --primary-light: #1A3A5A;
    --accent-color: #C9A050;
    --accent-hover: #B08A42;
    --secondary-color: #00D4FF;
    --dark-color: #121212;
    --text-color: #4F566B;
    --heading-color: #1A1F36;
    --bg-light: #F6F9FC;
    --white: #FFFFFF;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* --- General Styles --- */
body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--heading-color);
    font-weight: 700;
}

a {
    text-decoration: none;
    transition: var(--transition-smooth);
}

/* --- Navigation --- */
.navbar {
    padding: 20px 0;
    transition: var(--transition-smooth);
    border-bottom: 1px solid transparent;
}

.navbar.sticky {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: var(--primary-color) !important;
}

.navbar-brand span {
    color: var(--accent-color);
}

.nav-link {
    font-weight: 500;
    color: var(--primary-color) !important;
    margin: 0 15px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition-smooth);
}

.nav-link:hover::after {
    width: 100%;
}

/* --- Buttons --- */
.btn-primary {
    background-color: var(--primary-color);
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(10, 37, 64, 0.2);
}

.btn-accent {
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.btn-accent:hover {
    background-color: var(--accent-hover);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(201, 160, 80, 0.3);
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    padding: 200px 0 120px;
    background: linear-gradient(135deg, #0A2540 0%, #1A3A5A 100%);
    color: var(--white);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/hero.jpg') center/cover no-repeat;
    opacity: 0.15;
}

.hero-content h1 {
    font-size: 64px;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 25px;
}

.hero-content p {
    font-size: 18px;
    opacity: 0.8;
    margin-bottom: 40px;
}

/* --- Glassmorphism Cards --- */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    transition: var(--transition-smooth);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
}

/* --- Service Cards --- */
.service-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.05);
}

.service-card .icon-box {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--accent-color);
    font-size: 24px;
    transition: var(--transition-smooth);
}

.service-card:hover .icon-box {
    background: var(--accent-color);
    color: var(--white);
}

/* --- Sections --- */
.section-padding {
    padding: 100px 0;
}

.bg-dark-section {
    background-color: var(--dark-color);
    color: var(--white);
}

.section-title {
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 40px;
    margin-bottom: 15px;
}

.section-title span {
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
}

/* --- Statistics Section --- */
.stat-item h3 {
    font-size: 48px;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.stat-item p {
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

/* --- Testimonials --- */
.testimonial-card {
    padding: 40px;
    background: var(--bg-light);
    border-radius: 20px;
}

/* --- Footer --- */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 25px;
    display: block;
}

.footer-logo span {
    color: var(--accent-color);
}

.footer-links h5 {
    color: var(--white);
    margin-bottom: 25px;
}

.footer-links ul {
    padding: 0;
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    margin-top: 60px;
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

/* --- Preloader --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.loader {
    width: 48px;
    height: 48px;
    border: 5px solid var(--white);
    border-bottom-color: var(--accent-color);
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- Reveal Animation --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

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

/* --- Responsive --- */
@media (max-width: 991px) {
    .hero-content h1 {
        font-size: 48px;
    }
}


/* Lenis required CSS */
html.lenis, html.lenis body { height: auto; width: 100vw; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-scrolling iframe { pointer-events: none; }
