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

body {
    font-family: 'Inter', 'Helvetica Neue', 'Arial', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #2c3e50;
}

#backgroundCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.2;
}

.contact-container {
    width: 100%;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.08),
        0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 50px;
    position: relative;
    z-index: 10;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-wrapper {
    text-align: center;
}

h1 {
    color: #1a2b3c;
    margin-bottom: 40px;
    font-size: 2.3rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    position: relative;
}

h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #3498db;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    max-height: 400px;  
    overflow-y: auto;   
    padding-right: 15px; 
}

.info-item {
    background: rgba(255, 255, 255, 1);
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.info-item:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 10px 20px rgba(0, 0, 0, 0.1),
        0 6px 10px rgba(0, 0, 0, 0.05);
    border-color: rgba(52, 152, 219, 0.2);
}

.info-item i {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #3498db;
    opacity: 0.8;
}

.info-item h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.info-item p {
    color: #34495e;
    font-weight: 400;
    font-size: 0.95rem;
}

.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    z-index: 1000;
    transition: opacity 0.3s ease;
}

.loader {
    width: 60px;
    height: 60px;
    position: relative;
    perspective: 200px;
}

.loader::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 50%;
    top: 0;
    left: 0;
    animation: shadow 1.5s ease-in-out infinite;
}

.loader-inner {
    width: 100%;
    height: 100%;
    background: #3498db;
    border-radius: 50%;
    animation: rotate 1.5s linear infinite;
    transform-origin: center center;
    position: relative;
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

@keyframes rotate {
    0% {
        transform: rotateX(0deg) rotateY(0deg);
    }
    50% {
        transform: rotateX(180deg) rotateY(0deg);
    }
    100% {
        transform: rotateX(180deg) rotateY(180deg);
    }
}

@keyframes shadow {
    0%, 100% {
        transform: scale(0.7);
        opacity: 0.4;
    }
    50% {
        transform: scale(0.5);
        opacity: 0.2;
    }
}

@media (max-width: 600px) {
    .contact-info {
        grid-template-columns: 1fr;
        max-height: 300px;  
    }

    .contact-container {
        padding: 30px 20px;
        margin: 20px 10px;
    }

    h1 {
        font-size: 1.8rem;
    }
}