/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background: #f0f3ff;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== Navbar ===== */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    position: relative;
}

/* Logo */
.logo img {
    height: 62px;
    width: 62px;
    max-width: 150px;
    border-radius: 50%;
    box-shadow: 3px 3px 10px rgba(0,0,0,0.3);
    animation: logo-bounce 2s infinite alternate ease-in-out;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.15) rotate(-3deg);
}

@keyframes logo-bounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(-10px); }
}

/* Nav Links */
.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    transition: all 0.3s ease;
}

.nav-links li a {
    text-decoration: none;
    color: #1a1aff;
    font-weight: 600;
    transition: color 0.3s ease, transform 0.3s ease;
}

.nav-links li a:hover {
    color: #ff6600;
    transform: scale(1.1);
}

/* Buttons */
.btn, .btn-hero {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(45deg, #1a1aff, #4d94ff);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn:hover, .btn-hero:hover {
    background: linear-gradient(45deg, #ff6600, #ff9933);
    box-shadow: 0 6px 20px rgba(255,102,0,0.5);
    transform: scale(1.05);
}

/* Burger menu */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 101;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: #1a1aff;
}

/* Close button */
.close-btn {
    display: none;
    position: fixed;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1100;
    color: white;
    background: #ff6600;
    border-radius: 50%;
    padding: 0.2rem 0.6rem;
    transition: transform 0.3s ease;
}

.close-btn:hover {
    transform: scale(1.2) rotate(90deg);
}

/* ===== Hero Section ===== */
.contact-hero {
    padding: 8rem 5% 4rem 5%;
    text-align: center;
    background: linear-gradient(135deg, #4d94ff, #1a1aff);
    color: #fff;
    overflow: hidden;
}

.contact-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    animation: slideFadeIn 1s ease forwards;
}

.contact-hero p {
    font-size: 1.3rem;
    animation: slideFadeIn 1.5s ease forwards;
}

@keyframes slideFadeIn {
    0% { opacity: 0; transform: translateY(50px);}
    100% { opacity: 1; transform: translateY(0);}
}

/* ===== Contact Main Section ===== */
.contact-main {
    padding: 4rem 5%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 3rem;
    flex-wrap: wrap;
}

.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    max-width: 1200px;
    width: 100%;
}

/* Contact Form */
.contact-form {
    flex: 1;
    min-width: 300px;
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    animation: fadeIn 1s ease forwards;
}

.contact-form h2 {
    margin-bottom: 1.5rem;
    color: #1a1aff;
}

.contact-form .form-field {
    margin-bottom: 1rem;
}

.contact-form input, 
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form input:focus, 
.contact-form textarea:focus {
    outline: none;
    border-color: #1a1aff;
    box-shadow: 0 0 10px rgba(26,26,255,0.3);
}

.contact-form button {
    margin-top: 1rem;
    width: 100%;
    cursor: pointer;
    font-size: 1.1rem;
    animation: pulse 2s infinite;
}

/* Pulse animation */
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 10px rgba(26,26,255,0.3);}
    50% { transform: scale(1.05); box-shadow: 0 0 20px rgba(26,26,255,0.5);}
    100% { transform: scale(1); box-shadow: 0 0 10px rgba(26,26,255,0.3);}
}

/* Contact Info */
.contact-info {
    flex: 1;
    min-width: 250px;
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    animation: fadeIn 1.2s ease forwards;
}

.contact-info h2 {
    margin-bottom: 1.5rem;
    color: #1a1aff;
}

.contact-info .info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.contact-info .info-item:hover {
    transform: translateX(5px);
}

.contact-info img {
    width: 35px;
    height: 35px;
}

/* Fade In Animation */
@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(20px);}
    100% { opacity: 1; transform: translateY(0);}
}

/* ===== Footer ===== */
footer {
    background: #1a1aff;
    color: #fff;
    padding: 2rem 5%;
    text-align: center;
    margin-top: 2rem;
    animation: fadeIn 1s ease forwards;
}

/* ===== Mobile Sidebar ===== */
@media (max-width: 768px) {
    .burger { display: flex; }

    .nav-links {
        position: fixed;
        top: 0;
        right: -200px;        /* hidden offscreen */
        height: 100vh;
        width: 180px;          /* thin sidebar */
        background: #1a1aff;
        flex-direction: column;
        padding: 5rem 1rem;
        gap: 2rem;
        box-shadow: -3px 0 15px rgba(0,0,0,0.2);
        transition: right 0.3s ease-in-out;
        z-index: 999;
    }

    .nav-links.nav-active { right: 0; }

    .nav-links li a {
        color: white;
        font-size: 1.2rem;
        opacity: 0;
        transform: translateX(30px);
        animation: navSlideIn 0.3s forwards;
    }

    .nav-links.nav-active li a:nth-child(1) { animation-delay: 0.1s; }
    .nav-links.nav-active li a:nth-child(2) { animation-delay: 0.2s; }
    .nav-links.nav-active li a:nth-child(3) { animation-delay: 0.3s; }
    .nav-links.nav-active li a:nth-child(4) { animation-delay: 0.4s; }
    .nav-links.nav-active li a:nth-child(5) { animation-delay: 0.5s; }

    @keyframes navSlideIn {
        0% { opacity: 0; transform: translateX(30px); }
        100% { opacity: 1; transform: translateX(0); }
    }

    .contact-main {
        flex-direction: column;
        gap: 2rem;
    }
}