*{margin: 0; padding: 0; text-decoration: none; box-sizing: border-box; scroll-behavior: smooth;}

html{scroll-behavior: smooth;}

body{background-color: #D9D9D9; overflow-anchor: none;}

img{display: block; max-width: 100%; height: auto;}

section{scroll-margin-top: 9rem;}

.nav{position: sticky; top: 0; background-color: #D9D9D9; padding: clamp(0.5rem, 1vw + 0.2rem, 1rem) clamp(1rem, 2vw + 0.5rem, 3rem);
    border-bottom: 1px solid var(--stroke); height: 7rem; z-index: 100;}

.nav-inner{max-width: var(--maxw); margin: auto; display: flex; align-items: center; justify-content: space-between;}

.logo-img{height:85px; border-radius: 25px 25px;}

.menu {display: flex; align-items: center; gap: 50px; list-style: none; text-transform: capitalize;}

.menu a{font-family: 'Orbitron', sans-serif; color: #000000; padding: 0.5rem 0.75rem; font-size: clamp(1.3rem, 0.9vw, 2.3rem); font-weight: 500; transition: 0.2s; border-radius: 15px;}

.menu a:hover{cursor: pointer; color: #000000; background-color: #00AEEF; border-radius: 15px; transition: 0.3s ease;}

.menu-toggle{display: none;}

.hamburger{display: none; width: clamp(40px, 6vw, 45px); height: clamp(40px, 6vw, 45px); align-items: center; justify-content: center; border-radius: 12px; background: #D9D9D9; cursor: pointer;}

.hamburger span,
.hamburger span::before,
.hamburger span::after{display: block; width: 20px; height: 2.5px; background: #FF0000; position: relative; content:""; 
    transition: transform 0.25 ease, top 0.25 ease, 0.25s ease; transform-origin: center;}

.hamburger span::before{position: absolute; top: -6px;}

.hamburger span::after{position: absolute; top: 6px;}

/*REPONSIVE NAV BAR*/
@media(max-width:858px) {
    .menu{position: absolute;top: 100%; left: 0; right: 0; flex-direction: column; align-items: center; gap: 5rem; background: #D9D9D9; max-height: 0; padding: 0;
        pointer-events: none; overflow: hidden; transition: max-height 0.4s ease, opacity 0.4s ease, padding 0.4s ease;}
    
    .menu li{display: flex; align-items: center; justify-content: center; width: 100%;}
    
    .menu li a{padding: 10px 10px;}
    
    .menu-toggle:checked~.menu{max-height: 100vh; height: 100vh; padding: 1.5rem 0; opacity: 1; pointer-events: auto;}
    
    .hamburger{display: flex;}
    
    .menu-toggle:checked~.hamburger span{background: transparent;}
    
    .menu-toggle:checked~.hamburger span::before{top: 0; transform: rotate(45deg);}
    
    .menu-toggle:checked~.hamburger span::after{top: 0; transform: rotate(-45deg);}
}

/*BODY */

.hero{position: relative; width: 100%; min-height: calc(100vh - 120px); align-items: center; display: flex; justify-content: space-between; padding: 30px 8% 60px; gap: 60px; overflow: hidden; background-color: #000;}

/*Right Image*/
.hero-image{flex: 1; z-index: 1; display: flex; justify-content: center; align-items: center;}

.hero-image img{width: 100%; max-width: 350px; height: auto; object-fit:cover; border-radius: 24px; box-shadow: 0 20px 60px rgba(0,0,0,.45);}

/*Left Side*/
.hero-content{flex: 1; z-index: 2; max-width: 600px;}

.tagline{ font-family: 'Orbitron', sans-serif; color:#FF0000; font-weight: 700; margin-bottom: 20px; font-size: clamp(1.2rem, 2vw, 2.2rem); text-transform: uppercase; letter-spacing: 2px;}

.hero-content h1{font-family: 'Manrope', sans-serif; margin-top: 0; color: #00AEEF; font-size: clamp(1.2rem, 5vw, 1.7rem); line-height: 1.3; margin-bottom: 30px; font-weight: 700;}

.hero-buttons{display: flex; gap: 20px; flex-wrap: wrap;}

.hero-btn{font-family: 'Orbitron', sans-serif; display: inline-flex; background: #FFF600; color: #000; padding: 16px 34px; border-radius: 10px; text-decoration: none; font-weight: 700; 
; align-items: center; justify-content: center;}

.hero-btn:hover{background: #FFF; color: #FF0000; transform: translateY(-3px); box-shadow: 0 14px 35px rgba(255, 255, 255, 0.15);}

/*RESPONSIVE*/
@media (max-width: 900px) {
    .hero{flex-direction: column; text-align: center; gap:30px; padding: 40px 6% 70px;}

    .hero-image img{max-width: 500px; -webkit-mask-image: none; mask-image: none;}

    .hero-content{display: flex; flex-direction: column; align-items: center;}
}

@media (max-width:600px){

    .nav{padding: 0.6rem 1rem;}

    .logo-img{height: 65px;}

    .hero{padding: 20px 24px 60px; gap: 30px;}

    .hero-content h1{line-height: 1.2;}

    .hero-buttons{flex-direction: column; align-items: center; gap: 14px; width: 100%;}

    .hero-btn{width: 100%; max-width: 260px; padding: 14px 20px; margin: 0;}

    .hero-image img{max-width: 100%; border-radius: 18px;}
}

@media (max-width: 420px){

    .nav{padding: 0.5rem 0.8rem;}

    .logo-img{height: 55px}

    .hero{padding: 10px 18px 50px;}

    .hero-content h1{font-size: 1rem;}

    .tagline{font-size: 1.2rem;}

    .hero-btn{max-width: 220px; font-size: 0.9rem; padding: 14px 20px; margin: 0;}

    .menu{gap: 3rem;}
}


/*ABOUT US*/
.about{margin-top: 9rem;}

.wrapper {display: flex; flex-wrap: wrap; align-items: center; justify-content: center; width: min(1100px, 90%); margin: 0 auto 2rem; padding: 1rem; gap: 5rem;}

.wrapper img{flex:1 1 350px; max-width: 350px; height: auto; border-radius: 30px; object-fit: contain; width: 100%;}

.text-box{flex: 1 1 320px; min-width: 250px; display: flex; flex-direction: column; gap: 0.75rem; text-align: center; padding-left: 2rem;}

.text-box h1{font-family: 'Orbitron', sans-serif; text-align: center; color: #FF0000; font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.1; margin-bottom: 1rem;}

.text-box p{font-family: 'Manrope', sans-serif; font-size: clamp(1rem, 1.6vw, 1.2rem); color: #000; padding: 0 1rem; margin:0; text-align: center; line-height: 1.5;}

/*RESPONSIVE ABOUT US*/
@media (max-width:768px){
    
    .wrapper{flex-direction: column; text-align: center;}
   
    .text-box{align-items: center;}

    .text-box p{text-align: center;}

    .text-box h2{text-align: center;}
}

/* Medium small screens: 460px – 768px */
@media (min-width: 461px) and (max-width: 768px) {
    .wrapper img {flex: 1 1 300px; border-radius: 25px !important; max-width: 350px; width: 90%;}
}

/* Extra Small Screens: 460px and below */
@media (max-width: 460px) {
    .wrapper {flex-direction: column;/* stack image + text vertically */width: 95%; /* take most of the screen */padding: 0.5rem; gap: 1rem;}

    .wrapper img {flex: 1 1 auto; width: 100%; max-width: 300px; border-radius: 20px;}

    .text-box {
        flex: 1 1 auto; min-width: 0; padding: 0 0.5rem; gap: 0.5rem;}

    .text-box h2 {
        font-size: clamp(1.3rem, 5vw, 1.8rem); /* scale better for small screens */line-height: 1.2;
    }

    .text-box p {
        font-size: clamp(0.9rem, 3.5vw, 1.1rem); line-height: 1.4; padding: 0 0.5rem;}
}

a:focus, button:focus, .text-box:focus{outline: 3px solid #005fcc; outline-offset: 3px;}

/*PORTFOLIO*/
::before, ::after{box-sizing: border-box;}

.container1{ display: grid; align-items: start; padding: 1rem; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));}

.portfolio{padding:20px; margin-top: 10rem; margin-bottom: 7rem;}

.Portfolio-h1{font-family: 'Orbitron', sans-serif; text-align: center; color: #FF0000; font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.1; margin-bottom: 1rem;}

/*Stylize Portfolio Card*/

.product-card{background-color: #000; position: relative; width: 100%; max-width: 385px; min-height: 360px; margin: 1rem auto; border-radius: 10px; display: flex; flex-direction: column; align-items: center; padding: 1.5rem 1rem; gap: 1rem;}

.product-card:before{content:''; background: rgba(255,255,255,0.1); position: absolute; display: block; top: 0; left: 0; width: 50%; height: 100%; border-top-left-radius: 10px; border-bottom-left-radius: 10px;}

.product-card:hover, .product-card:focus-within{cursor: pointer; background-color: #FF0000; transform: translateY(-6px);}

.product-img{max-width: 300px; width:100%; height: auto;}



.name{z-index: 2; color:#fff; position: static; top:225px; width: 100%; text-align: center; letter-spacing: 0.6px; font-size: clamp(1rem, 1.6vw, 1.2rem); letter-spacing: 0.6px; margin: 0.5rem 0; padding: 0 0.5rem; font-family: 'Manrope', sans-serif;}

.popup-btn{ font-family: 'Orbitron', sans-serif; z-index: 2; color: #000; background-color: #FFF600; font-weight: bold; position: static; transform: none; font-size: 15px; text-decoration: none; letter-spacing: 1px; padding: 10px 15px; border-radius: 20px; margin-top: auto;}

.popup-btn:hover{cursor: pointer; }

/*Stylize for popup view*/
.popup-view{top: 0; left: 0; width: 100vw; height: 100vh; z-index: 1000; background-color: rgba(0, 0, 0, 0.7); position: fixed; display: none; justify-content: center; align-items: center; padding: 1rem; box-sizing: border-box;}

.popup-view.active{display: flex; pointer-events: auto;}
 
/*Marks card fluid*/ 
.popup-card{position:relative; width: min(60rem, 95vw); max-width: calc(100% - 2rem); /*display: block*/; background-color: #FFF; border-radius: 10px; padding: 1.25rem; text-align: center; z-index: 1001; box-shadow: 0 8px 24px rgba(0,0,0,0.12); overflow:hidden; box-sizing: border-box; margin: 1rem;}

.popup-card.active{display: inline-block; opacity: 1;}

.popup-card img{width: 65%; height: 40vh; object-fit:contain; border-radius: 10px; display: block; margin: 0 auto;}

.popup-card .close-btn{color: #555; z-index: 1002; position: absolute; right: 0.5rem; top:0.5rem; font-size: 1.5rem; cursor: pointer; padding:0.5rem;}

.popup-card h2{color:#FF0000; font-size: clamp(1.5rem, 2.5vw + 0.5rem, 2.2rem); margin: 1rem 0 0.75rem; font-family: 'Orbitron', sans-serif;}

.popup-card p{font-family: 'Manrope', sans-serif; font-size: 1.1rem; margin-top: 1rem; font-weight: 400; padding: 2rem;}

.popup-view-btn{ font-family: 'Orbitron', sans-serif; color: #000; background-color: #FFF600; font-weight: bold; transform: none; font-size: 15px; text-decoration: none; letter-spacing: 1px; padding: 10px 15px; border-radius: 20px; margin-top: 1.5rem; display: inline-block; position: static;}

.popup-view-btn:hover{cursor: pointer; background-color: #00AEEF; color: #FFF;}

/*Switch to 2-column layout for bigger screens*/

@media (max-width: 1024px) {

  .product-item .product-card {width: 100%; max-width: 420px; height: auto; min-height: 340px; margin: 1.5rem auto;}

  .product-img {width: 85%; height: auto;}

}

@media (max-width: 768px) {

  .Services-h1 {font-size: 2rem;}

  .product-item .product-card {width: 100%; max-width: 100%; height: auto; min-height: 320px; margin: 1rem 0;}

  .product-img {width: 140px;}

  .name {top: 190px; font-size: 1.2rem;}

  .popup-card img {width: 90%; height: auto; max-height: 300px;}

  .popup-card p {padding: 1rem; font-size: 1rem;}

}

@media (max-width: 678px) {

  .container1 {grid-template-columns: 1fr;}

  .product-img {width: 80%;}

  .name {top: 180px;}

  .popup-card {padding: 1rem;}

}