/* ===== CONTACTS PAGE STYLES ===== */

/* ===== HERO VISUAL - SIGNALS CONTAINER ===== */
.signals-container {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.signal-center {
    position: absolute;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    box-shadow: 0 0 50px var(--primary-color);
    padding: 20px;
}

.signal-center img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* Signal Waves */
.signal-wave {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    opacity: 0;
    animation: pulseWave 3s ease-out infinite;
}

.wave-1 { 
    width: 100px; 
    height: 100px; 
    animation-delay: 0s; 
}

.wave-2 { 
    width: 180px; 
    height: 180px; 
    animation-delay: 0.8s; 
}

.wave-3 { 
    width: 260px; 
    height: 260px; 
    animation-delay: 1.6s; 
}

.wave-4 { 
    width: 340px; 
    height: 340px; 
    animation-delay: 2.4s; 
}

/* Floating Contact Elements */
.contact-float {
    position: absolute;
    background: rgba(42, 93, 187, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 40px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    animation: float 4s ease-in-out infinite;
    white-space: nowrap;
    z-index: 15;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.contact-float i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.float-1 { 
    top: 15%; 
    left: 10%; 
    animation-delay: 0s; 
}

.float-2 { 
    bottom: 20%; 
    right: 10%; 
    animation-delay: 1s; 
}

.float-3 { 
    top: 40%; 
    right: 5%; 
    animation-delay: 2s; 
}

/* ===== CONTACT INFO SECTION ===== */
.contact-info {
    padding: 6rem 0;
    background-color: var(--background-white);
}

.contact-info__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-info__card {
    text-align: center;
    padding: 2rem;
    background: var(--background-light);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.contact-info__card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    color: var(--accent-color);
}

.contact-info__card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.contact-info__card:hover i {
    color: var(--accent-color);
    transform: scale(1.1);
}

.contact-info__card h3 {
    margin-bottom: 1rem;
    color: var(--primary-dark);
    font-size: 1.5rem;
}

.contact-info__card p {
    color: var(--text-dark);
    line-height: 1.6;
}

.contact-info__card a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-info__card a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* ===== FORM SECTION ===== */
.form-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--background-light) 0%, #f9fafe 100%);
    position: relative;
    overflow: hidden;
}

.form-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-dark);
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.form-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--background-white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(42, 93, 187, 0.1);
    transition: transform 0.3s ease;
}

.form-container:hover {
    transform: translateY(-5px);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 0.5rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    padding-left: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid #eef2f7;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    background: #f8f9ff;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 5px 15px rgba(42, 93, 187, 0.1);
    transform: translateY(-2px);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Form Icons (via background images) */
.form-group:nth-child(1) input { 
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="%23999"><path d="M12 2a5 5 0 1 0 5 5 5 5 0 0 0-5-5zm0 8a3 3 0 1 1 3-3 3 3 0 0 1-3 3zm9 11v-1a7 7 0 0 0-7-7h-4a7 7 0 0 0-7 7v1h2v-1a5 5 0 0 1 5-5h4a5 5 0 0 1 5 5v1z"/></svg>');
    background-repeat: no-repeat;
    background-position: 97% center;
    background-size: 24px;
}

.form-group:nth-child(2) input { 
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="%23999"><path d="M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2zm0 4.7-8 5.3-8-5.3V6l8 5.3 8-5.3z"/></svg>');
    background-repeat: no-repeat;
    background-position: 97% center;
    background-size: 24px;
}

.form-submit {
    text-align: center;
    margin-top: 2rem;
}

.form-btn--primary {
    background: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background 0.3s ease;
    width: 100%;
    max-width: 300px;
    display: block;
    margin: 2rem auto 0;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.form-btn--primary:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.3);
}

/* Loading State */
.form-btn--primary.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Success/Error Messages */
.form-feedback {
    text-align: center;
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 5px;
    display: none;
}

.form-feedback.success {
    background: #d4edda;
    color: #155724;
}

.form-feedback.error {
    background: #f8d7da;
    color: #721c24;
}


/* ===== ANIMATIONS ===== */
@keyframes pulseWave {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0.8;
        border-color: var(--accent-color);
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
        border-color: rgba(255, 107, 0, 0.1);
    }
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0); 
    }
    50% { 
        transform: translateY(-15px); 
    }
}

/* ===== RESPONSIVE STYLES ===== */

/* Tablet - 992px and below */
@media (max-width: 992px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-container {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .form-section h2 {
        font-size: 2rem;
    }
    
    .map h2 {
        font-size: 1.8rem;
    }
    
    .signals-container {
        width: 350px;
        height: 350px;
    }
    
    .signal-center {
        width: 80px;
        height: 80px;
        padding: 15px;
    }
    
    .contact-float {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .wave-1 { width: 80px; height: 80px; }
    .wave-2 { width: 150px; height: 150px; }
    .wave-3 { width: 220px; height: 220px; }
    .wave-4 { width: 290px; height: 290px; }
}

/* Mobile - 768px and below */
@media (max-width: 768px) {
    .contact-info {
        padding: 4rem 0;
    }
    
    .contact-info__grid {
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .contact-info__card {
        padding: 1.5rem;
    }
    
    .contact-info__card h3 {
        font-size: 1.3rem;
    }
    
    .form-section {
        padding: 4rem 0;
    }
    
    .form-section h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .form-container {
        padding: 1.5rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.8rem 1rem;
    }
    
    .form-btn--primary {
        max-width: 250px;
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .signals-container {
        width: 280px;
        height: 280px;
    }
    
    .signal-center {
        width: 60px;
        height: 60px;
        padding: 12px;
    }
    
    .contact-float {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .contact-float i {
        font-size: 1rem;
    }
    
    .float-1 { top: 10%; left: 5%; }
    .float-2 { bottom: 15%; right: 5%; }
    .float-3 { top: 35%; right: 0; }
    
    .wave-1 { width: 60px; height: 60px; }
    .wave-2 { width: 120px; height: 120px; }
    .wave-3 { width: 180px; height: 180px; }
    .wave-4 { width: 240px; height: 240px; }
}

/* Small Mobile - 576px and below */
@media (max-width: 576px) {
    .contact-info__grid {
        grid-template-columns: 1fr;
        max-width: 350px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .contact-info__card {
        width: 100%;
    }
    
    .form-section h2 {
        font-size: 1.6rem;
    }
    
    .form-container {
        padding: 1.2rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.7rem 0.9rem;
        font-size: 0.95rem;
    }
    
    .form-btn--primary {
        max-width: 100%;
        width: 100%;
    }
    
    .signals-container {
        width: 240px;
        height: 240px;
    }
    
    .signal-center {
        width: 50px;
        height: 50px;
        padding: 10px;
    }
    
    .contact-float {
        padding: 4px 10px;
        font-size: 0.7rem;
        gap: 5px;
    }
    
    .contact-float i {
        font-size: 0.8rem;
    }
    
    .wave-1 { width: 50px; height: 50px; }
    .wave-2 { width: 100px; height: 100px; }
    .wave-3 { width: 150px; height: 150px; }
    .wave-4 { width: 200px; height: 200px; }
}

/* Extra Small Mobile - 480px and below */
@media (max-width: 480px) {
    .contact-info__grid {
        max-width: 300px;
    }
    
    .signals-container {
        width: 200px;
        height: 200px;
    }
    
    .signal-center {
        width: 45px;
        height: 45px;
        padding: 8px;
    }
    
    .contact-float {
        padding: 3px 8px;
        font-size: 0.65rem;
    }
    
    .wave-1 { width: 45px; height: 45px; }
    .wave-2 { width: 85px; height: 85px; }
    .wave-3 { width: 125px; height: 125px; }
    .wave-4 { width: 165px; height: 165px; }
    
    .float-1 { 
        top: 5%; 
        left: 0; 
    }
    .float-2 { 
        bottom: 10%; 
        right: 0; 
    }
    .float-3 { 
        top: 30%; 
        right: -5%; 
    }
}

/* ===== REDUCED MOTION PREFERENCE ===== */
@media (prefers-reduced-motion: reduce) {
    .signal-wave,
    .contact-float {
        animation: none !important;
    }
    
    .contact-info__card:hover {
        transform: none;
    }
    
    .form-container:hover {
        transform: none;
    }
}

/* Enhanced Option 4 CSS */
.portal-container {
    position: relative;
    width: 500px; /* Increased from 400px */
    height: 500px;
    margin: 0 auto;
    perspective: 1200px;
}

/* Portal Rings - Enhanced */
.portal-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    animation: rotatePortal 10s linear infinite;
    box-shadow: 0 0 30px rgba(42, 93, 187, 0.3);
}

.ring-1 {
    width: 350px;
    height: 350px;
    border: 4px solid rgba(42, 93, 187, 0.4);
    border-top-color: var(--accent-color);
    border-bottom-color: var(--accent-color);
    animation-duration: 20s;
}

.ring-2 {
    width: 300px;
    height: 300px;
    border: 3px dashed rgba(255, 107, 0, 0.4);
    border-left-color: var(--primary-color);
    border-right-color: var(--primary-color);
    animation-duration: 15s;
    animation-direction: reverse;
}

.ring-3 {
    width: 250px;
    height: 250px;
    border: 4px dotted rgba(255, 255, 255, 0.3);
    border-top-color: var(--primary-light);
    border-bottom-color: var(--primary-light);
    animation-duration: 12s;
}

.ring-4 {
    width: 200px;
    height: 200px;
    border: 2px solid rgba(42, 93, 187, 0.2);
    border-left: 4px solid var(--accent-color);
    animation-duration: 8s;
    animation-direction: reverse;
}

.ring-5 {
    width: 150px;
    height: 150px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-right: 4px solid var(--accent-color);
    animation-duration: 10s;
}

/* Portal Core - Enhanced */
.portal-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle at 30% 30%, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    box-shadow: 0 0 60px var(--primary-color);
    border: 3px solid var(--accent-color);
}

.portal-core i {
    font-size: 3rem;
    color: white;
    animation: pulse 2s ease-in-out infinite;
}

.core-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    animation: corePulse 2s ease-out infinite;
    opacity: 0.5;
}

/* Portal Icons - BIGGER and with labels */
.portal-icon {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 15;
    animation: floatIcon 4s ease-in-out infinite;
    cursor: pointer;
    transition: all 0.3s ease;
}

.icon-wrapper {
    width: 70px; /* Bigger */
    height: 70px; /* Bigger */
    background: rgba(42, 93, 187, 0.25);
    backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 107, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(42, 93, 187, 0.3);
}

.portal-icon i {
    font-size: 2rem; /* Bigger */
    color: var(--accent-color);
    transition: all 0.3s ease;
}

.icon-label {
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 8px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.portal-icon:hover {
    z-index: 30;
}

.portal-icon:hover .icon-wrapper {
    transform: scale(1.2);
    background: var(--primary-color);
    border-color: white;
    box-shadow: 0 0 40px var(--accent-color);
}

.portal-icon:hover i {
    color: white;
    transform: scale(1.1);
}

.portal-icon:hover .icon-label {
    opacity: 1;
    transform: translateY(0);
    background: var(--accent-color);
    border-color: white;
}

.icon-1 { top: 15%; left: 15%; animation-delay: 0s; }
.icon-2 { top: 10%; right: 15%; animation-delay: 0.4s; }
.icon-3 { bottom: 15%; right: 10%; animation-delay: 0.8s; }
.icon-4 { bottom: 10%; left: 15%; animation-delay: 1.2s; }
.icon-5 { top: 5%; left: 45%; animation-delay: 1.6s; }
.icon-6 { top: 40%; right: 5%; animation-delay: 2s; }
.icon-7 { bottom: 40%; left: 5%; animation-delay: 2.4s; }
.icon-8 { bottom: 0%; right: 45%; animation-delay: 2.8s; }

/* Floating Particles */
.portal-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: floatParticle 8s linear infinite;
    opacity: 0;
    box-shadow: 0 0 15px var(--accent-color);
}

.particle-1 { top: 20%; left: 20%; animation-duration: 6s; animation-delay: 0s; }
.particle-2 { top: 80%; left: 30%; animation-duration: 7s; animation-delay: 1s; }
.particle-3 { top: 40%; right: 15%; animation-duration: 8s; animation-delay: 2s; }
.particle-4 { bottom: 20%; right: 25%; animation-duration: 9s; animation-delay: 3s; }
.particle-5 { top: 60%; left: 10%; animation-duration: 10s; animation-delay: 4s; }
.particle-6 { bottom: 30%; left: 40%; animation-duration: 11s; animation-delay: 5s; }

/* Animations */
@keyframes rotatePortal {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes corePulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.5); opacity: 0; }
}

@keyframes floatParticle {
    0% { transform: translate(0, 0) scale(1); opacity: 0; }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% { transform: translate(100px, -100px) scale(0.5); opacity: 0; }
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 992px) {
    .portal-container {
        width: 400px;
        height: 400px;
    }
    
    .ring-1 { width: 300px; height: 300px; }
    .ring-2 { width: 260px; height: 260px; }
    .ring-3 { width: 220px; height: 220px; }
    .ring-4 { width: 180px; height: 180px; }
    .ring-5 { width: 140px; height: 140px; }
    
    .icon-wrapper {
        width: 60px;
        height: 60px;
    }
    
    .portal-icon i {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .portal-container {
        width: 350px;
        height: 350px;
    }
    
    .ring-1 { width: 260px; height: 260px; }
    .ring-2 { width: 220px; height: 220px; }
    .ring-3 { width: 180px; height: 180px; }
    .ring-4 { width: 140px; height: 140px; }
    .ring-5 { width: 100px; height: 100px; }
    
    .portal-core {
        width: 80px;
        height: 80px;
    }
    
    .portal-core i {
        font-size: 2.2rem;
    }
    
    .icon-wrapper {
        width: 55px;
        height: 55px;
    }
    
    .portal-icon i {
        font-size: 1.4rem;
    }
    
    .icon-label {
        font-size: 0.7rem;
        padding: 3px 6px;
    }
    
    .icon-1 { top: 10%; left: 10%; }
    .icon-2 { top: 8%; right: 10%; }
    .icon-3 { bottom: 10%; right: 8%; }
    .icon-4 { bottom: 8%; left: 10%; }
}

@media (max-width: 576px) {
    .portal-container {
        width: 300px;
        height: 300px;
    }
    
    .ring-1 { width: 220px; height: 220px; }
    .ring-2 { width: 180px; height: 180px; }
    .ring-3 { width: 140px; height: 140px; }
    .ring-4 { width: 100px; height: 100px; }
    .ring-5 { width: 60px; height: 60px; }
    
    .portal-core {
        width: 60px;
        height: 60px;
    }
    
    .portal-core i {
        font-size: 1.8rem;
    }
    
    .icon-wrapper {
        width: 45px;
        height: 45px;
    }
    
    .portal-icon i {
        font-size: 1.2rem;
    }
    
    .icon-label {
        display: none; /* Hide labels on very small screens */
    }
}