/* ===== GLOBAL STYLES ===== */
:root {
    --primary-color: #0056b3;
    --secondary-color: #003366;
    --accent-color: #007bff;
    --white-color: #ffffff;
    --light-gray: #f8f9fa;
    --dark-gray: #343a40;
    --text-color: #212529;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--white-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== MENU STYLES ===== */
.sticky-menu {
    background-color: var(--white-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    height: 90px;
}

.sticky-menu .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
    vertical-align: middle;
}

.logo:hover {
    opacity: 0.9;
    transform: scale(1.02);
    transition: all 0.3s ease;
}

.nav-list {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-list li {
    margin-left: 40px;
    position: relative;
}

.nav-list a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    transition: var(--transition);
    padding: 10px 0;
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--primary-color);
}

.nav-list a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    animation: underline 0.3s ease forwards;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===== CONTACT HERO ===== */
.contact-hero {
    background: linear-gradient(rgba(0, 86, 179, 0.8), rgba(0, 51, 102, 0.8)), url('../img/about-bg.jpg');
    background-size: cover;
    background-position: center;
    height: 40vh;
    min-height: 450px;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white-color);
    margin-top: 90px;
    position: relative;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.contact-hero .container {
    position: relative;
    z-index: 2;
}

.contact-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease;
}

.contact-hero p {
    font-size: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease 0.3s forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== CONTACT CARDS ===== */
.contact-card {
    background-color: var(--white-color);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 25px 20px;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.contact-card i {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    background: var(--light-gray);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.contact-card .contact-content {
    text-align: center;
    width: 100%;
}

.contact-card .contact-content h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
    color: var(--secondary-color);
    font-weight: 600;
}

.contact-card .contact-content p,
.contact-card .contact-content a {
    margin: 8px 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    background-color: var(--light-gray);
}

.contact-card:hover i {
    background-color: var(--primary-color);
    color: var(--white-color);
    transform: scale(1.1);
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    padding: 80px 0;
    background-color: var(--white-color);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 123, 255, 0.02) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    align-items: stretch;
    min-height: 400px;
    position: relative;
    z-index: 2;
}

@media (max-width: 1200px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .contact-card {
        padding: 20px 15px;
        min-height: auto;
    }

    .contact-card i {
        font-size: 1.5rem;
        width: 45px;
        height: 45px;
        margin-bottom: 12px;
    }

    .contact-card .contact-content h3 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }

    .contact-card .contact-content p,
    .contact-card .contact-content a {
        font-size: 1rem;
        margin: 4px 0;
    }
}

@media (max-width: 576px) {
    .contact-card {
        padding: 15px 12px;
    }

    .contact-card i {
        font-size: 1.3rem;
        width: 40px;
        height: 40px;
        margin-bottom: 10px;
    }

    .contact-card .contact-content h3 {
        font-size: 1rem;
        margin-bottom: 6px;
    }

    .contact-card .contact-content p,
    .contact-card .contact-content a {
        font-size: 0.9rem;
        line-height: 1.4;
        margin: 3px 0;
    }
}

.contact-info {
    padding: 20px 0;
    animation: slideInLeft 0.8s ease forwards;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 15px;
    transition: var(--transition);
}

.contact-info h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
}

.contact-info:hover h2 {
    color: var(--primary-color);
}

.contact-item {
    display: flex;
    margin-bottom: 30px;
    padding: 12px 0;
    transition: var(--transition);
    border-radius: 6px;
    margin-bottom: 20px;
    padding-left: 10px;
}

.contact-item:hover {
    background-color: rgba(0, 123, 255, 0.05);
    transform: translateX(10px);
}

.contact-item i {
    color: var(--accent-color);
    margin-right: 15px;
    font-size: 1.5rem;
    width: 20px;
    text-align: center;
    margin-top: 5px;
    transition: var(--transition);
}

.contact-item:hover i {
    transform: scale(1.2);
    color: var(--primary-color);
}

.contact-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.contact-content p,
.contact-content a {
    color: var(--text-color);
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
    transition: var(--transition);
    font-size: 1.1rem;
    line-height: 1.8;
}

.contact-content a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.map-link {
    color: var(--primary-color);
    font-weight: 600;
}

/* ===== CONTACT FORM ===== */
.contact-form {
    background-color: var(--light-gray);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    animation: slideInRight 0.8s ease forwards;
}

.contact-form::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 ease;
}

.contact-form:hover::before {
    left: 100%;
}

.contact-form:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.contact-form h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 15px;
    transition: var(--transition);
}

.contact-form h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
}

.contact-form:hover h2 {
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    transition: var(--transition);
    font-size: 1.1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 15px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.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 ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* ===== MAP SECTION ===== */
.map-section {
    height: 500px;
    width: 100%;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.map-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.map-section iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(20%);
    transition: var(--transition);
}

.map-section:hover iframe {
    filter: grayscale(0%);
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--dark-gray);
    color: var(--white-color);
    padding: 60px 0 0;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 10px;
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--accent-color);
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-col p {
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--white-color);
    padding-left: 5px;
}

.footer-col i {
    margin-right: 10px;
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ===== SCROLL ANIMATIONS ===== */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Loading animation for images */
.contact-form,
.contact-info {
    opacity: 0;
    animation: fadeIn 0.8s ease 0.3s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 992px) {
    .menu-toggle {
        display: block;
        font-size: 2rem;
    }

    .nav-list {
        display: none;
        position: fixed;
        top: 90px;
        left: 0;
        width: 100%;
        background: var(--white-color);
        padding: 20px 0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        z-index: 1000;
    }

    .nav-list.active {
        display: flex;
    }

    .nav-list li {
        margin: 10px 0;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .contact-card {
        padding: 32px 18px;
        min-height: 120px;
    }
    .contact-card i {
        font-size: 2rem;
    }

    .contact-hero h1 {
        font-size: 2.8rem;
    }

    .contact-hero p {
        font-size: 1.3rem;
    }

    .contact-info h2,
    .contact-form h2 {
        font-size: 2.2rem;
    }

    .sticky-menu {
        padding: 15px 0;
        height: 80px;
    }

    .contact-hero {
        margin-top: 80px;
        min-height: 30px;
        height: 35vh;
    }
}

@media (max-width: 768px) {
    .contact-card {
        padding: 24px 10px;
        min-height: 100px;
    }
    .contact-card i {
        font-size: 1.7rem;
    }
    .contact-section {
        padding: 60px 0;
    }

    .contact-hero {
        height: 25vh;
        min-height: 300px;
    }

    .contact-hero h1 {
        font-size: 2.5rem;
    }

    .contact-hero p {
        font-size: 1.2rem;
    }

    .contact-info h2,
    .contact-form h2 {
        font-size: 2rem;
    }

    .contact-content p,
    .contact-content a {
        font-size: 1rem;
    }

    .contact-item {
        margin-bottom: 25px;
    }

    .form-group input,
    .form-group textarea {
        font-size: 1rem;
    }

    .btn {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .map-section {
        height: 400px;
    }
}

@media (max-width: 576px) {
    .contact-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px 6vw;
        min-height: 80px;
        margin-bottom: 8px;
    }
    .contact-card i {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }
    .contact-hero h1 {
        font-size: 2rem;
    }

    .contact-hero p {
        font-size: 1rem;
    }

    .contact-info h2,
    .contact-form h2 {
        font-size: 1.8rem;
    }

    .contact-form {
        padding: 30px 20px;
    }

    .contact-info {
        padding: 0;
    }

    .contact-item {
        flex-direction: column;
        padding: 10px 0;
    }

    .contact-item i {
        margin-bottom: 10px;
        font-size: 1.3rem;
    }

    .contact-content p,
    .contact-content a {
        font-size: 0.95rem;
    }

    .form-group label {
        font-size: 0.95rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .map-section {
        height: 300px;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .sticky-menu,
    .footer {
        display: none;
    }
    
    .contact-hero {
        margin-top: 0;
        height: auto;
        padding: 40px 0;
    }
    
    .contact-section {
        page-break-inside: avoid;
        padding: 40px 0;
    }
}