/* Import fonts from Google if not already in main CSS */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Playfair+Display:wght@400;700&display=swap');

/* Apply active state to the contact link */
.nav-link.active {
    color: var(--secondary);
}
.nav-link.active::after {
    width: 100%;
    background: var(--secondary);
}

/* ===== Contact Page Hero ===== */
.contact-hero {
    padding: 120px 0 60px;
    text-align: center;
    background-color: var(--light-gray);
    margin-top: 70px; /* Offset for fixed header */
}
.contact-hero-title {
    font-size: 3.5rem;
    color: var(--primary);
    font-family: var(--font-alt);
}
.contact-hero-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 700px;
    margin: 1rem auto 0;
}

/* ===== Team Section ===== */
.team-section {
    padding: 80px 0;
    background: #fff;
}
.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: var(--primary);
    font-family: var(--font-alt);
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--secondary);
    margin: 15px auto 0;
}
.team-cards-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}
.photographer-card {
    position: relative;
    width: 320px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(44, 62, 80, 0.1);
    transition: transform 0.3s ease;
}
.photographer-card:hover {
    transform: translateY(-10px);
}
.card-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    opacity: 0.2;
}
.card-profile-pic {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 40px auto 20px;
    border: 4px solid var(--white);
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    position: relative;
}
.card-profile-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.card-content {
    text-align: center;
    color: var(--primary);
    position: relative;
}
.photographer-name {
    font-family: var(--font-alt);
    font-size: 1.5rem;
    margin-bottom: 5px;
}
.photographer-role {
    font-size: 0.9rem;
    color: var(--secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}
.photographer-socials a {
    color: var(--primary);
    margin: 0 10px;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}
.photographer-socials a:hover {
    color: var(--secondary);
}

/* ===== Contact Form Section ===== */
.contact-form-section {
    padding: 80px 0;
    background: var(--light-gray);
}
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    background: var(--white);
    padding: 50px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}
.contact-info h3 {
    font-family: var(--font-alt);
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 15px;
}
.contact-info p {
    color: var(--gray);
    margin-bottom: 30px;
}
.contact-info ul {
    list-style: none;
    padding: 0;
}
.contact-info ul li {
    margin-bottom: 15px;
    color: var(--dark);
}
.contact-info ul li i {
    color: var(--secondary);
    margin-right: 15px;
    width: 20px;
}
.contact-info-socials {
    margin-top: 30px;
}
.contact-info-socials a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background: var(--light-gray);
    color: var(--primary);
    margin-right: 10px;
    transition: all 0.3s ease;
}
.contact-info-socials a:hover {
    background: var(--secondary);
    color: var(--white);
}

/* Futuristic Form Styles */
.form-group {
    position: relative;
    margin-bottom: 35px;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 0;
    font-size: 1rem;
    color: var(--dark);
    border: none;
    border-bottom: 2px solid var(--light-gray);
    background: transparent;
    outline: none;
    position: relative;
    z-index: 1;
}
.form-group label {
    position: absolute;
    top: 10px;
    left: 0;
    font-size: 1rem;
    color: var(--gray);
    pointer-events: none;
    transition: all 0.3s ease;
}
.form-group input:focus ~ label,
.form-group input:valid ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:valid ~ label {
    top: -20px;
    left: 0;
    font-size: 0.85rem;
    color: var(--secondary);
}
.form-group::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 100%;
    background: var(--secondary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: 2;
}
.form-group input:focus::after,
.form-group textarea:focus::after {
    transform: scaleX(1);
}
/* This uses a JS trick, so we add the rule for focus AND a class we'll toggle */
.form-group.focused::after {
     transform: scaleX(1);
}

.btn-submit {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(45deg, var(--secondary), #ff4d4d);
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 126, 95, 0.4);
}
.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(255, 126, 95, 0.6);
}

/* Responsive adjustments */
@media(max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}
@media(max-width: 768px) {
    .contact-hero-title {
        font-size: 2.5rem;
    }
    .contact-wrapper {
        padding: 30px;
    }
}
