:root {
    --primary: #035AFF;
    --light: #F0F0F1;
    --black: #404041;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--primary);
    color: var(--light);
    overflow-x: hidden;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 16px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  z-index: 1000;
}

/* === LOGO === */
.logo {
   background-image: url(/Image/Boxel_Logo.png);
   background-size: cover;
   height: 60px;
   width: 250px;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo i {
    color: var(--light);
    margin-right: 10px;
    font-size: 32px;
}

/* === NAV LINKS === */
.nav-links {
  display: flex;
  align-items: center;
  gap: 45px;
}

.nav-links a {
  text-decoration: none;
  color: var(--black);
  font-weight: 600;
  font-size: 17px;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--primary);
}
#contact-us-a{
    display: none;
}
/* === CONTACT BUTTON === */
.contact-btn {
  display: flex;
  align-items: center;
  gap: 10px;
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary);
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.contact-btn a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 7px var(--black);
}
.contact-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.contact-btn:hover::before {
    left: 100%;
}
/* === MENU TOGGLE (MOBILE) === */
.menu-toggle {
  display: none;
  font-size: 26px;
  color: var(--black);
  cursor: pointer;
  transition: 0.3s ease;
}

.menu-toggle.active i {
  transform: rotate(90deg);
}
/* Hero Section */
.portfolio-hero {
    background-image: url(/Image/web_Services_Banner.png);
    background-size: cover;
    height: 80vh;
    display: flex;
    align-items: center;
    padding: 0 10%;
    position: relative;
}

.portfolio-hero .hero-content {
    max-width: 600px;
}

.portfolio-hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.portfolio-hero h1 span {
    color: var(--light);
}

.portfolio-hero p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--light);
    color: var(--primary);
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px var(--black);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-small {
    padding: 8px 20px;
    font-size: 14px;
}


/* Portfolio Filter */
        .portfolio-filter-section {
            padding: 20px 3%;
            text-align: center;
            background: var(--light);
        }

        .filter-container .filter-btn {
            background: transparent;
            border: 2px solid var(--primary) ;
            color: var(--primary);
            padding: 10px 20px;
            margin: 5px;
            border-radius: 25px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: bold;
        }

        .filter-container .filter-btn:hover {
            background: var(--primary);
            border-color: var(--primary);
            color: #fff;
        }

        .filter-container .filter-btn.active {
            background: var(--primary);
            border-color: var(--primary);
            color: #fff;
        }

        /* Portfolio Grid */
        .portfolio-grid-section {
            padding: 50px 3%;
        }

        .portfolio-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 30px;
        }

        .portfolio-item {
            width: 100%; 
            aspect-ratio: 1 / 1;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 15px;
            overflow: hidden;
            border: 1px solid rgba(255, 255, 255, 0.1);
            transition: all 0.5s ease;
            transform-style: preserve-3d;
            perspective: 1000px;
            position: relative; 
            display: none; 
        }
        
        /* This class will be added by JS to show items */
        .portfolio-item.show {
            display: block;
        }

        .portfolio-item:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
            border-color: var(--primary);
        }

        .portfolio-item::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(to top, rgba(0, 0, 0, 1), transparent);
            opacity: 0;
            transition: all 0.5s ease;
        }

        .portfolio-item:hover::before {
            opacity: 1;
        }

        .item-content {
            position: absolute;
            bottom: 20px;
            left: 20px;
            right: 20px;
            z-index: 2;
            text-align: center;
        }

        .item-content h3 {
            opacity: 0;
            transform: translateY(20px);
            transition: all 0.4s ease;
            color: #fff;
            margin-bottom: 15px;
        }

        .portfolio-item:hover .item-content h3 {
            opacity: 1;
            transform: translateY(0);
        }
        
        .btn {
            background-color: var(--primary);
            color: white;
            padding: 10px 20px;
            border-radius: 20px;
            text-decoration: none;
            font-weight: bold;
            opacity: 0;
            transform: translateY(20px);
            transition: all 0.4s ease 0.1s; /* Added delay */
            display: inline-block;
        }

        .portfolio-item:hover .btn {
            opacity: 1;
            transform: translateY(0);
        }
/* 3D Project Preview */
.rotating-building,
.rotating-character {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;

}

.rotating-building::before,
.rotating-character::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
}
.rotating-character::before {
    background: rgba(253, 121, 168, 0.1);
    border-color: var(--accent);
}
@keyframes rotate-model {
    0% { transform: rotateY(0); }
    100% { transform: rotateY(360deg); }
}
/* portfolio Pic 3D modle */
#project-1-3d{
    background-image: url(/Image/portfolio/cover/Scrap\ Revolver.webp);
    background-size: cover;
}
#project-2-3d{
    background-image: url(/Image/portfolio/cover/Interrogative\ Basement\ Props.webp);
    background-size: cover;
}
#project-3-3d{
    background-image: url(/Image/portfolio/cover/Interrogative\ Basement\ Scene.webp);
    background-size: cover;
}
#project-4-3d{
    background-image: url(/Image/portfolio/cover/Stylize\ 3D\ Props.webp);
    background-size: cover;
}
/* 3D printing */
#project-1-3p{
    background-image: url(/Image/portfolio/cover/3D\ Printing\ Ready\ Models.webp);
    background-size: cover;
}
/* Graphic pic */
#project-1-graphic{
    background-image: url(/Image/portfolio/cover/Packaging\ Design.webp);
    background-size: cover;
}
#project-2-graphic{
    background-image: url(/Image/portfolio/cover/Minimal\ Logo\ Design.webp);
    background-size: cover;
}
#project-3-graphic{
    background-image: url(/Image/portfolio/cover/Social\ Media.webp);
    background-size: cover;
}

/* Website */
#project-1-web{
    background-image: url(/Image/portfolio/cover/Bev-Staffs.webp);
    background-size: cover;
}
#project-2-web{
    background-image: url(/Image/portfolio/cover/Pavilion\ Realtors.webp);
    background-size: cover;
}
#project-3-web{
    background-image: url(/Image/portfolio/cover/Sysilscorp.webp);
    background-size: cover;
}
/* mobile uiux */
#project-1-uiux{
    background-image: url(/Image/portfolio/cover/Get\ Movers.webp);
    background-size: cover;
}
#project-2-uiux{
    background-image: url(/Image/portfolio/cover/Go\ Saudi\ Go.webp);
    background-size: cover;
}
#project-3-uiux{
    background-image: url(/Image/portfolio/cover/Prismatic.webp);
    background-size: cover;
}

/* social media */
#project-1-social{
    background-image: url(/Image/portfolio/cover/Banner\ Design.webp);
    background-size: cover;
}
#project-2-social{
    background-image: url(/Image/portfolio/cover/Cielo.webp);
    background-size: cover;
}
#project-3-social{
    background-image: url(/Image/portfolio/cover/Decora.webp);
    background-size: cover;
}
#project-4-social{
    background-image: url(/Image/portfolio/cover/social\ media.webp);
    background-size: cover;
}

/* Item Content */
.item-content {
    padding: 25px;
}

.item-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.item-content p {
    margin-bottom: 15px;
    opacity: 0.8;
    font-size: 14px;
}

.item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.item-tags span {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 12px;
}

.btn-small {
    padding: 8px 20px;
    font-size: 14px;
}

/* CTA Section */
.portfolio-cta {
    padding: 100px 10%;
    background: var(--light);
    color: var(--black);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.portfolio-cta h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.portfolio-cta p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.portfolio-cta .btn {
    background: var(--primary);
    color: var(--light);
}

.portfolio-cta .btn:hover {
    background: var(--primary);
    color: var(--light);
}

.cta-3d {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* profile-online whatsapp link  */
.profile-online{
    width: 100px;
    height: 100px;
    border-radius: 50%;    
    overflow: hidden;
    transition: all 0.5s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
    border: 3px solid transparent;
    position: fixed;
    right: 20px;
    bottom: 125px;
}
.profile-online img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: all 0.5s ease;
}

.profile-online:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: #25D366;
}

.profile-online:hover img {
    transform: scale(1.05) rotateY(5deg);
    filter: brightness(1.1);
}
/* zoom metting  */
.zoom-meet-btn{
    width: 100px;
    height: 100px;
    border-radius: 50%;    
    overflow: hidden;
    transition: all 0.5s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
    border: 3px solid transparent;
    position: fixed;
    right: 20px;
    bottom: 20px;
}
.zoom-meet-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: all 0.5s ease;
}

.zoom-meet-btn:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: #25D366;
}

.zoom-meet-btn:hover img {
    transform: scale(1.05) rotateY(5deg);
    filter: brightness(1.1);
}
/* Footer */
footer {
    background-image: url(/Image/Web_Footer.png);
    background-size: cover;
    padding: 50px 10% 20px;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--light);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--light);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(225, 0, 0, 0.05);
    border-radius: 50%;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    color: var(--light);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--light);
    color: var(--primary);
    transform: translateY(-5px);
}

.copyright {
    opacity: 0.7;
    font-size: 14px;
}

/* Responsive Styles */
@media (max-width: 1400px) {
    
}

@media (max-width: 992px) {
        header {
    padding: 14px 6%;
  }

  .nav-links {
    gap: 30px;
  }

  .contact-btn a {
    padding: 10px 22px;
    font-size: 15px;
  }

  .arrow-circle {
    width: 40px;
    height: 40px;
  }
  .boxel-box{
    display: none;
  }
    .portfolio-grid {
                grid-template-columns: repeat(2, 1fr);
    }
}
/* --- Mobile (max 860px) --- */
@media (max-width: 860px) {
.menu-toggle {
        display: block;
    }
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(0, 0, 0, 0.90);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: all 0.5s ease;
    }
    .nav-links a{
        color: var(--light);
        position: relative;
        left: 1px;
    }
    .nav-links.active {
        left: 0;
    }

  .contact-btn {
    display: none;
  }

  .nav-links a {
    font-size: 20px;
  }
    #contact-us-a{
    display: block;
  }
}
@media (max-width: 768px) {
 .menu-toggle {
        display: block;
    }
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(0, 0, 0, 0.90);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: all 0.5s ease;
    }
    .nav-links a{
        color: var(--light);
        position: relative;
        left: 1px;
    }
    .nav-links.active {
        left: 0;
    }
    .logo{
        position: relative;
        right: 10%;
    }
      #contact-us-a{
    display: block;
  }
    .portfolio-hero {
    background-image: url(/Image/mobile_Services.png);
    background-size: cover;
    }
    .portfolio-hero h1 {
        font-size: 36px;
    }
    .hero-3d {
        width: 300px;
        height: 300px;
    }
    .portfolio-grid {
         grid-template-columns: 1fr;
    }

        footer {
    background-image: url(/Image/footer\ mobile.png);
    background-size: cover;
    }

}

@media (max-width: 576px) {
    .portfolio-hero h1 {
        font-size: 32px;
    }
    .portfolio-hero p {
        font-size: 16px;
    }
    .portfolio-cta h2 {
        font-size: 28px;
    }
    .portfolio-cta p {
        font-size: 16px;
    }
      #contact-us-a{
    display: block;
  }
}
/* Screen popup */

    /* Popup styles */
.popup {
  display: none;
  justify-content: center;
  align-items: center;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  overflow-y: auto;
}

.popup-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 40px 20px;
  width: 100%;
  max-width: 100%;
  height: 100%;
  overflow-y: auto;
}

.popup-content img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255,255,255,0.1);
}

    .close-btn {
      position: fixed;
      top: 20px;
      right: 30px;
      font-size: 30px;
      color: white;
      cursor: pointer;
      font-weight: bold;
    }
/* --- Small Mobile (max 480px) --- */
@media (max-width: 480px) {
  .logo img {
    height: 38px;
  }

  .nav-links a {
    font-size: 18px;
  }
    #contact-us-a{
    display: block;
  }
}