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

body {
    font-family: "Poppins", sans-serif;
    background-color: #000;
    color: #fff;
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    z-index: 1000;
}

nav .navbar-brand {
    font-family: "Playfair Display", serif;
    font-size: 1.6rem;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

nav ul li {
    position: relative; /* Needed for dropdown positioning */
}

nav ul li a {
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    color: #fff;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: gray;
}

/* Dropdown Menu */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%; /* right below parent */
    left: 0;
    background: #000;
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
    min-width: 180px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-radius: 6px;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu li a {
    display: block;
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
    color: gray;
    transition: background 0.3s ease, color 0.3s ease;
}

.dropdown-menu li a:hover {
    background: #000;
    color: white;
}

/* Show dropdown on hover (desktop) */
nav ul li.dropdown:hover .dropdown-menu {
    display: block;
}

/* Hamburger Button (hidden by default) */
.navbar-toggle {
    display: none;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: white;
}

/* Responsive Navbar */
@media (max-width: 768px) {
    .navbar-toggle {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #000;
        padding: 1rem 0;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        z-index: 999;
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        text-align: center;
        margin: 0.5rem 0;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        border-radius: 0;
        background: transparent;
        padding: 0;
    }

    .dropdown-menu li a {
        padding: 0.6rem 1rem;
    }

    nav ul li.dropdown .dropdown-menu {
        display: none;
    }

    nav ul li.dropdown.active .dropdown-menu {
        display: block;
    }
}

.contact-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 6rem;
    position: relative;
}

.contact-section h1 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 2rem;
    color: #fff;
}

/* Wrapper for contact + softbox */
.contact-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.contact-container {
    display: flex;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(6px);
    position: relative;
    z-index: 2;
}

/* Left side form */
.contact-form {
    flex: 2;
    padding: 2rem;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    background: transparent;
}

.contact-form label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    color: #fff;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: none;
    border-bottom: 1px solid #000;
    padding: 0.5rem 0;
    margin-bottom: 1.5rem;
    background: transparent;
    font-size: 1rem;
    outline: none;
}

.contact-form button {
    display: inline-block;
    background: #000;
    color: #fff;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.contact-form button:hover {
    background: #444;
}

/* Right side info */
.contact-info {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: transparent;
}

.contact-info p {
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    color: #555;
}

.contact-info strong {
    font-weight: bold;
    font-size: 1rem;
    color: #fff;
}

.social-icons {
    list-style: none;
    display: flex;
    gap: 15px;
    padding: 0;
    margin-top: 20px;
}

.social-icons li a {
    color: #fff;
    font-size: 20px;
    transition: color 0.3s ease;
}

.social-icons li a:hover {
    color: #fff;
}

/* Bottom image */
.contact-image {
    position: absolute;
    bottom: -15px;
    left: -100px;
    z-index: 1;
}

.contact-image img {
    width: 300px;
    height: auto;
    opacity: 0.95;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
    }

    .contact-form {
        border-right: none;
        border-bottom: 1px solid #ccc;
    }
}

/* Extra responsive improvements */
@media (max-width: 768px) {
    .contact-section {
        padding: 3rem 1.5rem;
        padding-top: 7rem;
    }

    .contact-wrapper {
        flex-direction: column;
        gap: 1.5rem;
    }

    .contact-container {
        flex-direction: column;
        width: 100%;
    }

    .contact-form {
        border-right: none;
        border-bottom: 1px solid #ccc;
        padding: 1.5rem;
    }

    .contact-info {
        padding: 1.5rem;
        text-align: center;
        align-items: center;
    }

    .social-icons {
        justify-content: center;
    }

    .contact-image {
        position: static;
        margin-top: 1.5rem;
        text-align: center;
    }

    .contact-image img {
        width: 200px;
    }
}

@media (max-width: 480px) {
    .contact-section h1 {
        font-size: 2rem;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 0.9rem;
    }

    .contact-form button {
        width: 100%;
        padding: 0.8rem;
        font-size: 0.95rem;
    }
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .contact-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .softbox-image {
        margin-top: 2rem;
    }
}

/* Floating Message Box */
#formMessage {
    position: fixed;
    top: 60px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 1rem;
    z-index: 9999;
    color: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transform: translateY(-20px); 
    transition: opacity 0.5s ease, transform 0.5s ease;
    opacity: 0;
}

#formMessage.success {
    background-color: #08979d;
    border: 2px solid #444;
}

#formMessage.error {
    background-color: #08979d;
    border: 2px solid #444;
}

#formMessage.show {
  opacity: 1;
  transform: translateY(0); 
}

/* Mobile adjustment */
@media (max-width: 480px) {
  #formMessage {
    top: 50px;
    right: 10px;
    width: auto;
    max-width: 90%;
    font-size: 0.9rem;
    padding: 12px 20px;
  }
}

/* Global Fade-In Up Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Footer Styles */
.footer {
    background-color: #000;
    padding: 20px 0;
    border-top: 1px solid #111;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content .logo {
    font-family: "Playfair Display", serif;
    font-size: 1.5em;
    font-weight: bold;
}

.footer-nav, .social-icons, .footer-bottom-nav {
    display: flex;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav a, .footer-bottom-nav a {
    text-decoration: none;
    color: #fff;
}

.footer-nav a:hover, .footer-bottom-nav a:hover {
    color: #444;
}

.social-icons {
    list-style: none;
    display: flex;
    gap: 15px;
    padding: 0;
    margin-top: 20px;
}

.social-icons li a {
    color: #fff;
    font-size: 20px;
    transition: color 0.3s ease;
}

.social-icons li a:hover {
    color: #444;;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 20px auto 0;
    padding: 0 20px;
    border-top: 1px solid #ddd;
    padding-top: 10px;
    font-size: 0.9em;
    color: #fff;
}

.footer-bottom-nav {
    gap: 15px;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-nav, .social-icons, .footer-bottom-nav {
        flex-direction: column;
        gap: 8px;
    }

    .footer-bottom-nav {
        margin-top: 15px;
    }
}

/* ✅ Inline Success & Error Messages (below form) */
#contactSuccess,
#contactError {
    display: none;
    font-weight: bold;
    margin-top: 1rem;
    font-size: 1rem;
}

#contactSuccess {
    color: #08979d;
}

#contactError {
    color: #08979d;
}

#contactSuccess.show,
#contactError.show {
    display: block;
    opacity: 0;
    animation: fadeIn 0.5s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* === FADE-IN AND SLIDE ANIMATIONS === */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translateY(-40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* === INITIAL STATE === */
nav,
.contact-section,
.contact-form,
.contact-info,
.footer {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

/* === ANIMATED STATES === */
nav.show {
  animation: fadeInDown 1s ease forwards;
}

.contact-section.show {
  animation: fadeInUp 1s ease forwards;
}

.contact-form.show {
  animation: fadeInUp 1.2s ease forwards;
}

.contact-info.show {
  animation: fadeInUp 1.4s ease forwards;
}

.footer.show {
  animation: fadeIn 1.2s ease forwards;
}
