/* ========================================
   Contact Page Specific Styles
   ======================================== */

/* Hero Section - Contact Page */
.hero.contact-page {
    background: linear-gradient(135deg, #020617 0%, #0a0f1e 30%, #0f172a 60%, #020617 100%);
    position: relative;
    padding: 140px 0 100px;
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Animated Grid Lines - Sci-Fi Style */
.hero.contact-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 150, 213, 0.4) 2px, transparent 2px),
        linear-gradient(90deg, rgba(0, 150, 213, 0.4) 2px, transparent 2px);
    background-size: 60px 60px;
    animation: grid-move 15s linear infinite;
    z-index: 1;
    opacity: 0.5;
}

@keyframes grid-move {
    0% {
        transform: perspective(600px) rotateX(65deg) translateY(0);
    }
    100% {
        transform: perspective(600px) rotateX(65deg) translateY(60px);
    }
}

/* Neon Glow Effects */
.hero.contact-page::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 150, 213, 0.25) 0%, transparent 35%),
        radial-gradient(circle at 80% 20%, rgba(0, 150, 213, 0.2) 0%, transparent 35%),
        radial-gradient(circle at 50% 50%, rgba(0, 150, 213, 0.15) 0%, transparent 50%);
    animation: neon-pulse 10s ease-in-out infinite;
    z-index: 1;
}

@keyframes neon-pulse {
    0%, 100% {
        opacity: 0.4;
        filter: blur(60px);
    }
    50% {
        opacity: 0.6;
        filter: blur(80px);
    }
}

.hero.contact-page .container {
    position: relative;
    z-index: 500;
}

/* Code elements for tech feel - Contact specific */
.hero.contact-page .code-element {
    position: absolute;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: rgba(59, 130, 246, 0.3);
    z-index: 2;
    pointer-events: none;
    animation: float 6s ease-in-out infinite;
}

.hero.contact-page .code-element:nth-child(1) {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.hero.contact-page .code-element:nth-child(2) {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.hero.contact-page .code-element:nth-child(3) {
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

/* Wave separator */
.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    z-index: 3;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: auto;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background: linear-gradient(to bottom, #f9fafb, #ffffff);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* Contact Info */
.contact-info {
    position: sticky;
    top: 100px;
}

.contact-info .section-title {
    font-size: 2.5rem;
    color: #1e293b;
    margin-bottom: 20px;
}

.contact-intro {
    font-size: 1.125rem;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-details .contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-details .contact-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #0096d5, #0077aa);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 150, 213, 0.2);
}

.contact-details .contact-icon svg {
    color: white !important;
    stroke: white !important;
    fill: none !important;
    width: 24px;
    height: 24px;
}

.contact-text h3 {
    font-size: 1.125rem;
    color: #1e293b;
    margin-bottom: 5px;
    font-weight: 600;
}

.contact-text p {
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

.contact-link {
    color: #0096d5;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #0077aa;
    text-decoration: underline;
}

/* Contact Form */
.contact-form-wrapper {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 4px;
}

.required {
    color: #ef4444;
}

.form-group input,
.form-group textarea {
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0096d5;
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 150, 213, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* Form Footer */
.form-footer {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}

.form-note svg {
    flex-shrink: 0;
    color: #94a3b8;
}

.submit-btn {
    background: linear-gradient(135deg, #0096d5, #0077aa);
    color: white;
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 150, 213, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 150, 213, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.btn-icon {
    transition: transform 0.3s ease;
}

.submit-btn:hover .btn-icon {
    transform: translateX(4px);
}

/* Alert Messages */
.alert {
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 30px;
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.alert.success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.alert.success svg {
    color: #10b981;
}

.alert.error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.alert.error svg {
    color: #ef4444;
}

.alert strong {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
}

.alert p {
    margin: 0;
    font-size: 0.95rem;
}

/* Map Section */
.map-section {
    padding: 80px 0;
    background: white;
}

.map-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.map-container iframe {
    display: block;
    width: 100%;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #020617 0%, #0a0f1e 50%, #020617 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 50%, rgba(0, 150, 213, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 70% 50%, rgba(0, 150, 213, 0.15) 0%, transparent 40%);
    animation: subtle-pulse 8s ease-in-out infinite;
}

@keyframes subtle-pulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 0.8;
    }
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 16px;
    font-weight: 700;
}

.cta-content p {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .contact-info {
        position: static;
    }
}

@media (max-width: 768px) {
    .hero.contact-page {
        padding: 100px 0 60px;
    }
    
    /* Hide code elements on mobile to prevent overflow */
    .hero.contact-page .code-element:nth-child(2),
    .hero.contact-page .code-element:nth-child(3) {
        display: none;
    }
    
    .hero.contact-page .code-element:nth-child(1) {
        left: 5%;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .contact-section {
        padding: 60px 0;
    }

    .contact-info .section-title {
        font-size: 2rem;
    }

    .contact-form-wrapper {
        padding: 30px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .map-section {
        padding: 60px 0;
    }

    .cta-section {
        padding: 60px 0;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-content p {
        font-size: 1.125rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .button {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .contact-info .section-title {
        font-size: 1.75rem;
    }

    .contact-item {
        flex-direction: column;
        gap: 12px;
    }

    .contact-icon {
        align-self: flex-start;
    }

    .form-note {
        font-size: 0.85rem;
    }

    .submit-btn {
        font-size: 1rem;
        padding: 14px 24px;
    }
}
