/* ==========================================================================
   MAZZANT - Custom Styles
   ========================================================================== */

/* Root Variables */
:root {
    --mazzant-primary: #6366f1;
    --mazzant-primary-dark: #4f46e5;
    --mazzant-secondary: #f59e0b;
    --mazzant-dark: #1f2937;
    --mazzant-light: #f8fafc;
    --mazzant-text: #374151;
    --mazzant-text-light: #6b7280;
    --mazzant-border: #e5e7eb;
    --mazzant-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --mazzant-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --mazzant-shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Base Typography */
body {
    font-family: 'Inter', sans-serif;
    color: var(--mazzant-text);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.mazzant-nav {
    background: rgba(31, 41, 55, 0.95);
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mazzant-nav.scrolled {
    background: rgba(31, 41, 55, 0.98);
    box-shadow: var(--mazzant-shadow);
}

.mazzant-brand img {
    transition: transform 0.3s ease;
    max-height: 50px !important;
    width: auto !important;
}

.mazzant-brand:hover img {
    transform: scale(1.05);
}

.mazzant-nav .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    margin: 0 10px;
    position: relative;
    transition: all 0.3s ease;
}

.mazzant-nav .nav-link:hover {
    color: white !important;
    transform: translateY(-2px);
}

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

.mazzant-nav .nav-link:hover::after {
    width: 100%;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn-mazzant-primary {
    background: var(--mazzant-gradient);
    border: none;
    color: white;
    font-weight: 600;
    padding: 12px 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-mazzant-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-mazzant-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--mazzant-shadow-lg);
    color: white;
}

.btn-mazzant-primary:hover::before {
    left: 100%;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.mazzant-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.mazzant-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.mazzant-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.mazzant-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.9) 0%, rgba(99, 102, 241, 0.3) 100%);
    z-index: -1;
}

.mazzant-hero-content {
    color: white;
    z-index: 10;
}

.mazzant-hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.mazzant-gradient-text {
    background: var(--mazzant-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.mazzant-hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
}

.mazzant-hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.mazzant-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.mazzant-scroll-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: bounce 2s infinite;
}

.mazzant-scroll-btn:hover {
    background: var(--mazzant-primary);
    border-color: var(--mazzant-primary);
    color: white;
    transform: translateX(-50%) translateY(-5px);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.mazzant-services {
    background: var(--mazzant-light);
}

.mazzant-section-header {
    margin-bottom: 4rem;
}

.mazzant-badge {
    display: inline-block;
    background: var(--mazzant-gradient);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.mazzant-section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    color: var(--mazzant-dark);
}

.mazzant-section-subtitle {
    font-size: 1.125rem;
    color: var(--mazzant-text-light);
    max-width: 600px;
    margin: 0 auto;
}

.mazzant-service-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--mazzant-shadow);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid var(--mazzant-border);
}

.mazzant-service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--mazzant-shadow-lg);
}

.mazzant-service-featured {
    background: var(--mazzant-gradient);
    color: white;
}

.mazzant-service-featured .mazzant-service-description {
    color: rgba(255, 255, 255, 0.9);
}

.mazzant-service-icon {
    width: 80px;
    height: 80px;
    background: var(--mazzant-gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: white;
}

.mazzant-service-featured .mazzant-service-icon {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.mazzant-service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--mazzant-dark);
}

.mazzant-service-featured .mazzant-service-title {
    color: white;
}

.mazzant-service-description {
    color: var(--mazzant-text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.mazzant-service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.mazzant-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.mazzant-feature i {
    color: var(--mazzant-secondary);
}

.mazzant-service-featured .mazzant-feature i {
    color: rgba(255, 255, 255, 0.8);
}

.mazzant-service-stats {
    margin-top: 1.5rem;
}

.mazzant-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.mazzant-stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--mazzant-primary);
    font-family: 'Playfair Display', serif;
}

.mazzant-stat-label {
    font-size: 0.875rem;
    color: var(--mazzant-text-light);
    font-weight: 500;
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */
.mazzant-cta {
    background: var(--mazzant-gradient);
    color: white;
    text-align: center;
}

.mazzant-cta-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

.mazzant-cta-subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.mazzant-footer {
    background: var(--mazzant-dark);
    color: white;
}

.mazzant-footer-top {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mazzant-footer-logo img {
    max-height: 60px;
    margin-bottom: 1.5rem;
}

.mazzant-footer-description {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.mazzant-footer-social {
    display: flex;
    gap: 1rem;
}

.mazzant-social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mazzant-social-link:hover {
    background: var(--mazzant-primary);
    transform: translateY(-3px);
    color: white;
}

.mazzant-footer-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.mazzant-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mazzant-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.mazzant-contact-item i {
    color: var(--mazzant-primary);
    margin-top: 2px;
    flex-shrink: 0;
}

.mazzant-footer-subtitle {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

.mazzant-email-box {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 4px;
    margin-bottom: 1rem;
}

.mazzant-email-input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    padding: 12px 20px;
    outline: none;
}

.mazzant-email-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.mazzant-email-btn {
    width: 45px;
    height: 45px;
    background: var(--mazzant-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mazzant-email-btn:hover {
    background: var(--mazzant-primary-dark);
    transform: scale(1.05);
    color: white;
}

.mazzant-footer-bottom {
    background: rgba(0, 0, 0, 0.2);
}

.mazzant-copyright {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.mazzant-footer-links {
    display: flex;
    gap: 2rem;
}

.mazzant-footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.mazzant-footer-link:hover {
    color: var(--mazzant-primary);
}

/* ==========================================================================
   LOGIN PAGE STYLES
   ========================================================================== */

.mazzant-login-page {
    overflow-x: hidden;
}

.mazzant-login-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.mazzant-login-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.mazzant-login-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.mazzant-login-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.95) 0%, rgba(99, 102, 241, 0.2) 100%);
    z-index: -1;
}

.mazzant-back-home {
    position: absolute;
    top: 30px;
    left: 30px;
    z-index: 10;
}

.mazzant-back-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 10px 20px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.mazzant-back-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-5px);
}

.mazzant-login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: var(--mazzant-shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.mazzant-login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--mazzant-gradient);
}

.mazzant-login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.mazzant-login-logo {
    margin-bottom: 1.5rem;
}

.mazzant-login-logo img {
    max-height: 60px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.mazzant-login-title {
    font-size: 2rem;
    color: var(--mazzant-dark);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.mazzant-login-subtitle {
    color: var(--mazzant-text-light);
    margin-bottom: 0;
}

.mazzant-form-group {
    margin-bottom: 1.5rem;
}

.mazzant-input-wrapper {
    position: relative;
}

.mazzant-form-control {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid var(--mazzant-border);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    color: var(--mazzant-text);
}

.mazzant-form-control:focus {
    outline: none;
    border-color: var(--mazzant-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.mazzant-input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--mazzant-text-light);
    transition: color 0.3s ease;
    z-index: 2;
}

.mazzant-input-wrapper.focused .mazzant-input-icon {
    color: var(--mazzant-primary);
}

.mazzant-floating-label {
    position: absolute;
    left: 3rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--mazzant-text-light);
    pointer-events: none;
    transition: all 0.3s ease;
    background: white;
    padding: 0 0.5rem;
}

.mazzant-input-wrapper.focused .mazzant-floating-label,
.mazzant-form-control:focus + .mazzant-floating-label {
    top: 0;
    left: 2.5rem;
    font-size: 0.75rem;
    color: var(--mazzant-primary);
    font-weight: 500;
}

.mazzant-password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--mazzant-text-light);
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0.25rem;
    z-index: 2;
}

.mazzant-password-toggle:hover {
    color: var(--mazzant-primary);
}

.mazzant-form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.mazzant-checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mazzant-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--mazzant-primary);
}

.mazzant-checkbox-label {
    color: var(--mazzant-text);
    font-size: 0.875rem;
    cursor: pointer;
    margin: 0;
}

.mazzant-forgot-link {
    color: var(--mazzant-primary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.mazzant-forgot-link:hover {
    color: var(--mazzant-primary-dark);
    text-decoration: underline;
}

.mazzant-login-btn {
    position: relative;
    overflow: hidden;
    font-weight: 600;
    padding: 1rem 2rem;
    transition: all 0.3s ease;
}

.mazzant-login-btn.loading {
    pointer-events: none;
}

.mazzant-login-btn .mazzant-btn-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mazzant-login-btn.loading .mazzant-btn-text {
    opacity: 0;
}

.mazzant-login-btn.loading .mazzant-btn-loader {
    opacity: 1;
    animation: spin 1s linear infinite;
}

.mazzant-login-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--mazzant-border);
}

.mazzant-help-text {
    color: var(--mazzant-text-light);
    margin: 0;
    font-size: 0.875rem;
}

.mazzant-contact-link {
    color: var(--mazzant-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.mazzant-contact-link:hover {
    color: var(--mazzant-primary-dark);
    text-decoration: underline;
}

.mazzant-login-decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.mazzant-decoration {
    position: absolute;
    border-radius: 50%;
    background: var(--mazzant-gradient);
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.mazzant-decoration-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    right: 10%;
    animation-delay: -2s;
}

.mazzant-decoration-2 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 15%;
    animation-delay: -4s;
}

.mazzant-decoration-3 {
    width: 100px;
    height: 100px;
    top: 60%;
    right: 20%;
    animation-delay: -1s;
}

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

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 991px) {
    .mazzant-hero-buttons {
        justify-content: center;
    }
    
    .mazzant-service-card {
        padding: 2rem;
    }
    
    .mazzant-footer-social {
        justify-content: center;
        margin-bottom: 2rem;
    }
    
    .mazzant-footer-links {
        justify-content: center;
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    .mazzant-hero {
        padding-top: 80px;
    }
    
    .mazzant-hero-content {
        text-align: center;
    }
    
    .mazzant-hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .mazzant-service-card {
        padding: 1.5rem;
    }
    
    .mazzant-service-features {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .mazzant-hero-title {
        font-size: 2rem;
    }
    
    .mazzant-hero-subtitle {
        font-size: 1rem;
    }
    
    .mazzant-hero-buttons .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .mazzant-service-card {
        padding: 1.25rem;
    }
    
    .mazzant-service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   NAVIGATION - HYBRID DESIGN (Mobile Always Visible + Desktop Original)
   ========================================================================== */

.mazzant-nav {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.95) 0%, rgba(99, 102, 241, 0.1) 100%);
    backdrop-filter: blur(20px);
    box-shadow: var(--mazzant-shadow);
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.mazzant-nav .container-fluid {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mazzant-brand img {
    transition: transform 0.3s ease;
}

.mazzant-brand:hover img {
    transform: scale(1.05);
}

/* Mobile Navigation - Always Visible */
.mazzant-nav-mobile {
    display: flex;
    align-items: center;
}

.mazzant-nav-mobile .navbar-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mazzant-nav-mobile .nav-item {
    margin: 0;
}

.mazzant-nav-mobile .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    padding: 5px 6px;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.8rem;
}

.mazzant-nav-mobile .nav-link:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.1);
}

.mazzant-login-btn-mobile {
    padding: 4px 8px !important;
    font-size: 0.7rem !important;
    margin-left: 0.25rem;
}

/* Desktop Navigation - Original Behavior */
@media (min-width: 992px) {
    .mazzant-nav {
        padding: 0.75rem 0;
    }
    
    .mazzant-nav .nav-link {
        color: rgba(255, 255, 255, 0.8) !important;
        font-weight: 500;
        margin: 0 10px;
        position: relative;
        transition: all 0.3s ease;
        padding: 8px 12px;
        font-size: 1rem;
    }

    .mazzant-nav .nav-link:hover {
        color: white !important;
        transform: translateY(-2px);
    }

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

    .mazzant-nav .nav-link:hover::after {
        width: 100%;
    }
}

/* Responsive Mobile Adjustments */
@media (max-width: 576px) {
    .mazzant-nav {
        padding: 0.25rem 0;
    }
    
    .mazzant-nav .container-fluid {
        padding: 0 0.5rem;
    }
    
    .mazzant-brand img {
        width: 90px;
    }
    
    .mazzant-nav-mobile .nav-link {
        font-size: 0.75rem;
        padding: 4px 5px;
    }
    
    .mazzant-login-btn-mobile {
        padding: 3px 6px !important;
        font-size: 0.65rem !important;
    }
}

/* ==========================================================================
   DESKTOP MENU COLLAPSE BEHAVIOR (RESTORED)
   ========================================================================== */

/* Prevent scroll when mobile menu is open - Only for large screens if needed */
body.menu-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
}

/* Desktop navbar collapse - Only visible on large screens */
@media (min-width: 992px) {
    .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
    }
    
    .navbar-nav {
        flex-direction: row;
    }
    
    .navbar-nav .nav-item {
        margin-bottom: 0;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem !important;
        border-radius: 0;
        margin: 0 !important;
        background: transparent !important;
    }
    
    .btn-mazzant-primary {
        margin: 0 !important;
        padding: 0.5rem 1.5rem !important;
        font-size: 0.875rem !important;
    }
}

/* Hide toggler on desktop */
@media (min-width: 992px) {
    .navbar-toggler {
        display: none !important;
    }
}

/* Ensure smooth transitions */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Fix for iOS scroll issues */
@supports (-webkit-overflow-scrolling: touch) {
    body {
        -webkit-overflow-scrolling: touch;
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* ==========================================================================
   LOADING ANIMATION
   ========================================================================== */
body:not(.loaded) {
    overflow: hidden;
}

body:not(.loaded)::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--mazzant-dark);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

body:not(.loaded)::after {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    border: 3px solid rgba(99, 102, 241, 0.3);
    border-top: 3px solid var(--mazzant-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
    z-index: 10000;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ==========================================================================
   SCROLLBAR CUSTOMIZATION
   ========================================================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--mazzant-light);
}

::-webkit-scrollbar-thumb {
    background: var(--mazzant-gradient);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--mazzant-primary-dark);
}

/* ==========================================================================
   SELECTION COLORS
   ========================================================================== */
::selection {
    background: var(--mazzant-primary);
    color: white;
}

::-moz-selection {
    background: var(--mazzant-primary);
    color: white;
}

/* ==========================================================================
   FOCUS STATES
   ========================================================================== */
.btn:focus,
.btn-mazzant-primary:focus {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

/* ==========================================================================
   IMPROVED TYPOGRAPHY
   ========================================================================== */
.mazzant-hero-title .typed-cursor {
    color: var(--mazzant-secondary);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* ==========================================================================
   ADDITIONAL UTILITIES
   ========================================================================== */
.text-mazzant-primary {
    color: var(--mazzant-primary) !important;
}

.bg-mazzant-primary {
    background: var(--mazzant-primary) !important;
}

.bg-mazzant-gradient {
    background: var(--mazzant-gradient) !important;
}

/* ==========================================================================
   HOVER EFFECTS
   ========================================================================== */
.mazzant-service-card .mazzant-service-icon {
    transform: scale(1);
    transition: transform 0.3s ease;
}

.mazzant-service-card:hover .mazzant-service-icon {
    transform: scale(1.1);
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */
@media print {
    .mazzant-nav,
    .mazzant-scroll-indicator,
    .mazzant-hero-buttons {
        display: none !important;
    }
    
    .mazzant-hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
}

/* ==========================================================================
   LOGIN PAGE - BOTTOM BACK BUTTON
   ========================================================================== */
.mazzant-back-home-bottom {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--mazzant-border);
}

.mazzant-back-home-bottom .mazzant-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--mazzant-text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid var(--mazzant-border);
}

.mazzant-back-home-bottom .mazzant-back-btn:hover {
    color: var(--mazzant-primary);
    background: rgba(99, 102, 241, 0.05);
    border-color: var(--mazzant-primary);
    transform: translateX(-3px);
}

.mazzant-back-home-bottom .mazzant-back-btn i {
    font-size: 0.875rem;
}