/* Contact Page Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Hero Section */
.contact-hero {
    min-height: 60vh;
    background: linear-gradient(rgba(81, 81, 82, 0.8), rgba(0, 0, 0, 0.7)), url('https://cdn.jsdelivr.net/gh/khenjiem/blog-background@80fe6e25801aeb62051e50457f8f358e6cfdb059/contact-us-background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.contact-hero-content {
    max-width: 800px;
    padding: 2rem;
    animation: fadeInUp 1s ease-out;
}

.contact-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #e5e5e5;
    font-weight: 300;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Main Contact Section */
.contact-section {
    padding: 5rem 0;
    background: #fafafa;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* Contact Form Styles */
.contact-form-container {
    background: #ffffff;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.contact-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #6A148B;
}

.contact-form-container h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 2rem;
    text-align: center;
}

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

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1rem 1rem 0;
    border: none;
    border-bottom: 2px solid #e2e8f0;
    background: transparent;
    font-size: 1rem;
    color: #2d3748;
    transition: all 0.3s ease;
    outline: none;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group input:valid,
.form-group textarea:valid {
    border-bottom-color: #6A148B;
}

.form-group label {
    position: absolute;
    top: 1rem;
    left: 0;
    font-size: 1rem;
    color: #718096;
    pointer-events: none;
    transition: all 0.3s ease;
    transform-origin: left;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:valid + label,
.form-group textarea:valid + label {
    transform: translateY(-1.5rem) scale(0.85);
    color: #667eea;
    font-weight: 500;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    padding-top: 1rem;
}

.submit-btn {
    background: #6A148B;
    color: #ffffff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

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

.arrow-icon {
    transition: transform 0.3s ease;
}

.submit-btn:hover .arrow-icon {
    transform: translateX(5px);
}

/* Contact Information Styles */
.contact-info-container {
    padding: 2rem;
}

.contact-info-container h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 2rem;
    text-align: center;
}

.contact-info-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-left-color: #667eea;
}

.info-icon {
    background: #6A148B;
    color: #ffffff;
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    height: 56px;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.info-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.info-content p {
    color: #718096;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Social Contact Section */
.social-contact {
    text-align: center;
    padding: 2rem;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.social-contact h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
    padding: 12px;
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.social-link img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .contact-grid {
        gap: 3rem;
    }
    
    .contact-form-container {
        padding: 2.5rem;
    }
    
    .contact-hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        min-height: 50vh;
        background-attachment: scroll;
    }
    
    .contact-hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .contact-section {
        padding: 3rem 0;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form-container {
        padding: 2rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .info-item {
        padding: 1rem;
    }
    
    .info-icon {
        min-width: 48px;
        height: 48px;
        padding: 0.75rem;
    }
    
    .social-links {
        gap: 0.75rem;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
        padding: 10px;
    }
    
    .social-link img {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .contact-hero-content {
        padding: 1rem;
    }
    
    .contact-hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .contact-form-container {
        padding: 1.5rem;
        border-radius: 15px;
    }
    
    .contact-form-container h2,
    .contact-info-container h2 {
        font-size: 1.5rem;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 0.95rem;
    }
    
    .submit-btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .info-item {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .info-content h3 {
        font-size: 1.1rem;
    }
    
    .info-content p {
        font-size: 0.9rem;
    }
}

/* High-resolution screens */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .contact-hero h1 {
        font-size: 4rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
}

/* Dark mode support (if needed) */
@media (prefers-color-scheme: dark) {
    .contact-section {
        background: #1a202c;
    }
    
    .contact-form-container,
    .info-item,
    .social-contact {
        background: #2d3748;
        color: #e2e8f0;
    }
    
    .contact-form-container h2,
    .contact-info-container h2,
    .info-content h3 {
        color: #e2e8f0;
    }
    
    .form-group input,
    .form-group textarea {
        color: #e2e8f0;
        border-bottom-color: #4a5568;
    }
    
    .form-group label {
        color: #a0aec0;
    }
    
    .info-content p {
        color: #a0aec0;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .contact-hero {
        background-attachment: scroll;
    }
}

/* Print styles */
@media print {
    .contact-hero {
        background: #2d3748;
        color: #ffffff;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .submit-btn,
    .social-links {
        display: none;
    }
}