/* 
* Main stylesheet for Malaysia Financial Audit website
* Color palette:
* - Main: Deep indigo #2D3142
* - Accent: Lime green #B8FF36
* - Background: Light beige #F6F3EB
* - Secondary text: Charcoal gray #4F4F4F
* - CTA: Vibrant coral #FF6B6B
*/

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
    background-color: #F6F3EB;
    color: #2D3142;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: #2D3142;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    position: relative;
    padding-bottom: 10px;
}

h2:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background-color: #B8FF36;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: #4F4F4F;
}

footer p {
    color: #ffffff;
}

a {
    color: #2D3142;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #B8FF36;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: #B8FF36;
    color: #2D3142;
}

.btn-primary:hover {
    background-color: #a1e62e;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(177, 255, 54, 0.4);
}

.btn-secondary {
    background-color: #FF6B6B;
    color: #ffffff;
}

.btn-secondary:hover {
    background-color: #ff5252;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

/* Header */
header {
    background-color: #2D3142;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 1px;
}

.logo span {
    color: #B8FF36;
}

/* Navigation */
.nav-menu {
    list-style: none;
    display: flex;
}

.nav-menu li {
    margin-left: 25px;
}

.nav-menu a {
    color: #ffffff;
    font-weight: 500;
}

.nav-menu a:hover {
    color: #B8FF36;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    margin: 3px 0;
    transition: 0.4s;
}

/* Hero Section */
.hero {
    padding: 100px 0;
    background-color: #2D3142;
    color: #ffffff;
    position: relative;
}

.hero:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 100"><path fill="%23F6F3EB" d="M0,64L60,64C120,64,240,64,360,58.7C480,53,600,43,720,42.7C840,43,960,53,1080,58.7C1200,64,1320,64,1380,64L1440,64L1440,100L1380,100C1320,100,1200,100,1080,100C960,100,840,100,720,100C600,100,480,100,360,100C240,100,120,100,60,100L0,100Z"></path></svg>');
    background-repeat: no-repeat;
    background-size: cover;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.hero h1 span {
    color: #B8FF36;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* About Section */
.about {
    padding: 80px 0;
}

.about h2 {
    text-align: center;
    margin-bottom: 40px;
}

.about h2:after {
    left: 50%;
    transform: translateX(-50%);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 30px;
}

.about-text {
    flex: 1.2;
    text-align: center;
}

.about-image {
    flex: 0.8;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

/* Services Section */
.services {
    padding: 80px 0;
    background-color: #2D3142;
    color: #ffffff;
}

.services h2 {
    color: #ffffff;
    text-align: center;
    margin-bottom: 50px;
}

.services h2:after {
    left: 50%;
    transform: translateX(-50%);
    background-color: #B8FF36;
}

.services-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.service-card {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
    max-width: 350px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-image {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-header {
    background-color: #B8FF36;
    padding: 20px;
    text-align: center;
}

.service-header h3 {
    color: #2D3142;
    margin-bottom: 0;
}

.service-content {
    padding: 20px;
    color: #2D3142;
}

.service-content ul {
    list-style-position: inside;
    margin-top: 15px;
}

.service-content li {
    margin-bottom: 10px;
    color: #4F4F4F;
}

/* Features Section */
.features {
    padding: 80px 0;
}

.features h2 {
    text-align: center;
    margin-bottom: 50px;
}

.features h2:after {
    left: 50%;
    transform: translateX(-50%);
}

.features-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.feature-item {
    text-align: center;
    width: 100%;
    max-width: 250px;
    padding: 20px;
    border-radius: 10px;
    background-color: #ffffff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background-color: rgba(184, 255, 54, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #B8FF36;
}

/* Gallery Section */
.gallery {
    padding: 80px 0;
    background-color: #F6F3EB;
}

.gallery h2 {
    text-align: center;
    margin-bottom: 50px;
}

.gallery h2:after {
    left: 50%;
    transform: translateX(-50%);
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Testimonials Section */
.testimonials {
    padding: 80px 0;
    background-color: #2D3142;
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 50px;
    color: #ffffff;
}

.testimonials h2:after {
    left: 50%;
    transform: translateX(-50%);
    background-color: #B8FF36;
}

.testimonials-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.testimonial-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 350px;
    position: relative;
}

.testimonial-card:before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 5rem;
    color: rgba(184, 255, 54, 0.2);
    font-family: serif;
}

.testimonial-content {
    margin-bottom: 20px;
    color: #4F4F4F;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    margin-bottom: 0;
    font-size: 1.1rem;
}

.author-info p {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: #4F4F4F;
}

/* Form Section */
.contact {
    padding: 80px 0;
    background-color: #F6F3EB;
    position: relative;
}

.contact h2 {
    text-align: center;
    margin-bottom: 50px;
}

.contact h2:after {
    left: 50%;
    transform: translateX(-50%);
}

.form-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #e1e1e1;
    border-radius: 5px;
    font-family: "Poppins", sans-serif;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #B8FF36;
}

select.form-control {
    cursor: pointer;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.checkbox-group input {
    margin-right: 10px;
    margin-top: 5px;
}

/* Footer */
footer {
    background-color: #2D3142;
    color: #ffffff;
    padding: 50px 0 20px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section h3 {
    color: #ffffff;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: #B8FF36;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ffffff;
}

.footer-links a:hover {
    color: #B8FF36;
}

.contact-info {
    list-style: none;
    color: #ffffff;
}

.contact-info li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.contact-info i {
    margin-right: 10px;
    color: #B8FF36;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 0.9rem;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: #2D3142;
    color: #ffffff;
    padding: 15px 0;
    z-index: 1000;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    transition: bottom 0.5s ease;
}

.cookie-popup.show {
    bottom: 0;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.cookie-text {
    flex: 1;
    color: #ffffff;
}

/* Policy Pages */
.policy-container {
    max-width: 900px;
    margin: 50px auto;
    padding: 40px;
    background-color: #F6F3EB;
    border: 1px solid #e1e1e1;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.policy-container h1 {
    text-align: center;
    margin-bottom: 30px;
}

.policy-section {
    margin-bottom: 30px;
}

.policy-section h2 {
    margin-bottom: 15px;
    color: #2D3142;
}

/* FAQ Section */
.faq {
    padding: 80px 0;
    background-color: #F6F3EB;
}

.faq h2 {
    text-align: center;
    margin-bottom: 40px;
}

.faq h2:after {
    left: 50%;
    transform: translateX(-50%);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.faq-question {
    padding: 15px 20px;
    cursor: pointer;
    background-color: #ffffff;
    border-bottom: 1px solid #f0f0f0;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
}

.faq-question h3 a {
    color: #2D3142;
    display: block;
    text-decoration: none;
}

.faq-answer {
    padding: 20px;
    background-color: #ffffff;
}

/* Thank You Page */
.thankyou {
    text-align: center;
    padding: 100px 0;
}

.thankyou-content {
    max-width: 700px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e1e1;
}

.thankyou i {
    font-size: 5rem;
    color: #B8FF36;
    margin-bottom: 30px;
}

.thankyou-icon {
    font-size: 3rem;
    width: 80px;
    height: 80px;
    line-height: 80px;
    background-color: #B8FF36;
    color: #2D3142;
    border-radius: 50%;
    margin: 0 auto 30px;
    box-shadow: 0 5px 15px rgba(184, 255, 54, 0.3);
}

/* Responsive Design */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .about-content {
        flex-direction: column-reverse;
    }
    
    .about-image {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background-color: #2D3142;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 15px 0;
    }
    
    .hero {
        padding: 80px 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .service-card,
    .testimonial-card {
        max-width: 100%;
    }
    
    .feature-item {
        max-width: 45%;
    }
}

@media (max-width: 576px) {
    .container {
        width: 95%;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 10px 20px;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .feature-item {
        max-width: 100%;
    }
    
    .form-container {
        padding: 20px;
    }
    
    .footer-section {
        flex: 100%;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
}
