/* Contact Page Specific Styles */

/* Contact Hero Section */
.contact-hero {
    background: linear-gradient(135deg, 
        rgba(30, 30, 45, 0.95), 
        rgba(20, 20, 35, 0.95),
        rgba(139, 92, 246, 0.1)
    );
    padding: 10rem 0 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 60vh;
    display: flex;
    align-items: center;
    backdrop-filter: blur(20px);
    margin-top: 80px; /* Header height */
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="waves" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M0,10 Q5,5 10,10 T20,10" fill="none" stroke="%238B5CF6" stroke-width="0.5" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23waves)"/></svg>'),
        linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    opacity: 0.6;
    animation: float 20s ease-in-out infinite;
}

.contact-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 70%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(168, 85, 247, 0.15) 0%, transparent 50%);
    z-index: 1;
}

.contact-hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.8s ease-out;
    max-width: 800px;
    margin: 0 auto;
}

.contact-title {
    font-size: 4rem;
    font-weight: 800;
    color: var(--white-color);
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--white-color), var(--light-gray));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
}

.contact-subtitle {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 500;
    line-height: 1.4;
}

/* Contact Content Section */
.contact-content {
    padding: 6rem 0;
    background: linear-gradient(135deg, 
        var(--dark-color) 0%, 
        rgba(30, 30, 45, 0.8) 50%, 
        var(--dark-color) 100%
    );
    position: relative;
}

.contact-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--primary-color), 
        var(--accent-color), 
        var(--secondary-color), 
        transparent
    );
    background-size: 200% 100%;
    animation: gradientMove 4s ease-in-out infinite;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Contact Form Section */
.contact-form-section {
    background: linear-gradient(135deg, 
        rgba(30, 30, 45, 0.95), 
        rgba(20, 20, 35, 0.95)
    );
    border-radius: 24px;
    padding: 3rem;
    border: 1px solid rgba(139, 92, 246, 0.2);
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(139, 92, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    height: fit-content;
}

.contact-form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--secondary-color), var(--primary-color));
    background-size: 200% 100%;
    animation: gradientMove 3s ease-in-out infinite;
}

.contact-form-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(139, 92, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.05) 0%, transparent 50%);
    pointer-events: none;
    border-radius: 24px;
}

.contact-form-section h2 {
    color: var(--white-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.contact-form-section p {
    color: var(--gray-color);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

/* Enhanced Form Styling */
.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.input-icon {
    position: absolute;
    left: 1rem;
    color: var(--primary-color);
    font-size: 1.1rem;
    z-index: 2;
    transition: all 0.3s ease;
}

.textarea-icon {
    top: 1rem;
    left: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: linear-gradient(135deg, 
        rgba(26, 26, 46, 0.9), 
        rgba(22, 22, 62, 0.9)
    );
    color: var(--white-color);
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-family: inherit;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.form-group textarea {
    padding: 1rem 1rem 1rem 3rem;
    padding-top: 2.5rem;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-color);
    opacity: 0.7;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%238B5CF6' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.5em 1.5em;
    padding-right: 3rem;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.form-group select:focus {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%238B5CF6' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
}

.form-group select option {
    background: var(--darker-color);
    color: var(--white-color);
    padding: 0.75rem;
    border: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: linear-gradient(135deg, 
        rgba(26, 26, 46, 1), 
        rgba(22, 22, 62, 1)
    );
    box-shadow: 
        0 0 0 3px rgba(139, 92, 246, 0.2),
        0 4px 15px rgba(139, 92, 246, 0.1);
    transform: translateY(-2px);
}

.form-group input:focus + .input-icon,
.form-group select:focus + .input-icon,
.form-group textarea:focus + .input-icon {
    color: var(--accent-color);
    transform: scale(1.1);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: rgba(139, 92, 246, 0.5);
    background: linear-gradient(135deg, 
        rgba(26, 26, 46, 0.95), 
        rgba(22, 22, 62, 0.95)
    );
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.1);
}

.form-group input:hover + .input-icon,
.form-group select:hover + .input-icon,
.form-group textarea:hover + .input-icon {
    color: var(--accent-color);
    transform: scale(1.05);
}

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

/* Form Grid Layout Improvements */
.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    position: relative;
    z-index: 2;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

/* Form Labels Enhancement */
.form-group label {
    color: var(--light-color);
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Required Field Indicator */
.form-group label[for*="name"]::after,
.form-group label[for*="email"]::after,
.form-group label[for*="subject"]::after,
.form-group label[for*="message"]::after {
    content: ' *';
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
}

/* Form Field Spacing */
.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

/* Button Container */
.form-group.full-width:last-child {
    margin-top: 1rem;
    margin-bottom: 0;
}

/* Form Validation Visual Feedback */
.form-group input:invalid:not(:placeholder-shown),
.form-group select:invalid:not([value=""]),
.form-group textarea:invalid:not(:placeholder-shown) {
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group input:valid:not(:placeholder-shown),
.form-group select:valid:not([value=""]),
.form-group textarea:valid:not(:placeholder-shown) {
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Form Submit Button */
.contact-form .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem 2.5rem;
    font-size: 1.1rem;
    width: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    border-radius: 16px;
    color: var(--white-color);
    font-weight: 600;
    box-shadow: 
        0 8px 25px rgba(139, 92, 246, 0.3),
        0 0 0 1px rgba(139, 92, 246, 0.1);
    cursor: pointer;
    margin-top: 1.5rem;
    position: relative;
    overflow: hidden;
}

.contact-form .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent
    );
    transition: left 0.6s ease;
}

.contact-form .btn:hover::before {
    left: 100%;
}

.contact-form .btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 
        0 15px 40px rgba(139, 92, 246, 0.4),
        0 0 0 2px rgba(139, 92, 246, 0.2);
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
}

.contact-form .btn:active {
    transform: translateY(-2px) scale(0.98);
}

.contact-form .btn i {
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.contact-form .btn:hover i:first-child {
    transform: translateX(-3px) rotate(-10deg);
}

.contact-form .btn:hover i:last-child {
    transform: translateX(3px) rotate(10deg);
}

.contact-form .btn span {
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Success and Error Messages */
.success-message,
.error-message {
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    font-weight: 500;
}

.success-message {
    background: linear-gradient(135deg, 
        rgba(16, 185, 129, 0.1), 
        rgba(16, 185, 129, 0.05)
    );
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10B981;
}

.error-message {
    background: linear-gradient(135deg, 
        rgba(239, 68, 68, 0.1), 
        rgba(239, 68, 68, 0.05)
    );
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #EF4444;
}

.error-message ul {
    margin: 0;
    padding-left: 1.5rem;
}

.error-message li {
    margin-bottom: 0.5rem;
}

/* Contact Information Section */
.contact-info-section {
    background: linear-gradient(135deg, 
        rgba(30, 30, 45, 0.95), 
        rgba(20, 20, 35, 0.95)
    );
    border-radius: 24px;
    padding: 3rem;
    border: 1px solid rgba(139, 92, 246, 0.2);
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(139, 92, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    height: fit-content;
}

.contact-info-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--secondary-color), var(--primary-color));
    background-size: 200% 100%;
    animation: gradientMove 3s ease-in-out infinite;
}

.contact-info-section h2 {
    color: var(--white-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.contact-info-section > p {
    color: var(--gray-color);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

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

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.08), 
        rgba(168, 85, 247, 0.08)
    );
    border-radius: 16px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.contact-info-item:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.12), 
        rgba(168, 85, 247, 0.12)
    );
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 12px 35px rgba(139, 92, 246, 0.2);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.contact-info-item:hover .contact-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.contact-details h3 {
    color: var(--white-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-details h3 i {
    color: var(--primary-color);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-details p {
    color: var(--gray-color);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.contact-details p i {
    color: var(--primary-color);
    font-size: 0.9rem;
    width: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-info-item:hover .contact-details h3 i,
.contact-info-item:hover .contact-details p i {
    color: var(--accent-color);
    transform: scale(1.1);
}



/* FAQ Section */
.faq-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, 
        var(--dark-color) 0%, 
        rgba(30, 30, 45, 0.8) 50%, 
        var(--dark-color) 100%
    );
    position: relative;
}

.faq-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--primary-color), 
        var(--accent-color), 
        var(--secondary-color), 
        transparent
    );
    background-size: 200% 100%;
    animation: gradientMove 4s ease-in-out infinite;
}

.section-title {
    text-align: center;
    color: var(--white-color);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--white-color), var(--light-gray));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.faq-item {
    background: linear-gradient(135deg, 
        rgba(30, 30, 45, 0.95), 
        rgba(20, 20, 35, 0.95)
    );
    border-radius: 20px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    box-shadow: 
        0 15px 45px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(139, 92, 246, 0.1);
    position: relative;
}

.faq-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--secondary-color));
    background-size: 200% 100%;
    animation: gradientMove 3s ease-in-out infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.faq-item:hover::before,
.faq-item.active::before {
    opacity: 1;
}

.faq-item:hover {
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 
        0 25px 70px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(139, 92, 246, 0.2);
    transform: translateY(-5px);
}

.faq-item.active {
    border-color: var(--primary-color);
    box-shadow: 
        0 30px 80px rgba(139, 92, 246, 0.2),
        0 0 0 2px rgba(139, 92, 246, 0.3);
    transform: translateY(-8px);
}

.faq-question {
    padding: 2.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.4s ease;
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.05), 
        rgba(168, 85, 247, 0.05)
    );
    position: relative;
    overflow: hidden;
}

.faq-question::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(139, 92, 246, 0.1), 
        transparent
    );
    transition: left 0.6s ease;
}

.faq-question:hover::after {
    left: 100%;
}

.faq-question:hover {
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.1), 
        rgba(168, 85, 247, 0.1)
    );
    transform: translateX(5px);
}

.faq-question h3 {
    color: var(--white-color);
    font-size: 1.3rem;
    margin: 0;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.faq-question h3 i {
    color: var(--primary-color);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.faq-item.active .faq-question h3 {
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.faq-question i {
    color: var(--primary-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.2rem;
    position: relative;
    z-index: 1;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 50%;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    background: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

.faq-answer {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(139, 92, 246, 0.03);
    opacity: 0;
    transform: translateY(-10px);
}

.faq-item.active .faq-answer {
    padding: 0 2rem 2.5rem;
    max-height: 300px;
    opacity: 1;
    transform: translateY(0);
}

.faq-answer p {
    color: var(--gray-color);
    line-height: 1.7;
    margin: 0;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.faq-answer p i {
    color: var(--primary-color);
    font-size: 1rem;
    margin-top: 0.2rem;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer p {
    color: var(--light-color);
}

.faq-item.active .faq-answer p i {
    color: var(--accent-color);
    transform: scale(1.1);
}

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

@keyframes gradientMove {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(1deg);
    }
}

/* Animation for contact form */
.contact-form {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
}

/* Animation for contact info */
.contact-info-section {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
}

/* Animation for FAQ items */
.faq-item {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.faq-item:nth-child(1) { animation-delay: 0.1s; }
.faq-item:nth-child(2) { animation-delay: 0.2s; }
.faq-item:nth-child(3) { animation-delay: 0.3s; }
.faq-item:nth-child(4) { animation-delay: 0.4s; }

/* Loading state for form */
.contact-form.loading {
    opacity: 0.7;
    pointer-events: none;
}

.contact-form.loading .btn {
    background: var(--gray-color);
    cursor: not-allowed;
}

/* Success state for form */
.contact-form.success .btn {
    background: #10B981;
}

.contact-form.success .btn::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 0.5rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .contact-grid {
        max-width: 1200px;
        gap: 2.5rem;
        padding: 0 1.5rem;
    }
    
    .contact-form-section,
    .contact-info-section {
        padding: 2.5rem;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        padding: 8rem 0 4rem;
        min-height: 50vh;
        margin-top: 70px; /* Mobile header height */
    }
    
    .contact-title {
        font-size: 3rem;
    }
    
    .contact-subtitle {
        font-size: 1.25rem;
    }
    
    .contact-content {
        padding: 4rem 0;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .contact-form {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-form-section,
    .contact-info-section {
        padding: 2rem;
        border-radius: 20px;
    }
    
    .contact-form-section h2,
    .contact-info-section h2 {
        font-size: 2rem;
    }
    
    /* Mobilde form alanlarının taşmasını önle */
    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Select elementinin mobilde taşmasını önle */
    .form-group select {
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
        padding-right: 2.5rem;
    }
    
    /* Input container'ın taşmasını önle */
    .input-with-icon {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .faq-question {
        padding: 2rem 1.5rem;
    }
    
    .faq-question h3 {
        font-size: 1.2rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 1.5rem 2rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .contact-hero {
        padding: 6rem 0 3rem;
        min-height: 40vh;
        margin-top: 60px; /* Small mobile header height */
    }
    
    .contact-title {
        font-size: 2.5rem;
    }
    
    .contact-subtitle {
        font-size: 1.1rem;
    }
    
    .contact-content {
        padding: 3rem 0;
    }
    
    .contact-grid {
        gap: 1.5rem;
        padding: 0 0.75rem;
    }
    
    .contact-form-section h2,
    .contact-info-section h2 {
        font-size: 1.75rem;
    }
    
    .contact-form-section,
    .contact-info-section {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .contact-form {
        gap: 1rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.875rem 0.875rem 0.875rem 2.5rem;
        font-size: 0.95rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Küçük mobilde select elementinin taşmasını önle */
    .form-group select {
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
        padding-right: 2.5rem;
        font-size: 0.9rem;
    }
    
    /* Input container'ın küçük mobilde taşmasını önle */
    .input-with-icon {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }
    
    .input-icon {
        font-size: 1rem;
        left: 0.75rem;
    }
    
    .contact-details h3,
    .contact-details p {
        font-size: 0.9rem;
    }
    
    .contact-details h3 i,
    .contact-details p i {
        font-size: 0.85rem;
    }
    
    .contact-form .btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .faq-question {
        padding: 1.5rem;
    }
    
    .faq-question h3 {
        font-size: 1.1rem;
    }
    
    .faq-question i {
        font-size: 1rem;
        width: 20px;
        height: 20px;
    }
    
    .faq-answer {
        padding: 0 1.5rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 1.5rem 1.5rem;
    }
    
    .faq-answer p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Çok küçük ekranlar için ek güvenlik */
@media (max-width: 360px) {
    .contact-form-section,
    .contact-info-section {
        padding: 1rem;
        border-radius: 12px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.75rem 0.75rem 0.75rem 2.25rem;
        font-size: 0.9rem;
    }
    
    .input-icon {
        font-size: 0.9rem;
        left: 0.5rem;
    }
    
    .contact-form .btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }
}

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

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

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes titleGlow {
    0%, 100% {
        text-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
    }
    50% {
        text-shadow: 0 0 30px rgba(139, 92, 246, 0.8);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
} 