/* Modern Accounting Firm - Blue & Wine Red Theme by ComptaVision */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,600;1,600&display=swap');

:root {
    /* New Color Palette */
    --primary-color: #0B2545;
    /* Deep Blue */
    --primary-light: #133a68;
    --accent-color: #722F37;
    /* Wine Red */
    --accent-bright: #963d48;
    --white: #ffffff;
    --light-gray: #f4f6f8;
    --text-dark: #1a1a1a;
    --text-light: #e0e0e0;

    /* Decoration */
    --gradient-hero: linear-gradient(135deg, rgba(11, 37, 69, 0.95) 0%, rgba(114, 47, 55, 0.85) 100%);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.1);

    /* Transitions */
    --transition: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light-gray);
}

.bg-dark {
    background-color: var(--primary-color);
    color: var(--white);
}

.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mb-4 {
    margin-bottom: 4rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--accent-bright);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(114, 47, 55, 0.4);
}

.btn-outline {
    border-color: var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 15px 0;
    z-index: 1000;
    background: #ffffff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
}

.logo span {
    color: var(--accent-color);
}

.nav-links {
    align-items: center;
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    background: none;
    border: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--primary-color);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section Redesign */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, #05101c 100%);
    position: relative;
    overflow: hidden;
    padding: 100px 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 40%;
    height: 40%;
    background: var(--accent-color);
    filter: blur(150px);
    opacity: 0.2;
    z-index: 0;
}

.hero-split {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.hero .subtitle {
    color: var(--accent-bright);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: block;
}

.hero h1 {
    color: var(--white);
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
}

.hero-img-wrapper {
    position: relative;
}

.hero-img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.5);
    display: block;
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
    text-align: center;
    min-width: 150px;
}

.experience-badge span {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-color);
    line-height: 1;
}

.experience-badge p {
    margin-bottom: 0;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.waves-container {
    position: absolute;
    bottom: 0;
    width: 100%;
    line-height: 0;
    z-index: 1;
}

/* Wave Background Animations */
.waves {
    width: 100%;
    height: 15vh;
    min-height: 100px;
    max-height: 150px;
}

.parallax>use {
    animation: move-forever 25s cubic-bezier(.55, .5, .45, .5) infinite;
}

.parallax>use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 7s;
}

.parallax>use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 10s;
}

.parallax>use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 13s;
}

.parallax>use:nth-child(4) {
    animation-delay: -5s;
    animation-duration: 20s;
}

@keyframes move-forever {
    0% {
        transform: translate3d(-90px, 0, 0);
    }

    100% {
        transform: translate3d(85px, 0, 0);
    }
}

/* Section Titles Refinement */
.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title span {
    color: var(--accent-light);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 0.5rem;
}

.section-title h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.about-text .section-title {
    text-align: left;
    margin-bottom: 2rem;
}

.about-text .section-title h2::after {
    left: 0;
    transform: none;
}

/* About Section Refinement - Balanced & Robust Layout */
.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    align-items: stretch;
    position: relative;
}

.about-img-container {
    position: relative;
    z-index: 1;
}

.about-img-container::before {
    content: '';
    position: absolute;
    top: -30px;
    left: -30px;
    width: 200px;
    height: 200px;
    background: var(--accent-gradient);
    opacity: 0.15;
    border-radius: 30px;
    z-index: -1;
}

.about-img {
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.12);
    position: relative;
    background: var(--light-gray);
    height: 100%;
    min-height: 500px;
}

.about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1s cubic-bezier(0.2, 1, 0.3, 1);
}

.about-text {
    position: relative;
    z-index: 2;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.about-text::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2rem;
    bottom: 2rem;
    width: 4px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

@media (max-width: 991px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

.highlights-bar {
    display: flex;
    gap: 2rem;
    margin-top: 2.5rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.highlight-icon {
    width: 45px;
    height: 45px;
    background: var(--accent-gradient);
    color: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.highlight-info h4 {
    font-size: 1.2rem;
    line-height: 1;
    color: var(--primary-color);
}

.highlight-info p {
    font-size: 0.75rem;
    color: var(--primary-light);
    margin: 0;
    text-transform: uppercase;
    font-weight: 600;
}

/* Services Redesign - Premium Glass Cards */
.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
}

.service-card {
    flex: 1 1 350px;
    max-width: calc(33.333% - 2rem);
    min-width: 300px;

    @media (max-width: 991px) {
        .service-card {
            max-width: 100%;
        }
    }

    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 3.5rem 2.5rem 2.5rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    text-align: left;
}

.service-card::before {
    content: attr(data-number);
    position: absolute;
    top: -10px;
    right: 20px;
    font-size: 8rem;
    font-weight: 900;
    color: var(--primary-color);
    opacity: 0.03;
    line-height: 1;
    z-index: 0;
}

.service-card:hover {
    transform: translateY(-15px);
    background: var(--white);
    border-color: var(--accent-color);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
}

.service-icon-box {
    width: 70px;
    height: 70px;
    background: var(--accent-gradient);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 20px rgba(183, 28, 28, 0.2);
}

.service-card h3 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    position: relative;
    z-index: 1;
}

/* Service Detail Blocks */
.service-detail-block {
    margin-top: 1.5rem;
    padding-left: 1rem;
    border-left: 3px solid var(--accent-color);
    animation: fadeInSlide 0.5s ease forwards;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.service-detail-block h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.service-detail-block p {
    font-size: 0.95rem;
    color: var(--primary-light);
    line-height: 1.6;
    margin-bottom: 0;
}

.service-detail-list {
    list-style: none;
    margin-top: 0.5rem;
}

.service-detail-list li {
    font-size: 0.9rem;
    margin-bottom: 5px;
    display: flex;
    gap: 8px;
    color: var(--primary-light);
}

.service-detail-list li i {
    color: var(--accent-color);
    font-size: 0.8rem;
    margin-top: 4px;
}

/* Partners */
.partners-wrapper {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    opacity: 0.7;
}

.partner-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Locations */
.location-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: var(--white);
    box-shadow: var(--shadow-soft);
    border-radius: 15px;
    overflow: hidden;
}

.map-frame {
    width: 100%;
    height: 100%;
    min-height: 400px;
    background: #e0e0e0;
}

.location-info {
    padding: 3rem;
    background: var(--primary-color);
    color: var(--white);
}

.location-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.location-item i {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-top: 5px;
}

.location-info h3 {
    color: var(--white);
}

/* Footer */
footer {
    background: #05101c;
    color: rgba(255, 255, 255, 0.7);
    padding: 2rem 0;
    text-align: center;
    font-size: 0.9rem;
    border-top: 3px solid var(--accent-color);
}

/* Portal & Forms */
.portal-bg {
    background: linear-gradient(135deg, #0B2545 0%, #1e3c63 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

/* Abstract decoration for portal */
.portal-bg::after {
    content: '';
    position: absolute;
    width: 150%;
    height: 100%;
    background: var(--accent-color);
    opacity: 0.1;
    transform: rotate(-45deg) translateY(50%);
    z-index: 0;
}

.form-card {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    position: relative;
    z-index: 1;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(114, 47, 55, 0.1);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

/* Scroll Trigger Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-split {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-content-left {
        order: 1;
    }

    .hero-content-right {
        order: 2;
        max-width: 500px;
        margin: 0 auto;
    }

    .experience-badge {
        left: 50%;
        transform: translateX(-50%);
        bottom: -20px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 1.5rem;
        z-index: 999;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-link {
        font-size: 1.1rem;
    }
}

/* End of file cleanup - redundant overrides removed */

/* Partners Infinite Scroll */
.partners-slider {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 2rem 0;
}

.partners-slider::before,
.partners-slider::after {
    content: "";
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
}

.partners-slider::before {
    left: 0;
    background: linear-gradient(to right, white 0%, transparent 100%);
}

.partners-slider::after {
    right: 0;
    background: linear-gradient(to left, white 0%, transparent 100%);
}

.slide-track {
    display: flex;
    width: calc(250px * 24);
    /* 250px * number of slides (8 real * 3 sets) */
    animation: scroll 40s linear infinite;
    gap: 3rem;
}

.partner-item {
    width: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-light);
    gap: 15px;
    white-space: nowrap;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.partner-item:hover {
    opacity: 1;
    color: var(--accent-color);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-250px * 8 - 3rem * 8));
    }

    /* Scroll by the width of one full set of 8 partners */
}

/* Read More Functionality */
.read-more-wrapper {
    position: relative;
    max-height: 100px;
    /* Adjust based on desired truncated height */
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.read-more-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(transparent, var(--white));
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* For cards on light background, use primary white fade */
.bg-light .read-more-wrapper::after {
    background: linear-gradient(transparent, var(--light-gray));
}

.read-more-wrapper.expanded {
    max-height: 1000px;
    /* Large enough for full content */
}

.read-more-wrapper.expanded::after {
    opacity: 0;
}

.read-more-btn {
    background: none;
    border: none;
    color: var(--accent-color);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0;
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.read-more-btn:hover {
    color: var(--accent-bright);
    text-decoration: underline;
}

.read-more-btn::after {
    content: '\f078';
    /* fa-chevron-down */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.read-more-btn.active::after {
    transform: rotate(180deg);
}