@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap");

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}
:root {
    --bg-color: #1f242d;
    --second-bg-color: #323946;
    --text-color: #fff;
    --main-color: #0ef;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}

section {
    min-height: 70vh;
    padding: 5rem 9% 2rem;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: var(--bg-color);
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    display: flex;
}
.header.sticky {
    border-bottom: .1rem solid rgba(0, 0, 0, .2);
}
.logo{
    font-size: 2.5rem;
    color: var(--text-color);
    font-weight: 600;
    cursor: default;
}
.navbar a {
    font-size: 1.7rem;
    color: var(--text-color);
    margin-left: 4rem;
    transition: all linear .5s;
}
.navbar a:hover,
.navbar a.active {
    color: var(--main-color);
}

#menu-icon {
    font-size: 3.6rem;
    color: var(--text-color);
    display: none;
}

/* home section design  */ 
.home {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.home-img img {
    width: 30vw;
    animation: floatImage 4s ease-in-out infinite;
}

@keyframes floatImage {
    0% {
        transform: translateY();
    }
    50% {
        transform: translateY(-2.4rem);
    }
    100% {
        transform: translateY();
    }
}

.home-content h3 {
    font-size: 3.2rem;
    font-weight: 700;
}
.home-content h3:nth-of-type(2) {
    margin-bottom: 2rem;
}
span {
    color: var(--main-color);
}
.home-content h1 {
    font-size: 5.6rem;
    font-weight: 700;
    line-height: 1.3;
}
.home-content p {
    font-size: 1.6rem;
}
.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: .2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: .6s ease;
}
.social-media a:hover {
    background: var(--main-color);
    color: var(--second-bg-color);
    box-shadow: 0 0 1rem var(--main-color);
}
.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--main-color);
    border-radius: 4rem;
    box-shadow: 0 0 1rem var(--main-color);
    font-size: 1.6rem;
    color: var(--second-bg-color);
    letter-spacing: .1rem;
    font-weight: 600;
    transition: .6s ease;
}
.btn:hover {
    box-shadow: none;
}
/* Header PART END */


/* ABOUT PART START */
.about {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    background: var(--second-bg-color);
}
.heading {
    text-align: center;
    font-size: 4.5rem;
}
.about-content h2 {
    text-align: left;
    line-height: 1.2;
}
.about-content h3 {
    font-size: 2.6rem;
}
.about-content p {
    font-size: 1.6rem;
    margin: 2rem 0 3rem;
}
.about-img img {
    width: 30vw;
}

/* ABOUT PART END */



/* SERVICE PART START */
.services{
    padding-bottom: 40px;
}
.services h2 {
    margin-bottom: 5rem;
}
.services-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}
.services-container .services-box {
    flex: 1 1 30rem;
    background: var(--second-bg-color);
    padding: 3rem 2rem 4rem;
    border-radius: 2rem;
    text-align: center;
    border: .2rem solid var(--bg-color);
    transition: .5s ease;
}
.services-container .services-box:hover {
    border-color: var(--main-color);
    transform: scale(1.02);
}
.services-box i {
    font-size: 7rem;
    color: var(--main-color);
}
.services-box h3 {
    font-size: 2.6rem;
}
.services-box p {
    font-size: 1.6rem;
    margin: 1rem 0 3rem;
}
/* SERVICE PART END */



/* PORTFOLIO PART START */
/* ===== Portfolio Section ===== */

.protfolio {
  padding: 60px 20px;
  background: #121212;
  color: #fff;
}

/* Filter Buttons */
.filter-buttons {
  text-align: center;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 10px 20px;
  margin: 5px;
  border: none;
  background: #333;
  color: #fff;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: #00EEFF;
  color: black;
}

/* Portfolio Grid */
.protfolio-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

/* Box Design */
.protfolio-box {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #1e1e1e;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
  cursor: pointer;
  
  width: 450px;   /* Set your desired width */
  height: 300px;  /* Set your desired height */
}

.protfolio-box:hover {
  transform: scale(1.03);
}

.protfolio-box img {
  width: 100%;
  height: 100%;       /* changed from auto */
  object-fit: cover;
  display: block;
}


.protfolio-layer {
  padding: 1rem;
  background: #1e1e1e;
  color: #fff;
}

.protfolio-layer h4 {
  font-size: 1.2rem;
  color: #00EEFF;
  margin-bottom: 0.5rem;
}

.protfolio-layer p {
  font-size: 0.9rem;
  margin: 0.3rem 0;
}

.protfolio-layer a {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 6px 12px;
  background: #00EEFF;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.9rem;
}

/* ===== Popup Modal (Side-by-Side) ===== */

.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 15, 15, 0.95);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 1rem;
}

.popup-content {
  background: #1e1e1e;
  color: #fff;
  border-radius: 16px;
  max-width: 900px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 24px;
  color: #fff;
  cursor: pointer;
}

.popup-flex {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  padding: 2rem;
  flex-wrap: wrap;
}

.popup-image {
  flex: 1 1 50%;  /* increased from 40% to 50% */
}

.popup-image img {
  width: 100%;
  border-radius: 12px;
  max-height: 400px;  /* Optional: limit max height */
  object-fit: cover;
}

.popup-details {
  flex: 1 1 45%; /* adjusted accordingly */
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 1.1rem; /* slightly bigger font size */
}

.popup-details h3 {
  font-size: 2.2rem; /* increased from 2rem */
  color: #00EEFF;
  margin-bottom: 1rem;
}

.popup-details p {
  margin-bottom: 1rem;  /* slightly more spacing */
  font-size: 1.1rem;
  line-height: 1.6;
}

#popup-tools {
  border: 2px solid #00EEFF;
  padding: 10px 15px;
  border-radius: 10px;
  font-weight: 600;
  background: rgba(243, 156, 18, 0.1); /* subtle background */
  margin-bottom: 1rem;
}

.popup-details a {
  margin-top: 1rem;
  padding: 10px 18px;
  background: #00EEFF;
  color: black;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  width: fit-content;
}

/* Responsive */
@media (max-width: 1024px) {
  .protfolio-container {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on medium screens */
  }
}

@media (max-width: 600px) {
  .protfolio-container {
    grid-template-columns: 1fr; /* 1 column on small screens */
  }
}


/* PORTFOLIO PART END */


/* CONTACT PART START */
.contact h2 {
    margin-bottom: 3rem;
}
.contact form {
    min-width: 40rem;
    margin-bottom: 1rem auto;
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 40px;
}
.contact form .input-box {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.contact form .input-box input,
.contact form textarea {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    background: var(--second-bg-color);
    border-radius: .8rem;
    margin: .7rem 0;
}
.contact form .input-box input {
    width: 49%;
}
.contact form textarea {
    resize: none;
}
.contact form .btn {
    margin-top: 2rem;
    cursor: pointer;
}

/* CONTACT PART END */



/* FOOTER PART START */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem 9%;
    background: var(--second-bg-color);
}

.footer-text {
    font-size: 1.6rem;
}
.footer-iconTop a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0.8rem;
    background: var(--main-color);
    border-radius: .8rem;
    transition: .5s ease;
}
.footer-iconTop a:hover {
    box-shadow: 0 0 1rem var(--main-color);
}
.footer-iconTop a i {
    font-size: 2.4rem;
    color: var(--second-bg-color);
}

/* FOOTER PART END */



/* BREACKPOINTS  */
@media (max-width: 1200px) {
    html {
        font-size: 55%;
    }
}

@media (max-width: 991px) {
    .header {
        padding: 2rem 3%;
    }

    section {
        padding: 10rem 3% 2rem;
    }
    .about {
        padding-bottom: 10rem;
    }
    .about-img img {
        padding-top: -100rem;
    }
    .services {
        padding-bottom: 7rem;
    }
    .footer {
        padding: 2rem 3%;
    }
    .protfolio {
        padding-bottom: 7rem;
    }
    .contact {
        min-height: auto;
        min-width: auto;
    }
}
@media (max-width: 768px) {
    #menu-icon {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 3%;
        background: var(--bg-color);
        border-top: .1rem solid rgba(0, 0, 0, .2);
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .2);
        display: none;
    }
    .navbar.active {
        display: block;
    }
    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }
    .home {
        flex-direction: column;
    }
    .home-content h3 {
        font-size: 2.6rem;
    }
    .home-content h1 {
        font-size: 5rem;
    }
    .home-img img {
        width: 70vw;
        margin-top: 4rem;
    }

    .about {
        flex-direction: column;
    }
    .about img {
        width: 70vw;
        margin-top: 4rem;
    }
    .contact form {
        padding: 0 10px;
    }

    .services h2 {
        margin-bottom: 3rem;
    }

    .protfolio h2 {
        margin-bottom: 3rem;
    }
    .protfolio-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 617px) {
    .protfolio-container {
        grid-template-columns: 1fr;
    }
    .contact form {
        padding: 0 10px;
    }
}

@media (max-width: 450px) {
    html {
        font-size: 50%;
    }

    .contact form .input-box input {
        width: 100%;
    }
    .contact form {
        padding: 0 10px;
    }
}

@media (max-width: 365px) {
    .home-img img {
        width: 90vw;
    }
    
    .about-img img {
        width: 90vw;
    }

    .footer {
        flex-direction: column-reverse;
    }
    .footer p {
        text-align: center;
        margin-top: 2rem;
    }

}

/* SERVICE PART START */
/* SERVICE PART END */

/* Tool PART START */
.tools {
    padding: 5rem 2rem;
    background: var(--second-bg-color);
    color: #fff;
    text-align: center;
}

.tools .heading {
    font-size: 3.5rem;
    margin-bottom: 3rem;
}
.svg-icon svg {
    width: 48px;
    height: 48px;
    margin-bottom: 0.5rem;
    display: inline-block;
}
.tools-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.tool-box {
    background: var(--bg-color);
    border: 2px solid var(--second-bg-color);
    padding: 2rem;
    width: 160px;
    border-radius: 1.2rem;
    transition: 0.4s;
    cursor: pointer;
}

.tool-box:hover {
    transform: scale(1.07);
    border-color: var(--main-color);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.tool-box i {
    font-size: 3rem;
    color: var(--main-color);
    margin-bottom: 0.5rem;
    transition: 0.3s ease;
}

.tool-box:hover i {
    transform: rotate(5deg);
}

.tool-box h4 {
    font-size: 1.2rem;
}
/* Tool PART END */

/* Certification PART START */
.certifications {
  padding: 5rem 2rem;
  background: var(--second-bg-color);
  color: #fff;
  text-align: center;
}

.certifications .heading {
  font-size: 3.5rem;
  margin-bottom: 3rem;
}

.cert-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.cert-box {
  background: var(--bg-color);
  border: 2px solid var(--second-bg-color);
  padding: 1.5rem;
  width: 320px;
  border-radius: 1.5rem;
  text-align: center;
  transition: 0.4s ease;
  cursor: default;
}

.cert-box:hover {
  border-color: var(--main-color);
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.cert-box img {
  width: 100%;
  max-height: 180px;
  object-fit: contain;
  border-radius: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.cert-box h3 {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
  color: var(--main-color);
}

.cert-box p {
  font-size: 1.3rem;
  margin: 0.3rem 0;
  color: #ddd;
}

.btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.7rem 2rem;
  background: var(--main-color);
  color: #000;
  border-radius: 1rem;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #00ccdd;
  color: #fff;
}

/* Certification PART END */
