/* Main Stylesheet for domain.com - Accounting Services Malaysia */

/* ==================== GLOBAL STYLES ==================== */
:root {
    /* Color Palette */
    --bg-primary: #F8F9FE;
    --bg-secondary: #E0F7FA;
    --heading-color: #1A1A40;
    --text-color: #404040;
    --accent-color-1: #FF6B6B;
    --accent-color-2: #FFD93D;
    --button-gradient-from: #00C2FF;
    --button-gradient-to: #6BFFB8;
    
    /* Spacing */
    --section-padding: 80px 0;
    --container-padding: 0 15px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--heading-color);
    margin-bottom: 20px;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 15px;
}

a {
    color: var(--heading-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-color-1);
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    background: linear-gradient(to right, var(--button-gradient-from), var(--button-gradient-to));
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 194, 255, 0.3);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 194, 255, 0.4);
    color: white;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--button-gradient-from), var(--button-gradient-to));
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.section-title p {
    max-width: 700px;
    margin: 0 auto;
}

section {
    padding: var(--section-padding);
}

.alt-bg {
    background-color: var(--bg-secondary);
}

/* ==================== HEADER ==================== */
header {
    background-color: white;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--heading-color);
}

.logo:hover {
    color: var(--heading-color);
}

/* Navigation */
.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu a {
    font-weight: 500;
    position: relative;
}

.nav-menu a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--button-gradient-from), var(--button-gradient-to));
    bottom: -5px;
    left: 0;
    transition: width 0.3s ease;
}

.nav-menu a:hover:after {
    width: 100%;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 24px;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 26, 64, 0.98);
    z-index: 1001;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

.mobile-menu ul {
    list-style: none;
    text-align: center;
}

.mobile-menu ul li {
    margin-bottom: 20px;
}

.mobile-menu ul li a {
    color: white;
    font-size: 18px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: block;
    padding: 10px;
}

.mobile-menu ul li a:hover {
    color: var(--accent-color-1);
}

/* ==================== HERO SECTION ==================== */
.hero {
    padding-top: 180px;
    padding-bottom: 100px;
    background: url('../img/hero-bg.jpg') center center/cover;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(26, 26, 64, 0.8), rgba(26, 26, 64, 0.6));
}

.hero-content {
    position: relative;
    z-index: 1;
    color: white;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    color: white;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* ==================== ABOUT SECTION ==================== */
.about-features {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

.about-feature {
    flex: 1 1 300px;
    text-align: center;
    padding: 30px 20px;
    border-radius: 20px;
    background-color: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.about-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.about-feature i {
    font-size: 40px;
    margin-bottom: 20px;
    background: linear-gradient(to right, var(--button-gradient-from), var(--button-gradient-to));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==================== SERVICES SECTION ==================== */
.services-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.service-card {
    flex: 1 1 300px;
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.service-card-content {
    padding: 30px;
}

.service-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--button-gradient-from), var(--button-gradient-to));
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.service-card:hover .service-card-image img {
    transform: scale(1.05);
}

.service-card h3 {
    margin-bottom: 15px;
}

/* ==================== BENEFITS SECTION ==================== */
.benefits-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.benefit-card {
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: 50%;
    color: var(--heading-color);
    font-size: 30px;
}

/* ==================== TESTIMONIALS SECTION ==================== */
.testimonials-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.testimonial-item {
    background-color: white;
    border-radius: 20px;
    padding: 40px;
    margin: 0 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.testimonial-content {
    margin-bottom: 30px;
    position: relative;
    padding: 0 20px;
}

.testimonial-content::before {
    content: '"';
    font-size: 60px;
    line-height: 1;
    color: var(--accent-color-2);
    font-family: serif;
    position: absolute;
    top: -20px;
    left: -10px;
    opacity: 0.3;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.testimonial-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.testimonial-position {
    color: var(--accent-color-1);
    font-size: 0.9rem;
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.testimonial-nav-item {
    width: 12px;
    height: 12px;
    background-color: #ddd;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
}

.testimonial-nav-item.active {
    background: linear-gradient(to right, var(--button-gradient-from), var(--button-gradient-to));
}

/* ==================== FAQ SECTION ==================== */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.faq-question {
    padding: 20px;
    background-color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background-color: #f9f9f9;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-answer.active {
    padding: 0 20px 20px;
    max-height: 500px; /* Adjust as needed */
}

.faq-toggle {
    font-size: 18px;
    transition: all 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

/* ==================== CONTACT FORM SECTION ==================== */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, var(--button-gradient-from), var(--button-gradient-to));
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

input, select, textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    transition: all 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--button-gradient-from);
    box-shadow: 0 0 0 2px rgba(0, 194, 255, 0.2);
}

.checkbox-group {
    margin-bottom: 15px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: 400;
    cursor: pointer;
}

.checkbox-group input {
    width: auto;
    margin-right: 10px;
}

.form-submit {
    text-align: center;
    margin-top: 30px;
}

/* ==================== FOOTER ==================== */
footer {
    background-color: var(--heading-color);
    color: white;
    padding: 60px 0 30px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}

.footer-column {
    flex: 1 1 250px;
}

.footer-column h3 {
    color: white;
    margin-bottom: 25px;
    padding-bottom: 10px;
    position: relative;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(to right, var(--button-gradient-from), var(--button-gradient-to));
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #ddd;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color-1);
    padding-left: 5px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.footer-contact-icon {
    margin-right: 15px;
    min-width: 20px;
    color: var(--accent-color-1);
}

.footer-copyright {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==================== POLICY PAGES ==================== */
.policy-page {
    padding-top: 150px;
    padding-bottom: 80px;
}

.policy-container {
    background-color: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.policy-section {
    margin-bottom: 30px;
}

.policy-section h2 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* ==================== COOKIE POPUP ==================== */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 400px;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: none;
}

.cookie-popup.show {
    display: block;
    animation: slideUp 0.5s forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cookie-popup p {
    margin-bottom: 15px;
}

.cookie-btn {
    width: 100%;
}

/* ==================== THANK YOU PAGE ==================== */
.thank-you {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px;
    min-height: 70vh;
}

.thank-you-frame {
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    padding: 50px 40px;
    border: 1px solid rgba(0, 194, 255, 0.3);
    position: relative;
    max-width: 600px;
    width: 100%;
    overflow: hidden;
    margin: 0 auto;
}

.thank-you-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, var(--button-gradient-from), var(--button-gradient-to));
}

.thank-you h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.thank-you i {
    font-size: 80px;
    color: var(--accent-color-1);
    margin-bottom: 30px;
}

/* ==================== RESPONSIVE STYLES ==================== */
@media (max-width: 991px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero {
        padding-top: 150px;
        padding-bottom: 80px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    .section-title h2 {
        font-size: 1.6rem;
    }
    
    .about-features {
        flex-direction: column;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    :root {
        --section-padding: 60px 0;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .policy-container {
        padding: 20px;
    }
    
    .form-container {
        padding: 30px 20px;
    }
}
