/* ========================================
   CONTACT PAGE STYLES - Mitchell Fildes Portfolio
   ======================================== */

/* ========================================
   TABLE OF CONTENTS:
   
   1. Base Styles & Reset
   2. Navigation & Mobile Menu
   3. Container & Layout
   4. Left Column - Contact Info
   5. Right Column - Contact Form
   6. Success Modal
   7. Footer
   8. Responsive Design (Tablet & Mobile)
   ======================================== */

/* ========================================
   1. BASE STYLES & RESET
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Barlow", sans-serif;
    font-weight: 500;
    background: #ffffff;
    color: #4d4d4d;
    line-height: 1.6;
    font-size: 16px;
    padding-top: 80px; /* Account for fixed navbar */
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Sora", sans-serif;
    font-weight: 400;
    font-optical-sizing: auto;
    font-style: normal;
}

/* Orange text selection color */
::selection {
    background-color: #FF4D00;
    color: #ffffff;
}

::-moz-selection {
    background-color: #FF4D00;
    color: #ffffff;
}

/* ========================================
   2. NAVIGATION & MOBILE MENU
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    z-index: 1000;
    padding: 24px 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.nav-logo {
    height: 56px;
    width: auto;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.nav-menu {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #FF4D00;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 10px 24px;
    border-radius: 50px;
    position: relative;
    transition: color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
    background: transparent;
}

.nav-link:hover {
    color: #ffffff;
    background: #FF4D00;
    box-shadow: 0 4px 15px rgba(255, 77, 0, 0.3);
}

.nav-link.active {
    color: #ffffff;
    background: #FF4D00;
}

/* Nav Social Icons */
.nav-socials {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-left: 16px;
}

.nav-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 77, 0, 0.1);
    border-radius: 50%;
    color: #FF4D00;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-socials a:hover {
    background: #FF4D00;
    color: #ffffff;
}

.nav-link::after {
    display: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.bar {
    width: 25px;
    height: 3px;
    background: #FF4D00;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: #fff;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 60px;
        gap: 16px;
        transition: left 0.3s ease;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        font-size: 16px;
        padding: 14px 36px;
        letter-spacing: 2px;
    }
    
    .nav-socials {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

/* ========================================
   3. CONTAINER & LAYOUT
   Two-column layout (info on left, form on right)
   ======================================== */
.container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 60px;
    gap: 60px;
    min-height: calc(100vh - 160px); /* Account for navbar and footer */
    position: relative;
}

.container::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #FF4D00, #ff6b33);
    border-radius: 2px;
}

/* ========================================
   4. LEFT COLUMN - CONTACT INFO
   Displays heading, description, and contact details
   Includes orange bullet points (::before pseudo-elements)
   ======================================== */
.info {
    flex: 1;
    max-width: 500px;
}

.section-label {
    font-size: 14px;
    color: #888888;
    margin-bottom: 20px;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.info h1 {
    font-size: 2.5rem;
    font-weight: 400;
    color: #FF4D00;
    margin-bottom: 24px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(255, 77, 0, 0.1);
}

.description {
    font-size: 16px;
    color: #666666;
    margin-bottom: 40px;
    line-height: 1.6;
}

.details {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.detail-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

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

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

.detail-section:hover .detail-icon svg {
    transform: scale(1.1);
}

.detail-section p {
    color: #666666;
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
}

.socials {
    display: flex;
    gap: 8px;
}

.socials-standalone {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    margin-left: 0; /* Align with the left edge, same as other icons */
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #FF4D00;
    border-radius: 8px;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: #333333;
    color: #ffffff;
    transform: translateY(-2px);
}

.social-link svg {
    width: 16px;
    height: 16px;
}

/* ========================================
   5. RIGHT COLUMN - CONTACT FORM
   Form with validation, submit button, and error messages
   Uses Formspree for submissions
   ======================================== */
.form-container {
    flex: 1;
    max-width: 500px;
}

.form {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 77, 0, 0.1);
    position: relative;
    overflow: hidden;
}


.form h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #FF4D00;
    margin-bottom: 12px;
}

.form-description {
    color: #666666;
    font-size: 16px;
    margin-bottom: 32px;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form input,
.form textarea {
    width: 100%;
    padding: 16px 0;
    border: none;
    border-bottom: 2px solid #e0e0e0;
    background: transparent;
    font-size: 16px;
    font-family: "Barlow", Arial, sans-serif;
    font-weight: 500;
    color: #4d4d4d;
    transition: all 0.3s ease;
    outline: none;
    position: relative;
}

.form input:focus,
.form textarea:focus {
    border-bottom-color: #FF4D00;
    color: #333333;
}

.form input:focus + .error-message,
.form textarea:focus + .error-message {
    opacity: 0;
}

.form input::placeholder,
.form textarea::placeholder {
    color: #999999;
    font-size: 16px;
}

.form textarea {
    min-height: 120px;
    resize: vertical;
    font-family: "Inter", Arial, sans-serif;
}

.submit-btn {
    background: linear-gradient(135deg, #FF4D00 0%, #ff6b33 100%);
    color: #ffffff;
    border: none;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-family: "Barlow", Arial, sans-serif;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(255, 77, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #ff6b33 0%, #FF4D00 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 77, 0, 0.4);
}

.submit-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 77, 0, 0.3);
}

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

.submit-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.submit-btn:hover svg {
    transform: translateX(4px);
}

/* Error Messages */
.error-message {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 8px;
    display: none;
    font-weight: 500;
}

.error-message.show {
    display: block;
}

.form-group.error input,
.form-group.error textarea {
    border-bottom-color: #e74c3c;
}

/* ========================================
   6. SUCCESS MODAL
   Popup shown after successful form submission
   ======================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: #ffffff;
    margin: 15% auto;
    padding: 0;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

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

.modal-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 400;
    color: #333333;
    margin: 0;
}

.close {
    color: #999999;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #333333;
}

.modal-body {
    padding: 16px 24px 24px;
}

.modal-body p {
    color: #666666;
    font-size: 16px;
    margin: 0;
}

/* ========================================
   8. RESPONSIVE DESIGN
   Tablet and Mobile Breakpoints
   ======================================== */

/* TABLET (1024px and below) */
@media (max-width: 1024px) {
    .container {
        gap: 40px;
        padding: 40px 20px;
    }
    
    .info h1 {
        font-size: 2.25rem;
    }
}

/* MOBILE (768px and below) */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        gap: 40px;
        padding: 40px 20px;
    }
    
    .info,
    .form-container {
        max-width: 100%;
    }
    
    .info h1 {
        font-size: 2rem;
    }
    
    .form {
        padding: 32px 24px;
    }
    
    .details {
        gap: 24px;
    }
}

/* SMALL MOBILE (480px and below) */
@media (max-width: 480px) {
    .container {
        padding: 20px 16px;
    }
    
    .info h1 {
        font-size: 1.75rem;
    }
    
    .form {
        padding: 24px 20px;
    }
    
    .form h2 {
        font-size: 1.5rem;
    }
    
    .submit-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Loading State */
.submit-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.submit-btn.loading svg {
    animation: spin 1s linear infinite;
}

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

/* Focus States for Accessibility */
.form input:focus,
.form textarea:focus,
.submit-btn:focus {
    outline: 2px solid #333333;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .form {
        border: 2px solid #333333;
    }
    
    .form input,
    .form textarea {
        border-bottom-color: #000000;
    }
}

/* ========================================
   7. FOOTER STYLES
   4-column grid layout on desktop
   Stacks to 1 column on mobile
   ======================================== */
.footer {
    background: #f8f9fa;
    color: #333333;
    padding: 60px 0 20px;
    margin-top: 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 56px;
    width: auto;
    margin-bottom: 16px;
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.footer-section h3 {
    font-size: 1.5rem;
    font-weight: 400;
    color: #FF4D00;
    margin-bottom: 16px;
}

.footer-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333333;
    margin-bottom: 16px;
}

.footer-section p {
    color: #666666;
    line-height: 1.6;
    margin-bottom: 12px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #666666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #FF4D00;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 77, 0, 0.1);
    border-radius: 50%;
    color: #FF4D00;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #FF4D00;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 77, 0, 0.3);
}

.footer-bottom {
    border-top: 1px solid #333333;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: #999999;
    font-size: 14px;
    margin: 4px 0;
}

/* Footer Responsive */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-logo {
        margin: 0 auto 16px;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .submit-btn,
    .social-link,
    .modal-content,
    .nav-link,
    .social-links a {
        transition: none;
    }
    
    .submit-btn:hover svg {
        transform: none;
    }
}

/* Ripple effect (moved from contact-script.js) */
.submit-btn {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}
