    * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    }

    html {
    overflow-x: hidden;
    width: 100%;
    }

    body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: #1e293b;
    color: #e5e7eb;
    line-height: 1.7;
    overflow-x: hidden;
    overflow-y: auto; /* Only vertical scroll, no horizontal */
    width: 100%;
    max-width: 100vw;
    direction: rtl;
    text-align: right;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    margin: 0;
    padding: 0;
    }
    
    /* Hide scrollbar but keep functionality */
    body::-webkit-scrollbar {
        width: 8px;
    }
    
    body::-webkit-scrollbar-track {
        background: transparent;
    }
    
    body::-webkit-scrollbar-thumb {
        background: rgba(100, 116, 139, 0.5);
        border-radius: 10px;
    }
    
    body::-webkit-scrollbar-thumb:hover {
        background: rgba(100, 116, 139, 0.8);
    }
    
    /* For Firefox */
    body {
        scrollbar-width: thin;
        scrollbar-color: rgba(100, 116, 139, 0.5) transparent;
    }

    /* ===========================
    Theme Colors
    =========================== */
:root {
    --primary: #0f172a;
    --primary-dark: #0b1320;
    --primary-light: #1f2937;
    --accent: #38bdf8;
    --light: #f8fafc;
    --dark: #050816;
    --gradient: linear-gradient(135deg, #0f172a 0%, #1f2937 100%);
    --success-gradient: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
}

.bg-navy {
    background: var(--primary);
    color: #fff;
}

.bg-navy-soft {
    background: rgba(15, 23, 42, 0.05);
}

.border-navy {
    border-color: rgba(15, 23, 42, 0.12);
}

.text-navy {
    color: var(--primary);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.65rem 1.5rem;
    border-radius: 0.85rem;
    font-weight: 600;
    background: var(--primary);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.65rem 1.5rem;
    border-radius: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(15, 23, 42, 0.2);
    color: var(--primary);
    background: rgba(15, 23, 42, 0.04);
    transition: all 0.2s ease;
}

.btn-outline:hover {
    border-color: rgba(15, 23, 42, 0.4);
    background: rgba(15, 23, 42, 0.08);
}

.btn-outline-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.65rem 1.5rem;
    border-radius: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.8);
}

.section-card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1.5rem;
    background: #fff;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.08);
}

.icon-pill {
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(15, 23, 42, 0.7);
    background: rgba(15, 23, 42, 0.05);
}

/* Tailwind overrides to align with navy palette */
.bg-blue-600,
.bg-blue-500,
.bg-blue-700 {
    background-color: var(--primary) !important;
    color: #fff;
}

.bg-blue-600:hover,
.bg-blue-500:hover,
.bg-blue-700:hover,
.hover\:bg-blue-600:hover {
    background-color: var(--primary-light) !important;
}

.bg-blue-50,
.bg-blue-100 {
    background-color: rgba(15, 23, 42, 0.06) !important;
}

.hover\:bg-blue-50:hover {
    background-color: rgba(15, 23, 42, 0.12) !important;
}

.text-blue-600,
.text-blue-500,
.text-blue-800 {
    color: var(--primary) !important;
}

.border-blue-200,
.border-blue-300 {
    border-color: rgba(15, 23, 42, 0.15) !important;
}

    /* ===========================
    Layout
    =========================== */
    .container {
    max-width: 1200px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
    }

    /* Prevent content overflow */
    * {
    box-sizing: border-box;
    }

    img, video, iframe {
    max-width: 100%;
    height: auto;
    }

    /* Prevent text overflow */
    .text-container {
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    }

    /* Fix radio buttons to be circular */
    input[type="radio"] {
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        width: 1rem;
        height: 1rem;
        border: 2px solid #4b5563;
        border-radius: 50%;
        outline: none;
        cursor: pointer;
        position: relative;
        background-color: transparent;
        transition: all 0.2s ease;
    }
    
    input[type="radio"]:checked {
        border-color: #3b82f6;
        background-color: #3b82f6;
    }
    
    input[type="radio"]:checked::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 0.4rem;
        height: 0.4rem;
        border-radius: 50%;
        background-color: white;
    }
    
    input[type="radio"]:focus {
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    }

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

    /* ===========================
    Hero Section - Asymmetric Modern
    =========================== */
    #hero {
        position: relative;
    }
    
    /* Floating Animation */
    @keyframes float {
        0%, 100% {
            transform: translateY(0px) rotate(12deg);
        }
        50% {
            transform: translateY(-20px) rotate(12deg);
        }
    }
    
    @keyframes float-delayed {
        0%, 100% {
            transform: translateY(0px) rotate(-12deg);
        }
        50% {
            transform: translateY(-15px) rotate(-12deg);
        }
    }
    
    .animate-float {
        animation: float 6s ease-in-out infinite;
    }
    
    .animate-float-delayed {
        animation: float-delayed 8s ease-in-out infinite;
        animation-delay: 1s;
    }
    
    /* Hero Button (Legacy - keeping for compatibility) */
    .hero-btn {
    position: relative;
    overflow: hidden;
    }

    .hero-btn::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;
    }

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

    /* ===========================
    Cards & Shadows
    =========================== */
    .stat-card, .service-card, .testimonial-card, .blog-card, .faq-item {
    border-radius: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    }

    .stat-card::before, .service-card::before, .testimonial-card::before, .blog-card::before, .faq-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    }

    .stat-card:hover::before, .service-card:hover::before, .testimonial-card:hover::before, .blog-card:hover::before, .faq-item:hover::before {
    transform: scaleX(1);
    }

    .service-icon i {
    filter: drop-shadow(0 4px 8px rgba(59, 130, 246, 0.3));
    }

    /* ===========================
    Form Container & Curtain Effect
    =========================== */
    #form-container {
    position: relative;
    height: 800px; /* Increased for additional inputs */
    overflow: hidden;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 1.5rem;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.4), 0 10px 10px rgba(0, 0, 0, 0.3);
    }

    .form-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    }

    #curtain-divider {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* ===========================
    Form Input Styles
    =========================== */
    input, textarea, select {
    background: #374151;
    border: 2px solid #4b5563;
    color: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0.75rem;
    }

    input:focus, textarea:focus, select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
    background: #4b5563;
    }

    input:invalid, textarea:invalid, select:invalid {
    border-color: #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
    }

    /* Custom Select Styles */
    select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 2.5rem;
    background: #374151 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23a1a1aa' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7' /%3E%3C/svg%3E") no-repeat right 0.75rem center/1rem 1rem;
    }

    select option {
    background: #374151;
    color: #ffffff;
    padding: 0.5rem;
    }

    select option:hover {
    background: var(--primary);
    }

    /* Custom File Uploader Styles */
    input[type="file"] {
    padding: 0.5rem;
    }

    input[type="file"]::file-selector-button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.3s ease;
    }

    input[type="file"]::file-selector-button:hover {
    background: var(--secondary);
    }

    /* Drag and Drop Area */
    .form-element .border-dashed {
    transition: border-color 0.3s ease;
    }

    .form-element .border-dashed:hover {
    border-color: var(--primary);
    }

    /* Checkbox and Radio Styles */
    .checkbox, input[type="radio"] {
    -webkit-appearance: none;
    appearance: none;
    background: #374151;
    border: 2px solid #4b5563;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    }

    .checkbox:checked, input[type="radio"]:checked {
    background: var(--primary);
    border-color: var(--primary);
    }

    .checkbox:checked::after {
    content: '\2713';
    color: white;
    font-size: 1rem;
    position: absolute;
    top: -2px;
    left: 2px;
    }

    input[type="radio"] {
    border-radius: 50%;
    }

    input[type="radio"]:checked::after {
    content: '';
    background: white;
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    }

    .form-element {
    margin-bottom: 1.5rem;
    }

    .form-stack label {
    font-size: 0.9rem;
    font-weight: 500;
    }

    /* ===========================
    Button Styles
    =========================== */
    button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    button::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.6s;
    }

    button:hover::before {
    left: 100%;
    }

    button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
    }

    .fa-spinner {
    animation: spin 1s linear infinite;
    }

    @keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
    }

    /* ===========================
    Animations
    =========================== */
    @keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    }

    .service-icon {
    animation: float 3s ease-in-out infinite;
    }

    .stars i {
    animation: twinkle 2s infinite;
    }

    @keyframes twinkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
    }

    /* ===========================
    Footer
    =========================== */
    footer a {
    transition: color 0.3s ease;
    }

    footer ul {
    list-style: none;
    }

    /* ===========================
    Responsive
    =========================== */
    @media (max-width: 768px) {
    .text-5xl { font-size: 3rem; }
    .text-7xl { font-size: 4rem; }
    .min-h-screen { min-height: 100vh; }
    main { padding-top: 20px; }
    .service-card, .testimonial-card, .blog-card, .faq-item {
    padding: 1.5rem;
    }
    #form-container {
    height: auto;
    min-height: 800px;
    }
    }

    /* ===========================
    Custom Scrollbar
    =========================== */
    body::-webkit-scrollbar {
    width: 8px;
    }

    body::-webkit-scrollbar-track {
    background: #1e293b;
    }

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

    body::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
    }

    /* ===========================
    Navbar Styles
    =========================== */
    nav {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    z-index: 9999 !important;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    nav .active {
    color: var(--primary);
    font-weight: 600;
    position: relative;
    }

    nav .active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    }

    /* Mobile menu animation */
    @media (max-width: 1024px) {
    nav .active::after {
        display: none;
    }
    }

    /* ===========================
    Modal Styles
    =========================== */
    .modal-backdrop {
    backdrop-filter: blur(4px);
    }

    /* Modal Container */
    .modal-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 10000 !important;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    }

    /* Modal Backdrop */
    .modal-backdrop {
    position: fixed !important;
    z-index: 1 !important;
    pointer-events: auto !important;
    }

    /* Modal Content Wrapper */
    .modal-wrapper {
    min-height: 100%;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2 !important;
    pointer-events: none;
    }

    /* Modal Content */
    .modal-content {
    position: relative;
    width: 100%;
    max-width: 26rem;
    margin: 0 auto;
    z-index: 3 !important;
    pointer-events: auto !important;
    }
    
    @media (min-width: 768px) {
    .modal-content {
        max-width: 26rem;
    }
    }

    /* Prevent body scroll when modal is open */
    body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
    }

    /* Mobile Modal Adjustments */
    @media (max-width: 640px) {
    .modal-wrapper {
        padding: 0.5rem;
        align-items: flex-start;
        padding-top: 2rem;
    }
    
    .modal-content {
        max-width: 100%;
        width: calc(100% - 1rem);
    }
    }

    /* ===========================
    Form Enhancements
    =========================== */
    input[type="tel"]::-webkit-inner-spin-button,
    input[type="tel"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
    }

    input[type="tel"] {
    -moz-appearance: textfield;
    }

    /* Custom select arrow for country code */
    select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ffffff'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 0.75rem center;
    background-size: 1.25rem;
    padding-left: 2.5rem;
    }

    /* Password strength indicator */
    .password-strength {
    transition: all 0.3s ease;
    }

    /* ===========================
    Responsive Improvements
    =========================== */
    @media (max-width: 640px) {
    /* Smaller modal padding on mobile */
    .modal-content {
        padding: 0.75rem;
    }
    
    /* Stack form elements vertically */
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    /* Full width buttons on mobile */
    .btn-group {
        flex-direction: column;
    }
    
    /* Adjust navbar */
    nav {
        position: fixed !important;
        top: 0;
        width: 100%;
    }
    
    /* Prevent horizontal scroll */
    .container {
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Fix form inputs on mobile */
    input, select, textarea {
        max-width: 100%;
        font-size: 16px !important;
    }
    }

    /* Extra small devices */
    @media (max-width: 375px) {
    .modal-wrapper {
        padding: 0.25rem;
    }
    
    nav .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    }

    /* Landscape mobile */
    @media (max-height: 600px) and (orientation: landscape) {
    .modal-wrapper {
        align-items: flex-start;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    }

    /* ===========================
    Animation Utilities
    =========================== */
    @keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
    }

    @keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
    }

    .animate-slide-in-right {
    animation: slideInRight 0.3s ease-out;
    }

    .animate-slide-in-left {
    animation: slideInLeft 0.3s ease-out;
    }

    /* ===========================
    Touch-friendly improvements
    =========================== */
    @media (hover: none) and (pointer: coarse) {
    /* Larger touch targets on mobile */
    button, a, input, select, textarea {
        min-height: 44px; /* iOS recommended touch target */
    }
    
    /* Prevent zoom on input focus (iOS) */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    textarea,
    select {
        font-size: 16px !important; /* Prevents iOS zoom */
    }
    }

    /* ===========================
    Loading States
    =========================== */
    .loading {
    pointer-events: none;
    opacity: 0.6;
    }

    .loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    }

    /* ===========================
    User Dropdown Positioning
    =========================== */
    /* Ensure dropdown opens outside navbar and is fully clickable */
    nav [x-show="open"] {
        z-index: 10001 !important;
    }
    
    /* Allow navbar to overflow so dropdown is visible outside */
    nav {
        overflow: visible !important;
    }
    
    nav .container {
        overflow: visible !important;
    }

    /* ===========================
    Success/Error Messages
    =========================== */
    .alert {
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    }

    .alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
    }

    .alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
    }

    .alert-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #3b82f6;
    }