:root {
    /* Primary Colors (60%) - White */
    --primary-white: #ffffff;
    --neutral-50: #ffffff;
    --neutral-100: #f8fafc;
    --neutral-200: #f1f5f9;
    
    /* Secondary Colors (30%) - Green */
    --brand-primary: #00732F;      /* UAE Green */
    --brand-primary-light: #008f3a;
    --brand-primary-dark: #005724;
    
    /* Accent Colors (10%) - Red */
    --accent-primary: #FF0000;     /* UAE Red */
    --accent-secondary: #e60000;
    
    /* Text Colors */
    --text-color: #000000;
    --text-muted: #4a4a4a;
    
    /* Semantic Colors */
    --success: var(--brand-primary);
    --warning: #d97706;
    --error: var(--accent-primary);
    
    /* System Colors */
    --surface-color: var(--primary-white);
    --background-color: var(--neutral-100);
    
    /* Effects */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Navbar Brand Styling */
.navbar-brand {
    padding-left: 2rem;
    line-height: 1.2;
}

.brand-logo {
    display: flex;
    align-items: center;
}

.brand-img-wrapper {
    width: 100px; /* increased size */
    height: 48px;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-img {
    width: 100%;
    height: 70%;
    object-fit: cover;
    transform: scale(2); /* zoom slightly to crop internal padding */
}

.brand-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.brand-en {
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.2;
    white-space: nowrap;
    color: var(--text-color);
    margin-bottom: 0.1rem;
}

.brand-en .text-primary {
    font-weight: 700;
    margin: 0 4px;
}

.brand-ar {
    font-family: 'Tajawal', 'Google Sans', sans-serif;
    font-size: 0.9rem;
    line-height: 1.2;
    opacity: 0.9;
    margin-top: 0.1rem;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .brand-en {
        font-size: 1.1rem;
    }
    
    .brand-ar {
        font-size: 0.8rem;
    }
}

/* Add Tajawal font for better Arabic text rendering */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700&display=swap');

/* Add Tajawal font for better Arabic text rendering */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700&display=swap');

body {
    font-family: 'Google Sans', 'Segoe UI', Roboto, Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    padding-top: 80px; /* Slightly increased to accommodate the taller navbar */
    background-color: var(--light-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--secondary-color);
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.1);
    transform: translateX(-100%);
    transition: var(--transition);
    z-index: -1;
}

.btn:hover::before {
    transform: translateX(0);
}

.btn-primary {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--primary-white);
}

.btn-primary:hover {
    background-color: var(--accent-secondary);
    border-color: var(--accent-secondary);
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--brand-primary);
    border-color: var(--brand-primary);
}

.btn-outline-primary:hover {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    color: var(--neutral-50);
}

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.section-title {
    position: relative;
    margin-bottom: 3rem;
    text-align: center;
}

.section-title:after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--brand-primary);
    margin: 15px auto 0;
}

/* Navbar */
.navbar {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: var(--primary-white) !important;
    border-bottom: 3px solid var(--brand-primary);
    padding: 0.8rem 0;
    transition: var(--transition);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.navbar-toggler {
    color: #000;
    border-color: rgba(0, 0, 0, 0.2);
    padding: 0.4rem 0.75rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.15rem rgba(0, 115, 47, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 115, 47, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 1.5em;
    height: 1.5em;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link {
    font-weight: 600;
    color: var(--primary-color) !important;
    padding: 0.5rem 1rem !important;
    margin: 0 0.2rem;
    position: relative;
}

.navbar-nav .nav-link.btn-primary {
    color: var(--primary-white) !important;
}

.navbar-nav .nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--secondary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover:after,
.navbar-nav .nav-link.active:after {
    width: 70%;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(248,250,252,0.95) 100%), 
                url('https://images.unsplash.com/photo-1582672060674-bc2bd808a8b5?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
    padding: 64px 0 64px;
    position: relative;
    color: var(--text-color);
    overflow: hidden;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-section .lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

/* Animated Headlines */
.animated-headlines {
    font-size: 1.8rem; /* Adjusted font size */
    font-weight: 600;
    color: var(--text-color);
    height: 50px; /* Set a fixed height */
    overflow: hidden;
    position: relative;
}

.animated-headlines p {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    animation: slide-up 8s infinite ease-in-out;
    margin: 0;
}

.animated-headlines p:nth-child(1) {
    animation-delay: 0s;
}

.animated-headlines p:nth-child(2) {
    animation-delay: 2s;
}

.animated-headlines p:nth-child(3) {
    animation-delay: 4s;
}

.animated-headlines p:nth-child(4) {
    animation-delay: 6s;
}

.animated-headlines .highlight {
    font-weight: 700;
    color: var(--brand-primary);
}

@keyframes slide-up {
    0%, 100% { top: 50px; opacity: 0; }
    5%, 25% { top: 0; opacity: 1; }
    30%, 100% { top: -50px; opacity: 0; }
}

/* Hero Carousel */
#heroCarousel {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#heroCarousel:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

#heroCarousel .carousel-inner {
    border-radius: 12px;
    overflow: hidden;
}

#heroCarousel .carousel-item {
    height: 500px;
}

#heroCarousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next {
    width: 8%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#heroCarousel:hover .carousel-control-prev,
#heroCarousel:hover .carousel-control-next {
    opacity: 1;
}

#heroCarousel .carousel-control-prev-icon,
#heroCarousel .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.3);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-size: 1.5rem;
    transition: all 0.3s ease;
}

#heroCarousel .carousel-control-prev-icon:hover,
#heroCarousel .carousel-control-next-icon:hover {
    background-color: var(--brand-primary);
}

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

/* CEO Section */
#ceo {
    position: relative;
    overflow: hidden;
}

.ceo-image-container {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: var(--transition);
}

.ceo-image-container:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-lg);
}

.ceo-image-container img {
    transition: var(--transition);
}

.ceo-highlight-card {
    background-color: var(--primary-white);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--neutral-200);
    transition: var(--transition);
}

.ceo-highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.highlight-text {
    font-weight: 600;
    color: var(--text-color);
}

.ceo-highlights .feature-icon {
    flex-shrink: 0;
}

.ceo-highlights h5 {
    font-weight: 600;
}

/* Simplified CEO Section */
.ceo-experience li {
    line-height: 1.4;
}

.ceo-experience strong {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
}

.ceo-skills li {
    font-size: 0.95rem;
}

.bg-primary-soft {
    background-color: rgba(0, 115, 47, 0.1);
}

.text-primary {
    color: var(--brand-primary) !important;
}

@keyframes fadeIn {
    from { opacity: 0.6; }
    to { opacity: 1; }
}

#heroCarousel .carousel-item {
    animation: fadeIn 1s ease-in-out;
}

.hero-section .img-fluid {
    max-height: 500px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* Trust Indicators */
.trust-indicators {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 1rem;
    border-radius: 10px;
    border-left: 3px solid var(--brand-primary);
}

/* Image Styles */
.section-image {
    max-height: 400px;
    width: 100%;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.section-image-container {
    position: relative;
    margin: 2rem auto;
    max-width: 900px;
}

.section-image-container::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: 10px;
    bottom: 10px;
    border: 2px solid var(--primary-color);
    border-radius: 16px;
    opacity: 0.1;
    z-index: -1;
}

.floating-animation {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);  
    }
    100% {
        transform: translateY(0px);
    }
}

.bg-primary-soft {
    background-color: rgba(45, 78, 162, 0.1);
}

.text-primary {
    color: var(--brand-primary) !important;
}

.bg-light {
    background-color: var(--neutral-100) !important;
}

.navbar-brand span {
    color: var(--accent-primary) !important;
}

.icon-box {
    background-color: var(--brand-primary);
    color: var(--neutral-50);
}

.service-card:hover .icon-box {
    background-color: var(--accent-primary);
    transform: rotate(5deg) scale(1.1);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.feature-icon i {
    font-size: 1.25rem;
}

.experience-badge {
    bottom: -20px;
    right: 40px;
    text-align: center;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(26, 115, 232, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(26, 115, 232, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(26, 115, 232, 0);
    }
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section p.lead {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Services Section */
.service-card {
    border: none;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.service-card .card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.5rem;
}

.service-card .btn-container {
    margin-top: auto;
}

.service-card .btn {
    display: inline-block;
    margin-top: 1rem;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.service-card h4 {
    margin: 0 0 1rem 0;
    color: var(--dark);
    min-height: 3rem; /* Ensures consistent title height */
    display: flex;
    align-items: flex-start;
}

.service-card p {
    margin: 0 0 1rem 0;
    color: var(--text-muted);
    flex-grow: 1;
}

/* Tax Section */
.tax-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    border-left: 4px solid var(--secondary-color);
}

.tax-card .card-body {
    padding: 2rem;
}

.tax-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.tax-card h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
}

/* Tax Compliance Offer Section */
.offer-card {
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.offer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

/* Tax Software Solutions - Equal Height Images */
.product-card .position-relative {
    height: 200px; /* Fixed height for all image containers */
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    padding: 1.5rem;
}

.product-card img {
    max-height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

.offer-banner {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
    position: relative;
    overflow: hidden;
}

.offer-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 60%);
    transform: rotate(30deg);
    opacity: 0.5;
    animation: shine 8s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) rotate(30deg);
        opacity: 0.3;
    }
    50% {
        transform: translateX(100%) rotate(30deg);
        opacity: 0.5;
    }
    100% {
        transform: translateX(-100%) rotate(30deg);
        opacity: 0.3;
    }
}

.offer-card .display-4 {
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(45deg, var(--brand-primary), var(--brand-primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.offer-card .btn-primary {
    background: linear-gradient(45deg, var(--brand-primary), var(--brand-primary-light));
    border: none;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.offer-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 115, 47, 0.3);
}

.offer-card .btn-primary:active {
    transform: translateY(0);
}

.offer-card .btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--brand-primary-light), var(--brand-primary));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.offer-card .btn-primary:hover::after {
    opacity: 1;
}

.offer-card .btn-primary span {
    position: relative;
    z-index: 2;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .offer-card .p-5 {
        padding: 2rem !important;
    }
    
    .offer-card .display-4 {
        font-size: 2.5rem;
    }
}

/* Contact Section */
.contact-info i {
    font-size: 1.2rem;
    color: var(--secondary-color);
    min-width: 30px;
}

.contact-info h5 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.social-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #f8f9fa;
    color: var(--primary-color);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.social-links a:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
}

/* WhatsApp FAB Button */
.whatsapp-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    z-index: 998; /* One below back-to-top button */
    animation: pulse 2s infinite;
    text-decoration: none;
}

.whatsapp-fab:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    background: #128C7E;
}

.whatsapp-fab i {
    transition: transform 0.3s ease;
}

.whatsapp-fab:hover i {
    transform: scale(1.1);
}

/* Tooltip for FAB */
.whatsapp-fab::after {
    content: 'Chat on WhatsApp';
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.whatsapp-fab:hover::after {
    opacity: 1;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 105px; /* Positioned above WhatsApp button */
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999; /* Above WhatsApp button */
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Form Styles */
.form-control, .form-select {
    padding: 0.8rem 1rem;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    margin-bottom: 1rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
}

/* Footer */
footer {
    background: var(--primary-color);
    color: white;
    padding: 4rem 0 1rem;
}

footer h5 {
    color: white;
    margin-bottom: 1.5rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.8rem;
}

footer h5:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--secondary-color);
}

footer ul li {
    margin-bottom: 0.8rem;
}

footer a {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

/* Newsletter Form */
footer .input-group {
    margin-bottom: 1rem;
    position: relative;
    display: flex;
    width: 100%;
    max-width: 400px;
}

footer .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 0.375rem 0 0 0.375rem;
    padding: 0.75rem 1rem;
    height: auto;
    flex: 1;
    min-width: 0;
    border-right: none;
    transition: all 0.2s ease;
}

footer .form-control:focus {
    box-shadow: none;
    border-color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.15);
    outline: none;
}

footer .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
    opacity: 1;
}

footer .btn-primary {
    background: var(--secondary-color);
    border: 1px solid var(--secondary-color);
    border-radius: 0 0.375rem 0.375rem 0;
    padding: 0 1.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

footer .btn-primary:hover {
    background: #1a6fd9;
    border-color: #1a6fd9;
    transform: none;
}

/* Ensure consistent height */
footer .input-group > .form-control,
footer .input-group > .btn {
    height: 48px;
}

/* Fix for dark mode contrast */
footer .form-control {
    border-color: rgba(255, 255, 255, 0.2);
}

footer .form-control:focus {
    border-color: var(--secondary-color);
}

/* Special Bundle Offer Section - Responsive Styles */
@media (max-width: 991.98px) {
    .offer-card .col-lg-6:last-child {
        margin-top: 2rem;
    }
    
    .offer-card .position-relative {
        min-height: 500px !important;
    }
    
    .offer-card img {
        object-fit: cover !important;
    }
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section p.lead {
        font-size: 1.2rem;
    }
    
    .navbar-nav {
        padding: 1rem 0;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0 !important;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 64px 0 34px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .section-title {
        margin-bottom: 2rem;
    }
    
    .back-to-top {
        bottom: 90px; /* Adjusted for mobile */
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .whatsapp-fab {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }
}

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

.fadeInUp {
    animation: fadeInUp 0.8s ease forwards;
}

/* Team Section Styles */
.team-card {
    transition: var(--transition);
    border-radius: 15px;
    overflow: hidden;
}

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

.team-image-container {
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 200px;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition);
}

.team-image-container:hover .team-image {
    transform: scale(1.05);
}

.team-card .badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
}

.bg-success-soft {
    background-color: rgba(16, 185, 129, 0.1);
}

.text-success {
    color: #10b981 !important;
}

.team-card .key-skills ul li {
    font-size: 0.85rem;
    padding: 0.2rem 0;
}

.team-card .key-skills h6 {
    font-size: 0.9rem;
    color: var(--text-color);
}

.team-placeholder {
    padding: 2rem;
}

.team-placeholder i {
    opacity: 0.3;
}

.team-placeholder h4 {
    color: var(--text-color);
}

.team-placeholder p {
    font-size: 0.95rem;
}

@media (max-width: 767.98px) {
    .team-card .row {
        flex-direction: column;
    }
    
    .team-image-container {
        min-height: 250px;
    }
    
    .team-card .card-body {
        padding: 1.5rem !important;
    }
}

/* Certificate Section Styles */
.certificate-card {
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.certificate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

/* Trust Metrics */
.trust-metric {
    padding: 1rem;
    transition: all 0.3s ease;
}

.trust-metric:hover {
    transform: translateY(-3px);
}

.trust-metric h3 {
    font-size: 2.5rem;
    font-weight: 800;
}

/* Certificate Header */
.certificate-header {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-light) 100%);
    position: relative;
}

.certificate-badge {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.certificate-badge i {
    font-size: 1.5rem;
    color: white;
}

/* Certificate Frame */
.certificate-frame {
    position: relative;
    transition: all 0.3s ease;
}

.certificate-frame:hover {
    transform: scale(1.02);
}

.certificate-preview img {
    transition: all 0.3s ease;
    border: 3px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.certificate-preview img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Info Items */
.info-item {
    position: relative;
    padding-left: 1rem;
    border-left: 3px solid var(--brand-primary);
    background: rgba(0, 115, 47, 0.02);
    border-radius: 0 8px 8px 0;
    padding: 0.6rem;
    margin-bottom: 1rem;
}

.info-item:hover {
    background: rgba(0, 115, 47, 0.05);
    border-left-color: var(--brand-primary-light);
}

/* Certificate Icon Small */
.certificate-icon-small {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.certificate-icon-small i {
    font-size: 1.2rem;
}

/* Progress Bar Enhancement */
.progress {
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    border-radius: 10px;
    transition: all 0.3s ease;
}

/* Decorative Element */
.certificate-decoration {
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 50%;
    z-index: 1;
}

/* Background Gradient for Primary */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-light) 100%);
}

/* Background Gradient for Success */
.bg-gradient-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* Membership List */
.membership-list {
    background: rgba(248, 249, 250, 0.5);
    border-radius: 8px;
    padding: 1rem;
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    .trust-metric h3 {
        font-size: 2rem;
    }
    
    .certificate-header {
        text-align: center;
    }
    
    .certificate-badge {
        margin-bottom: 1rem;
    }
    
    .info-item {
        margin-bottom: 0.75rem;
        padding: 0.5rem;
    }
}

/* Certificate Modal Styles */
#certificateModal .modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

#certificateModal .modal-header {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-light) 100%);
    color: white;
    border-radius: 15px 15px 0 0;
    border: none;
}

#certificateModal .modal-body img {
    transition: transform 0.3s ease;
    max-width: 100%;
    height: auto;
}

#certificateModal .modal-body img:hover {
    transform: scale(1.02);
}

#certificateModal .badge {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
}

/* Accounting Roadmap Section */
.roadmap-container {
    padding: 2rem 0;
}

@media (min-width: 992px) {
    .timeline-line {
        left: 50%;
        top: 0;
        bottom: 0;
        width: 4px;
        background: linear-gradient(to bottom, #17a2b8, #28a745, var(--brand-primary));
        transform: translateX(-50%);
        z-index: 1;
    }
}

.roadmap-phase {
    position: relative;
    margin-bottom: 4rem;
    z-index: 2;
}

.roadmap-phase:last-child {
    margin-bottom: 0;
}

.phase-content {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
    position: relative;
}

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

@media (min-width: 992px) {
    .phase-content::before {
        content: '';
        position: absolute;
        width: 20px;
        height: 20px;
        background: white;
        border: 4px solid;
        border-radius: 50%;
        top: 50%;
        transform: translateY(-50%);
        z-index: 3;
    }

    .roadmap-phase:nth-child(2) .phase-content::before {
        right: -45px;
        border-color: #17a2b8; /* Info color for I-Accounting */
    }

    .roadmap-phase:nth-child(3) .phase-content::before {
        left: -45px;
        border-color: #28a745; /* Success color for R-Accounting */
    }

    .roadmap-phase:nth-child(4) .phase-content::before {
        right: -45px;
        border-color: var(--brand-primary); /* Primary color for AI */
    }
}

.phase-period {
    margin-bottom: 1rem;
}

/* Eye-catching Year Banners */
.phase-period-highlight {
    margin-bottom: 1.5rem;
}

.year-banner {
    position: relative;
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    overflow: hidden;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, currentColor 0%, currentColor 100%);
}

.year-banner:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.year-banner.bg-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
}

.year-banner.bg-success {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}

.year-banner.bg-primary {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
}

.year-text {
    position: relative;
    z-index: 2;
    font-size: 1rem;
    font-weight: 800;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.year-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%, rgba(255,255,255,0.1) 100%);
    border-radius: inherit;
    z-index: 1;
}

.year-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.year-banner:hover::before {
    opacity: 1;
    animation: shine 0.8s ease-in-out;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Enhanced mobile year banners */
@media (max-width: 991.98px) {
    .year-banner {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
        margin-bottom: 0.75rem;
        display: inline-block;
        text-align: left;
        width: auto;
        border-radius: 6px;
        text-transform: none;
        letter-spacing: 0.5px;
        font-weight: 600;
        box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    }
    
    .year-banner:hover {
        transform: none;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    }
    
    .phase-period-highlight {
        text-align: left;
        margin-bottom: 0.5rem;
    }
    
    .year-text {
        font-size: 0.85rem;
        font-weight: 600;
    }
}

@media (max-width: 767.98px) {
    .year-banner {
        font-size: 0.8rem;
        padding: 0.4rem 0.75rem;
        letter-spacing: 0.3px;
        border-radius: 4px;
        margin-bottom: 0.5rem;
    }
    
    .year-text {
        font-size: 0.8rem;
        font-weight: 600;
    }
    
    .phase-period-highlight {
        margin-bottom: 0.5rem;
    }
}

.phase-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.phase-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.phase-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 200px;
}

.phase-icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    position: relative;
    transition: var(--transition);
}

.phase-icon:hover {
    transform: scale(1.1) rotate(10deg);
}

.phase-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    opacity: 0.2;
    transform: scale(1.3);
    animation: pulse 2s infinite;
}

/* Mobile Stepper Design */
@media (max-width: 991.98px) {
    .timeline-line {
        display: none;
    }
    
    .phase-content::before {
        display: none;
    }
    
    .roadmap-container {
        padding: 2rem 1rem;
    }
    
    .roadmap-phase {
        position: relative;
        margin-bottom: 2.5rem;
        padding-left: 3.5rem;
    }
    
    .roadmap-phase:last-child {
        margin-bottom: 0;
    }
    
    .roadmap-phase:last-child::after {
        display: none;
    }
    
    /* Stepper Line */
    .roadmap-phase::after {
        content: '';
        position: absolute;
        left: 1.5rem;
        top: 4rem;
        bottom: -2rem;
        width: 2px;
        background: #e9ecef;
        z-index: 1;
    }
    
    /* Step Number Circle */
    .roadmap-phase::before {
        content: attr(data-step);
        position: absolute;
        left: 0.75rem;
        top: 1rem;
        width: 1.5rem;
        height: 1.5rem;
        background: #fff;
        border: 2px solid #dee2e6;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.75rem;
        font-weight: 700;
        z-index: 2;
        color: #6c757d;
    }
    
    .roadmap-phase:nth-child(2)::before {
        border-color: #17a2b8;
        color: #17a2b8;
        background: rgba(23, 162, 184, 0.1);
    }
    
    .roadmap-phase:nth-child(3)::before {
        border-color: #28a745;
        color: #28a745;
        background: rgba(40, 167, 69, 0.1);
    }
    
    .roadmap-phase:nth-child(4)::before {
        border-color: var(--brand-primary);
        color: var(--brand-primary);
        background: rgba(0, 115, 47, 0.1);
    }
    
    .roadmap-phase .row {
        margin: 0;
    }
    
    .roadmap-phase .col-md-6 {
        padding: 0;
    }
    
    .phase-icon-container {
        display: none;
    }
    
    .phase-content {
        background: white;
        border-radius: 0.5rem;
        padding: 1.25rem;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        border-left: 3px solid transparent;
        margin: 0;
        position: relative;
        transition: all 0.2s ease;
    }
    
    .roadmap-phase:nth-child(2) .phase-content {
        border-left-color: #17a2b8;
    }
    
    .roadmap-phase:nth-child(3) .phase-content {
        border-left-color: #28a745;
    }
    
    .roadmap-phase:nth-child(4) .phase-content {
        border-left-color: var(--brand-primary);
    }
    
    .phase-content:hover {
        transform: translateX(2px);
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    }
    
    .phase-period {
        margin-bottom: 0.75rem;
    }
    
    .phase-period-highlight {
        margin-bottom: 0.75rem;
    }
    
    .phase-title {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
    }
    
    .phase-subtitle {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
        opacity: 0.8;
    }
    
    .phase-content p {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }
    
    .phase-content ul {
        font-size: 0.85rem;
    }
    
    .phase-content ul li {
        margin-bottom: 0.25rem;
    }
}

@media (max-width: 767.98px) {
    .roadmap-container {
        padding: 1.5rem 0.5rem;
    }
    
    .roadmap-phase {
        padding-left: 2.5rem;
        margin-bottom: 1.75rem;
    }
    
    .roadmap-phase::after {
        left: 0.75rem;
        bottom: -1.75rem;
    }
    
    .roadmap-phase::before {
        left: 0;
        width: 1.5rem;
        height: 1.5rem;
        font-size: 0.7rem;
    }
    
    .phase-content {
        padding: 1rem;
        border-radius: 0.375rem;
    }
    
    .phase-title {
        font-size: 1.25rem;
    }
    
    .phase-subtitle {
        font-size: 0.9rem;
    }
    
    .phase-content p {
        font-size: 0.85rem;
    }
    
    .phase-content ul {
        font-size: 0.8rem;
    }
}
