@font-face {
    font-family: "Dancing";
    src: url("fonts/DancingScript-Regular.ttf");
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
    height: 100vh;
    overflow: hidden;
    background-image: url("assets/images/imgg.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 45% 5%;
    background-attachment: scroll;
    color: white;
    background-color: #9fabbb;
    position: relative;
}

a {
    color: white;
    text-decoration: none;
}

.menubar.active > .logo > h5 {
    font-size: clamp(0.8rem, 2vw, 1rem);
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    padding: 20px;
}

/* .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(80, 79, 79, 0.6);
  z-index: 1;
} */

.logo-container {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 1rem;
    display: flex;
    animation: fadeIn 0.5s ease-out;
}

@media screen and (max-width: 768px) {
    .logo-container {
        top: 0.5rem;
        left: 0.5rem;
        flex-direction: column;
        gap: 0px;
    }

    .title-container h5 {
        justify-self: start;
    }
}

.title-container {
    display: flex;
    flex-direction: column;
    align-items: start;
}

.title-container h2 {
    font-size: clamp(0.5rem, 5vw, 1.5rem);
    font-weight: 700;
    color: #ca0303;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.473);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    font-family: "Dancing", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-optical-sizing: auto;
}

.title-container h5 {
    justify-self: flex-end;
}

.logo {
    width: clamp(100px, 8vw, 160px);
    height: clamp(100px, 8vw, 160px);
    /* background: rgba(255, 255, 255, 0.9); */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: #333;
}

.logo img {
    width: clamp(90px, 6vw, 150px);
}

.company-title {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    text-transform: uppercase;
}

.nav-btn {
    padding: clamp(0.5rem, 2vw, 0.75rem) clamp(1rem, 3vw, 1.5rem);
    border: none;
    background: rgba(255, 255, 255, 0.8);
    color: rgb(0, 0, 0);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: absolute;
    z-index: 2;
    width: clamp(250px, 20vw, 280px);
    font-size: clamp(0.8rem, 2vw, 1rem);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

/* Desktop Positions */
@media (min-width: 768px) {
    #about-btn {
        top: 35%;
        left: 5%;
    }

    #ongoing-btn {
        top: 45%;
        left: 5%;
    }

    #completed-btn {
        top: 55%;
        left: 5%;
    }

    #sites-btn {
        top: 65%;
        left: 5%;
    }
}

/* Tablet Positions */
@media (min-width: 481px) and (max-width: 767px) {
    #about-btn {
        top: 30%;
        left: 10%;
    }

    #completed-btn {
        top: 50%;
        left: 10%;
    }

    #ongoing-btn {
        top: 40%;
        left: 10%;
    }

    #sites-btn {
        top: 60%;
        left: 10%;
    }
}

/* Mobile Positions */
@media (max-width: 480px) {
    .logo-container {
        top: 0.5rem;
        left: 0.5rem;
    }

    #about-btn {
        top: 30%;
        left: 50%;
        transform: translateX(-50%);
    }

    #ongoing-btn {
        top: 40%;
        left: 50%;
        transform: translateX(-50%);
    }

    #completed-btn {
        top: 50%;
        left: 50%;
        transform: translateX(-50%);
    }

    #sites-btn {
        top: 60%;
        left: 50%;
        transform: translateX(-50%);
    }

    #about-btn:hover,
    #ongoing-btn:hover,
    #completed-btn:hover,
    #sites-btn:hover {
        transform: translateX(-50%) scale(1.1);
    }
}

.contact-info a {
    display: inline-block;
    margin: 0.5rem 0;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    /* Glass-like transparency */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    backdrop-filter: blur(10px);
    box-shadow: rgba(255, 255, 255, 0.25) 0px 4px 6px inset,
        rgba(0, 0, 0, 0.3) 0px 4px 10px;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    max-width: 260px;
    /* Set maximum width */
    text-align: center;
    /* Center the text */
    word-wrap: break-word;
    /* Ensure long words wrap */
}

.contact-info a:hover {
    background: rgba(255, 255, 255, 0.3);
    /* Slightly less transparent */
    transform: translateY(-3px);
    /* Hover lift effect */
    box-shadow: rgba(255, 255, 255, 0.4) 0px 4px 6px inset,
        rgba(0, 0, 0, 0.4) 0px 6px 12px;
}

.contact-info a:active {
    transform: translateY(0);
    /* Remove lift on click */
    box-shadow: rgba(255, 255, 255, 0.2) 0px 2px 4px inset,
        rgba(0, 0, 0, 0.5) 0px 2px 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-card {
        padding: 1.5rem;
    }

    .contact-info a {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
}

.contact-card {
    position: absolute;
    padding: clamp(1rem, 3vw, 2rem);
    border-radius: 15px;
    z-index: 2;
    text-align: end;
    animation: slideIn 0.5s ease-out 1s backwards;
}

/* Contact card positioning for different screens */
@media (min-width: 768px) {
    .contact-card {
        bottom: 1rem;
        right: 1rem;
        max-width: 500px;
    }
}

@media (max-width: 1120px) {
    .contact-card {
        top: auto;
        text-align: end;
        bottom: 1rem;
        left: 50%;
        transform: translateX(-20%);
        width: 90%;
    }
}

@media screen and (max-width: 768px) {
    .contact-card {
        transform: translate(-50%);
    }
}

.contact-card h2 {
    margin-bottom: 1rem;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-info a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: clamp(0.5rem, 1vw, 0.8rem);
}

.nav-btn {
    animation: fadeIn 0.5s ease-out backwards;
}

#about-btn {
    animation-delay: 0.2s;
}
#ongoing-btn {
    animation-delay: 0.6s;
}
#completed-btn {
    animation-delay: 0.4s;
}

#sites-btn {
    animation-delay: 0.8s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mobile slideIn animation adjustment */
@media (max-width: 767px) {
    /*@keyframes slideIn {*/
    /*    from {*/
    /*        opacity: 0;*/
    /*        transform: translate(-50%, 50px);*/
    /*    }*/
    /*    to {*/
    /*        opacity: 1;*/
    /*        transform: translate(-50%, 0);*/
    /*    }*/
    /*}*/
}

@media (max-width: 400px) {
    .logo-container {
        top: 0.5rem;
        left: 0.5rem;
    }

    #about-btn {
        top: 25%;
        left: 50%;
        transform: translateX(-50%);
    }

    #ongoing-btn {
        top: 31%;
        left: 50%;
        transform: translateX(-50%);
    }

    #completed-btn {
        top: 38%;
        left: 50%;
        transform: translateX(-50%);
    }

    #sites-btn {
        top: 44%;
        left: 50%;
        transform: translateX(-50%);
    }

    .title-container h4 {
        font-size: clamp(0.5rem, 3vw, 1rem);
        padding-left: 100px;
    }

    .title-container h1 {
        font-size: clamp(0.75rem, 4vw, 2rem);
        padding-left: 25px;
    }

    .title-container h2 {
        font-size: clamp(1rem, 3vw, 2rem);
        padding-left: 25px;
    }

    .contact-card {
        bottom: 6.5rem;
        left: 55%;
        transform: translate(-45%);
    }

    .contact-info a {
        font-size: 0.8rem;
    }

    #about-btn:hover,
    #ongoing-btn:hover,
    #completed-btn:hover,
    #sites-btn:hover {
        transform: translateX(-50%) scale(1.1);
    }
}

/* Particle container */
/* .particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(255, 255, 255, 0.526);
  border-radius: 50%;
  pointer-events: none;
} */
/* 
.nav-btn::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transform: rotate(45deg);
  animation: shimmer 5s infinite;
}

.nav-btn:hover::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.051) 0%,
    transparent 70%
  );
  opacity: 0;
  animation: pulse 1s infinite;
} */

/* .logo::after {
    content: "";
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20%;
    animation: logoPulse 2s infinite;
} */

@media screen and (max-width: 768px) {
    .logo::after {
        display: none;
    }
}

/* Enhanced contact card */
/*.contact-card::before {*/
/*    content: "";*/
/*    position: absolute;*/
/*    top: 0;*/
/*    left: -100%;*/
/*    width: 100%;*/
/*    height: 100%;*/
/*    animation: cardShimmer 3s infinite;*/
/*}*/

/* New Animations */
@keyframes shimmer {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    50% {
        transform: translateX(100%) rotate(45deg);
    }
    100% {
        transform: translateX(-100%) rotate(45deg);
    }
}

@keyframes pulse {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1.5);
    }
}

@keyframes logoPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.5;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes cardShimmer {
    0% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: -100%;
    }
}

@keyframes gradientShift {
    0% {
        background-color: rgba(80, 79, 79, 0.6);
    }
    100% {
        background-color: rgba(60, 59, 59, 0.8);
    }
}

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

/* Responsive adjustments for animations */
@media (max-width: 768px) {
    .particle {
        width: 2px;
        height: 2px;
    }

    .logo::after {
        animation: logoFlow 3s infinite;
    }

    @keyframes logoFlow {
        0% {
            transform: scale(1) rotate(0deg);
        }
        50% {
            transform: scale(1.1) rotate(180deg);
        }
        100% {
            transform: scale(1) rotate(360deg);
        }
    }
}
