/* Tropical Design System for digiOffice */
:root {
    /* Primary Colors (Core Brand Identity) */
    --primary: #3747cc;
    /* Royal Blue */
    --primary-light: #AEB6F9;
    /* Light Blue */

    /* Secondary Colors (Supporting Accents) */
    --secondary: #FF8A34;
    /* Sunrise Orange */
    --accent: #00BFA6;
    /* Vibrant Teal */
    --dark: #1F2B85;
    /* Dark Blue */

    /* Neutral Colors (Supporting Accents) */
    --charcoal: #333333;
    /* Charcoal Gray */
    --cool-gray: #777777;
    /* Cool Gray */
    --white: #FFFFFF;
    /* White */

    /* Legacy/Additional Colors */
    --secondary-light: #ffc291;
    --teal: #00BFA6;
    --darker: #1F2B85;
    /* Updated to match Dark Blue */
    --light: #f5f7ff;
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);

    /* Gradients */
    --grad-tropical: linear-gradient(135deg, #3747cc 0%, #00BFA6 100%);
    --grad-sunset: linear-gradient(135deg, #FF8A34 0%, #ffc291 100%);
    --grad-ocean: linear-gradient(135deg, #3747cc 0%, #AEB6F9 100%);
    --grad-dark: linear-gradient(135deg, #1F2B85 0%, #0a1240 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--white);
    color: var(--dark);
    overflow-x: hidden !important;
    width: 100vw;
}

/* Custom Text Color Classes */
.text-tropical-primary {
    color: var(--primary) !important;
}

.text-tropical-secondary {
    color: var(--secondary) !important;
}

.text-tropical-accent {
    color: var(--accent) !important;
}

.text-tropical-dark {
    color: var(--dark) !important;
}

.text-tropical-charcoal {
    color: var(--charcoal) !important;
}

.text-tropical-white {
    color: var(--white) !important;
}

/* Custom Background Color Classes */
.bg-tropical-primary {
    background-color: var(--primary) !important;
}

.bg-tropical-secondary {
    background-color: var(--secondary) !important;
}

.bg-tropical-accent {
    background-color: var(--accent) !important;
}

.bg-tropical-dark {
    background-color: var(--dark) !important;
}

.bg-tropical-light {
    background-color: var(--light) !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 0.5;
    }
}

@keyframes floatingBadge {
    0% {
        transform: translateY(0) translateX(0);
    }

    33% {
        transform: translateY(-10px) translateX(5px);
    }

    66% {
        transform: translateY(5px) translateX(-5px);
    }

    100% {
        transform: translateY(0) translateX(0);
    }
}

.animate-fade-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Header Overhaul */
#header {
    background: transparent;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    /* padding: 20px 0; */
    z-index: 1000;
}

#header .container-fluid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
}

#header.header-scrolled {
    background: var(--grad-dark) !important;
    /* padding: 12px 0; */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--glass-border);
}

.nav-menu {
    display: flex;
    align-items: center;
    margin: 0;
}

.nav-menu li {
    margin-left: 25px;
}

.nav-menu a {
    color: var(--white);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 13px;
    position: relative;
    transition: 0.3s;
    padding: 10px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-light);
    transition: 0.3s;
}

.nav-menu a:hover::after {
    width: 100%;
}

.contact-sales-btn {
    background: var(--grad-tropical);
    padding: 8px 20px !important;
    border-radius: 50px !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(55, 71, 204, 0.3);
}

/* Hero Section */
.hero-tropical {
    position: relative;
    min-height: 100vh;
    background: var(--grad-dark);
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 100px 0 60px 0;
}

.hero-tropical::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0.2;
    border-radius: 50%;
    animation: pulse 8s infinite alternate;
}

.hero-tropical::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
    opacity: 0.2;
    border-radius: 50%;
    animation: pulse 6s infinite alternate-reverse;
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-title {
    font-size: 5rem;
    background: var(--grad-tropical);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-subtitle {
    color: var(--white);
    font-size: 1.2rem;
    opacity: 0.8;
    max-width: 600px;
    margin-bottom: 40px;
}

.hero-btns .btn {
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    margin-right: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-tropical {
    background: var(--grad-tropical);
    color: white;
    border: none;
}

.btn-outline-white {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Hero Highlights Section */
.hero-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    position: relative;
    padding: 20px;
    max-width: 100%;
}

.highlight-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 25px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    cursor: default;
}

.highlight-card:hover {
    transform: translateY(-10px) scale(1.05);
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-light);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.highlight-card i {
    width: 60px;
    height: 60px;
    background: var(--grad-tropical);
    color: white;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 15px;
    box-shadow: 0 8px 15px rgba(55, 71, 204, 0.3);
}

.highlight-card h4 {
    color: var(--white);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.highlight-card p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    margin: 0;
    line-height: 1.4;
}

/* Static Highlights */
.h-animate-1,
.h-animate-2,
.h-animate-3,
.h-animate-4,
.highlight-card.float-slow,
.highlight-card.float-fast {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
}

.hero-image img {
    width: 100%;
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.5));
}

/* Sections */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    background: var(--grad-dark);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title .underline {
    width: 80px;
    height: 4px;
    background: var(--grad-tropical);
    margin: 0 auto;
    border-radius: 2px;
}

/* Benefits Section */
.benefits-section {
    background: var(--light);
}

.benefit-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(55, 71, 204, 0.1);
    border-color: var(--primary);
}

/* Service Cards (Glassmorphism) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    position: relative;
    overflow: hidden;
    border-radius: 25px;
    background: var(--white);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    transition: 0.5s;
}

.service-card .card-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    transition: 0.5s;
}

.service-card .card-body {
    padding: 30px;
    text-align: center;
}

.service-card:hover .card-img {
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* Testimonials */
.testimonial-item {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin: 20px;
}

.testimonial-img {
    width: 80px;
    height: 80px;
}

.blog-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.read-more {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
}

.read-more:hover {
    color: var(--primary-light);
}

/* Contact Section & Glass Box */
.contact-section {
    background: var(--grad-dark);
    color: var(--white);
    padding: 120px 0;
    position: relative;
}

.contact-info h3 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--white);
}

.glass-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--grad-tropical);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 10px 20px rgba(55, 71, 204, 0.2);
}

.tropical-input {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: white !important;
    padding: 15px 20px !important;
    border-radius: 12px !important;
    transition: 0.3s;
}

.tropical-input:focus {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 15px rgba(55, 71, 204, 0.2) !important;
    outline: none;
}

.tropical-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Wave Dividers */
.wave-divider {
    position: absolute;
    width: 100%;
    left: 0;
    line-height: 0;
}

.wave-top {
    top: -1px;
    transform: rotate(180deg);
}

.wave-bottom {
    bottom: -1px;
}

/* Responsive */
@media (max-width: 991px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .hero-tropical {
        text-align: center;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-btns .btn {
        margin-right: 10px;
        margin-left: 10px;
        margin-bottom: 15px;
    }
}

/* Hero Stats */
.hero-stats {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-number {
    font-size: 2rem;
    color: var(--primary-light);
    margin-bottom: 0px;
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer Overhaul */
.footer-tropical {
    background: var(--darker);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.05);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    margin-left: 10px;
    transition: 0.3s;
}

.social-links a:hover {
    background: var(--grad-tropical);
    transform: translateY(-5px);
}

/* Responsive Fixes */
@media (max-width: 991px) {
    .hero-stats {
        margin-top: 40px;
    }

    #nav-menu-container {
        display: none;
    }

    #header .container-fluid {
        justify-content: flex-start;
    }
}

/* Mobile Navigation Styling */
#mobile-nav-toggle {
    position: fixed;
    right: 20px;
    top: 20px;
    z-index: 1200;
    background: var(--grad-tropical);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    font-size: 22px;
    cursor: pointer;
    transition: 0.3s;
}

#mobile-nav-toggle:focus {
    outline: none;
}

@media (max-width: 991px) {
    #mobile-nav-toggle {
        display: flex;
    }
}

#mobile-nav {
    background: var(--darker);
    color: white;
    box-shadow: 15px 0 40px rgba(0, 0, 0, 0.6);
    width: 320px;
    left: -320px;
    padding-top: 0;
    z-index: 1100;
    /* Higher than #header */
    height: 100vh;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav-header {
    padding: 30px 25px;
    background: var(--grad-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

#mobile-nav ul li a {
    color: var(--white);
    font-weight: 600;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: block;
    transition: 0.3s;
}

#mobile-nav ul li a:hover,
#mobile-nav ul li.menu-active a {
    color: var(--primary-light);
    background: rgba(255, 255, 255, 0.05);
    padding-left: 35px;
    /* Subtle slide effect on hover */
}

/* Fix Contact Sales button in Mobile Nav */
#mobile-nav .contact-sales-btn {
    background: var(--grad-tropical) !important;
    border-radius: 15px !important;
    /* margin: 25px !important; */
    padding: 18px !important;
    text-align: center;
    box-shadow: 0 10px 25px rgba(55, 71, 204, 0.4) !important;
    color: white !important;
    font-weight: 700 !important;
    letter-spacing: 1px;
}

#mobile-nav .contact-sales-btn:hover {
    transform: scale(1.02);
    padding-left: 18px !important;
    /* Override the default padding-left slide */
}

#mobile-nav .contact-sales-btn::after {
    display: none;
}

#mobile-body-overly {
    background: rgba(10, 18, 64, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1050;
}

@media (max-width: 767px) {
    #header .container-fluid {
        padding: 0 20px;
    }

    #logo img {
        height: 40px !important;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .hero-highlights {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 20px 5px;
        margin-top: 30px;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .highlight-card {
        padding: 10px 5px;
        min-width: 0;
        /* Foundation for grid shrinkage */
    }

    .highlight-card i {
        width: 40px;
        height: 40px;
        font-size: 16px;
        margin-bottom: 8px;
    }

    .highlight-card h4 {
        font-size: 12px;
        margin-bottom: 3px;
    }

    .highlight-card p {
        font-size: 10px;
    }
}