

/* Contact Page Styles */
.contact-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 80px 0;
    position: relative;
}

.contact-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2980b9, #3498db);
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
}

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

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

/* Page Header */
.contact-header {
    text-align: center;
    margin-bottom: 4rem;
    animation: slideInDown 1s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-header h1 {
    font-size: 3.5rem;
    font-weight: 900;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    position: relative;
    text-shadow: 0 2px 8px rgba(44, 62, 80, 0.1);
}

.contact-header h1::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.contact-intro {
    font-size: 1.2rem;
    color: #7f8c8d;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.3s forwards;
}

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

/* Contact Content Grid */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 5rem;
    align-items: start;
}

/* Contact Form Section */
.contact-form-section {
    background: white;
    border-radius: 25px;
    padding: 3.5rem;
    box-shadow: 
        0 25px 80px rgba(52, 152, 219, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(52, 152, 219, 0.1);
    transform: perspective(1000px) rotateY(2deg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideInLeft 1s ease-out 0.5s backwards;
    position: relative;
    overflow: hidden;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: perspective(1000px) rotateY(15deg) translateX(-80px);
    }
    to {
        opacity: 1;
        transform: perspective(1000px) rotateY(2deg) translateX(0);
    }
}

.contact-form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.contact-form-section:hover {
    transform: perspective(1000px) rotateY(0deg) translateY(-10px);
    box-shadow: 
        0 35px 100px rgba(52, 152, 219, 0.2),
        0 0 0 2px rgba(52, 152, 219, 0.1),
        inset 0 4px 8px rgba(255, 255, 255, 0.5);
}

.contact-form-section:hover::before {
    transform: scaleX(1);
}

.form-header {
    margin-bottom: 2.5rem;
    text-align: center;
}

.form-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    position: relative;
}

.form-header p {
    color: #7f8c8d;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f8f9fa;
    color: #2c3e50;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #3498db;
    background: white;
    box-shadow: 
        0 0 0 4px rgba(52, 152, 219, 0.1),
        0 4px 20px rgba(52, 152, 219, 0.15);
    transform: translateY(-2px);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

/* Form Buttons */
.form-buttons {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn-submit {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 18px 35px;
    border: none;
    border-radius: 15px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(52, 152, 219, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.2);
    flex: 1;
    min-width: 200px;
}

.btn-submit::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;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
    transform: translateY(-3px);
    box-shadow: 
        0 15px 40px rgba(52, 152, 219, 0.4),
        inset 0 4px 8px rgba(255, 255, 255, 0.3);
}

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

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

.btn-reset {
    background: transparent;
    color: #7f8c8d;
    padding: 18px 35px;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex: 1;
    min-width: 200px;
}

.btn-reset:hover {
    background: #e9ecef;
    color: #2c3e50;
    border-color: #3498db;
    transform: translateY(-2px);
}

/* Contact Info Section */
.contact-info-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    animation: slideInRight 1s ease-out 0.7s backwards;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(80px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Contact Cards */
.contact-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 
        0 15px 50px rgba(52, 152, 219, 0.1),
        0 0 0 1px rgba(52, 152, 219, 0.05);
    border: 1px solid rgba(52, 152, 219, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(52, 152, 219, 0.2);
    border-color: rgba(52, 152, 219, 0.2);
}

.contact-card:hover::before {
    transform: scaleX(1);
}

.contact-card-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.contact-icon i {
    font-size: 1.5rem;
    color: white;
}

.contact-card:hover .contact-icon {
    transform: rotate(10deg) scale(1.1);
}

.contact-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.contact-card-content {
    color: #7f8c8d;
    line-height: 1.6;
}

.contact-card-content p {
    margin-bottom: 0.8rem;
}

.contact-card-content a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-card-content a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
    position: relative;
}
.alert-success {
    color: #3c763d;
    background-color: #dff0d8;
    border-color: #d6e9c6;
}
.alert-danger {
    color: #a94442;
    background-color: #f2dede;
    border-color: #ebccd1;
}
.alert-dismissible {
    padding-right: 35px;
}
.alert .close {
    position: absolute;
    top: 0;
    right: 0;
    padding: 21px 15px;
    color: inherit;
    background: none;
    border: none;
    cursor: pointer;
}

/* Special Styles for Email Link */
.email-highlight {
    background: linear-gradient(135deg, #104264, #1f76af);
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    display: inline-block;
    margin-top: 1rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.email-highlight:hover {
    
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
    color: white;
    text-decoration: none;
}

/* Map Container */
.map-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 15px 50px rgba(52, 152, 219, 0.1),
        0 0 0 1px rgba(52, 152, 219, 0.05);
    height: 300px;
    margin-top: 1rem;
    position: relative;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    transition: all 0.3s ease;
}

.map-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(52, 152, 219, 0.15);
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.floating-element {
    position: absolute;
    opacity: 0.1;
    animation: float3D 12s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    top: 20%;
    left: 10%;
    font-size: 2rem;
    color: #3498db;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    top: 60%;
    right: 15%;
    font-size: 1.5rem;
    color: #2980b9;
    animation-delay: 4s;
}

.floating-element:nth-child(3) {
    bottom: 30%;
    left: 80%;
    font-size: 1.8rem;
    color: #3498db;
    animation-delay: 8s;
}

@keyframes float3D {
    0%, 100% {
        transform: translateY(0px) rotateZ(0deg);
        opacity: 0.1;
    }
    25% {
        transform: translateY(-20px) rotateZ(90deg);
        opacity: 0.2;
    }
    50% {
        transform: translateY(-10px) rotateZ(180deg);
        opacity: 0.15;
    }
    75% {
        transform: translateY(-25px) rotateZ(270deg);
        opacity: 0.25;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-form-section {
        transform: none;
    }
    
    .contact-form-section:hover {
        transform: translateY(-10px);
    }
}

@media (max-width: 768px) {
    .contact-page {
        padding: 60px 0;
    }
    
    .contact-container {
        padding: 0 1.5rem;
    }
    
    .contact-header h1 {
        font-size: 2.5rem;
    }
    
    .contact-intro {
        font-size: 1.1rem;
    }
    
    .contact-form-section {
        padding: 2.5rem;
    }
    
    .form-header h2 {
        font-size: 2rem;
    }
    
    .form-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-submit,
    .btn-reset {
        min-width: auto;
    }
    
    .contact-card {
        padding: 2rem;
    }
    
    .contact-card-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .map-container {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .contact-header h1 {
        font-size: 2rem;
    }
    
    .contact-intro {
        font-size: 1rem;
    }
    
    .contact-form-section {
        padding: 2rem;
    }
    
    .form-header h2 {
        font-size: 1.8rem;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 15px 18px;
    }
    
    .btn-submit,
    .btn-reset {
        padding: 15px 25px;
        font-size: 1rem;
    }
    
    .contact-card {
        padding: 1.5rem;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
    }
    
    .contact-icon i {
        font-size: 1.2rem;
    }
}

/* Animation utilities */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
