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

* {
    margin: 0;
    padding: 0;
    font-family: 'Poopins', sans-serif;
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
}

body {
    background: #808080;
    color: #fff;
}

#header {
  width: 100%;
  height: 100vh;
  background: url('./images/sksk.JPG') no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-position 0.4s ease;
  opacity: 0.7;
}

/* Fix for Mobile (iPhone/Safari) */
@supports (-webkit-touch-callout: none) {
  #header {
    background-attachment: scroll; /* disables parallax on mobile for stability */
    background-position: center top;
  }
}

/* For smaller devices (iPhone 14 Pro / others) */
@media screen and (max-width: 1024px) {
  #header {
    height: 100dvh; /* Use dynamic viewport height */
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
  }
}


.container{
    padding: 10px 10%;
}

/* ======== NAVBAR STYLING ======== */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 15px 10%;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;

  /* 🔥 Background effect */
  background: rgba(0, 0, 0, 0.6); /* translucent dark */
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* ======== Logo ======== */
.logo {
  width: 50px;
  height: 50px;
  border-radius: 100%;
  box-shadow: 0 0 15px #ff004f;
}

/* ======== Navbar Links ======== */
nav ul li {
  display: inline-block;
  list-style: none;
  margin: 10px 25px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600; /* 👈 BOLD TEXT */
  letter-spacing: 0.5px;
  transition: color 0.3s ease, transform 0.2s ease;
}

nav ul li a:hover {
  color: #ff004f;
  transform: scale(1.1);
}

/* ======== Underline Animation ======== */
nav ul li a::after {
  content: '';
  width: 0;
  height: 3px;
  background: #ff004f;
  position: absolute;
  left: 0;
  bottom: -6px;
  transition: width 0.4s;
}

nav ul li a:hover::after {
  width: 100%;
}

/* ======== Mobile Burger ======== */
nav .bi {
  display: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

/* ======== Responsive (Mobile View) ======== */
@media (max-width: 768px) {
  nav {
    background: rgba(0, 0, 0, 0.85);
    padding: 12px 8%;
  }

  nav .bi {
    display: block;
  }

  nav ul {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
    position: fixed;
    top: 0;
    right: -200px;
    width: 200px;
    height: 100vh;
    padding-top: 60px;
    z-index: 999;
    transition: right 0.4s ease;
  }

  nav ul li {
    display: block;
    margin: 25px;
    text-align: center;
  }

  nav ul li a {
    font-size: 20px;
    font-weight: 700;
  }

  nav ul .bi {
    position: absolute;
    top: 25px;
    left: 25px;
  }
}


.header-text{
    margin-top: 20%;
    font-size: 30px;
}

.header-text h1{
    font-size: 60px;
    margin-top: 20px;
}

.header-text h1 span{
    color: #ff004f;
}

.header-text h1::after{
    transition: 1s;
}

.header-text h1:hover{
    color: bisque;
}

/*---------About-----------*/

#about{
    background-color: black;
    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;
    transition: transform 0.5s;
}

.about-col-1 img:hover{
    transform: scale(1.1);
}

.about-col-2 p span{
    color: #ff004f;
}

.about-col-2{
    flex-basis: 60%;
}

.sub-title{
    font-size: 60px;
    font-weight: 600;
    color: #fff;
}

.tab-titels{
    display: flex;
    margin: 20px 0 40px;
}

.tab-link{
    margin-right: 50px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
}

.tab-link::after{
    content: '';
    width: 0;
    height: 3px;
    background: #ff004f;
    position: absolute;
    left: 0;
    bottom: -8px;
    transition: 0.5s;
}

.tab-link.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;
}

/* Enhanced Service Boxes Layout */
.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 50px;
  margin-top: 60px;
}

/* Each Card Box */
.service-box {
  background: linear-gradient(135deg, #1a1a1a, #242424);
  padding: 40px 30px;
  border-radius: 25px;
  transition: all 0.4s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  text-align: left;
  position: relative;
  min-height: 400px; /* Ensures even height */
}

/* Card hover elevation */
.service-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(255, 0, 79, 0.35);
}

/* Service Icon */
.service-icon {
  font-size: 48px;
  color: #ff004f;
  margin-bottom: 18px;
  display: inline-block;
}

/* Text Styling */
.service-box h2 {
  color: #fff;
  font-size: 24px;
  margin-bottom: 15px;
  font-weight: 600;
}

.service-box p {
  font-size: 16px;
  color: #ccc;
  margin-bottom: 12px;
  line-height: 1.6;
}

.service-box ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 30px;
}

.service-box ul li {
  color: #e4e4e4;
  margin: 6px 0;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Buttons inside each box */
.btn-service {
  display: inline-block;
  text-decoration: none;
  padding: 12px 28px;
  font-weight: 500;
  color: #fff;
  border-radius: 10px;
  background: linear-gradient(90deg, #ff004f, #ff3366);
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 0, 79, 0.4);
}

.btn-service:hover {
  transform: scale(1.07);
  box-shadow: 0 6px 20px rgba(255, 0, 79, 0.7);
}

/* LinkedIn Blue Button */
.blue-btn {
  background: linear-gradient(90deg, #0072b1, #00a8ff);
  box-shadow: 0 4px 12px rgba(0, 114, 177, 0.4);
}

.blue-btn:hover {
  box-shadow: 0 6px 20px rgba(0, 114, 177, 0.7);
}

/* WhatsApp Green Button */
.whatsapp-btn {
  background: linear-gradient(90deg, #25D366, #20bd57);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn:hover {
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.7);
}

/* Responsive Fixes */
@media (max-width: 768px) {
  .services-list {
    gap: 30px;
  }

  .service-box {
    min-height: auto;
    padding: 30px 20px;
  }

  .service-icon {
    font-size: 40px;
  }

  .service-box h2 {
    font-size: 22px;
  }
}



/* ========= Portfolio / Projects Section ========= */
#portfolio {
  padding: 80px 0;
  background: #6f6f6f;
}

#portfolio .sub-title {
  text-align: center;
  font-size: 60px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 60px;
}

.work-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 50px;
}

.work {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.work img {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  display: block;
  transition: transform 0.6s ease;
}

.work:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(255, 0, 79, 0.35);
}

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

.layer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.7), #ff004f);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 30px;
  color: #fff;
  font-size: 15px;
  transition: height 0.6s ease;
}

.work:hover .layer {
  height: 100%;
}

.layer h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #fff;
}

.layer p {
  font-size: 15px;
  line-height: 1.6;
  color: #f3f3f3;
}

.layer b {
  color: #ffcad4;
}

.layer a {
  margin-top: 20px;
  color: #ff004f;
  background: #fff;
  border-radius: 50%;
  text-align: center;
  width: 55px;
  height: 55px;
  font-size: 20px;
  line-height: 55px;
  display: inline-block;
  transition: all 0.3s ease;
}

.layer a:hover {
  background: #ff004f;
  color: #fff;
  transform: scale(1.1);
}

.btn {
  display: block;
  margin: 60px auto 0;
  width: fit-content;
  border: 1px solid #ff004f;
  padding: 14px 50px;
  border-radius: 10px;
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  transition: 0.4s ease;
}

.btn:hover {
  background: #ff004f;
  box-shadow: 0 0 25px rgba(255, 0, 79, 0.5);
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
  #portfolio .sub-title {
    font-size: 40px;
  }
  .layer p {
    font-size: 14px;
  }
  .layer {
    padding: 20px;
  }
}


/*----------------contacts----------------*/

#contacts{
    background: #808080;
}

.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-icon{
    margin-top: 30px;
}

.social-icon a{
    text-decoration: none;
    font-size: 30px;
    margin-left: 15px;
    color: #fff;
    display: inline-block;
    transition: transform 0.5s;
}

.social-icon a:hover{
    color: #ff004f;
    transform: translateY(-5px);
}

.btn.btn2{
    display: inline-block;
    background: #ff004f;
}

.contact-right form{
    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;
}

/*----------------media query--------------*/

nav .bi{
    display: none;
}

@media (max-width: 600px){
    #header{
        background-image: url('./images/phone-background.jpg');
    }
    .header-text{
        margin-top: 100%;
        font-size: 16px;
    }
    .header-text h1{
        font-size: 30px;

    }
    nav .bi{
        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 .bi{
        position: absolute;
        top: 25px;
        left: 25px;
        cursor: pointer;
    }
    .sub-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-link{
        font-size: 16px;
        margin-right: 20px;
    }
    .contact-left, .contact-right{
        flex-basis: 100%;
    }
    .copyright{
        font-size: 14px;
    }
}

#msg{
    color: greenyellow;
    margin-top: -40px;
    display: block;
}
/* About Section Improvements */
.about-col-2 .about-text {
  font-size: 17px;
  line-height: 1.8;
  color: #ddd;
  margin-top: 10px;
}

.about-col-2 ul {
  margin: 15px 0 25px 25px;
  line-height: 1.8;
}

.about-col-2 ul li {
  list-style-type: "✨ ";
  margin: 8px 0;
  font-size: 15px;
}

.about-col-2 b {
  color: #ff004f;
}

/* Image Gallery (Fixed Responsive Design) */
.image-gallery {
  position: relative;
  width: 100%;
  height: 420px; /* fixed height for uniformity */
  border-radius: 15px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
  box-shadow: 0 0 15px rgba(255, 0, 79, 0.3);
}

.image-gallery img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: auto;
  height: 100%;
  max-width: none;
  transform: translate(-50%, -50%);
  border-radius: 15px;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

/* For landscape images */
.image-gallery img.landscape {
  width: 100%;
  height: auto;
}

/* Active image visible */
.image-gallery img.active {
  opacity: 1;
}

/* Tech Gallery Section (below About photo) */
.tech-gallery {
  margin-top: 25px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 0 18px rgba(255, 0, 79, 0.35);
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tech-gallery img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  object-fit: contain;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.tech-gallery img:hover {
  transform: scale(1.03);
  box-shadow: 0 0 25px rgba(255, 0, 79, 0.5);
}

/* Responsive fix for smaller screens */
@media (max-width: 768px) {
  .tech-gallery {
    margin-top: 20px;
  }
}



/* =======================
   HERO SECTION FIX
   ======================= */
.header-text {
  position: absolute;
  bottom: 8%;       /* Keeps it near bottom */
  right: 6%;        /* Pushes slightly inside from edge */
  text-align: right;
  z-index: 2;
  width: auto;
  max-width: 650px;
  
}

.header-box {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 35px 55px;
  border-radius: 18px;
  box-shadow: 0 0 25px rgba(255, 0, 79, 0.3);
  text-align: right;
}

.header-box p {
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 18px;
  color: #e6e6e6;
  line-height: 1.5;
}

.header-box h1 {
  font-size: 55px;
  line-height: 1.3;
  color: #fff;
  font-weight: 600;
}

.header-box h1 span {
  color: #ff004f;
}

/* ✅ MOBILE FIX (iPhone 14 Pro, iPads, etc.) */
@media (max-width: 768px) {
  .header-text {
    position: absolute;
    top: 6%;       /* Still near bottom, not middle */
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    text-align: center;
    width: 90%;
  }

  .header-box {
    padding: 20px 25px;
    border-radius: 16px;
    max-width: 95%;
    text-align: center;
  }

  .header-box p {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .header-box h1 {
    font-size: 30px;
    line-height: 1.4;
  }
}

/* ✅ Optional iPhone Safari fine-tune */
@supports (-webkit-touch-callout: none) {
  .header-text {
    bottom: 5%;
  }
}


.header-box:hover {
  box-shadow: 0 0 35px rgba(255, 0, 79, 0.5);
  transition: 0.5s;
}

/* Mobile Responsive Fix */
@media (max-width: 768px) {
  .header-text {
    bottom: 10%;
    right: 5%;
    text-align: center;
  }

  .header-box {
    padding: 20px 25px;
  }

  .header-box p {
    font-size: 16px;
  }

  .header-box h1 {
    font-size: 32px;
  }
}

.layer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.7), #ff004f);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 30px;
  color: #fff;
  font-size: 15px;
  transition: height 0.6s ease;
  visibility: hidden; /* 👈 add this line */
  opacity: 0;         /* 👈 add this line */
}

.work:hover .layer {
  height: 100%;
  visibility: visible; /* 👈 add this line */
  opacity: 1;          /* 👈 add this line */
}

/* --- WhatsApp Button (Fixed) --- */
.whatsapp-btn {
  background: linear-gradient(90deg, #25D366, #20bd57);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 10px;
  padding: 12px 26px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.whatsapp-btn i {
  font-size: 20px;
}

.whatsapp-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

/* --- CV Card (Beautiful Resume Section) --- */
.cv-card {
  background: linear-gradient(145deg, #1a1a1a, #262626);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 20px 25px;
  margin-top: 35px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  transition: all 0.4s ease;
}

.cv-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(255, 0, 79, 0.5);
}

.cv-icon {
  font-size: 48px;
  color: #ff004f;
}

.cv-info h3 {
  color: #fff;
  font-size: 20px;
  margin-bottom: 6px;
}

.cv-info p {
  color: #ccc;
  font-size: 14px;
  margin-bottom: 10px;
}

.btn-cv {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  background: linear-gradient(90deg, #ff004f, #ff3366);
  color: #fff;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 0, 79, 0.4);
}

.btn-cv:hover {
  transform: scale(1.07);
  box-shadow: 0 8px 20px rgba(255, 0, 79, 0.6);
}

.btn-cv i {
  font-size: 18px;
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
  .cv-card {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  .cv-icon {
    font-size: 42px;
  }
}

/* --- Footer Copyright Section --- */
.copyright {
  width: 100%;
  text-align: center;
  padding: 25px 0;
  background: #1a1a1a;
  color: #ccc;
  font-weight: 300;
  font-size: 15px;
  letter-spacing: 0.3px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.3);
}

.copyright b {
  color: #ff004f;
  font-weight: 500;
}

.copyright small {
  display: block;
  margin-top: 8px;
  color: #aaa;
  font-size: 13px;
  line-height: 1.6;
}

.copyright i,
.copyright span {
  color: #ff004f;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .copyright {
    font-size: 14px;
    padding: 20px 10px;
  }
  .copyright small {
    font-size: 12px;
  }
}

