@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&display=swap');

.contact-modern {
    min-height: 100vh;
    display: flex;
    font-family: 'Montserrat', sans-serif;
    position: relative;
    background: var(--bg-color);
    transition: background 0.5s;
}

/* Left Panel - Sticky */
.contact-left {
    width: 41.666667%;
    height: 100vh;
    position: sticky;
    top: 0;
    background: #000;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.contact-bg-image {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.contact-bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.contact-gradient-1 {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(255,146,1,0.2), rgba(15,17,21,0.6), #0f1115);
    mix-blend-mode: multiply;
}

.contact-gradient-2 {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #0f1115, transparent, transparent);
}

.contact-top {
    position: relative;
    z-index: 10;
    padding: 2.5rem 4rem;
}

.contact-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    backdrop-filter: blur(12px);
    margin-bottom: 2rem;
}

.contact-pulse {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #00b1e1;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.contact-hero-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 3.75rem;
    line-height: 1.1;
    color: white;
    margin-bottom: 1rem;
}

.contact-gradient-text {
    background: linear-gradient(to right, #ff9201, #00b1e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-hero-desc {
    color: #d1d5db;
    font-size: 1.125rem;
    max-width: 28rem;
}

.contact-bottom {
    position: relative;
    z-index: 10;
    padding: 2.5rem 4rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}

.contact-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    font-size: 0.875rem;
}

body.rtl .contact-info-grid {
    direction: ltr;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-info-icon {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.125rem;
}

.contact-info-icon.cyan { color: #00b1e1; }
.contact-info-icon.orange { color: #ff9201; }
.contact-info-icon.gray { color: #9ca3af; }

.contact-info-content h4 {
    color: #9ca3af;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.contact-info-content a,
.contact-info-content p {
    color: white;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-info-content a:hover {
    color: #00b1e1;
}

.contact-phones {
    display: flex;
    flex-direction: column;
}

/* Right Panel - Scrollable */
.contact-right {
    width: 58.333333%;
    min-height: 100vh;
    background: var(--bg-color);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 1.5rem;
}

.contact-grid-bg {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    pointer-events: none;
    background-image: linear-gradient(#808080 1px, transparent 1px), linear-gradient(90deg, #808080 1px, transparent 1px);
    background-size: 40px 40px;
}

body.dark-mode .contact-grid-bg {
    opacity: 0.05;
}

.contact-form-wrapper {
    position: relative;
    z-index: 10;
    max-width: 48rem;
    margin: 0 auto;
    width: 100%;
    animation: fadeIn 0.6s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.contact-form-header {
    margin-bottom: 2.5rem;
}

.contact-form-title {
    font-size: 1.875rem;
    font-weight: 900;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.contact-form-subtitle {
    color: var(--text-secondary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.contact-form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.contact-floating-input {
    position: relative;
    width: 100%;
}

.contact-floating-input input,
.contact-floating-input textarea {
    display: block;
    padding: 1rem 0;
    width: 100%;
    font-size: 1rem;
    color: var(--text-color);
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--border-color);
    appearance: none;
    transition: border-color 0.3s;
}

.contact-floating-input input:focus,
.contact-floating-input textarea:focus {
    outline: none;
    border-color: #ff9201;
}

.contact-floating-input label {
    position: absolute;
    font-size: 1rem;
    color: var(--text-secondary);
    pointer-events: none;
    left: 0;
    top: 1rem;
    transition: all 0.3s;
    transform-origin: left;
}

.contact-floating-input input:focus ~ label,
.contact-floating-input input:not(:placeholder-shown) ~ label,
.contact-floating-input textarea:focus ~ label,
.contact-floating-input textarea:not(:placeholder-shown) ~ label {
    transform: translateY(-1.5rem) scale(0.75);
    color: #ff9201;
}

.contact-floating-input textarea {
    resize: none;
    min-height: 80px;
}

.contact-services-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    display: block;
}

.contact-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.contact-service-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
}

.contact-service-btn:hover {
    border-color: rgba(255,146,1,0.3);
    background: rgba(255,146,1,0.05);
}

.contact-service-btn.active {
    background: rgba(255,146,1,0.05);
    border-color: #ff9201;
    color: #ff9201;
    box-shadow: 0 0 20px rgba(255,146,1,0.15);
}

.contact-service-btn.active .contact-service-icon {
    animation: bounce 0.5s;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.contact-service-icon {
    width: 1.5rem;
    height: 1.5rem;
}

.contact-service-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
}

.contact-service-dot {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #ff9201;
    opacity: 0;
    transition: opacity 0.3s;
}

.contact-service-btn.active .contact-service-dot {
    opacity: 1;
}

.contact-submit-btn {
    position: relative;
    width: 100%;
    padding: 1.25rem;
    background: var(--text-color);
    color: var(--bg-color);
    font-weight: 700;
    font-size: 1.125rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s;
}

.contact-submit-btn:hover {
    box-shadow: 0 20px 60px rgba(0,177,225,0.2);
}

.contact-submit-gradient {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #ff9201, #00b1e1);
    opacity: 0;
    transition: opacity 0.3s;
}

.contact-submit-btn:hover .contact-submit-gradient {
    opacity: 1;
}

.contact-submit-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.contact-submit-icon {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 0.3s;
}

.contact-submit-btn:hover .contact-submit-icon {
    transform: translateX(4px);
}

.contact-privacy {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 1rem;
}

.contact-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    animation: fadeIn 0.6s ease-out forwards;
}

.contact-success-icon {
    width: 5rem;
    height: 5rem;
    background: rgba(34,197,94,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 0 4px rgba(34,197,94,0.1);
}

.contact-success-icon svg {
    width: 2.5rem;
    height: 2.5rem;
    color: #22c55e;
}

.contact-success-title {
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.contact-success-text {
    color: var(--text-secondary);
    max-width: 28rem;
    margin: 0 auto 2rem;
}

.contact-success-btn {
    color: #ff9201;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.875rem;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .contact-left {
        width: 45%;
    }
    .contact-right {
        width: 55%;
    }
    .contact-top,
    .contact-bottom {
        padding: 2rem 2.5rem;
    }
    .contact-hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .contact-modern {
        flex-direction: column;
    }
    .contact-left {
        width: 100%;
        height: auto;
        position: relative;
        min-height: 60vh;
    }
    .contact-right {
        width: 100%;
        padding: 3rem 1.5rem;
    }
    .contact-top,
    .contact-bottom {
        padding: 2rem 1.5rem;
    }
    .contact-hero-title {
        font-size: 2.5rem;
    }
    .contact-form-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .contact-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .contact-hero-title {
        font-size: 2rem;
    }
    .contact-top,
    .contact-bottom {
        padding: 1.5rem 1rem;
    }
    .contact-right {
        padding: 2rem 1rem;
    }
    .contact-services-grid {
        grid-template-columns: 1fr;
    }
}

/* Ultra-wide monitors */
@media (min-width: 2560px) {
    .contact-top,
    .contact-bottom {
        padding: 4rem 6rem;
    }
    .contact-right {
        padding: 6rem 3rem;
    }
    .contact-hero-title {
        font-size: 5rem;
    }
    .contact-form-wrapper {
        max-width: 60rem;
    }
}

/* Vertical monitors */
@media (max-height: 900px) and (min-width: 769px) {
    .contact-top,
    .contact-bottom {
        padding: 1.5rem 3rem;
    }
    .contact-hero-title {
        font-size: 2.75rem;
    }
}
