/* 
* Domain - Financial Audit Website
* Color Palette:
* - Deep Midnight Blue (#0B1D3A) as primary background
* - Vibrant Coral (#FF6B6B) for CTAs and highlights
* - Warm Sand Beige (#F5E0C3) for backgrounds of alternating sections
* - Mint Green (#3DDC97) for accent elements and icons
* - Pure White (#FFFFFF) for text contrast
*/

/* --- Base Styles --- */
:root {
    scroll-padding-top: 100px; /* Add padding for anchor links */
    --mobile-padding: 20px;
    --midnight-blue: #0B1D3A;
    --vibrant-coral: #FF6B6B;
    --warm-sand: #F5E0C3;
    --mint-green: #3DDC97;
    --white: #FFFFFF;
    --gradient: linear-gradient(135deg, var(--midnight-blue), var(--vibrant-coral));
    --accent-gradient: linear-gradient(135deg, var(--vibrant-coral), var(--mint-green));
    --transition: all 0.3s ease;
    --border-radius: 10px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--white);
    background-color: var(--midnight-blue);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
}

section {
    padding: 120px 0 100px;
    overflow: hidden;
    margin-top: -80px; /* Negative margin to offset the padding and help with anchor positioning */
    padding-top: 120px; /* Extra padding to ensure content isn't hidden under the header */
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 20px;
    font-weight: 600;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
}

p {
    margin-bottom: 20px;
}

a {
    color: var(--vibrant-coral);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--mint-green);
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

.section-title {
    text-align: center;
    margin-bottom: 70px;
}

.section-title h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--vibrant-coral);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--accent-gradient);
    color: var(--white);
    transform: translateY(-3px);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--vibrant-coral);
    color: var(--vibrant-coral);
}

.btn-secondary:hover {
    background: var(--vibrant-coral);
    color: var(--white);
    transform: translateY(-3px);
}

/* --- Header --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    background: rgba(11, 29, 58, 0.9);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    z-index: 100;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: var(--white);
    font-weight: 500;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: var(--transition);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: var(--midnight-blue);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/G2iqB2.jpg') no-repeat center center/cover;
    opacity: 0.2;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

/* --- About Section --- */
#about {
    background-color: var(--warm-sand);
    color: var(--midnight-blue);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.about-item {
    padding: 50px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.about-item:hover {
    transform: translateY(-10px);
}

.about-icon {
    margin-bottom: 30px;
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.about-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Services Section --- */
#services {
    position: relative;
    background-color: var(--midnight-blue);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 50px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--mint-green);
}

.service-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--vibrant-coral);
}

/* --- Why Choose Us --- */
#why-choose-us {
    background-color: var(--warm-sand);
    color: var(--midnight-blue);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    box-shadow: var(--box-shadow);
    position: relative;
    color: var(--midnight-blue);
    font-size: 3rem;
}

/* Icon Styles */
.icon-experience::before {
    content: '\1F4BC'; /* Briefcase */
}

.icon-personalized::before {
    content: '\1F464'; /* User */
}

.icon-confidential::before {
    content: '\1F512'; /* Lock */
}

.icon-technology::before {
    content: '\1F4BB'; /* Laptop */
}

/* --- Case Studies --- */
#case-studies {
    background: var(--midnight-blue);
}

.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.case-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.case-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow);
}

.case-image {
    height: 240px;
    position: relative;
    overflow: hidden;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.case-content {
    padding: 30px;
}

.case-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--vibrant-coral);
}

/* --- Pricing Section --- */
#pricing {
    background-color: var(--warm-sand);
    color: var(--midnight-blue);
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.pricing-table th,
.pricing-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.pricing-table th {
    background-color: var(--midnight-blue);
    color: var(--white);
}

.pricing-table tr:last-child td {
    border-bottom: none;
}

.price {
    font-weight: 700;
    color: var(--vibrant-coral);
}

/* --- Team Section --- */
#team {
    background: var(--midnight-blue);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.team-member {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    text-align: center;
}

.team-member:hover {
    transform: translateY(-10px);
}

.team-photo {
    height: 280px;
    position: relative;
    overflow: hidden;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-info {
    padding: 30px;
}

.team-name {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--vibrant-coral);
}

.team-position {
    font-size: 0.9rem;
    color: var(--mint-green);
    margin-bottom: 15px;
}

/* --- Form Section --- */
#form {
    background: url('../img/DmkTjJ.jpg') no-repeat center center/cover;
    position: relative;
    z-index: 1;
}

#form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--midnight-blue);
    opacity: 0.85;
    z-index: -1;
}

.form-container {
    max-width: 650px;
    margin: 0 auto;
    padding: 60px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    font-family: inherit;
    font-size: 1rem;
}

.form-input:focus {
    outline: none;
    border-color: var(--vibrant-coral);
}

.form-select {
    width: 100%;
    padding: 12px 15px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-family: inherit;
    font-size: 1rem;
    appearance: none;
    background-image: url('../img/arrow-down.svg');
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 15px;
    cursor: pointer;
}

.form-select option {
    background-color: var(--midnight-blue);
    color: var(--white);
    padding: 10px;
}

.checkbox-group {
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
}

.checkbox-input {
    margin-right: 10px;
    margin-top: 5px;
}

.form-button {
    width: 100%;
}

/* --- Footer --- */
.main-footer {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    margin-bottom: 20px;
    color: var(--vibrant-coral);
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.text-center {
    text-align: center;
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 30px;
}

/* --- Policy Pages --- */
.policy-container {
    max-width: 850px;
    margin: 120px auto 60px;
    padding: 60px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.policy-title {
    text-align: center;
    margin-bottom: 30px;
}

.policy-content h3 {
    margin-top: 30px;
    color: var(--vibrant-coral);
}

.policy-content p {
    margin-bottom: 20px;
}

/* --- Thank You Page --- */
.thank-you {
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 120px auto 80px; /* Increased top and added bottom margin */
    max-width: 650px;
    padding: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: var(--box-shadow);
}

.thank-you h1 {
    color: var(--vibrant-coral);
    margin-bottom: 20px;
}

.thank-you p {
    margin-bottom: 30px;
    font-size: 1.2rem;
}

/* --- Cookie Popup --- */
.cookie-popup {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    padding: 20px;
    background: var(--midnight-blue);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transition: bottom 0.5s ease;
    display: flex;
    justify-content: center;
}

.cookie-popup.show {
    bottom: 0;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    width: 100%;
}

.cookie-content p {
    margin-bottom: 0;
    margin-right: 20px;
}

/* --- Animations --- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in {
    animation: fadeIn 1s ease;
}

.fade-in-up {
    animation: fadeInUp 1s ease;
}

.slide-in-left {
    animation: slideInLeft 1s ease;
}

.slide-in-right {
    animation: slideInRight 1s ease;
}

/* --- PHP-based FAQ Toggle --- */
.faq-item {
    margin-bottom: 15px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.faq-question {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    cursor: pointer;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.15);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--vibrant-coral);
}

.faq-question.active::after {
    content: '-';
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    transition: max-height 0.5s ease, padding 0.5s ease;
}

.faq-answer.show {
    padding: 20px;
    max-height: 500px;
}

/* --- Responsive Styles --- */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }
    
    section {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 100px; /* Add padding between header and hero content in mobile */
    }
    
    section {
        margin-top: -60px; /* Adjust negative margin for mobile */
        padding-top: 100px; /* Keep sufficient padding for anchor links */
        padding-bottom: 80px; /* More space at the bottom of sections */
        margin-bottom: 30px; /* Additional margin between sections */
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .section-title {
        margin-bottom: 50px;
    }
    
    .mobile-menu-toggle {
        display: block;
        z-index: 100;
    }
    
    .menu-toggle {
        display: block;
        width: 30px;
        height: 20px;
        position: relative;
    }
    
    .menu-toggle span {
        display: block;
        position: absolute;
        height: 3px;
        width: 100%;
        background: var(--white);
        border-radius: 3px;
        opacity: 1;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        transition: var(--transition);
    }
    
    .menu-toggle span::before,
    .menu-toggle span::after {
        content: '';
        position: absolute;
        height: 3px;
        width: 100%;
        background: var(--white);
        border-radius: 3px;
        transition: var(--transition);
    }
    
    .menu-toggle span::before {
        top: -8px;
    }
    
    .menu-toggle span::after {
        bottom: -8px;
    }
    
    .menu-toggle span.active {
        background: transparent;
    }
    
    .menu-toggle span.active::before {
        top: 0;
        transform: rotate(45deg);
    }
    
    .menu-toggle span.active::after {
        bottom: 0;
        transform: rotate(-45deg);
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background: var(--midnight-blue);
        padding: 80px 20px 40px;
        transition: right 0.3s ease;
        z-index: 99;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    }
    
    .main-nav.open {
        right: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-nav a {
        display: block;
        padding: 10px 0;
        font-size: 1.2rem;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-content p {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .footer-grid {
        gap: 40px;
    }
    
    /* Mobile spacing fixes */
    .about-grid,
    .services-grid,
    .features-grid,
    .case-studies-grid,
    .team-grid {
        gap: 40px;
    }
    
    .about-item,
    .service-card,
    .case-card,
    .team-member {
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.7rem;
    }
    
    section {
        padding: 90px 0 70px;
        margin-top: -50px;
    }
    
    .about-item,
    .service-card {
        padding: 30px;
    }
    
    .case-image {
        height: 160px;
    }
    
    .team-photo {
        height: 200px;
    }
    
    .form-container {
        padding: 30px 20px;
    }
    
    /* Prevent text overflow */
    p, h3, h4, h5, h6 {
        overflow-wrap: break-word;
        word-wrap: break-word;
        -ms-word-break: break-all;
        word-break: break-word;
        max-width: 100%;
        /* Slightly reduce font sizes */
        font-size: 0.95em;
    }
    
    h3 {
        margin-bottom: 20px; /* More space below headings */
    }
    
    .case-content,
    .team-info {
        padding: 25px 20px;
    }
    
    /* Add space between grid elements */
    .about-grid,
    .services-grid,
    .features-grid,
    .case-studies-grid,
    .team-grid {
        gap: 35px;
    }
    
    /* Adjust container padding */
    .container {
        padding: 0 15px;
    }
}
