.upper-section {
    position: relative;
    background: url('Assets/Img4.jpeg') no-repeat center center/cover;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    width: auto;
}

#animated3D {
    color: #fff;
    text-shadow: 3px 3px 0 #999, 6px 6px 0 #777;
    transition: transform 0.3s ease;
}

.upper-section h2 {
    font-size: 48px;
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 10px;
    color: aliceblue;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

.contact-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.contact-card {
    background: linear-gradient(to right, #000, #2e2e2e);
    border-radius: 12px;
    padding: 30px 20px;
    width: 250px;
    height: auto;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.contact-card i {
    font-size: 48px;
    color: #f57c00;
    margin-bottom: 15px;
}

#post {
    font-size: 15px;
}

#no {
    font-size: 13px;
}

.nameplate {
    display: flex;
    align-items: center;
    background: transparent;
    padding-bottom: 15px;
}

.circle {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: linear-gradient(145deg, #1f1f1f, #0a0a0a);
    border: 1px solid #ffcc00;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 10px #ffcc00;
    position: relative;
    z-index: 2;
}

.circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%
}

.panel {
    background: linear-gradient(145deg, #1b1b1b, #0f0f0f);
    margin-left: -50px;
    padding: 15px;
    padding-left: 60px;
    padding-right: 40px;
    border-radius: 20px 30px 30px 20px;
    border: 2px solid #ffcc00;
    box-shadow: 5px 5px 15px #000, inset -2px -2px 10px #ffcc00;
    position: relative;
    z-index: 1;
}

.panel h2 {
    color: #ffffff;
    margin: 0px;
    font-family: 'Orbitron', sans-serif;
    font-size: 17px;
    letter-spacing: 0.5px;
}

.main-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 40px 5%;
    gap: 40px;
}

.map {
    margin-top: 30px;
}

.main2,
.main1 {
    flex: 1 1 400px;
    background-color: #111;
    padding: 30px;
    border-radius: 10px;
    color: #fff;
}

.main1 {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main2 h2 {
    margin-bottom: 20px;
}

.main2 input,
.main2 textarea {
    width: 100%;
    margin-bottom: 15px;
    padding: 12px;
    border: none;
    border-radius: 5px;
}

.main2 button {
    background-color: #fff;
    color: #000;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
}

.main2 p {
    margin: 10px 0;
}

@media (max-width:768px) {
    .upper-section {
        position: relative;
        height: auto;
    }
    #animated3D {
        color: #fff;
        text-shadow: 2px 2px 0 #999, 1px 1px 0 #777;
        transition: transform 0.2s ease;
    }
    .upper-section h2 {
        font-size: 25px;
        padding: 10px;
        border-radius: 10px;
    }
}

@media(max-width:768px) {
    .contact-cards {
        flex-direction: row;
        gap: 10px;
    }
    .contact-card {
        border-radius: 12px;
        padding: 20px 15px;
        width: 130px;
        height: auto;
    }
    .contact-card i {
        font-size: 15px;
        margin-bottom: 5px;
    }
    .contact-card h2 {
        font-size: 15px;
    }
    .contact-card p {
        font-size: 8px;
    }
}

@media(max-width:768px) {
    .main-content {
        padding: 20px 5%;
        gap: 20px;
    }
    .main2,
    .main1 {
        flex: 1 1 200px;
        padding: 20px;
    }
    .main2 h2 {
        margin-bottom: 15px;
    }
    .main2 input,
    .main2 textarea {
        width: 100%;
        margin-bottom: 10px;
        padding: 10px;
        border-radius: 3px;
    }
    .map {
        position: relative;
        overflow: hidden;
        height: 200px;
        width: 300px;
        margin-top: 10px;
        border-radius: 10px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    }
    #post {
        font-size: 10px;
    }
    #no {
        font-size: 9px;
    }
    .nameplate {
        padding-bottom: 10px;
    }
    .circle {
        width: 100px;
        height: 100px;
    }
    .panel {
        margin-left: -30px;
        padding: 13px;
        border-radius: 15px 25px 25px 15px;
        padding-left: 50px;
        padding-right: 40px;
    }
    .panel h2 {
        font-size: 12px;
    }
}