:root {
    --primary-color: #007A33; /* Tally Green */
    --secondary-color: #F8F9FA;
    --accent-color-gold: #FFC107; /* Bhutan Flag Gold */
    --accent-color-orange: #FD7E14; /* Bhutan Flag Orange */
    --text-color: #333;
    --transition-curve: cubic-bezier(0.4, 0, 0.2, 1);
    --soft-grey: #f1f3f5;
    --gradient-hero: linear-gradient(135deg, rgba(0,122,51,0.9), rgba(253,126,20,0.7));
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('Bhutan-header.webp') no-repeat center center/cover;
    height: 220px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
    padding: 0 2rem;
    border-bottom: 6px solid var(--accent-color-gold);
    overflow: hidden;
}

/* Header Enhancements */
.header-container {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    padding: 0 1rem;
}

/* Decorative Druk (Thunder Dragon) Elements */
.druk-watermark {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 120px;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.tally-header-logo {
    height: 80px;
    width: auto;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5));
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tally-header-logo:hover {
    transform: scale(1.15) rotate(5deg);
}

header h1 {
    font-size: 2.0rem;
    text-shadow: 3px 3px 10px rgba(0,0,0,0.5);
    margin: 0;
    color: #fff;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 15px 30px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    line-height: 1.2;
}

nav {
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.nav-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    flex-grow: 1;
}

.brand-logo {
    height: 60px;
    width: auto;
}

nav a {
    color: var(--text-color);
    padding: 0.5rem 1.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

nav a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

main {
    flex: 1;
    padding: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.tally-benefits-section {
    padding: 3rem 1rem;
    background: #ffffff;
    border-top: 5px solid var(--primary-color);
}

.tally-benefits-section h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 2rem;
}

.tally-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border: 1px solid #eef2f5;
    transition: all 0.4s var(--transition-curve);
    text-align: center;
}

.benefit-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
}

.benefit-card i {
    font-size: 3rem;
    background: linear-gradient(to bottom, var(--primary-color), #28a745);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.tally-partner-branding {
    background: linear-gradient(135deg, var(--primary-color), #004d20);
    padding: 2rem;
    color: white;
    text-align: center;
}

.tally-partner-branding img {
    height: 60px;
    margin-bottom: 0.5rem;
}

.tally-partner-branding a {
    color: white !important;
    text-decoration: none;
    font-weight: 600;
}

.tally-partner-branding .cta-text {
    color: var(--accent-color-gold) !important;
    font-weight: 700;
    display: block;
    margin-top: 0.5rem;
}

.clients {
    padding: 3rem 0;
    background: var(--secondary-color);
}

.carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 1rem 0;
}

.carousel-track {
    display: flex;
    gap: 3rem;
    animation: scroll 30s linear infinite;
    width: max-content;
    padding: 0 1rem;
}

.carousel-track:hover {
    animation-play-state: paused;
}

.carousel-track img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
    opacity: 1;
    will-change: transform;
}

.carousel-track img:hover {
    transform: scale(1.15);
}

@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Contact Page Enhancements */
.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-card {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-left: 5px solid var(--primary-color);
    transition: all 0.3s ease;
}

.contact-card:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.contact-card h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 1.5rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 5px;
}

.contact-item p {
    margin: 0;
}
/* Footer Enhancements */
.footer {
    background: linear-gradient(135deg, #2d3436, #000000); /* Sleek dark gradient */
    color: white;
    padding: 2rem 1rem 1rem; /* Reduced padding for lesser width */
    text-align: left;
    border-top: 5px solid var(--accent-color-gold); /* Gold accent for Bhutanese feel */
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 900px; /* Reduced width */
    margin: 0 auto;
}

.footer-section h3 {
    margin-bottom: 0.8rem;
    color: var(--accent-color-gold); /* Gold color for section headers */
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section p, .footer-section ul li a {
    color: #ddd;
    font-size: 0.85rem;
}

.social-icon {
    width: 35px;
    height: 35px;
    background: rgba(255,255,255,0.1);
    color: white;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}


/* Tablet Styles */
@media (max-width: 768px) {
    header {
        height: auto;
        min-height: 200px;
        padding: 1rem;
    }
    header h1 {
        font-size: 1.2rem;
        padding: 8px;
    }
    .tally-header-logo {
        height: 40px;
    }
    .header-container {
        gap: 0.3rem;
    }
    nav {
        padding: 0.3rem;
    }
    nav a {
        padding: 0.2rem 0.3rem;
        font-size: 0.8rem;
    }
}

/* Mobile Styles */
@media (max-width: 480px) {
    header {
        height: auto;
        min-height: 120px;
        padding: 0.5rem;
    }
    .header-container {
        flex-direction: column;
        gap: 0.5rem;
    }
    header h1 {
        font-size: 0.9rem;
        padding: 5px;
        text-align: center;
        max-width: 95%;
        margin: 0 auto;
    }
    .tally-header-logo {
        height: 30px;
    }
    .druk-watermark {
        display: none;
    }
    nav {
        padding: 0.5rem;
    }
    nav .nav-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    nav a {
        padding: 0.3rem 0.5rem;
        font-size: 0.8rem;
    }
    main {
        padding: 1rem;
    }
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-section h3 {
        margin-top: 1rem;
    }
}

