/* GOOGLE FONT */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* GLOBAL */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
* {
    -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
h4,
h5,
h6,
button,
a,
.tab,
.menu-toggle {
    -webkit-user-select: none;
    user-select: none;
}

body{
    font-family: 'Poppins', sans-serif;
    background-color: #f8f5f1;
    color: #333;

    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* NAVBAR */
nav{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 8%;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.logo img{
    height: 60px;
}

/* MENU */
nav ul{
    display: flex;
    gap: 35px;
    list-style: none;
}

nav ul li a{
    text-decoration: none;
    color: white;
    font-size: 17px;
    font-weight: 500;
    position: relative;
    transition: 0.3s;
}

nav ul li a::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0%;
    height: 2px;
    background-color: #c19a6b;
    transition: 0.3s;
}

nav ul li a:hover{
    color: #c19a6b;
}

nav ul li a:hover::after{
    width: 100%;
}

.menu-toggle{
    display:none;
    font-size:32px;
    font-weight:700;
    color:white;
    cursor:pointer;
    user-select:none;
    transition:0.3s;
}

.menu-toggle:hover{
    color:#c19a6b;
}
.loader-container{
    min-height: 60vh;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap:20px;
    transition:opacity .4s ease;
}

.loader-container h3{
    font-size:24px;
    color:#222;
    font-weight:600;
    letter-spacing:1px;
}

.loader-container p{
    color:#777;
    font-size:15px;
}

.logo-loader{
    width:90px;
    animation:pulse 1.5s infinite;
}


@keyframes pulse{

    0%{
        transform:scale(1);
        opacity:0.6;
    }

    50%{
        transform:scale(1.1);
        opacity:1;
    }

    100%{
        transform:scale(1);
        opacity:0.6;
    }
}
.projects-section{
    flex: 1;
    padding:120px 8% 60px;
}

.projects-section h2{
    display:none;
    text-align:center;
    font-size:50px;
    color:#222;
    margin-bottom:40px;
}

.projects-section h2::after{
    content:"";
    width:70px;
    height:2px;
    background:#c8a97e;
    display:block;
    margin:20px auto 0;
}

/* ================= CATEGORY FILTERS ================= */

.category-filters{
    display:flex;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
    gap:12px;
    margin:0 auto 40px;
    max-width:1000px;
}

.category-btn{
    border:none;
    background:#ffffff;
    color:#555;
    padding:10px 20px;
    border-radius:30px;
    cursor:pointer;
    font-family:'Poppins',sans-serif;
    font-size:14px;
    font-weight:500;
    box-shadow:0 3px 10px rgba(0,0,0,0.08);
    transition:.3s ease;
}

.category-btn:hover{
    background:#c19a6b;
    color:#fff;
    transform:translateY(-2px);
}

.active-category{
    background:#c19a6b;
    color:#fff;
}

/* EMPTY STATE */

.no-projects{
    grid-column:1/-1;
    text-align:center;
    font-size:18px;
    color:#777;
    padding:50px 20px;
    background:#fff;
    border-radius:15px;
    box-shadow:0 5px 20px rgba(0,0,0,0.08);
}
#projectsContainer{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(350px,1fr));
    gap:30px;
    opacity:0;
    transition:opacity 0.5s ease;
}
.project-card{
    width:100%;
    max-width:340px;
    background:#fff;
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 8px 25px rgba(0,0,0,0.08);
    transition:.3s ease;
}

.project-card:hover{
    transform:translateY(-5px);
}

.project-card img,
.project-card iframe{
    width:100%;
    height:260px;
    border:none;
    display:block;
    object-position:center;
    object-fit:cover;
}

.project-card .content{
    padding:18px;
}

.project-card h3{
    font-size:20px;
    margin-bottom:10px;
    line-height:1.4;
}

.location,
.description,
.year{
    font-size:14px;
}

.project-card p{
    margin-bottom:8px;
    color:#666;
}
.category{
    display:inline-block;
    background:#c19a6b;
    color:white;
    padding:5px 12px;
    border-radius:20px;
    font-size:13px;
    margin-bottom:12px;
}
.location{
    font-weight:500;
     color:#666;
    margin-bottom:10px;
    }

.description{
    color:#777;
    line-height:1.5;
}


/* PROJECT MODAL */

.modal-nav{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:60px;
    height:60px;
    border:none;
    border-radius:50%;
    background:rgba(255,255,255,0.15);
    color:#fff;
    font-size:30px;
    cursor:pointer;
    z-index:10001;
    backdrop-filter:blur(10px);
    transition:.3s;
}

.modal-nav:hover{
    background:rgba(255,255,255,0.25);
}

.prev-btn{
    left:25px;
}

.next-btn{
    right:25px;
}

.modal{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.9);
    justify-content:center;
    align-items:center;
    z-index:99999;
}

.modal.active{
    display:flex;
}
.modal img{
    max-width:90%;
    max-height:90vh;
    border-radius:12px;
    user-select:none;
    -webkit-user-drag:none;
}

body.modal-open{
    overflow:hidden;
}
.project-modal{
    overflow-y: auto;
    -webkit-overflow-scrolling:touch;
}

.project-modal img{
    width: auto;
}

.modal iframe{
    width:90%;
    max-width:1000px;
    height:80vh;
    border:none;
    border-radius:12px;
}

#modalContent{
    display:flex;
    justify-content:center;
    align-items:center;
    width:100%;
    height:100%;
}

.close-modal{
    position:absolute;
    top:20px;
    right:30px;
    color:#fff;
    font-size:40px;
    cursor:pointer;
    z-index:10000;
}
.close-modal:hover{
    color:red;
}
.project-card iframe{
    pointer-events:none;
}

/* .youtube-btn{
    display:inline-block;
    margin-top:15px;
    padding:12px 20px;
    background:#ff0000;
    color:white;
    text-decoration:none;
    border-radius:8px;
    font-weight:600;
    transition:0.3s;
}

.youtube-btn:hover{
    transform:translateY(-2px);
} */
/* ================= PROJECT TABS ================= */

#projectsWrapper{
    display:none;
    animation:fadeIn .4s ease;
}

.project-tabs{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:60px;
    margin-bottom:40px;
}

.tab-btn{
    background:none;
    border:none;
    font-family:'Poppins',sans-serif;
    font-size:28px;
    font-weight:600;
    color:#777;
    cursor:pointer;
    position:relative;
    padding-bottom:10px;
    transition:.3s;
}

.tab-btn:hover{
    color:#c19a6b;
}

.tab-btn::after{
    content:"";
    position:absolute;
    left:50%;
    transform:translateX(-50%);
    bottom:0;
    width:0;
    height:3px;
    background:#c19a6b;
    border-radius:20px;
    transition:.35s ease;
}

.tab-btn.active{
    color:#c19a6b;
}

.tab-btn.active::after{
    width:100%;
}

/* ================= PROJECT GRIDS ================= */

.project-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,340px));
    justify-content:center;
    gap:25px;
    animation:fadeIn .4s ease;
}

#videoContainer{
    display:none;
}

@keyframes fadeIn{

    from{
        opacity:0;
        transform:translateY(15px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }
}

/* Floating Social Icons */

.social-float {
  position: fixed;
  right: 25px;
  bottom: 100px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.social-float a {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #ffffff;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
  font-size: 22px;
  transition: all 0.3s ease;
}

.social-float a:hover {
  transform: translateY(-4px) scale(1.08);
}

.social-float a:nth-child(1):hover {
  color: #e1306c;
}

.social-float a:nth-child(2):hover {
  color: #1877f2;
}

.social-float a:nth-child(3):hover {
  color: #ff0000;
}
.social-float a {
  position: relative;
}

.follow-label {
  position: absolute;
  right: 65px;
  top: 50%;
  transform: translateY(-50%) translateX(10px);

  width: 160px; /* Same width for all */
  text-align: center;

  background: #c8a97e;
  color: #fff;
  padding: 8px 14px;
  border-radius: 25px;

  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;

  opacity: 0;
  visibility: hidden;

  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.social-float a:hover .follow-label {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}
.social-float a:nth-child(1) .follow-label {
  background: #E1306C;
}

.social-float a:nth-child(2) .follow-label {
  background: #1877F2;
}

.social-float a:nth-child(3) .follow-label {
  background: #FF0000;
}

/*  FOOTER */

footer{
    background: linear-gradient(135deg,#181818,#222);
    border-top:3px solid #c19a6b;
    color:#ddd;
    margin-top:80px;
}

.footer-container{
    max-width:none;
    width:90%;
    margin:auto;
    padding:70px 5%;
    display:grid;
    grid-template-columns:1.2fr 1fr 1.2fr 1fr;
    gap:50px;
    align-items:start;
}

.footer-logo{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
}

.footer-logo img{
    width:110px;
    margin-bottom:15px;
}

.footer-note{
    max-width:280px;
    line-height:1.8;
    color:#aaa;
}

.footer-column h3{
    color:#c19a6b;
    margin-bottom:25px;
    font-size:22px;
    position:relative;
}

.footer-column h3::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-10px;
    width:40px;
    height:2px;
    background:#c19a6b;
}

.footer-column{
    display:flex;
    flex-direction:column;
}

.footer-column a,
.footer-form-link{
    display:inline-block;
    width:fit-content;
    color:#cfcfcf;
    text-decoration:none;
    margin-bottom:14px;
    transition:.3s ease;
}

.footer-column a:hover,
.footer-form-link:hover{
    color:#c19a6b;
    transform:translateX(5px);
}

.footer-social{
    display:flex;
    flex-direction:column;
    gap:15px;
}

.footer-social a{
    display:inline-flex;
    align-items:center;
    gap:12px;
    width:fit-content;
}

.footer-social i{
    width:20px;
    text-align:center;
    color:#c19a6b;
}

.footer-bottom{
    border-top:1px solid rgba(255,255,255,.08);
    text-align:center;
    padding:25px;
}

.footer-bottom p:first-child{
    margin-bottom:8px;
    color:#fff;
}

.footer-bottom p:last-child{
    color:#999;
    font-size:14px;
}

@media(max-width:768px){

    /* NAVBAR MOBILE */
    nav{
        padding:10px 20px;
    }

    .logo img{
        height:45px;
    }

    .menu-toggle{
        display:block;
        font-size:28px;
        font-weight:700;
        color:white;
        cursor:pointer;
    }

    nav ul{
        display:none;
        position:absolute;
        top:70px;
        left:0;
        width:100%;
        background:rgba(0,0,0,0.95);
        flex-direction:column;
        text-align:center;
        gap:0;
        padding:20px 0;
    }

    nav ul.active{
        display:flex;
    }

    nav ul li{
        margin:12px 0;
    }

    nav ul li a{
        font-size:17px;
        display:inline-block;
        padding:8px 0;
    }

    /* PROJECT SECTION */
    .projects-section{
        padding:90px 15px 40px;
    }
    .projects-section h2{
        display:block;
        text-align:center;
        font-size:32px;
        line-height:1.2;
        color:#222;
        margin-bottom:30px;
    }

    .project-grid{
    grid-template-columns:1fr;
    gap:20px;
}

.project-tabs{
    gap:35px;
    margin-bottom:30px;
}
.category-filters{
    gap:8px;
    margin-bottom:25px;
}

.category-btn{
    font-size:13px;
    padding:8px 14px;
}

.tab-btn{
    font-size:22px;
}
    .project-card{
        width:100%;
        border-radius:15px;
    }

    .project-card img,
.project-card iframe{
    width:100%;
    height:200px;
    object-fit:cover;
}

    .content{
        padding:18px;
    }

    .category{
        display:inline-block;
        background:#c19a6b;
        color:white;
        font-size:12px;
        font-weight:600;
        padding:6px 14px;
        border-radius:20px;
        margin-bottom:12px;
    }
    .project-card h3{
        font-size:24px;
        line-height:1.3;
        margin:10px 0;
        color:#222;
    }

    .location{
        color:#666;
        font-size:14px;
        margin-bottom:10px;
    }

    .description{
        color:#777;
        font-size:14px;
        line-height:1.6;
        margin-bottom:12px;
    }

    .year{
        color:#c19a6b;
        font-size:14px;
        font-weight:600;
        margin-top:10px;
    }
    .social-float {
    right: 15px;
    bottom: 80px;
  }

  .social-float a {
    width: 46px;
    height: 46px;
    font-size: 20px;
  }

    .footer-container{
        grid-template-columns:1fr;
        gap:40px;
        padding:50px 25px;
        text-align:center;
    }

    .footer-logo{
        align-items:center;
    }

    .footer-logo img{
        width:90px;
    }

    .footer-note{
        max-width:320px;
        margin:auto;
    }

    .footer-column{
        align-items:center;
    }

    .footer-column h3{
        font-size:20px;
        margin-bottom:20px;
    }

    .footer-column h3::after{
        left:50%;
        transform:translateX(-50%);
    }

    .footer-column a,
    .footer-form-link{
        font-size:16px;
        margin-bottom:12px;
    }

    .footer-social{
        align-items:center;
    }

    .footer-bottom{
        padding:20px 15px;
    }
    
    .modal-nav{
        width:45px;
        height:45px;
        font-size:22px;
    }

    .prev-btn{
        left:10px;
    }

    .next-btn{
        right:10px;
    }

}