/* Contact Page Specific Styles */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

/* Ensure background elements are positioned correctly */
#contact-page .background-rect {
    position: absolute;
    height: 264.918px;
    left: 0;
    top: -39.029px;
    width: 100%;
    z-index: 1;
}

#contact-page .profile-image {
    position: absolute;
    left: 65px;
    width: 200px;
    height: 200px;
    top: 0.5px;
    z-index: 10;
}

#contact-page .nav-background {
    position: absolute;
    height: 78px;
    left: 527px;
    top: 43px;
    width: 943px;
    z-index: 5;
}

#contact-page .navbar-frame {
    position: absolute;
    font-family: 'Be Vietnam Pro', sans-serif;
    font-weight: bold;
    font-style: italic;
    height: 33px;
    line-height: 0;
    left: 550px;
    color: #ffffff;
    font-size: 33px;
    text-align: left;
    top: 73px;
    width: 672.787px;
    z-index: 15;
}

/* Adjust desktop container height for contact page */
#contact-page {
    min-height: 1400px;
}

/* Navigation Active State */
.nav-contact.active p a {
    color: #FFE97B;
    text-decoration: underline;
}

.navbar-frame a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.navbar-frame a:hover {
    color: #FFE97B;
}

/* Contact Subtitle Header */
.contact-subtitle-header {
    position: absolute;
    top: 230px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1600px;
    text-align: center;
}

.contact-subtitle-header p {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 28px;
    color: #ffffff;
    margin: 0;
    opacity: 0.9;
    font-weight: 400;
}

/* Contact Hero Section */
.contact-hero-section {
    position: absolute;
    top: 320px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1400px;
    display: flex;
    gap: 80px;
    align-items: flex-start;
}

/* Contact Information Section - Now the first column */
.contact-info-section {
    flex: 1;
    min-width: 400px;
    max-width: 500px;
}

.contact-info-title h2 {
    font-family: 'Times New Roman', serif;
    font-weight: bold;
    font-style: italic;
    font-size: 48px;
    color: #FFE97B;
    margin-bottom: 30px;
    text-align: left;
}

.contact-info-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px 15px;
    border-radius: 12px;
    text-align: left;
    border: 1px solid rgba(255, 233, 123, 0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-info-item:hover {
    transform: translateY(-2px);
    border-color: #FFE97B;
    box-shadow: 0 5px 20px rgba(255, 233, 123, 0.1);
}

.contact-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 233, 123, 0.1);
    border-radius: 50%;
    flex-shrink: 0;
}

.contact-details h3 {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #FFE97B;
    margin-bottom: 5px;
}

.contact-details p {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 14px;
    color: #ffffff;
    opacity: 0.8;
    margin: 0;
}

/* Contact Form Section */
.contact-form-section {
    flex: 1;
    min-width: 500px;
}

.contact-form-container {
    width: 100%;
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 233, 123, 0.2);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-family: 'Be Vietnam Pro', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #FFE97B;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 233, 123, 0.3);
    border-radius: 8px;
    color: #ffffff;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #FFE97B;
    box-shadow: 0 0 0 3px rgba(255, 233, 123, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

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

.submit-btn {
    background: linear-gradient(45deg, #FFE97B, #F4D03F);
    color: #181818;
    border: none;
    padding: 15px 30px;
    font-family: 'Be Vietnam Pro', sans-serif;
    font-weight: 700;
    font-size: 18px;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 233, 123, 0.3);
}

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

.btn-arrow {
    font-size: 20px;
    transition: transform 0.3s ease;
}

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

/* Success Message */
.success-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.success-content {
    background: linear-gradient(135deg, #FFE97B, #F4D03F);
    color: #181818;
    padding: 50px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    margin: 0 20px;
}

.success-icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: #181818;
}

.success-content h3 {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-weight: 700;
    font-size: 24px;
    margin-bottom: 15px;
}

.success-content p {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 16px;
    opacity: 0.8;
    margin: 0;
}

/* Responsive Design */


/* Desktop */
@media (max-width: 1200px) {
    #contact-page .profile-image {
        left: 40px;
        width: 150px;
        height: 150px;
    }
    
    #contact-page .background-rect {
        height: 200px;
        top: -25px;
    }
    
    #contact-page .nav-background {
        left: 350px;
        top: 30px;
        width: calc(100% - 370px);
        height: 60px;
    }
    
    #contact-page .navbar-frame {
        left: 370px;
        top: 50px;
        font-size: 24px;
        width: calc(100% - 390px);
    }
    
    .contact-subtitle-header {
        top: 180px;
        width: 95%;
    }
    
    .contact-subtitle-header p {
        font-size: 24px;
    }
    
    .contact-hero-section {
        top: 240px;
        flex-direction: column;
        gap: 40px;
        width: 95%;
    }
    
    .contact-info-section,
    .contact-form-section {
        min-width: auto;
        width: 100%;
        max-width: none;
    }
    
    .contact-info-title h2 {
        font-size: 40px;
        text-align: center;
    }
    
    .contact-info-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .contact-info-item {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 10px;
    }
    
    .contact-form {
        padding: 35px;
    }
}

/* Tablet */
@media (max-width: 768px) {
    #contact-page {
        min-height: 100vh;
    }
    
    #contact-page .profile-image {
        left: 20px;
        width: 120px;
        height: 120px;
        top: 5px;
    }
    
    #contact-page .background-rect {
        height: 160px;
        top: -15px;
    }
    
    #contact-page .nav-background {
        left: 150px;
        top: 20px;
        width: calc(100% - 170px);
        height: 50px;
    }
    
    #contact-page .navbar-frame {
        left: 170px;
        top: 35px;
        font-size: 18px;
        width: calc(100% - 190px);
        line-height: 1;
    }
    
    .contact-subtitle-header {
        top: 140px;
        width: 95%;
    }
    
    .contact-subtitle-header p {
        font-size: 20px;
    }
    
    .contact-hero-section {
        top: 200px;
        flex-direction: column;
        gap: 30px;
        width: 95%;
    }
    
    .contact-info-title h2 {
        font-size: 32px;
        text-align: center;
    }
    
    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .contact-info-item {
        flex-direction: row;
        text-align: left;
        justify-content: flex-start;
        gap: 15px;
    }
    
    .contact-form {
        padding: 25px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px;
        font-size: 15px;
    }
    
    .submit-btn {
        padding: 12px 25px;
        font-size: 16px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    #contact-page {
        min-height: 100vh;
    }
    
    #contact-page .profile-image {
        left: 10px;
        width: 100px;
        height: 100px;
        top: 5px;
    }
    
    #contact-page .background-rect {
        height: 140px;
        top: -10px;
    }
    
    #contact-page .nav-background {
        left: 120px;
        top: 15px;
        width: calc(100% - 130px);
        height: 45px;
    }
    
    #contact-page .navbar-frame {
        left: 130px;
        top: 27px;
        font-size: 14px;
        width: calc(100% - 140px);
    }
    
    .contact-subtitle-header {
        top: 120px;
        width: 98%;
    }
    
    .contact-subtitle-header p {
        font-size: 18px;
    }
    
    .contact-hero-section {
        top: 180px;
        gap: 25px;
        width: 98%;
    }
    
    .contact-info-title h2 {
        font-size: 28px;
    }
    
    .contact-info-grid {
        gap: 12px;
    }
    
    .contact-info-item {
        padding: 15px 12px;
        gap: 12px;
    }
    
    .contact-icon {
        width: 35px;
        height: 35px;
    }
    
    .contact-details h3 {
        font-size: 14px;
    }
    
    .contact-details p {
        font-size: 12px;
    }
    
    .contact-form {
        padding: 20px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group label {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 10px;
        font-size: 14px;
    }
    
    .form-group textarea {
        min-height: 100px;
    }
    
    .submit-btn {
        padding: 10px 20px;
        font-size: 14px;
        width: 100%;
        justify-content: center;
    }
    
    .success-content {
        padding: 30px;
        margin: 0 10px;
    }
    
    .success-content h3 {
        font-size: 20px;
    }
    
    .success-content p {
        font-size: 14px;
    }
}

/* Small Mobile */
@media (max-width: 360px) {
    #contact-page .profile-image {
        width: 80px;
        height: 80px;
    }
    
    #contact-page .navbar-frame {
        font-size: 12px;
        left: 100px;
    }
    
    .contact-subtitle-header p {
        font-size: 16px;
    }
    
    .contact-info-title h2 {
        font-size: 24px;
    }
    
    .contact-info-item {
        padding: 12px 10px;
        gap: 10px;
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        width: 30px;
        height: 30px;
    }
    
    .contact-details h3 {
        font-size: 13px;
    }
    
    .contact-details p {
        font-size: 11px;
    }
    
    .contact-form {
        padding: 15px;
    }
    
    .submit-btn {
        padding: 8px 15px;
        font-size: 13px;
    }
}
