/* Contact page specific styles */
body {
    overflow-y: auto;
    background-color: #121212;
}

.contact-container {
    position: relative;
    min-height: 100vh;
    padding: 80px 0;
    background-color: #121212;
}

.contact-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    padding: 0 20px;
}

.contact-left {
    flex: 1;
    min-width: 300px;
    padding: 40px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 10px 0 0 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.contact-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect fill="none" width="100" height="100"/><path fill="rgba(255,255,255,0.03)" d="M0,0l100,100"/></svg>');
    background-size: 20px 20px;
    opacity: 0.1;
    z-index: 0;
}

.contact-right {
    flex: 1.5;
    min-width: 300px;
    display: flex;
    flex-direction: column;
}

.map-container {
    flex: 1;
    min-height: 300px;
    background-color: #1a1a1a;
    border-radius: 0 10px 0 0;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.contact-form {
    flex: 1;
    padding: 40px;
    background: #1a1a1a;
    border-radius: 0 0 10px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Heading styles */
.contact-left h1 {
    font-size: 36px;
    font-weight: 300;
    margin-bottom: 40px;
    position: relative;
    letter-spacing: 3px;
    z-index: 1;
}

.contact-left h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #ff0000;
}

.contact-form h2 {
    font-size: 24px;
    font-weight: 300;
    margin-bottom: 30px;
    color: #fff;
    position: relative;
}

.contact-form h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #ff0000;
}

/* Contact info styles */
.contact-info {
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.contact-item {
    display: flex;
    margin-bottom: 30px;
    align-items: flex-start;
}

.icon-container {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 20px;
    color: #ff0000;
    font-size: 20px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    overflow: hidden;
    flex-shrink: 0; /* Prevent shrinking */
    position: relative;
    /* Ensure perfect circle */
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
}

.icon-container i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.contact-item:hover .icon-container {
    background-color: #ff0000;
    color: #fff;
    transform: scale(1.1);
}

.info-text h3 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 5px;
    color: #fff;
}

.info-text p {
    font-size: 16px;
    color: #ccc;
    line-height: 1.6;
}

/* Social icons styles */
.social-contact {
    position: relative;
    z-index: 1;
}

.social-contact h3 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 20px;
    color: #fff;
}

.social-icons-contact {
    display: flex;
    gap: 15px;
}

.social-icons-contact a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-icons-contact a:hover {
    background-color: #ff0000;
    transform: translateY(-5px);
}

/* Form styles */
.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group textarea {
    height: 150px;
    resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 0, 0, 0.5);
    outline: none;
}

.submit-btn {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    border: none;
    border-radius: 30px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.4);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .contact-content {
        flex-direction: column;
    }
    
    .contact-left {
        border-radius: 10px 10px 0 0;
        margin-bottom: 0;
    }
    
    .map-container {
        border-radius: 0;
    }
    
    .contact-form {
        border-radius: 0 0 10px 10px;
    }
}

/* Animation effects */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-left h1,
.contact-item,
.social-contact,
.map-container,
.contact-form h2,
.form-group {
    animation: fadeIn 0.6s ease-out forwards;
}

.contact-item:nth-child(1) {
    animation-delay: 0.2s;
}

.contact-item:nth-child(2) {
    animation-delay: 0.4s;
}

.contact-item:nth-child(3) {
    animation-delay: 0.6s;
}

.social-contact {
    animation-delay: 0.8s;
}

.map-container {
    animation-delay: 0.3s;
}

.contact-form h2 {
    animation-delay: 0.5s;
}

.form-group:nth-child(1) {
    animation-delay: 0.6s;
}

.form-group:nth-child(2) {
    animation-delay: 0.7s;
}

.form-group:nth-child(3) {
    animation-delay: 0.8s;
}

.form-group:nth-child(4) {
    animation-delay: 0.9s;
}

.submit-btn {
    animation: fadeIn 0.6s ease-out 1s forwards;
    opacity: 0;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .contact-left {
        padding: 30px;
    }
    
    .contact-form {
        padding: 30px;
    }
    
    .contact-left h1 {
        font-size: 28px;
    }
    
    .contact-form h2 {
        font-size: 20px;
    }
    
    .icon-container {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .info-text h3 {
        font-size: 16px;
    }
    
    .info-text p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .contact-container {
        padding: 60px 0;
    }
    
    .contact-left {
        padding: 20px;
    }
    
    .contact-form {
        padding: 20px;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .icon-container {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .social-icons-contact {
        justify-content: center;
    }
}
