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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8fafc;
    text-rendering: optimizeSpeed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    contain: layout style;
}

/* Header */
.header {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    padding: 9px  0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    will-change: background;
    contain: layout style paint;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    contain: layout style;
}

.menu-icon {
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.3s ease;
    will-change: transform;
}

.menu-icon:hover {
    transform: scale(1.1);
}

.logo {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.9;
}

.logo-icon {
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 12px;
    overflow: hidden;
    padding: 4px;
    position: relative;
    flex-shrink: 0;
    min-width: 45px;
}

.logo-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s ease;
    display: block;
}

.logo:hover .logo-icon img {
    transform: scale(1.1);
}

.logo:hover .logo-icon {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.logo-icon {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

/* Fallback for logo */
.logo-icon span {
    font-weight: bold;
    color: #1e3a8a;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Hero Slider */
.hero-slider {
    margin-top: 3.9rem;
    position: relative;
    height: 500px;
    overflow: hidden;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.8) 0%, rgba(59, 130, 246, 0.6) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    contain: layout style paint;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    contain: layout style;
}

.hero-content p {
    font-size: 1.3rem;
    opacity: 0.95;
    margin-bottom: 30px;
    contain: layout style;
}

/* Financial Info Circles */
.financial-section {
    padding: 32px 0;
    background: white;
    contain: layout style;
}

.financial-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    color: #1e293b;
    margin-bottom: 9%;
    text-decoration: underline;
    text-decoration-color: #336ed8;
    text-decoration-thickness: 3px;
    text-underline-offset: 16px;
    contain: layout style;
}

.financial-circles {
    display: -webkit-inline-box;
    text-align: center;
    margin-bottom: 20px;
    white-space: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.financial-circle {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.financial-circle:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.circle-icon {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.8rem;
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.3);
}

.circle-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #1e293b;
    margin-bottom: 12px;
}

.circle-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #059669;
    margin-bottom: 8px;
}

.circle-description {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Return Rate Section */
.return-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 6% 0;
    text-align: center;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(30, 58, 138, 0.3);
    contain: layout style paint;
}

.return-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
    contain: layout style;
}

.return-rate {
    font-size: 3.5rem;
    font-weight: bold;
    color: #fbbf24;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 15px;
    contain: layout style;
}

.return-description {
    font-size: 1.1rem;
    opacity: 0.9;
    contain: layout style;
}

/* Registration Form */
.register-section {
    background: #f8fafc;
    padding: 15px 0;
    contain: layout style;
}

.register-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    padding: 20px;
    contain: layout style;
}

.form-title {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    color: #1e293b;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
    transition: transform 0.3s ease;
    will-change: transform;
}

.form-group label {
    display: block;
    font-size: 1rem;
    color: #374151;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #3b82f6;
    background: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-btn {
    width: 100%;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 18px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.3);
    will-change: transform, box-shadow;
}

.form-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(30, 58, 138, 0.4);
}

.form-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.form-success {
    margin-top: 20px;
    color: #059669;
    background: #d1fae5;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    font-weight: bold;
    border: 2px solid #10b981;
}

.form-error {
    margin-top: 20px;
    color: #dc2626;
    background: #fef2f2;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    font-weight: bold;
    border: 2px solid #ef4444;
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
}

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

/* Features Section */
.features-section {
    background: white;
    padding: 15px 0;
    contain: layout style;
}

.features-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    color: #1e293b;
    margin-bottom: 20px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    contain: layout style;
}

.feature-item {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 20px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1e3a8a, #3b82f6);
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.feature-content h4 {
    font-size: 1.3rem;
    font-weight: bold;
    color: #1e293b;
    margin-bottom: 12px;
}

.feature-content p {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo-icon {
        height: 40px;
        margin-left: 8px;
    }

    .logo-icon span {
        font-size: 16px;
    }

    .hero-slider {
        height: 275px;
        margin-top: 4rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .financial-title,
    .features-title {
        margin-top: 12%;
        font-size: 2rem;
    }

    .financial-circle {
        width: 100%;
        margin: 0 auto 20px;
        display: block;
    }

    .circle-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 12px;
    }

    .circle-title {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .circle-value {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }

    .circle-description {
        font-size: 0.85rem;
    }

    .return-rate {
        font-size: 2.5rem;
    }

    .register-form {
        padding: 30px 20px;
        margin: 0 10px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-item {
        padding: 25px 20px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .financial-circles {
        display: -webkit-inline-box;
        text-align: center;
        white-space: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .financial-circle {
        margin: 0 10px;
        display: inline-block;
    }

    .circle-icon {
        width: 65px;
        height: 65px;
        font-size: 1.7rem;
        margin-bottom: 15px;
    }

    .circle-title {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }

    .circle-description {
        font-size: 0.9rem;
    }

    .circle-value {
        font-size: 1.9rem;
        margin-bottom: 10px;
    }
}

@media (min-width: 1025px) {
    .financial-circles {
        display: -webkit-inline-box;
        text-align: center;
        white-space: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .financial-circle {
        width: 300px;
        margin: 0 20px;
        display: inline-block;
    }

    .circle-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
        margin-bottom: 20px;
    }

    .circle-title {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .circle-description {
        font-size: 1rem;
    }

    .circle-value {
        font-size: 2.2rem;
        margin-bottom: 12px;
    }
}

@media (max-width: 480px) {
    .logo-icon {
        height: 3rem;
        margin-left: 6px;
    }

    .logo-icon span {
        font-size: 14px;
    }

    .financial-circles {
        display: flex;
        text-align: center;
        white-space: normal;
        overflow-x: visible;
    }

    .financial-circle {
        width: 100%;
        margin: 0 auto 15px;
        display: block;
    }

    .circle-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        margin-bottom: 10px;
    }

    .circle-title {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .circle-value {
        font-size: 18px;
        margin-bottom: 6px;
    }

    .circle-description {
        font-size: 0.8rem;
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease forwards;
    will-change: opacity, transform;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

/* Performance optimizations */
.financial-circle,
.feature-item {
    will-change: transform;
}

/* Reduce layout shifts */
.hero-slider {
    contain: layout style paint;
}

.financial-circles {
    contain: layout style;
}

/* Footer Styles */
.footer {
    background:linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 60px 0 20px;
    contain: layout style;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: #fbbf24;
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 20px;
    position: relative;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    border-radius: 2px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-section ul li a:hover {
    color: #fbbf24;
    transform: translateX(5px);
}

.footer-section ul li a::before {
    content: '→';
    margin-right: 8px;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-section ul li a:hover::before {
    opacity: 1;
}

.contact-info {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #cbd5e1;
}

.contact-info i {
    color: #fbbf24;
    margin-right: 12px;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.newsletter-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #475569;
    border-radius: 8px;
    background: #334155;
    color: white;
    outline: none;
    transition: all 0.3s ease;
}

.newsletter-input::placeholder {
    color: #94a3b8;
}

.newsletter-input:focus {
    border-color: #fbbf24;
    background: #475569;
}

.newsletter-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1e293b;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(251, 191, 36, 0.3);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #475569, #64748b);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.social-link:hover {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1e293b;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(251, 191, 36, 0.3);
}

.footer-bottom {
    border-top: 1px solid #ffffff;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    color: #ffffff;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;  
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fbbf24;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer {
        padding: 40px 0 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-section h4 {
        font-size: 1.2rem;
    }

    .social-links {
        gap: 10px;
    }

    .social-link {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}


     /* Success Message Styling */
     .form-success {
        background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
        border: 2px solid #10b981;
        border-radius: 15px;
        padding: 25px;
        margin-top: 20px;
        text-align: center;
        box-shadow: 0 10px 25px rgba(16, 185, 129, 0.2);
    }

    .success-header h3 {
        color: #065f46;
        margin: 0 0 10px 0;
        font-size: 1.5rem;
        font-weight: bold;
    }

    .success-header p {
        color: #047857;
        margin: 0 0 20px 0;
        font-size: 1.1rem;
    }

    .success-details {
        background: rgba(255, 255, 255, 0.8);
        border-radius: 10px;
        padding: 20px;
        margin: 20px 0;
        text-align: right;
    }

    .detail-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 15px;
        padding: 10px;
        background: rgba(255, 255, 255, 0.5);
        border-radius: 8px;
    }

    .detail-label {
        font-weight: bold;
        color: #065f46;
        margin-left: 15px;
    }

    .detail-value {
        color: #047857;
        font-weight: 500;
    }

    .form-data-summary {
        background: rgba(16, 185, 129, 0.1);
        border-radius: 8px;
        padding: 15px;
        margin-top: 10px;
    }

    .form-data-item {
        display: flex;
        justify-content: space-between;
        margin-bottom: 8px;
        padding: 5px 0;
        border-bottom: 1px solid rgba(16, 185, 129, 0.2);
    }

    .form-data-item:last-child {
        border-bottom: none;
    }

    .success-actions {
        margin-top: 20px;
    }

    .btn-toggle-details {
        background: linear-gradient(135deg, #10b981 0%, #059669 100%);
        color: white;
        border: none;
        padding: 12px 25px;
        border-radius: 25px;
        font-size: 1rem;
        font-weight: bold;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    }

    .btn-toggle-details:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    }

    .btn-toggle-details:active {
        transform: translateY(0);
    }

    /* Property Details Section Styling */
    .property-details-section {
        padding: 80px 0;
        background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
        position: relative;
        overflow: hidden;
    }

    .property-details-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e2e8f0" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
        opacity: 0.3;
        z-index: 1;
    }

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

    .section-header {
        margin-bottom: 20px;
    }


    .property-description-card {
        background: white;
        border-radius: 20px;
        padding: 30px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(59, 130, 246, 0.1);
        position: relative;
        overflow: hidden;
    }

    .property-description-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #3b82f6, #1d4ed8, #3b82f6);
    }

    .description-content {
        display: flex;
        align-items: flex-start;
        gap: 25px;
    }



    .description-text {
        flex: 1;
        font-size: 1.1rem;
        line-height: 1.8;
        color: #475569;
        text-align: justify;
    }

    .description-text p {
        margin-bottom: 15px;
    }

    .description-text p:last-child {
        margin-bottom: 0;
    }

    /* Responsive Design */
    @media (max-width: 768px) {
        .property-details-section {
            padding: 17px 0;
        }

        .property-description-card {
            padding: 30px 20px;
        }

        .description-content {
            flex-direction: column;
            text-align: center;
            gap: 20px;
        }


    
    }

    @media (max-width: 480px) {

        .property-description-card {
            padding: 25px 15px;
        }
    }

    /* RTL Support */
    [dir="rtl"] .detail-item {
        flex-direction: row-reverse;
    }

    [dir="rtl"] .detail-label {
        margin-left: 0;
        margin-right: 15px;
    }

    [dir="rtl"] .form-data-item {
        flex-direction: row-reverse;
    }

    /* Loading Animation */
    .loading {
        display: inline-block;
        width: 20px;
        height: 20px;
        border: 3px solid rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        border-top-color: #fff;
        animation: spin 1s ease-in-out infinite;
    }

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

    /* Responsive Design */
    @media (max-width: 768px) {
        .form-success {
            padding: 20px;
            margin-top: 15px;
        }

        .success-header h3 {
            font-size: 1.3rem;
        }

        .success-header p {
            font-size: 1rem;
        }

        .detail-item {
            flex-direction: column;
            align-items: flex-start;
            text-align: right;
        }

        .detail-label {
            margin-bottom: 5px;
            margin-left: 0;
        }

        [dir="rtl"] .detail-item {
            text-align: left;
        }
    }