/* 
   MazcoWebs - Premium Accounting & Business Consulting Website
   Enhanced CSS Styles with Royal Yellow Color Palette
   Professional Design with Animations and Parallax Effects
*/

:root {
    /* Royal Yellow Color Palette */
    --primary: #FFD700; /* Royal Yellow */
    --primary-dark: #DAA520; /* Golden Yellow */
    --primary-light: #FFEB99; /* Light Yellow */
    --secondary: #2C3E50; /* Dark Blue */
    --secondary-light: #34495E; /* Medium Blue */
    --dark: #1A1A1A; /* Almost Black */
    --light: #F8F9FA; /* Almost White */
    --grey: #6C757D; /* Medium Grey */
    --success: #28A745; /* Green */
    --accent: #FFB300; /* Amber */
    --text: #333333;
    --text-light: #777777;
}

/* ===== Base Styles ===== */
body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    overflow-x: hidden;
    background-color: #fff;
    line-height: 1.6;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--secondary);
}

section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    color: var(--secondary);
    font-size: 2.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background-color: var(--primary);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 3rem;
    font-weight: 400;
}

a {
    color: var(--primary-dark);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary);
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--secondary);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
    box-shadow: 0 10px 25px rgba(218, 165, 32, 0.3);
    transform: translateY(-3px);
}

.btn-outline-light {
    border-color: #fff;
    color: #fff;
    background-color: transparent;
}

.btn-outline-light:hover {
    background-color: #fff;
    color: var(--primary-dark);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.bg-light {
    background-color: var(--light) !important;
}

.btn-link {
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.btn-link i {
    margin-left: 8px;
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

.btn-link:hover {
    color: var(--secondary);
}

.btn-link:hover i {
    transform: translateX(5px);
}

/* ===== Preloader ===== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--secondary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
}

.loader {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100px;
    height: 100px;
}

.loader-square {
    position: absolute;
    width: 15px;
    height: 15px;
    background-color: var(--primary);
    animation: loaderAnimation 1.5s infinite ease-in-out;
}

.loader-square:nth-child(1) {
    top: 0;
    left: 0;
    animation-delay: 0s;
}

.loader-square:nth-child(2) {
    top: 0;
    right: 0;
    animation-delay: 0.2s;
}

.loader-square:nth-child(3) {
    bottom: 0;
    right: 0;
    animation-delay: 0.4s;
}

.loader-square:nth-child(4) {
    bottom: 0;
    left: 0;
    animation-delay: 0.6s;
}

@keyframes loaderAnimation {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(0.5);
        opacity: 0.5;
    }
}

/* ===== Navbar ===== */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 20px 0;
    transition: all 0.4s ease;
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar.scrolled {
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--secondary);
    letter-spacing: 1px;
}

.brand-name {
    color: var(--primary);
}

.navbar-nav .nav-link {
    color: var(--secondary);
    font-weight: 600;
    padding: 8px 15px;
    margin: 0 5px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary);
}

/* Dropdown Menu Styles */
.dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
    border-radius: 8px;
    padding: 10px 0;
    animation: fadeIn 0.3s ease;
}

.dropdown-item {
    padding: 8px 20px;
    font-weight: 500;
    color: var(--secondary);
    transition: all 0.3s ease;
}

.dropdown-item:hover, .dropdown-item:focus {
    background-color: var(--primary-light);
    color: var(--secondary);
}

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -10px;
    margin-left: 0;
    display: none;
}

.dropdown-submenu:hover .dropdown-menu {
    display: block;
}

.dropdown-toggle::after {
    margin-left: 5px;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.dropdown-submenu > .dropdown-toggle::after {
    transform: rotate(-90deg);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    color: #fff;
    padding: 180px 0 120px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    color: #fff;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.2);
    transform: perspective(1000px) rotateY(-5deg);
    transition: all 0.5s ease;
}

.hero-image:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.hero-shape {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".25" fill="%23ffffff"/><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" opacity=".5" fill="%23ffffff"/><path d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z" fill="%23ffffff"/></svg>');
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 3;
}

/* ===== Features Section ===== */
.feature-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    height: 100%;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.icon-box {
    width: 70px;
    height: 70px;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--primary-dark);
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.feature-card:hover .icon-box {
    background-color: var(--primary);
    color: #fff;
    transform: rotate(15deg);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--secondary);
}

.feature-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

/* ===== Services Section ===== */
.services {
    position: relative;
    overflow: hidden;
}

.service-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-light);
    color: var(--primary-dark);
    font-size: 2.5rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background-color: var(--primary);
    color: #fff;
}

.service-card .card-body {
    padding: 30px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--secondary);
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

/* ===== About Section ===== */
.about {
    position: relative;
}

.about-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.1);
}

.about-image img {
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.stat-item {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 5px;
}

.stat-item p {
    color: var(--text-light);
    margin-bottom: 0;
    font-weight: 500;
}

/* ===== Testimonials Section ===== */
.testimonial-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.testimonial-content {
    position: relative;
}

.testimonial-content::before {
    content: '\201C';
    position: absolute;
    top: -20px;
    left: -10px;
    font-size: 5rem;
    color: var(--primary-light);
    font-family: Georgia, serif;
    line-height: 1;
    z-index: 0;
    opacity: 0.5;
}

.testimonial-content p {
    position: relative;
    font-style: italic;
    color: var(--text);
    z-index: 1;
    margin-bottom: 0;
}

.rating {
    color: var(--primary);
}

.author-image img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 3px solid var(--primary-light);
}

.author-info h5 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--secondary);
}

.author-info p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0;
}

/* ===== CTA Section ===== */
.cta {
    position: relative;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: #fff;
    padding: 80px 0;
    overflow: hidden;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* ===== Contact Section ===== */
.contact-info {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--secondary);
}

.contact-item {
    margin-bottom: 20px;
}

.icon-box {
    width: 50px;
    height: 50px;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-form-wrapper {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-control, .form-select {
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(255, 215, 0, 0.25);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary-light);
    color: var(--primary-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}

/* ===== Footer ===== */
.footer {
    background-color: var(--secondary);
    color: #fff;
    padding: 80px 0 30px;
    position: relative;
}

.footer-logo {
    font-size: 2rem;
    color: #fff;
}

.footer-logo span.text-accent {
    color: var(--primary);
}

.footer-heading {
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    color: #fff;
}

.footer-heading::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: var(--primary);
    bottom: -10px;
    left: 0;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.newsletter-form .form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    height: 50px;
}

.newsletter-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form .btn {
    height: 50px;
    width: 50px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.6);
    margin-left: 15px;
    font-size: 0.9rem;
}

.footer-bottom-links a:hover {
    color: var(--primary);
}

/* ===== Back to Top Button ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    color: #fff;
    transform: translateY(-5px);
}

/* ===== Responsive Styles ===== */
@media (max-width: 1199.98px) {
    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 991.98px) {
    section {
        padding: 80px 0;
    }
    
    .hero {
        padding: 150px 0 100px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .navbar-nav .nav-link {
        padding: 8px 0;
        margin: 5px 0;
    }
    
    .dropdown-menu {
        margin-top: 0;
        box-shadow: none;
        border-left: 3px solid var(--primary);
    }
    
    .dropdown-submenu .dropdown-menu {
        position: static;
        margin-left: 15px;
    }
}

@media (max-width: 767.98px) {
    section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero {
        padding: 120px 0 80px;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-image {
        margin-top: 40px;
    }
    
    .feature-card, .testimonial-card {
        margin-bottom: 30px;
    }
    
    .about-image {
        margin-bottom: 40px;
    }
}

@media (max-width: 575.98px) {
    section {
        padding: 50px 0;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.8rem;
    }
    
    .footer {
        padding: 60px 0 20px;
    }
    
    .footer-logo {
        font-size: 1.8rem;
    }
}