/* Contact Page Styles */

.contact-hero {
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, #acace1 0%, #fff 100px, transparent 100px),
        #0a0a0a;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg stroke='%2300d4ff' stroke-width='0.5' stroke-opacity='0.15'%3E%3Cpath d='M0 40L40 0L80 40L40 80z'/%3E%3Cpath d='M20 20L60 20L60 60L20 60z'/%3E%3Ccircle cx='40' cy='40' r='15'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.4;
    animation: backgroundMove 25s linear infinite;
    z-index: 0;
}

.contact-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(0, 212, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255, 71, 87, 0.1) 0%, transparent 40%);
    animation: gradientShift 15s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes backgroundMove {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(80px) translateY(80px); }
}

@keyframes gradientShift {
    0%, 100% {
        background:
            radial-gradient(circle at 10% 20%, rgba(255, 107, 53, 0.05) 0%, transparent 30%),
            radial-gradient(circle at 90% 80%, rgba(78, 205, 196, 0.05) 0%, transparent 30%);
    }
    50% {
        background:
            radial-gradient(circle at 90% 20%, rgba(255, 107, 53, 0.05) 0%, transparent 30%),
            radial-gradient(circle at 10% 80%, rgba(78, 205, 196, 0.05) 0%, transparent 30%);
    }
}

.contact-hero .container {
    position: relative;
    z-index: 1;
}

.hero-image-wrapper {
    text-align: center;
    margin-bottom: 2rem;
}

.hero-image {
    max-width: 850px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    background: transparent;
}

.contact-title {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5), 0 0 40px rgba(0, 212, 255, 0.3);
}

.contact-intro {
    font-size: 1.25rem;
    color: #b8c5d6;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Featured Visual Video with Parallax */
.featured-visual {
    padding: 3rem 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.featured-visual .featured-visual-wrap {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    position: relative;
    height: 420px;
}

.featured-visual .featured-visual-wrap video {
    width: 100%;
    height: 150%;
    min-height: 630px;
    object-fit: cover;
    display: block;
    background: linear-gradient(135deg, #0a0a0a, #1a1a2e);
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.1s ease-out;
    will-change: transform;
}

.contact-content {
    padding: 4rem 0;
    background: linear-gradient(180deg, #16213e 0%, #1a1a2e 100%);
}

/* AI Assistant Tip Card */
.ai-tip-card {
    max-width: 1000px;
    margin: 0 auto 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.ai-tip-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.ai-tip-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.ai-tip-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.ai-tip-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.ai-tip-list li {
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-tip-list li:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.4);
    transform: translateX(5px);
}

.ai-tip-note {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    margin-top: 1.5rem;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-info {
    padding: 2rem;
    position: relative;
}

.contact-info h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
    position: relative;
    z-index: 2;
}

/* Background video for contact info */
.contact-info-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 12px;
    z-index: 0;
}

.contact-info-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    filter: blur(1px);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    z-index: 2;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
    transition: var(--transition);
}

.contact-method:hover,
.contact-method.active {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
    color: white;
}

.contact-method:hover .contact-method-link,
.contact-method.active .contact-method-link {
    color: #00d4ff;
}

.contact-method-icon {
    font-size: 1.5rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #00d4ff;
}

.contact-method-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.contact-method-info h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: #b8c5d6;
}

.contact-method-link {
    color: #00d4ff;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    padding: 2rem;
    border-radius: 12px;
}

.contact-form h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

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

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #b8c5d6;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid rgba(0, 212, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border-radius: 6px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(184, 197, 214, 0.5);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #00d4ff;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.form-submit:hover {
    background: linear-gradient(135deg, #00e5ff 0%, #00b8e6 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
}

.form-submit:disabled {
    background: rgba(184, 197, 214, 0.3);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.form-error {
    color: #ff4757;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

#formMessage {
    margin-top: 1rem;
}

.form-success {
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 0;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.inquiry-examples {
    background: rgba(0, 212, 255, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.inquiry-examples h4 {
    color: #00d4ff;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.inquiry-examples ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.inquiry-examples li {
    color: #b8c5d6;
    font-size: 0.9rem;
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.inquiry-examples li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #00d4ff;
    font-weight: bold;
}

/* Service Consultation */
.service-consultation {
    padding: 4rem 0;
    background: linear-gradient(180deg, #1a1a2e 0%, #0f3460 100%);
}

.service-consultation h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.consultation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.consultation-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 212, 255, 0.2);
    text-align: center;
    transition: var(--transition);
    transform-style: preserve-3d;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.consultation-item:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(3deg);
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.3);
    border-color: rgba(0, 212, 255, 0.4);
}

.consultation-item:hover .consultation-icon {
    transform: translateZ(20px) scale(1.1);
}

.consultation-item:hover h3 {
    transform: translateZ(15px);
}

.consultation-item:hover p {
    transform: translateZ(10px);
}

.consultation-item:hover .consultation-details {
    transform: translateZ(8px);
}

.consultation-item::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    border-radius: 15px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.consultation-item:hover::before {
    opacity: 0.15;
}

.consultation-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    width: 100px;
    height: 100px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 20px;
    border: 2px solid rgba(0, 212, 255, 0.3);
    padding: 12px;
    transition: all 0.3s ease;
}

.consultation-item:hover .consultation-icon {
    background: rgba(0, 212, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

.consultation-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 212, 255, 0.3));
}

.consultation-item h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.consultation-item p {
    color: #b8c5d6;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.consultation-details {
    text-align: left;
    background: rgba(0, 212, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid #00d4ff;
}

.detail-item {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: #b8c5d6;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-item strong {
    color: #00d4ff;
}

/* FAQ Section */
.faq-section {
    padding: 4rem 0;
    background: linear-gradient(180deg, #0f3460 0%, #16213e 100%);
}

.faq-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
}

.faq-question {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    font-weight: 500;
    color: #ffffff;
    position: relative;
    transition: var(--transition);
}

.faq-question:hover {
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
    font-weight: bold;
    transition: var(--transition);
    color: #00d4ff;
}

.faq-item.active .faq-question::after {
    content: '−';
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.2);
    color: #b8c5d6;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
    max-height: 200px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-hero {
        padding: 100px 0 60px;
    }

    .hero-image {
        max-width: 100%;
        padding: 0 1rem;
    }

    .contact-title {
        font-size: 2rem;
    }

    .contact-intro {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .featured-visual {
        padding: 2rem 0;
    }

    .featured-visual .featured-visual-wrap {
        height: 240px;
    }

    .featured-visual .featured-visual-wrap video {
        height: 150%;
        min-height: 360px;
    }

    .contact-title {
        font-size: 2rem;
    }

    .ai-tip-card {
        padding: 1.5rem;
        margin: 0 1rem 2rem;
    }

    .ai-tip-card h3 {
        font-size: 1.25rem;
    }

    .ai-tip-list {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info,
    .contact-form {
        padding: 1.5rem;
    }

    .consultation-grid {
        grid-template-columns: 1fr;
    }

    .consultation-item {
        padding: 1.5rem;
    }

    /* Mobile: Auto-show hover effect for consultation items when in viewport */
    .consultation-item.in-viewport {
        transform: translateY(-10px) rotateX(5deg) rotateY(3deg);
        box-shadow: 0 20px 60px rgba(0, 212, 255, 0.3);
        border-color: rgba(0, 212, 255, 0.4);
    }

    .consultation-item.in-viewport::before {
        opacity: 0.15;
    }

    .consultation-item.in-viewport .consultation-icon {
        transform: translateZ(20px) scale(1.1);
        background: rgba(0, 212, 255, 0.15);
        border-color: rgba(0, 212, 255, 0.5);
        box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
    }

    .consultation-item.in-viewport h3 {
        transform: translateZ(15px);
    }

    .consultation-item.in-viewport p {
        transform: translateZ(10px);
    }

    .consultation-item.in-viewport .consultation-details {
        transform: translateZ(8px);
    }
}

@media (max-width: 480px) {
    .contact-hero {
        padding: 80px 0 40px;
    }

    .hero-image {
        max-width: 100%;
        padding: 0 0.5rem;
    }

    .contact-title {
        font-size: 1.75rem;
    }

    .contact-intro {
        font-size: 0.95rem;
    }

    .featured-visual {
        padding: 1.5rem 0;
    }

    .featured-visual .featured-visual-wrap {
        height: 200px;
    }

    .featured-visual .featured-visual-wrap video {
        height: 150%;
        min-height: 300px;
    }
}

