/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #1f3d7a;
    background: #eef4fc;
}

.stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    padding: 20px 0;
    background: transparent;
}

.stage .nav-card {
    width: 220px;
    max-width: 90%;
    height: 50px;
    border-radius: 10px;
    background: #78fed6;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    color: #000;
    font-family: 'Century Gothic', sans-serif;
    letter-spacing: 2px;
    font-size: 1rem;
    font-weight: 700;
    transform-style: preserve-3d;
}

.stage .nav-card:nth-child(odd) {
    transform: perspective(300px) rotateY(45deg);
    box-shadow: -2px 2px 7px gray;
}

.stage .nav-card:nth-child(even) {
    transform: perspective(300px) rotateY(-45deg);
    box-shadow: 2px 2px 7px gray;
}

.stage .nav-card:hover,
.stage .nav-card.active {
    transform: perspective(300px) rotateY(0deg);
    background: #ffffff;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    color: #000;
}

.stage .nav-card:hover {
    cursor: pointer;
}

@media (max-width: 576px) {
    .stage .nav-card {
        width: 95%;
        font-size: 0.95rem;
    }
}

/* Keyframe Animations */
@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes wiggle {
    0%, 7% {
        transform: rotateZ(0);
    }
    15% {
        transform: rotateZ(-15deg);
    }
    20% {
        transform: rotateZ(10deg);
    }
    25% {
        transform: rotateZ(-10deg);
    }
    30% {
        transform: rotateZ(6deg);
    }
    35% {
        transform: rotateZ(-4deg);
    }
    40%, 100% {
        transform: rotateZ(0);
    }
}

@keyframes spin {
    from {
        transform: rotateY(0deg);
    }
    to {
        transform: rotateY(360deg);
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0f4c81 0%, #4c80d2 100%);
    padding: 120px 20px;
    text-align: center;
    color: #f4f9ff;
}

.company-name {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin: 0;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
    animation: bounceIn 1.5s ease-out;
}

/* Services Section */
.services-section {
    padding: 80px 20px;
    background-color: #e7effc;
}

.service-card {
    margin-bottom: 30px;
}

.service-box {
    background: #f8fbff;
    padding: 40px 30px;
    border-radius: 12px;
    border: 1px solid rgba(62, 115, 191, 0.18);
    box-shadow: 0 10px 25px rgba(20, 60, 120, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    animation: fadeInUp 0.8s ease-out;
}

.service-box:hover {
    transform: translateY(-6px);
    border-color: rgba(62, 115, 191, 0.35);
    animation: wiggle 1s ease-in-out;
    box-shadow: 0 14px 28px rgba(20, 60, 120, 0.14);
}

.service-box h3 {
    color: #1f3d7a;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.service-link {
    text-decoration: none;
    display: block;
}

/* About Section */
.about-section {
    padding: 80px 20px;
    background-color: #eaf2fb;
}

.about-image {
    width: 100%;
    max-width: 300px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(31, 61, 122, 0.12);
    margin-bottom: 30px;
    transition: transform 0.5s ease;
    animation: slideInLeft 1s ease-out;
}

.about-image:hover {
    animation: spin 2s linear infinite;
}

.about-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0f4c81;
    margin-bottom: 20px;
    animation: slideInRight 1s ease-out 0.3s both;
}

.about-description {
    font-size: 1.1rem;
    color: #2b4f8e;
    line-height: 1.8;
    animation: fadeInUp 1s ease-out 0.6s both;
}

/* Responsive Design */
@media (max-width: 768px) {
    .company-name {
        font-size: 2.5rem;
    }

    .about-image {
        margin: 0 auto 30px;
        display: block;
    }

    .about-title {
        font-size: 2rem;
    }
}

h1 {
    font-family: "corsario-variable", sans-serif;
    font-variation-settings: "opsz" 48, "wght" 900;
}

body.tax-page {
    background: linear-gradient(180deg, #eef7ff 0%, #fff 100%);
}

body.book-page {
    background: linear-gradient(180deg, #f7f4ef 0%, #fff 100%);
}

body.fin-page {
    background: linear-gradient(180deg, #f2f7f2 0%, #fff 100%);
}

.tax-hero {
    background: linear-gradient(135deg, #0c4d88 0%, #4a95d6 100%);
    color: #fff;
    padding: 100px 20px 60px;
}

.tax-hero h1 {
    font-size: 3rem;
    letter-spacing: 0.05em;
    max-width: 760px;
}

.tax-hero .lead {
    max-width: 640px;
    margin: 1rem auto 0;
    line-height: 1.7;
}

.tax-intro {
    margin-top: -40px;
    padding: 40px 20px 70px;
}

.tax-intro .card {
    border-radius: 22px;
    box-shadow: 0 20px 35px rgba(15, 64, 118, 0.12);
}

.tax-intro .list-group-item {
    border: none;
    padding-left: 0;
    font-size: 1.05rem;
}

.tax-cta {
    background: #ffffff;
    padding: 24px;
    border-radius: 18px;
    border: 1px solid rgba(12, 77, 136, 0.12);
}

.tax-stat {
    background: rgba(74, 149, 214, 0.08);
    border-left: 5px solid #0c4d88;
    padding: 20px;
    border-radius: 14px;
}

.book-hero {
    background: linear-gradient(135deg, #806b3c 0%, #c5a46f 100%);
    color: #fff;
    padding: 100px 20px;
}

.book-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.book-hero p {
    max-width: 620px;
    margin: 1rem auto 0;
    line-height: 1.7;
}

.book-summary {
    padding: 70px 20px;
}

.book-summary .summary-card {
    background: #fff9f0;
    border: 1px solid rgba(168, 135, 91, 0.2);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 18px 28px rgba(133, 93, 44, 0.1);
}

.book-summary li {
    margin-bottom: 0.9rem;
}

.book-process {
    background: #fff;
    padding: 70px 20px;
}

.feature-card {
    border-radius: 20px;
    border: 1px solid rgba(69, 42, 16, 0.12);
    background: #fff8ed;
    padding: 30px;
    box-shadow: 0 12px 24px rgba(128, 106, 60, 0.08);
}

.feature-card h3 {
    margin-bottom: 0.75rem;
}

.fin-hero {
    background: linear-gradient(135deg, #0c6a3f 0%, #4caa71 100%);
    color: #fff;
    padding: 100px 20px;
    text-align: center;
}

.fin-hero .hero-panel {
    display: inline-block;
    max-width: 720px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 22px;
    padding: 32px;
    box-shadow: 0 24px 40px rgba(12, 106, 63, 0.18);
}

.fin-timeline,
.fin-strategy {
    padding: 70px 20px;
}

.timeline-item {
    padding: 24px;
    border-radius: 18px;
    background: #f7fff7;
    border: 1px solid rgba(76, 170, 113, 0.18);
    margin-bottom: 20px;
}

.timeline-item h4 {
    margin-bottom: 0.8rem;
}

.strategy-box {
    background: #ffffff;
    border-radius: 18px;
    padding: 28px;
    border: 1px solid rgba(76, 170, 113, 0.12);
    box-shadow: 0 14px 28px rgba(76, 170, 113, 0.08);
}

.fin-quote {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(12, 106, 63, 0.12);
    box-shadow: 0 14px 22px rgba(12, 106, 63, 0.08);
}

/* Fade-in animation for scroll effects */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}
