*{
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}
html{
    scroll-behavior: smooth;
}
body{
    background: #080808;
    color: #fff; 
}

/* Cover (Facebook-style) */
#header{
    width: 100%;
    height: 360px;                 /* desktop cover height */
    background-image: url(img/coverimage.jpg);
    background-size: cover;
    background-position: center;   /* center the focal point */
    background-repeat: no-repeat;
    background-attachment: scroll; /* or 'fixed' if you want parallax */
    position: relative;            /* needed for absolute children */
  }
  
  /* optional dark gradient for text readability */
  #header::after{
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,.25), rgba(0,0,0,.5));
    pointer-events: none;
  }
  
/* Header text — left corner placement */
.header-text{
    position: relative;
    z-index: 2;
    margin-top: 30px;       /* vertical placement inside cover */
    margin-left: 40px;       /* horizontal spacing from the left edge */
    text-align: left;        /* align text to the left */
    font-size: 18px;
    max-width: 600px;        /* keep lines readable */
  }
  
  .header-text h1{
    font-size: 56px;
    line-height: 1.1;
    margin-top: 5px;
  }
  
  .header-text h1 span{
    color: #ff4a6b;
    font-family: Cambria, serif;
  }
  
  
  
  
  /* Profile picture centered & overlapping */
  .profile-pic{
    position: absolute;
    left: 50%;
    bottom: -72px;                       /* overlap amount */
    transform: translateX(-50%);
    width: 144px;
    height: 144px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #080808;
    z-index: 3;
    box-shadow: 0 8px 24px rgba(235, 5, 5, 0.35);
  }
  .profile-pic img{
    width: 100%;
    height: 160%;
    object-fit: cover;
  }
  
  
  /* Give the section under the cover some top space so it doesn't collide with the floating avatar */
/* Give the section under the cover space for the floating avatar */

  
  /* Row spacing so About image/text don’t collide */
  .row{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 32px;                           /* NEW: consistent gap */
  }
  .about-col-1{ flex-basis: 35%; min-width: 280px; }
  .about-col-2{ flex-basis: 60%; min-width: 320px; }
  
  /* Responsive tweaks */
/* --- Mobile-only: place header text high-left, keep menu on top, avatar below --- */
/* --- Mobile-only: fit header text between logo and avatar --- */
@media (max-width: 600px){
      /* Make sure nav/menu sits on the highest layer */
  nav{ position: relative; z-index: 10000; }
  nav ul{ position: fixed; z-index: 10001; } /* already fixed, just ensure top */



    #header{ 
      position: relative; 
      height: 260px; 
    }
  
    .header-text{
      position: absolute;
      top: 110px;             /* starts below the logo */
      left: 16px;
      right: 16px;           /* keep balanced margins */
      margin: 0 !important;
      padding: 0;
      text-align: left;
      font-size: 10px;
      line-height: 1.3;
      max-width: calc(100% - 32px);
      z-index: 2;            /* above background, below menu */
    }
  
    .header-text h1{
      font-size: 9px;
      line-height: 1.2;
      margin: 6px 0;
    }
  
    .header-text p{
      margin: 4px 0;
      font-size: 9px
    }
  
    /* keep avatar below the text and under menu */
    .profile-pic{
      width: 110px;
      height: 110px;
      bottom: -55px;
      left: 50%;
      transform: translateX(-50%);
      z-index: 1;
      top: 230px;
    }
  
   
  }
  
 
  /* FIX: You had a small typo causing mobile override to fail */
  @media only screen and (max-width: 600px){
    /* was #headeer — corrected to #header */
    #header{
      background-image: url(img/coverimage.jpg);
    }
  }
  


.container{
    padding: 10px 10px;

}
nav{
    display: flex;
    align-items: center;
    justify-content: space-between;

}
.logo{
width: 100px;
height: 100px;
display:flexbox;
border-radius: 20px;

}


nav ul li{
    display: inline-block;
    list-style: none;
    margin: 10px 20px ;
}

nav ul li a{
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    position: relative;
}

nav ul li a::after {
    content: "";
    width: 0%;
    height: 3px;
    background: #ff004f;
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: .5s;

}
nav ul li a:hover::after{
    width: 100%;
    
}



/* --------------about---------*/

#about{
    padding: 80px 0;
    color: #ababab;
}
.row{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.about-col-1{
    flex-basis: 35%;
}
.about-col-1 img{
    width: 100%;
    border-radius: 15px;
    height: auto
}

.about-col-2{
    flex-basis: 60%;
}
.subt-title{
    font-size: 60px;
    font-weight: 600;
    color: #fff;

}
.tab-titles{
    display: flex;
    margin: 20px 0 40px;
}
.tab-links{
    margin-right: 50px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
}

.tab-links::after{
    content: "";
    width: 0;
    height: 3px;
    background: #ff004f;
    position: absolute;
    left: 0;
    bottom: -8px;
    transition: 0.5s;
}
.tab-links.active-link::after{
width: 50%;
}

.tab-contents ul li{
    list-style: none;
    margin: 10px 0;
}
.tab-contents ul li span{
    color: #b54769;
    font-size: 14px;
}

.tab-contents{
    display: none;
}
.tab-contents.active-tab{
    display: block;
}

/*---------------------------Services-------------*/
#services{
padding: 30px 0;
}

.services-list{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 40px; 
    margin-top: 50px;
}

.services-list div{
    background: #262626;
    padding: 40px;
    font-size: 13px;
    font-weight: 300;
    border-radius: 10px;
    transition: background 0.5s, transform 0.5s;

}

.services-list div i{
    font-size:  50px;
    margin-bottom: 30px;

}

.services-list div h2{
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 15px;
}

.services-list div a{
    text-decoration:  none;
    color: #fff;
    font-size: 12px;
    margin-top: 20px;
    display: inline-block;
}

.services-list div:hover{
    background: #ff004f;
    transform: translateY(-10px);
}

/* ---------------Portfolio------*/
#portfolio{
    padding: 50px 0;
}

.work-list{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 40px; 
    margin-top: 50px;

}
.work{
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}
.work img{
    width: 100%;
    height: 500px;
    border-radius: 10px;
    display: block;
    transition: transform 0.5s;
}

.layer{
    width: 100%;
    height: 0%;
    background: linear-gradient(rgba(0,0,0,0.6), #ff004f);
    border-radius: 10px;
    position: absolute;
    left: 0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px ;
    text-align: center;
    font-size: 14px;
    transition: height 0.5s;
}

.layer h3{
    font-weight: 500;
    margin-bottom: 20px;
}
.layer a{
    margin-top: 20px;
    color: #ff004f;
    text-decoration: none;
    font-size: 18px;
    line-height: 60px;
    background: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;

}

.work:hover img{
    transform: scale(1.1);
}

.work:hover .layer{
    height: 100%;
}
.btn{
    display: block;
    margin: 50px auto;
    width: fit-content;
    border: 1px solid #ff004f;
    padding: 14px 50px;
    border-radius: 6px;
    text-decoration: none;
    color: #fff;
    transition: background 0.5s;
}
.btn:hover{
    background: #ff004f;
}

/**-------Contact------*/
.contact-left{
    flex-basis: 35%;
}
.contact-right{
    flex-basis: 60%;
}
.contact-left p{
    margin-top: 30px;
}
.contact-left p i{
    color: #ff004f;
    margin-right: 15px;
    font-size: 25px;
}
.social-icons{
    margin-top: 30px;

}
.social-icons a{
    text-decoration: none;
    font-size: 30px;
    margin-right: 15px;
    display: inline-block;
    transition: transform 0.5s;
    color: #ababab;
}

.social-icons a:hover{
    color: #ff004f;
    transform: translatey(5px);
}

.btn.btn2{
    display: inline-block;
    background: #ff004f;
}

.contact-right from{
    width: 100%;
}
form input, form textarea{
    width: 100%;
    border: 0;
    outline: none;
    background: #262626 ;
    padding: 15px;
    margin: 15px 0;
    color: #fff;
    font-size: 18px;
    border-radius: 6px;
}
form .btn2 {
    padding: 14px 60px;
    font-size: 18px;
    margin-top: 20px;
    cursor: pointer;
}
.copyright{
    width: 100%;
    text-align: center;
    padding: 25px 0;
    background: #262626;
    font-weight: 300;
    margin-top: 20px;
}

.copyright i{
    color: #ff004f;
}

.copyright a{
    text-decoration: none;
    transition: transform 0.5s;
    color: #fff;
}
.copyright a:hover{
    color: #ff004f;
    transform: translatey(5px);
}
/*-----------------------CSS for samll Screen------*/
nav .fa-solid{

    display: none;
}

@media only screen  and (max-width: 600px){
    #headeer{
        background-image: url(img/background.png);
    }
    .header-text{
        margin-top: 100%;
        font-size: 16px;
    }
    .header-text h1{
        font-size: 30px;
    }
    nav .fa-solid{
        display: block;
        font-size: 25px;
    }
    nav ul{
        background:#ff004f;
        position: fixed;
        top: 0; 
        right: -200px;
        width: 200px;
        height: 100vh;
        padding-top: 50px;
        z-index: 2;
        transition: right 0.5s ;
    }
    nav ul li{
        display: block;
        margin: 25px;
    }

    nav ul .fa-solid{
        position: absolute;
        top: 25px;
        left: 25px;
        cursor: pointer;
    }
    .fa-solid.fa-bars{
        cursor: pointer;
    }
    .subt-title{
        font-size: 40px;

    }
    .about-col-1, .about-col-2{
        flex-basis: 100%;

    }
    .about-col-1{
        margin-bottom: 30px;
    }
     .about-col-2{
        font-size: 14px;
     }
     .tab-links{
        font-size: 16px;
        margin-right: 20px;
     }
     .contact-left, .contact-right{
        flex-basis: 100%;
     }
     .copyright{
        font-size: 14px;
     }

}

#msg{
    color: #61b752;
    margin-top: -40px;
    display: block;
}


/* Modal (keeps your existing IDs/classes intact) */
.modal[hidden]{ display:none; }
.modal{ position:fixed; inset:0; z-index:10050; }
.modal__backdrop{ position:absolute; inset:0; background:rgba(0,0,0,.6); }
.modal__card{
  position:relative;
  max-width:520px;
  margin:10vh auto;
  background:#1a1a1a;
  color:#fff;
  border-radius:12px;
  padding:24px;
  box-shadow:0 10px 30px rgba(0,0,0,.4);
  border:1px solid #333;
}
.modal__close{
  position:absolute; top:8px; right:12px;
  font-size:22px; background:transparent; color:#fff;
  border:0; cursor:pointer;
}
.modal__actions{ display:flex; gap:12px; margin-top:16px; }
.modal__actions .btn{ border:1px solid #ff004f; padding:10px 16px; border-radius:6px; text-decoration:none; color:#fff; }
.modal__actions .btn.btn2{ background:#ff004f; }


.visit-counter { 
    margin-top: 8px; 
    font-size: 14px; 
    color: #ababab;
  }
  