/* Contact Hero Section */
.contact-hero {
    background: linear-gradient(135deg, #0a0a0f 0%, #151525 50%, #1a1a2e 100%);
    color: #e0e0e0;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    min-block-size: 40vh;
    display: flex;
    align-items: center;
}

.contact-hero-bg {
    position: absolute;
    inset-block-start: 0;
    inset-inline-start: 0;
    inline-size: 100%;
    block-size: 100%;
    pointer-events: none;
}

.contact-hero-bg .bg-grid {
    position: absolute;
    inset-block-start: 0;
    inset-inline-start: 0;
    inline-size: 100%;
    block-size: 100%;
    background-image:
        linear-gradient(rgba(0, 234, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 234, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

.contact-hero-bg .floating-code {
    position: absolute;
    font-size: 8rem;
    color: rgba(0, 234, 255, 0.05);
    inset-block-start: 20%;
    inset-inline-end: 10%;
    font-family: 'Courier New', monospace;
    animation: float 6s ease-in-out infinite;
}

.contact-hero-bg .particle {
    position: absolute;
    inline-size: 4px;
    block-size: 4px;
    background: #00eaff;
    border-radius: 50%;
    animation: float 3s ease-in-out infinite;
}

/* Particle positions */
.contact-hero-bg .particle:nth-child(1) {
    inset-block-start: 20%;
    inset-inline-start: 10%;
    animation-delay: 0s;
}

.contact-hero-bg .particle:nth-child(2) {
    inset-block-start: 60%;
    inset-inline-start: 80%;
    animation-delay: 0.5s;
}

.contact-hero-bg .particle:nth-child(3) {
    inset-block-start: 40%;
    inset-inline-start: 40%;
    animation-delay: 1s;
}

.contact-hero-bg .particle:nth-child(4) {
    inset-block-start: 80%;
    inset-inline-start: 30%;
    animation-delay: 1.5s;
}

.contact-hero-bg .particle:nth-child(5) {
    inset-block-start: 30%;
    inset-inline-start: 70%;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
        opacity: 0.3;
    }

    50% {
        transform: translateY(-20px);
        opacity: 1;
    }
}

.hero-content {
    text-align: center;
    max-inline-size: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    margin-block-end: 1.5rem;
    color: #e0e0e0;
}

.hero-title .highlight {
    background: linear-gradient(45deg, #00eaff, #39ff14);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #b0b0c0;
    line-height: 1.6;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #0a0a0f 0%, #151525 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: start;
}

/* Contact Form */
.contact-form-container {
    background: rgba(20, 20, 30, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 234, 255, 0.2);
    border-radius: 20px;
    padding: 3rem;
    position: sticky;
    inset-block-start: 2rem;
}

.form-header {
    text-align: center;
    margin-block-end: 2rem;
}

.form-header h2 {
    color: #00eaff;
    font-size: 2.2rem;
    margin-block-end: 0.5rem;
}

.form-header p {
    color: #b0b0c0;
    font-size: 1.1rem;
}

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-block-end: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
}

.alert-success {
    background: rgba(57, 255, 20, 0.1);
    border: 1px solid rgba(57, 255, 20, 0.3);
    color: #39ff14;
}

.alert-error {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
}

/* Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: #e0e0e0;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group label i {
    color: #00eaff;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #e0e0e0;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00eaff;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 2px rgba(0, 234, 255, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #a0a0b0;
}

.form-group textarea {
    resize: vertical;
    min-block-size: 120px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(45deg, #00eaff, #39ff14);
    color: #0a0a0f;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 234, 255, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    border: 1px solid rgba(0, 234, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(0, 234, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 234, 255, 0.2);
    border-color: rgba(0, 234, 255, 0.6);
}

.btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
}

.btn-full {
    inline-size: 100%;
    justify-content: center;
}

/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    background: rgba(20, 20, 30, 0.6);
    border: 1px solid rgba(0, 234, 255, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: rgba(0, 234, 255, 0.4);
    transform: translateY(-2px);
}

.info-icon {
    inline-size: 50px;
    block-size: 50px;
    background: linear-gradient(135deg, #00eaff, #39ff14);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon i {
    font-size: 1.2rem;
    color: #0a0a0f;
}

.info-content h3 {
    color: #00eaff;
    margin-block-end: 0.5rem;
    font-size: 1.1rem;
}

.info-content p {
    color: #e0e0e0;
    margin-block-end: 0.5rem;
}

.contact-link {
    color: #39ff14;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #00eaff;
}

/* Working Hours */
.working-hours {
    background: rgba(20, 20, 30, 0.6);
    border: 1px solid rgba(0, 234, 255, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
}

.working-hours h3 {
    color: #00eaff;
    margin-block-end: 1rem;
    font-size: 1.1rem;
}

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.hour-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-block-end: 1px solid rgba(255, 255, 255, 0.1);
}

.hour-item:last-child {
    border-block-end: none;
}

.hour-item span:first-child {
    color: #e0e0e0;
}

.hour-item span:last-child {
    color: #39ff14;
    font-weight: 500;
}

/* Social Links */
.social-links {
    background: rgba(20, 20, 30, 0.6);
    border: 1px solid rgba(0, 234, 255, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
}

.social-links h3 {
    color: #00eaff;
    margin-block-end: 1rem;
    font-size: 1.1rem;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-btn {
    inline-size: 50px;
    block-size: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-btn.telegram {
    background: #0088cc;
    color: white;
}

.social-btn.github {
    background: #333;
    color: white;
}

.social-btn.instagram {
    background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
    color: white;
}

.social-btn.linkedin {
    background: #0077b5;
    color: white;
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
.contact-faq {
    padding: 80px 0;
    background: linear-gradient(135deg, #151525 0%, #1a1a2e 100%);
}

.section-header {
    text-align: center;
    margin-block-end: 3rem;
}

.section-header h2 {
    color: #00eaff;
    font-size: 2.5rem;
    margin-block-end: 1rem;
}

.section-header p {
    color: #b0b0c0;
    font-size: 1.2rem;
}

.faq-grid {
    max-inline-size: 800px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(20, 20, 30, 0.6);
    border: 1px solid rgba(0, 234, 255, 0.2);
    border-radius: 10px;
    margin-block-end: 1rem;
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(0, 234, 255, 0.05);
}

.faq-question h4 {
    color: #e0e0e0;
    margin: 0;
    font-size: 1.1rem;
}

.faq-question i {
    color: #00eaff;
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 1.5rem;
    display: none;
}

.faq-answer p {
    color: #b0b0c0;
    line-height: 1.6;
    padding-block-end: 1.5rem;
    margin: 0;
}

/* FAQ Active State */
.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    display: block;
}

/* Container */
.container {
    max-inline-size: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

/* CTA Section */
.cta-content {
    text-align: center;
    background: linear-gradient(135deg, rgba(0, 234, 255, 0.1), rgba(57, 255, 20, 0.1));
    border: 1px solid rgba(0, 234, 255, 0.3);
    border-radius: 25px;
    padding: 4rem 3rem;
    backdrop-filter: blur(20px);
    margin-block-start: 3rem;
}

.cta-content h2 {
    color: #00eaff;
    font-size: 2.8rem;
    margin-block-end: 1.5rem;
    font-weight: 800;
    text-shadow: 0 0 30px rgba(0, 234, 255, 0.3);
}

.cta-content p {
    color: #e0e0e0;
    font-size: 1.3rem;
    margin-block-end: 3rem;
    font-weight: 300;
    max-inline-size: 600px;
    margin-inline-start: auto;
    margin-inline-end: auto;
}

.cta-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 968px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-form-container {
        position: static;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-container {
        padding: 2rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .contact-form-container {
        padding: 1.5rem;
    }

    .info-card {
        flex-direction: column;
        text-align: center;
    }

    .social-buttons {
        gap: 0.5rem;
    }

    .social-btn {
        inline-size: 45px;
        block-size: 45px;
        font-size: 1.1rem;
    }
    
    .cta-content {
        padding: 2rem 1.5rem;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .cta-content p {
        font-size: 1.1rem;
    }
}

/* Utility Classes */
.hidden {
    display: none;
}