/* File: contact/css/style.css - Page-specific styles extending shared/base styles */

/* Base from shared (Enhanced for contact page) */
:root {
    --primary-color: #1e40af;
    --secondary-color: #3b82f6;
    --accent-color: #60a5fa;
    --text-dark: #2c3e50;
    --text-light: #4a5568;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.08);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.12);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.2);
    --shadow-xl: 0 30px 80px rgba(30, 64, 175, 0.3);
    --border-radius: 20px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(15px, 4vw, 20px);
}

/* Button Styles (from shared) */
.btn {
    display: inline-block;
    padding: 14px 28px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
    font-size: clamp(0.9rem, 2.5vw, 0.95rem);
    position: relative;
    overflow: hidden;
    min-width: 140px;
    touch-action: manipulation;
}

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

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

.btn--primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    background-size: 200% 200%;
    color: var(--white);
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 1;
}

.btn--primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    opacity: 0;
    border-radius: 50px;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.btn--primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-xl);
    animation: gradientShift 3s ease infinite;
}

.btn--primary:hover::after {
    opacity: 1;
}

.btn--secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn--secondary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-md);
}

.btn.full-width {
    width: 100%;
}

/* Advanced Animations */
@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(40px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

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

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) scale(1); 
        opacity: 1;
    }
    50% { 
        transform: translateY(-30px) scale(1.1); 
        opacity: 0.8;
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animate {
    animation: fadeInUp 0.8s ease forwards;
}

.animate-on-scroll[data-delay="0.1s"] {
    transition-delay: 0.1s;
}

.animate-on-scroll[data-delay="0.2s"] {
    transition-delay: 0.2s;
}

/* Header - Enhanced with Glassmorphism */
.header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo__img {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
    transition: all 0.3s ease;
}

.logo__img:hover {
    transform: scale(1.1) rotate(2deg);
    filter: drop-shadow(0 4px 12px rgba(30, 64, 175, 0.3));
}

.nav__list {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav__link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
    left: 0;
    transform: translateX(0);
}

.nav__link:hover,
.nav__link.active {
    color: var(--primary-color);
}

.cta-header {
    display: none;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
    transition: transform 0.3s ease;
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
}

.mobile-toggle:hover {
    transform: rotate(90deg);
}

/* Hero for Contact */
.hero {
    position: relative;
    padding: clamp(100px, 15vw, 140px) 0 clamp(80px, 12vw, 120px);
    text-align: center;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 80vh;
}

.hero--contact .hero__bg {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    z-index: -2;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero--contact .hero__bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
    animation: float 15s ease-in-out infinite;
    z-index: -1;
}

.hero__title {
    font-size: clamp(2rem, 6vw, 4rem);
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3), 0 2px 10px rgba(0,0,0,0.2);
    color: var(--white);
    animation: fadeInUp 1s ease-out;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero__subtitle {
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    margin-bottom: 2.5rem;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero__ctas {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Contact Section */
.contact-section {
    padding: clamp(60px, 10vw, 100px) 0;
    background: var(--bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header i {
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.section-header p {
    color: var(--text-light);
}

/* Form Styles */
.form-section {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.02), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.form-section:hover::before {
    opacity: 1;
}

.form-section:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f9fafb;
    position: relative;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
    transform: translateY(-2px);
}

.form-group label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: var(--text-light);
    transition: all 0.3s ease;
    pointer-events: none;
    font-size: 0.9rem;
}

.form-group input:focus + label,
.form-group input:valid + label,
.form-group textarea:focus + label,
.form-group textarea:valid + label {
    top: -0.5rem;
    left: 0.5rem;
    background: var(--white);
    padding: 0 0.5rem;
    color: var(--primary-color);
    font-size: 0.8rem;
}

.form-message {
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.form-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.form-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Info Section */
.info-section {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.info-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.02), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.info-section:hover::before {
    opacity: 1;
}

.info-section:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.contact-item {
    margin-bottom: 2rem;
    padding-left: 2rem;
    border-left: 3px solid var(--primary-color);
    transition: var(--transition);
    position: relative;
    padding: 1rem 0 1rem 2rem;
    background: linear-gradient(90deg, transparent, rgba(30, 64, 175, 0.02));
    border-radius: 10px;
}

.contact-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s ease;
}

.contact-item:hover {
    transform: translateX(8px) scale(1.02);
    background: linear-gradient(90deg, rgba(30, 64, 175, 0.05), rgba(30, 64, 175, 0.02));
}

.contact-item:hover::before {
    transform: scaleY(1);
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.contact-item h3 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.contact-item p {
    color: var(--text-light);
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--secondary-color);
}

.social-section {
    margin-bottom: 2rem;
}

.social-section h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
    text-align: center;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.social-links a {
    color: var(--text-light);
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.map-container {
    text-align: center;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    color: var(--text-light);
}

.map-container i {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* CTA Banner (from shared) */
.cta-banner {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    color: var(--white);
    padding: clamp(60px, 10vw, 80px) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1), transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(255, 255, 255, 0.1), transparent 50%);
    animation: float 10s ease-in-out infinite;
    pointer-events: none;
}

.cta-banner h2 {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
}

.cta-banner p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.cta-banner__content {
    max-width: 600px;
    margin: 0 auto;
}

/* Footer (from shared) */
.footer {
    background: #1e3a8a;
    color: var(--white);
    padding: clamp(40px, 8vw, 50px) 0 20px;
}

.footer__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.footer__section h3 {
    margin-bottom: 1.5rem;
    color: #60a5fa;
}

.footer__section ul {
    list-style: none;
}

.footer__section ul li {
    margin-bottom: 0.8rem;
}

.footer__section a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer__section a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: #cbd5e0;
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: #60a5fa;
    transform: translateY(-2px);
}

.footer__bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #334155;
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .hero__ctas {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 250px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .header__inner {
        flex-wrap: wrap;
    }

    .nav__list {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 1rem;
        padding: 1rem 0;
        background: rgba(255, 255, 255, 0.98);
        position: absolute;
        top: 100%;
        left: 0;
        box-shadow: var(--shadow-sm);
        animation: slideDown 0.3s ease-out;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav__list.active {
        display: flex;
    }

    .mobile-toggle {
        display: block;
    }

    .cta-header {
        display: block;
        order: 3;
        width: 100%;
        text-align: center;
        margin-top: 1rem;
    }

    .form-section,
    .info-section {
        padding: 2rem;
    }

    .hero {
        min-height: 70vh;
        padding: clamp(80px, 15vw, 100px) 0 clamp(60px, 10vw, 80px);
    }
}

@media (max-width: 480px) {
    .hero__subtitle {
        font-size: 1.1rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .footer__content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .social-links {
        justify-content: center;
    }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
}

@media (max-width: 768px) {
    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 1rem;
    }
}

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

a:focus, button:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
    border-radius: 5px;
}