/* Global Styles */
:root {
    --primary-color: #1e3a8a;
    --secondary-color: #3b82f6;
    --accent-color: #f59e0b;
    --dark-color: #1f2937;
    --light-color: #f8fafc;
    --text-color: #374151;
    --text-light: #6b7280;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    --gradient-secondary: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    opacity: 1;
    visibility: visible;
}

body.loaded {
    opacity: 1;
    visibility: visible;
}

/* Ensure all content is visible */
section {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.container, .row, .col-lg-6, .col-lg-4, .col-md-6 {
    opacity: 1 !important;
    visibility: visible !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

/* Navigation */
.navbar {
    background: rgba(30, 58, 138, 0.95);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    padding: 1rem 0;
}

.navbar-brand img {
    transition: var(--transition);
}

.navbar-nav .nav-link {
    color: var(--white) !important;
    font-weight: 500;
    font-size: 0.85rem;
    margin: 0 0.25rem;
    padding: 0.4rem 0.8rem !important;
    border-radius: 20px;
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    color: var(--accent-color) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.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%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-primary);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://mariganspace.com/new/assets/img/marigan.jpeg') center/cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.8) 0%, rgba(59, 130, 246, 0.8) 100%);
    z-index: 2;
}

.hero-section .container {
    position: relative;
    z-index: 3;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons .btn {
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    box-shadow: var(--shadow-medium);
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}

.btn-primary {
    background: var(--gradient-secondary);
    border: none;
}

.btn-outline-light {
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary-color);
}

.hero-image {
    position: relative;
}

.hero-image img {
    border-radius: 20px;
    box-shadow: var(--shadow-heavy);
    transition: var(--transition);
}

.hero-image:hover img {
    transform: scale(1.05);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border: 2px solid var(--white);
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Section Styles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-secondary);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

/* About Section */
.about-section {
    background: var(--light-color);
}

.about-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.about-content p {
    margin-bottom: 1.5rem;
    color: var(--text-color);
    line-height: 1.7;
}

.stats-row {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-item h4 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

.about-image img {
    transition: var(--transition);
}

.about-image:hover img {
    transform: scale(1.05);
}

/* Service Sections */
.service-section {
    padding: 5rem 0;
}

.service-content h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.service-content p {
    margin-bottom: 2rem;
    color: var(--text-color);
    line-height: 1.7;
}

.feature-list {
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 10px;
    transition: var(--transition);
}

.feature-item:hover {
    background: rgba(59, 130, 246, 0.1);
    transform: translateX(10px);
}

.feature-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
    margin-top: 0.25rem;
    min-width: 30px;
}

.feature-item h5 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.feature-item p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.95rem;
}

.service-image img {
    transition: var(--transition);
    border-radius: 15px;
}

.service-image:hover img {
    transform: scale(1.05);
}

/* CEO Section */
.ceo-section {
    background: var(--gradient-primary);
    color: var(--white);
}

.ceo-content h2 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.ceo-content .lead {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.ceo-content p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.ceo-signature {
    margin-top: 2rem;
    font-size: 1.1rem;
}

.ceo-image img {
    transition: var(--transition);
}

.ceo-image:hover img {
    transform: scale(1.05);
}

/* Team Section */
.team-section {
    background: var(--light-color);
}

.team-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    height: 100%;
    text-align: center;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.team-image-container {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.team-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: var(--transition);
}

.team-card:hover .team-image {
    transform: scale(1.05);
}

.team-info {
    padding: 1.5rem;
}

.team-info h4 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.team-info .position {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.team-info .company {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Social Icons */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--accent-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* App Download Section */
.app-download-section {
    background: rgba(59, 130, 246, 0.05);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.app-download-section h5 {
    color: var(--primary-color);
    font-weight: 600;
}

.app-buttons .btn {
    transition: var(--transition);
}

.app-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Countdown Timer */
.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.countdown-item {
    text-align: center;
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem;
    border-radius: 10px;
    min-width: 80px;
}

.countdown-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.countdown-label {
    display: block;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    opacity: 0.9;
}

/* Team Modals */
.modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: var(--shadow-heavy);
}

.modal-header {
    background: var(--gradient-primary);
    color: var(--white);
    border-bottom: none;
    border-radius: 15px 15px 0 0;
}

.modal-title {
    color: var(--white);
    font-weight: 600;
}

.btn-close {
    filter: invert(1);
}

.modal-body {
    padding: 2rem;
}

.modal-body h5 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.modal-body p {
    line-height: 1.7;
    color: var(--text-color);
}

.modal-body .social-links .btn {
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.modal-body .social-links .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Modal Animation */
.modal.fade .modal-dialog {
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.modal.show .modal-dialog {
    transform: scale(1);
}

/* Blog Section */
.blog-section {
    background: var(--white);
}

.blog-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.blog-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent-color);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.blog-content {
    padding: 1.5rem;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.blog-content h4 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
}

.blog-content p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Enhanced Mobile Navigation */
.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.navbar-toggler:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.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%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    transition: all 0.3s ease;
}

.navbar-toggler:hover .navbar-toggler-icon {
    transform: rotate(90deg);
}

/* Dropdown Menu Styling */
.dropdown-menu {
    background: rgba(30, 58, 138, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    margin-top: 0.5rem;
    padding: 0.5rem 0;
    box-shadow: var(--shadow-heavy);
    animation: dropdownSlide 0.3s ease;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    color: var(--white) !important;
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
    border-radius: 8px;
    margin: 0 0.5rem;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-color) !important;
    transform: translateX(5px);
}

/* Enhanced Mobile Collapse */
.navbar-collapse {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-collapse.collapsing {
    height: auto;
    overflow: hidden;
}

.navbar-collapse.show {
    animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Contact Section */
.contact-section {
    background: var(--dark-color);
}

.contact-form .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 1rem;
    border-radius: 10px;
    transition: var(--transition);
}

.contact-form .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(245, 158, 11, 0.25);
    color: var(--white);
}

.contact-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: var(--white);
}

.footer h5 {
    color: var(--white);
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer ul li {
    margin-bottom: 0.5rem;
}

.footer ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer ul li a:hover {
    color: var(--accent-color);
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-secondary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 9999;
    box-shadow: var(--shadow-medium);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
    background: var(--gradient-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .stats-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
    }
    
    .feature-item i {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .navbar-nav .nav-link {
        margin: 0.25rem 0;
        text-align: center;
        font-size: 0.9rem;
        padding: 0.5rem 1rem !important;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
        opacity: 1;
        visibility: visible;
    }
    
    .navbar-brand img {
        height: 40px !important;
    }
    
    .service-section {
        padding: 3rem 0;
    }
    
    .about-section {
        padding: 3rem 0;
    }
    
    .ceo-section {
        padding: 3rem 0;
    }
    
    .contact-section {
        padding: 3rem 0;
    }
    
    .team-section {
        padding: 3rem 0;
    }
    
    .team-image-container {
        height: 280px;
    }
    
    .team-image {
        object-position: center center;
    }
    
    .team-info {
        padding: 1rem;
    }
    
    .team-info h4 {
        font-size: 1.1rem;
    }
    
    .countdown-timer {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .countdown-item {
        min-width: 60px;
        padding: 0.75rem;
    }
    
    .countdown-number {
        font-size: 1.2rem;
    }
    
    .blog-section {
        padding: 3rem 0;
    }
    
    .blog-card {
        margin-bottom: 2rem;
    }
    
    .blog-image {
        height: 180px;
    }
    
    .blog-content h4 {
        font-size: 1rem;
    }
    
    .blog-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .navbar-collapse {
        background: rgba(30, 58, 138, 0.95);
        border-radius: 10px;
        margin-top: 1rem;
        padding: 1rem;
        backdrop-filter: blur(10px);
    }
    
    .dropdown-menu {
        background: rgba(30, 58, 138, 0.98);
        margin-top: 0.25rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .service-section {
        padding: 3rem 0;
    }
    
    .about-section {
        padding: 3rem 0;
    }
    
    .navbar-nav .nav-link {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem !important;
    }
    
    .hero-buttons .btn {
        font-size: 0.9rem;
        padding: 0.6rem 1.5rem;
    }
    
    .feature-item {
        padding: 0.8rem;
    }
    
    .feature-item h5 {
        font-size: 1rem;
    }
    
    .feature-item p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .navbar-nav .nav-link {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem !important;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .service-content h3 {
        font-size: 1.5rem;
    }
    
    .team-image-container {
        height: 250px;
    }
    
    .team-image {
        object-position: center center;
    }
    
    .team-info h4 {
        font-size: 1rem;
    }
    
    .team-info .position {
        font-size: 0.9rem;
    }
    
    .social-icons {
        gap: 0.25rem;
    }
    
    .social-icon {
        width: 30px;
        height: 30px;
    }
    
    .countdown-timer {
        gap: 0.25rem;
    }
    
    .countdown-item {
        min-width: 50px;
        padding: 0.5rem;
    }
    
    .countdown-number {
        font-size: 1rem;
    }
    
    .countdown-label {
        font-size: 0.7rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-body .social-links .btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .blog-image {
        height: 160px;
    }
    
    .blog-content {
        padding: 1rem;
    }
    
    .blog-content h4 {
        font-size: 0.9rem;
    }
    
    .blog-meta {
        font-size: 0.75rem;
    }
    
    .dropdown-menu {
        background: rgba(30, 58, 138, 0.98);
        border-radius: 10px;
    }
    
    .dropdown-item {
        padding: 0.5rem 1rem;
        margin: 0 0.25rem;
        font-size: 0.9rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Additional Styles for New Pages */
.content-wrapper {
    max-width: 100%;
}

.content-section {
    margin-bottom: 3rem;
}

.content-section h2,
.content-section h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.content-section p {
    line-height: 1.7;
    color: var(--text-color);
}

.value-card {
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.value-card h5 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.stat-card {
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.stat-card h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-card h5 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.stat-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

.business-item {
    background: var(--white);
    transition: var(--transition);
    border: 1px solid rgba(59, 130, 246, 0.1) !important;
}

.business-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-light);
    border-color: var(--primary-color) !important;
}

.business-item h6 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.business-item p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.85rem;
}

/* Hero section adjustments for sub-pages */
.hero-section.min-vh-60 {
    min-height: 60vh !important;
}

/* Responsive adjustments for new pages */
@media (max-width: 768px) {
    .content-section {
        margin-bottom: 2rem;
    }
    
    .value-card,
    .stat-card {
        margin-bottom: 1rem;
    }
    
    .stat-card h2 {
        font-size: 2rem;
    }
    
    .business-item {
        margin-bottom: 1rem;
    }
}

/* MariPay Service Cards */
.service-card {
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid rgba(59, 130, 246, 0.1);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-color);
}

.service-card h5 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-card p {
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
}

.service-card i {
    transition: var(--transition);
}

.service-card:hover i {
    transform: scale(1.1);
}

/* Tawk.to Widget Positioning */
#tawk-widget {
    z-index: 1000 !important;
}

/* Ensure back-to-top button is above tawk.to */
.back-to-top {
    z-index: 10000 !important;
}

/* Mobile adjustments for tawk.to and back-to-top */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    /* Adjust tawk.to widget on mobile */
    #tawk-widget {
        bottom: 80px !important;
    }
}

/* Toast Notification Styles */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-notification {
    animation: slideInRight 0.3s ease-out;
    transition: all 0.3s ease;
}

.toast-notification:hover {
    transform: translateX(-5px);
}

/* Activity Indicator Styles */
#submitSpinner {
    margin-left: 0.5rem;
}

#submitBtn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}