/* Global Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Moneta Regular', serif;
    background-color: #292d2d;
    color: white;
    text-align: center;
}

section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 0;
    font-size: 2rem;
    scroll-margin-top: 120px;
    overflow: auto;
}

#hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: right;
    color: #ede8ea;
    text-shadow: 2px 2px 10px rgba(4, 4, 4, 0.8);
    width: 100%;
    padding: 20px;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 1.5rem;
    font-style: italic;
    color: #ffffff;
    text-shadow: 40px 40px 40px rgb(255, 255, 255);
}

#hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

#about, #portfolio, #contact {
    background: #ede8ea;
    padding: 20px;
    padding-top: 100px;
    color: #000;
}

.about-content h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

html {
    scroll-padding-top: 80px;
    scroll-behavior: smooth;
}


.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox-content {
    position: relative;
    text-align: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 80vh;
    display: none;
}

.lightbox iframe {
    width: 800px;
    height: 450px;
    display: none;
}

.close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    color: #ede8ea;
    cursor: pointer;
}

#prevBtn, #nextBtn {
    position: absolute;
    top: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 20px;
}

#prevBtn { left: 10px; }
#nextBtn { right: 10px; }

/* Button Styling */
.button {
    cursor: pointer;
    text-decoration: none !important;
    position: relative;
    padding: 10px 24px;
    font-size: 18px;
    color: #000;
    border: 2px solid rgb(0, 0, 0);
    border-radius: 34px;
    background-color: transparent;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
    overflow: hidden;
}

.button::before {
    content: '';
    position: absolute;
    inset: 0;
    margin: auto;
    width: 50px;
    height: 50px;
    border-radius: inherit;
    scale: 0;
    z-index: -1;
    background-color: #000;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
}

.button:hover::before {
    scale: 3;
}

.button:hover {
    color: #ede8ea;
    scale: 1.1;
    box-shadow: 0 0px 20px rgba(193, 163, 98, 0.4);
}

.button:active {
    scale: 1;
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

h2 {
    letter-spacing: 2px;
    font-size: 22px;
}

.contact-info {
    margin: 20px 0;
    line-height: 1.8;
}

a {
    text-decoration: none;
    font-weight: bold;
    color: #000;
}

.social-icons {
    margin: 20px 0;
}

.social-icons a img {
    width: 30px;
    margin: 0 10px;
}

.footer-text {
    font-size: 12px;
    color: #666;
    margin-top: 20px;
}

footer {
    background: linear-gradient(to bottom, #bcbabb, #ede8ea);
    color: #000000;
    text-align: center;
    padding: 20px;
    font-size: 16px;
}


























/* ========== Navbar Base Styles ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: linear-gradient(to bottom, #ede8ea, #bcbabb);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    height: 100px;
    overflow: hidden;
}

.navbar .logo {
    padding: 10px;
    height: 140px;
    border-radius: 10px;
    padding-right: 110px;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    cursor: pointer;
    text-decoration: none !important; /* Removes underline */
    position: relative;
    padding: 10px 24px;
    font-size: 18px;
    color: #000000;
    border: 2px solid rgb(0, 0, 0);
    border-radius: 34px;
    background-color: transparent;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
    overflow: hidden;
}

.nav-links a:hover {
    background-color: #ddd;
    color: #ffffff;
}






/* Default Portfolio Container (Desktop and Larger Devices) */
.portfolio-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two cards per row */
    gap: 50px 80px;
    justify-content: center;
    padding: 50px;
    width: 100%;
    box-sizing: border-box;
}

.portfolio-card {
    width: 100%;
    min-height: 480px; /* Default height for larger screens */
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 22px;
    font-weight: bold;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s ease-in-out;
    padding: 10px 20px;
    box-sizing: border-box;
}

.portfolio-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.portfolio-card:hover img {
    opacity: 1;
    transform: scale(1.05);
}

.portfolio-card:hover h3,
.portfolio-card:hover p {
    opacity: 0.3;
    transition: opacity 0.3s ease-in-out;
}

/* Background colors for each card */
.portfolio-card:nth-child(1) {
    background-color: #ae5858;
    color: black;
}

.portfolio-card:nth-child(2) {
    background-color: #51b4e6;
    color: black;
}

.portfolio-card:nth-child(3) {
    background-color: #B0C4C4;
    color: black;
}

.portfolio-card:nth-child(4) {
    background-color: #e0b082;
    color: black;
}

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    .portfolio-container {
        grid-template-columns: repeat(1, 1fr); /* One card per row */
        gap: 40px;
        padding: 20px;
        width: 100%;
    }

    .portfolio-card {
        width: 100%;
        height: 360px;
        min-height: unset;
        margin: 0;
        font-size: 18px;
    }

    .portfolio-card img {
        object-fit: cover;
        height: 100%;
    }

    .portfolio-card h3,
    .portfolio-card p {
        font-size: 16px;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .portfolio-container {
        grid-template-columns: repeat(2, 1fr); /* Two cards per row */
        gap: 15px;
        padding: 15px;
        width: 100%;
        row-gap: 30px; /* space between rows */
        column-gap: 35px; /* space between columns */
    }

    .portfolio-card {
        width: 100%;
        height: 220px; /* Reduced height */
        min-height: unset;
        font-size: 14px;
        margin: 0;
        padding: 10px;
        overflow: hidden;
    }

    .portfolio-card h3,
    .portfolio-card p {
        font-size: 13px;
        margin: 4px 0;
    }

    .portfolio-card img {
        object-fit: cover;
        height: 100%;
        width: 100%;
    }
}



@media (max-width: 768px) {
    .about-section {
        padding: 20px 10px;
    }

    .about-content h2 {
        font-size: 20px;
    }

    .about-content p {
        font-size: 14px;
    }
}











/* Scroll Up Button */
#scrollUpBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #000000;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: none; /* Initially hidden */
    z-index: 1000;
}

#scrollUpBtn:hover {
    background-color: #ffffff;
    color: #000;
}













/* ========== Hamburger Menu (Mobile) ========== */
.hamburger {
    display: none;
    font-size: 30px;
    cursor: pointer;
    color: #333;
    padding: 10px;
}






/* ========== Sidebar Styles ========== */
.sidebar {
    position: fixed;
    top: 0;
    right: -100%; /* Fully hidden off-screen on all devices */
    width: 250px;
    height: 100%;
    background-color: #fff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: right 0.3s ease;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar.active {
    right: 0; /* Show sidebar */
}

.sidebar a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 18px;
    padding: 10px;
    border-radius: 4px;
}

.sidebar a:hover {
    background-color: #f1f1f1;
}

.close-icon {
    align-self: flex-end;
    font-size: 24px;
    cursor: pointer;
    right: 10px;
}

/* ========== Responsive Design ========== */
@media (max-width: 1024px) {
    .navbar {
        flex-direction: row;
        justify-content: space-between;
        height: auto;
        padding: 10px 20px;
    }

    .navbar .logo {
        height: 100px;
        padding-right: 0;
    }

    .nav-links {
        display: none; /* Hide navbar links on mobile */
    }

    .hamburger {
        display: block; /* Show hamburger on mobile */
    }
}

/* Make sidebar full width on very small screens */
@media (max-width: 400px) {
    .sidebar {
        width: 100%;
        right: -100%; /* Ensure it's fully offscreen on tiny devices */
    }

    .sidebar.active {
        right: 0;
    }

    
}



@media screen and (max-width: 768px) {
    #contact {
      font-size: 14px;
    }
  
    #contact h1,
    #contact h2 {
      font-size: 18px;
    }
  
    #contact p,
    #contact a {
      font-size: 14px;
    }
  }






  .whatsapp-button {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    background-color: #c9c9c9;
    color: white;
    padding: 10px 15px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  .whatsapp-button img {
    width: 24px;
    height: 24px;
    margin-right: 10px;
  }
  
  .whatsapp-button:hover {
    background-color: #787978;
  }





  @media (max-width: 768px) {
    #sidebar {
      width: 70%; /* or 60%, or even 50% depending on how narrow you want it */
    }
  }