@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&family=Poppins:wght@700&display=swap');
body {
    font-family: 'Inter', sans-serif;
}
h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
}
*{
    padding: 0%;
    margin: 0%;
    box-sizing: border-box;
}

.header {
    /* border: 1px solid red; */
  background: #0A0119;
  color: #fff;
  /* padding: 15px 25px; */
  padding: 1.5em 4em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.logo {
  font-size: 22px;
  font-weight: bolder;  
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 4.5em;
}
.nav-links a {
    /* border: 1px solid red; */
    color: #fff;
    text-decoration: none;
    font-size: 15px;
}

.nav-links a:hover {
    opacity: 0.8;
}

/* -------------------------
Hamburger
-------------------------- */
.openbtn {
    border: 0.1px solid #fff;
    border-radius: 10px;
  position: relative;
  cursor: pointer;
  width: 52px;
  height: 50px;
  display: none;
}

.openbtn span {
    position: absolute;
    left: 13px;
    width: 50%;
    height: 3px;
    background: #fff;
    border-radius: 5px;
    transition: 0.3s ease-in-out;
}

.openbtn span:nth-of-type(1) {
    top: 13px;
}
.openbtn span:nth-of-type(2) {
    top: 19px;
}
.openbtn span:nth-of-type(3) {
    top: 25px;
}

.openbtn span:nth-of-type(3)::after {
    content: "menu";
    position: absolute;
    top: 6px;
    left: -2px;
    font-size: 10px;
    color: #fff;
    text-transform: uppercase;
}

/* active state */
.openbtn.active span:nth-of-type(1) {
  transform: translateY(6px) rotate(-45deg);
  width: 30%;
  left: 18px;
}

.openbtn.active span:nth-of-type(2) {
    opacity: 0;
}

.openbtn.active span:nth-of-type(3) {
    transform: translateY(-6px) rotate(45deg);
    width: 30%;
    left: 18px;
}

.openbtn.active span:nth-of-type(3)::after {
    content: "close";
    transform: rotate(-45deg);
    left: 4px;
}
/* -------------------------- */ 
.hero-section{
    /* border: 1px solid red; */
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
    gap: 3em; 
    align-items: center;
    margin: 4em 0;
    padding: 2em 3em;
    
}
.hero-pic{
    /* border: 1px solid red; */
    display: flex;
    justify-content: center;
}
.hero-pic img{
    border-radius: 50%;
    width: 75%;
}
.btns{
    display: flex;
}
.hero-content h1{
    /* border: 1px solid; */
    font-size: 40px;
    /* width: 55%; */
    padding: 0.6em 0;
}
.hero-content p{
    /* border: 1px solid red; */
    line-height: 1.5em;
    margin-bottom: 1.5em;
}
.btn{
    border: 1.5px solid;
    border-radius: 15px;
    padding: 0.7em 1em;
    margin: 0 0.6em;
}
.btn a{
    text-decoration: none;
}
.btn1{
    background-color: #0A0119;
}
.btn1 a{
    color: #fff;
}
.btn2 a{
    color: black;
}
.fa-cloud-arrow-down{
    margin: 0 0.6em;
}
.section-heading{
    /* border: 1px solid; */
    text-align: center;
    padding: 2em 0;
    margin: 1.5em 0 ;
    font-size: 20px;
    text-transform: uppercase;
    text-shadow:  0 2px 4px rgba(0, 0, 0, 0.2), 
    0 4px 8px rgb(116, 115, 115);
    /* text-decoration: underline; */
}
.s-cards{
    /* border: 1px solid red; */
    padding: 0.5em ;
    margin: 0 2em ;
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(300px,1fr));
    gap: 1em; 
    align-items: center;
    justify-content: center;
}
.s-card{
    border: 1px solid;
    border-radius: 20px;
    height: 15vh;
    /* height: auto; */
    padding: 1em;
}
.s-card h2{
    font-size: 20px;
}
.s-bs{
    /* border: 1px solid; */
    display: flex;
    margin-top: 0.6em;
}
.s-b{
    /* border: 1px solid green; */
    background-color: rgba(165, 166, 167, 0.568);
    margin: 0.3em;
    border-radius: 11px;
    padding: 0.4em;
    font-size: 12px;
}
.s-b1{
    background-color: rgba(165, 166, 167, 0.568);
    margin: 0.3em;
    border-radius: 11px;
    padding: 0.4em;
    font-size: 12px;
    display: inline-block;
}
/* ================================= pROJECT SECTION ============================ */
.cards{
    /* border: 1px solid red; */
    padding: 1em;
    margin: 1em;
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(300px,1fr));
    gap: 1.5em; 
    align-items: center;
}
.card{
    /* border: 2px solid yellowgreen; */
    /* width: 30%;  */
    padding: 0.25em;
}

.image{
    /* border: 1px solid red; */
    overflow: hidden;
    border-radius: 14px;  
    /* height: 26vh;           */
    height: auto;          
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.4s ease;
    cursor: pointer;
}

.image:hover{
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.2);
}

.image img{
    object-fit: cover;
    width: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.image:hover img{
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(77, 77, 77, 0.55); 
    backdrop-filter: blur(8px);    
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 20px;  
    z-index: 2;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.image:hover .image-overlay{
    opacity: 1;
    transform: translateY(0);
}

.overlay-content{
    text-align: center;
    max-width: 95%;  
}

.overlay-content h1 {
    font-family: "Playfair Display", serif;
    font-size: 2rem;   
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.image:hover .overlay-content h1{
    transform: translateY(0);
    opacity: 1;
}

.overlay-content p {
    font-size: 0.95rem; 
    font-weight: 300;
    line-height: 1.5;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.image:hover .overlay-content p{
    transform: translateY(0);
    opacity: 1;
}

button {
    background: rgba(255, 255, 255, 0.95);
    color: #667eea;
    border: none;
    padding: 10px 22px;  
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9rem;  
    font-weight: 600;
    font-family: "Inter", sans-serif;
    letter-spacing: 0.02em;
    margin: 0.3em;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.3s,
    transform 0.3s ease, box-shadow 0.3s ease;
}

.image:hover button {
    transform: translateY(0);
    opacity: 1;
}

button:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

button:active {
    transform: translateY(0);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

button a {
    color: #0A0119;
    /* color: inherit; */
    text-decoration: none;
    display: inline-block;
}
.btn3{
    padding: 10px 3.5em;
}

.image::after{
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.3) 100%
        );
        opacity: 0;
        transition: opacity 0.5s ease;
        z-index: 1;
    }
    
    .image:hover::after{
        opacity: 1;
    }
    @media (max-width: 768px){
        .hero-section{
            grid-template-columns: 1fr; 
            padding: 2em 1.5em;
            gap: 2em;
            text-align: center;
        }
        .hero-content{
            order: 2;
        }
        .hero-content h1 {
            font-size: 28px;
        }
        .hero-pic{
            /* border: 1px solid red; */
            order: 1;
            margin-bottom: 1em;
        }
        .hero-content p {
            font-size: 16px;
            margin-bottom: 1em;
        }
        .btns {
            flex-direction: column;
        gap: 1em;
        justify-content: center;
        align-items: center;
    }
    .btn {
        width: 70%;
        margin: 0.3em 0;
    }
    .s-card{
        height: 18vh;
    }
    .s-card h2{
        font-size: 26px;
    }
    .s-cards{
        margin: 0 1em ;
    }
    .image{
        height: 30vh;
    }
    .header{
        padding: 0.8em 1.8em;
    }
    .openbtn {
        display: block;
    }
    .nav-links {
        /* border: 1px solid red; */
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        /* background: #0a0119e8; */
        background: #000000c2;
        width: 100vw;
        /* height: 60vh; */
        flex-direction: column;
        padding: 2em ;
        gap: 2em;
        /* text-decoration: underline #fff; */
        /* max-height: 0; */
        /* align-items: center; */
        /* align-items: calc(); */
        overflow: hidden;
        opacity: 0;
        transform: translateY(-20px);
        transition: 
        max-height 0.4s ease-in-out,
        opacity 0.4s ease-in-out,
      transform 0.4s ease-in-out;
    }
    
    .nav-links.active {
        max-height: 500px; 
    opacity: 1;
    transform: translateY(0);
}
.nav-links li{
    border-bottom: 1.5px solid #fff;
    padding: 0.5em 0;
}
}