/* 
 * Financial Audit Services in Malaysia - Main Stylesheet
 * Color Scheme:
 * - Main Background: #0B1E3C (Deep Neon Blue)
 * - Accent Color: #C4FF00 (Citrus Lime)
 * - Text/Headings: #FDFDFD (Bright White)
 * - Buttons/Hover: #FF6B6B (Peach Pink)
 * - Section Backgrounds: Gradients from #0B1E3C to #1F2A50
 */

/* ---------- Reset & Base Styles ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #FDFDFD;
    background-color: #0B1E3C;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #C4FF00;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #FF6B6B;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 80px 0;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: #FDFDFD;
    font-weight: 600;
}

h1 {
    font-size: 2.8rem;
}

h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

h2::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #C4FF00;
    border-radius: 2px;
}

p {
    margin-bottom: 1.5rem;
}

/* ---------- Button Styles ---------- */
.cta-button, .service-button, .submit-button, .cookie-accept {
    display: inline-block;
    padding: 12px 28px;
    background: #C4FF00;
    color: #0B1E3C;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cta-button:hover, .service-button:hover, .submit-button:hover, .cookie-accept:hover {
    background: #FF6B6B;
    color: #FDFDFD;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

/* ---------- Hero Section ---------- */
.hero {
    background: linear-gradient(135deg, #0B1E3C 0%, #1F2A50 100%);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-image {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #FDFDFD;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero .cta-button {
    animation: fadeInUp 1s ease-out 0.4s both;
}

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

/* ---------- About Section ---------- */
.about {
    background: linear-gradient(135deg, #1F2A50 0%, #0B1E3C 100%);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
}

/* ---------- Benefits Section ---------- */
.benefits {
    background: linear-gradient(135deg, #0B1E3C 0%, #1F2A50 100%);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.benefit-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.1);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-icon .icon {
    width: 100%;
    height: 100%;
    fill: #C4FF00;
}

.benefit-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.benefit-card p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* ---------- Services Section ---------- */
.services {
    background: linear-gradient(135deg, #1F2A50 0%, #0B1E3C 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card h3, .service-card p {
    padding: 0 20px;
}

.service-card h3 {
    margin-top: 20px;
}

.service-card .service-button {
    display: block;
    margin: 20px;
    text-align: center;
}

/* ---------- Infographics Section ---------- */
.infographics {
    background: linear-gradient(135deg, #0B1E3C 0%, #1F2A50 100%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #C4FF00;
    position: relative;
    display: inline-block;
}

.stat-number::after {
    content: "%";
    font-size: 1.5rem;
    position: absolute;
    top: 10px;
    right: -20px;
    opacity: 0.8;
}

.stat-card:nth-child(1) .stat-number::after {
    content: "+";
}

.stat-card:nth-child(3) .stat-number::after {
    content: "M";
}

.stat-card:nth-child(4) .stat-number::after {
    content: "+";
}

.stat-card p {
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* Animating numbers with pure CSS */
.stat-number {
    counter-reset: stat 0;
}

/* Fallback for browsers that don't support CSS counters with variables */
.stat-number[data-count="150"]::before { content: "150"; }
.stat-number[data-count="95"]::before { content: "95"; }
.stat-number[data-count="30"]::before { content: "30"; }
.stat-number[data-count="12"]::before { content: "12"; }

/* ---------- Testimonials Section ---------- */
.testimonials {
    background: linear-gradient(135deg, #1F2A50 0%, #0B1E3C 100%);
    overflow: hidden;
}

.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-slider input {
    display: none;
}

.testimonial-wrapper {
    display: flex;
    width: 300%;
    transition: all 0.6s cubic-bezier(0.45, 0.05, 0.55, 0.95);
}

.testimonial-slide {
    width: 100%;
    flex-shrink: 0;
    padding: 0 15px;
}

.testimonial-content {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.testimonial-content::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 5rem;
    color: rgba(196, 255, 0, 0.2);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.client-info h4 {
    margin-bottom: 5px;
    color: #C4FF00;
}

.client-info p {
    margin-bottom: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.testimonial-controls label {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-controls label:hover {
    background: rgba(255, 255, 255, 0.5);
}

#testimonial-1:checked ~ .testimonial-wrapper {
    transform: translateX(0);
}

#testimonial-1:checked ~ .testimonial-controls label:nth-child(1),
#testimonial-2:checked ~ .testimonial-controls label:nth-child(2),
#testimonial-3:checked ~ .testimonial-controls label:nth-child(3) {
    background: #C4FF00;
    transform: scale(1.2);
}

#testimonial-2:checked ~ .testimonial-wrapper {
    transform: translateX(-33.333%);
}

#testimonial-3:checked ~ .testimonial-wrapper {
    transform: translateX(-66.666%);
}

/* ---------- Order Form Section ---------- */
.order-form {
    background: linear-gradient(135deg, #0B1E3C 0%, #1F2A50 100%);
}

.order-form form {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #FDFDFD;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #C4FF00;
    box-shadow: 0 0 0 2px rgba(196, 255, 0, 0.2);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23FDFDFD' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    padding-right: 40px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group input {
    width: auto;
    margin: 0;
}

.checkbox-group label {
    margin: 0;
    font-size: 0.9rem;
}

.submit-button {
    width: 100%;
    margin-top: 15px;
    font-size: 1rem;
}

/* ---------- FAQ Section ---------- */
.faq {
    background: linear-gradient(135deg, #1F2A50 0%, #0B1E3C 100%);
}

.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.accordion-item input {
    display: none;
}

.accordion-header {
    display: block;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    color: #FDFDFD;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.accordion-header:hover {
    background: rgba(255, 255, 255, 0.1);
}

.accordion-header::after {
    content: "+";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.accordion-content {
    background: rgba(255, 255, 255, 0.05);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.accordion-content p {
    padding: 20px;
    margin: 0;
}

.accordion-item input:checked ~ .accordion-header {
    background: rgba(196, 255, 0, 0.1);
}

.accordion-item input:checked ~ .accordion-header::after {
    transform: translateY(-50%) rotate(45deg);
}

.accordion-item input:checked ~ .accordion-content {
    max-height: 300px;
}

/* ---------- Contact Section ---------- */
.contact {
    background: linear-gradient(135deg, #0B1E3C 0%, #1F2A50 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-item .icon {
    width: 24px;
    height: 24px;
    fill: #C4FF00;
    flex-shrink: 0;
}

.map-container {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ---------- Footer ---------- */
.site-footer {
    background: #0A1830;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo-img {
    height: 60px;
    width: auto;
    margin-bottom: 20px;
}

.footer-tagline {
    opacity: 0.8;
    max-width: 350px;
}

.footer-links h3,
.footer-contact h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
}

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

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

.footer-links a {
    color: #FDFDFD;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #C4FF00;
    opacity: 1;
}

.footer-contact p {
    margin-bottom: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.legal-links {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.legal-links a {
    color: #FDFDFD;
    font-size: 0.9rem;
    opacity: 0.7;
}

.legal-links a:hover {
    color: #C4FF00;
    opacity: 1;
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 0;
}

/* ---------- Cookie Popup ---------- */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    background: rgba(11, 30, 60, 0.95);
    backdrop-filter: blur(8px);
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    animation: slideUp 0.5s ease-out forwards;
}

.cookie-content {
    padding: 20px;
}

.cookie-content p {
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.cookie-content form {
    display: flex;
    gap: 10px;
}

.cookie-accept {
    padding: 8px 15px;
    font-size: 0.9rem;
}

.cookie-more {
    display: inline-block;
    padding: 8px 15px;
    color: #FDFDFD;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 0.9rem;
}

.cookie-more:hover {
    background: rgba(255, 255, 255, 0.2);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* ---------- Main Content Spacing ---------- */
.main-content {
    padding-top: 80px; /* Height of mobile menu */
}

/* ---------- Animations ---------- */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* ---------- Media Queries ---------- */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.5rem;
    }
    
    .benefits-grid, .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .map-container {
        height: 250px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.8rem;
    }
    
    .benefits-grid, .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .order-form form {
        padding: 20px;
    }
    
    .legal-links {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .cookie-content form {
        flex-direction: column;
    }
    
    .cookie-accept, .cookie-more {
        width: 100%;
        text-align: center;
    }
}

/* ---------- Custom Scrollbar ---------- */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0B1E3C;
}

::-webkit-scrollbar-thumb {
    background: #1F2A50;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #C4FF00;
}

/* ---------- Мобільне меню ---------- */
.menu-toggle {
    display: none;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.mobile-menu__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: #0B1E3C;
    position: relative;
    z-index: 1002;
}

.mobile-menu__logo img {
    height: 40px;
    width: auto;
}

.mobile-menu__burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1002;
}

.mobile-menu__burger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #FDFDFD;
    transition: all 0.3s ease;
}

.mobile-menu__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: #0B1E3C;
    padding: 80px 2rem 2rem;
    transition: right 0.3s ease;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    z-index: 1001;
}

.mobile-menu__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu__link {
    display: block;
    color: #FDFDFD;
    text-decoration: none;
    font-size: 1.2rem;
    padding: 1rem 0;
    transition: color 0.3s ease;
    position: relative;
    z-index: 1002;
}

.mobile-menu__link:hover {
    color: #C4FF00;
}

.mobile-menu__overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* Медіа-запити для мобільної версії */
@media screen and (max-width: 768px) {
    .mobile-menu__burger {
        display: flex;
    }

    /* Анімація бургер-меню */
    .menu-toggle:checked ~ .mobile-menu .mobile-menu__burger span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .menu-toggle:checked ~ .mobile-menu .mobile-menu__burger span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle:checked ~ .mobile-menu .mobile-menu__burger span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Показ меню при активному чекбоксі */
    .menu-toggle:checked ~ .mobile-menu .mobile-menu__nav {
        right: 0;
    }

    /* Показ оверлею при активному чекбоксі */
    .menu-toggle:checked ~ .mobile-menu .mobile-menu__overlay {
        display: block;
    }
}

/* Десктопна версія */
@media screen and (min-width: 769px) {
    .mobile-menu__nav {
        display: none;
    }
} 