html {
  scroll-behavior: smooth;
}

body {
  background-color: rgb(255, 249, 249);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ================= HEADER ================= */

.Head-section {
  background-color: black;
  min-height: 300px; /* replaced cap */
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.hero {
  color: aliceblue;
  width: 350px;
  padding: 60px;
}

.profile {
  width: 450px;
  padding-top: 20px;
}

/* ================= NAVBAR ================= */

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  color: rgb(255, 0, 0);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  opacity: 0.8;
  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(50px);
  background: rgba(0, 0, 0, 0.1);
}

.logo {
  font-size: 30px;
  font-weight: bold;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 60px;
  align-items: center;
}

.nav-links a {
  color: white;
  text-decoration: none;
  position: relative;
}

/* ================= CONTENT ================= */

.content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.About h1 {
  text-align: center;
  text-decoration: underline;
}

.About p {
  line-height: 1.6;
  padding-left: 50px;
}

/* ================= IMAGE ================= */

.Image {
  padding-top: 100px;
  padding-right: 50px;
  padding-bottom: 20px;
}

.Image img {
  width: 300px;
  border-radius: 20px;
  box-shadow: 
    0 10px 25px rgba(0,0,0,0.6),
    0 0 20px rgb(255, 0, 0);
  transition: 0.3s;
}

.Image img:hover {
  transform: scale(1.05);
}

/* ================= SKILLS ================= */

.top-skill {
  background-color: black;
  opacity: 0.7;
  border-radius: 20px;
  margin: 20px;
}

.skills-menu {
  color: aliceblue;
  display: flex;
  padding: 20px;
}

.skills-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 40px;
}

.skill {
  text-align: center;
  cursor: pointer;
}

.skill img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  padding: 15px;
  background: white;
  box-shadow: 0 5px 15px red;
}

.skill p {
  margin-top: 10px;
}

/* ================= PROJECT ================= */

.project-section h1 {
  text-align: center;
  padding-top: 20px;
  font-family: Brush Script MT;
  font-size: 100px;
}

.project-section p {
  width: 500px;
  margin: auto;
  text-align: center;
}

.project-images {
  display: flex;
  overflow-x: auto;
  gap: 35px;
  padding: 20px;
}

.project-images img {
  width: 400px;
  border-radius: 10px;
  box-shadow: 
    0 10px 25px rgba(0,0,0,0.6),
    0 0 20px red;
}

/* ================= CONTACT ================= */

.contact-section {
  background-color: black;
  height: 450px;
  color: aliceblue;
}

.contact-section h1 {
  text-align: center;
  font-size: 45px;
}

.contact-section p {
  padding-left: 50px;
  width: 400px;
}

.main-contact {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: end;
  gap: 10px;
  padding: 60px 50px 0 0;
}

.rights {
  display: flex;
  justify-content: flex-end;
  padding-right: 100px;
  color: red;
}

/* ================= RESPONSIVE ================= */

/* TABLET */
@media (max-width: 1024px) {

  .Head-section {
    flex-direction: column;
    text-align: center;
  }

  .hero, .profile {
    width: 80%;
    padding: 20px;
  }

  .content {
    flex-direction: column;
    text-align: center;
  }

  .Image {
    padding: 20px 0;
  }

  .Image img {
    width: 80%;
    max-width: 320px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }

  .project-section h1 {
    font-size: 50px;
  }

  .project-images img {
    width: 250px;
  }

  .main-contact {
    grid-template-columns: 1fr;
    text-align: center;
    justify-content: center;
  }

  .rights {
    justify-content: center;
    padding: 20px 0;
  }
}

/* MOBILE */
@media (max-width: 600px) {

  .navbar {
    flex-direction: column;
    gap: 10px;
  }

  .hero, .profile {
    width: 95%;
  }

  .About p {
    padding: 10px;
    font-size: 13px;
  }

  .project-section h1 {
    font-size: 32px;
  }

  .project-section p {
    width: 95%;
  }

  .project-images img {
    width: 200px;
  }

  .contact-section {
    height: auto;
    padding: 20px 0;
  }

  .main-contact {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .rights {
    justify-content: center;
    padding: 10px;
  }
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: black;
    color: rgb(255, 0, 0);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    opacity: 0.8;
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    background: rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 30px;
    font-weight: bold;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
    list-style: none;
    display: flex;
    gap: 60px;
    align-items: center;
    justify-content: space-between;
    opacity: 0.9;
}

.nav-links a {
    color: rgb(255, 255, 255);
    text-decoration: none;
    position: relative;
}

hr {
    width: 80%;
    margin: 30px auto;
    border: none;
    height: 2px;
    background-color: #ff0000;
}
.content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.content p {
    flex: 1;
}

.Image img {
    width: 300px;
    height: auto;
    display: block;
    margin: 0;
    border-radius: 20px;
    box-shadow: 
        0 10px 25px rgba(0,0,0,0.6),   
        0 0 20px rgb(255, 0, 0);
    -webkit-user-drag: none;
    transition: transform 0.3s ease;
}

.Image img:hover {
    transform: scale(1.05);
}

.About h1 {
    margin-bottom: 0;
    text-decoration: underline;
    text-align: center;
}

.About p {
    margin-top: 0;
    line-height: 1.6;
    padding-left: 5cap;
}
.Image{
    padding-top: 10cap;
    padding-right: 5cap;
    padding-bottom: 2cap;
}
.top-skill{
    background-color: black;
    opacity: 0.7;
    border-radius: 20px;
    margin: 20px;
}
.skills-menu{
    color: aliceblue;
    width: auto;
    display: flex;
    padding: 2cap;
}
.skills h1{
    text-align: center;
    text-decoration: underline;
    font-weight: 500px;
}
.project-section h1{
    text-align: center;
    padding-top: 2cap;
    padding-bottom: 20px;
    font-family: Brush Script MT;
    font-size: 100px;
}
.project-section p {
    width: 440px;
    text-align: center;
    margin: 0 auto;
}
.project-images {
    display: flex;
    overflow-x: auto; 
    gap: 35px;
    padding: 20px;
    scroll-behavior: smooth;
    justify-content: flex-start;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.project-images::-webkit-scrollbar {
    display: none;
}

.project-images img {
    width: 400px;
    flex-shrink: 0;      
    border-radius: 10px;
    scroll-snap-align: center;
    user-select: none;
    -webkit-user-drag: none;
    transition: transform 0.3s ease;
    box-shadow: 
        0 10px 25px rgba(0,0,0,0.6),   
         0 0 20px rgb(255, 0, 0);
}

.project-images img:hover {
    transform: scale(1.05);
}

.project-images::before {
    content: "";
}

.contact-section{
    padding-top: 5cap;
    background-color: black;
    height: 450px;
    width: 100%;
    margin: 0;
    color: aliceblue;
}

.contact-section h1{
    text-align: center;
    font-size: 45px;
    text-decoration: underline;
}

.contact-section p{
    text-align: left;
    padding-left: 5cap;
    width: 400px;
}

.contact-section h4{
    padding-left: 5cap;
}

.main-contact {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: end;
    column-gap: 20px;
    row-gap: 10px;
    padding-right: 5cap;
    padding-top: 6cap;
}

.main-contact h2 {
    margin: 0;
}

.main-contact a {
    color: rgb(255, 0, 0);
    text-decoration: none;
}
.head1,
.head2 {
    padding-right: 0;
    margin: 0;
}
.rights{
    color: #ff0000;
    display: flex;
    justify-content: flex-end;
    padding-right: 10cap;
}
.content a{
    color: rgb(0, 0, 0);
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  background: rgb(255, 0, 0);
  left: 0;
  bottom: 0;
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.skills-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 40px;
}

.skill {
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.skill img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    padding: 15px;
    background: #ffffff;
    box-shadow: 0 5px 15px rgb(255, 0, 0);
    transition: all 0.3s ease;
}

.skill p {
    margin-top: 10px;
    font-size: 14px;
    color: #000000;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: larger;
}

.skill:hover {
    transform: translateY(-10px);
}

.skill:hover img {
    transform: scale(1.2);
    background: #000000;
    box-shadow: 0 10px 25px rgb(0, 123, 255);
}

.skill:hover p {
    color:  rgb(0, 123, 255);
}
/* ================= FOOTER ================= */

.footer-section{
    background: linear-gradient(to top, #000000, #111111);
    color: aliceblue;
    width: 100%;
    padding-top: 70px;
    margin-top: 80px;
    border-top: 2px solid rgb(255, 0, 0);
}

.footer-container{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
    padding: 0 80px 50px;
    flex-wrap: wrap;
}

.footer-brand{
    flex: 1;
    min-width: 260px;
}

.footer-brand h1{
    font-size: 38px;
    color: rgb(255, 0, 0);
    margin-bottom: 20px;
    font-family: Brush Script MT;
}

.footer-brand p{
    line-height: 1.8;
    color: rgba(240, 248, 255, 0.8);
    max-width: 400px;
}

.footer-links{
    min-width: 180px;
}

.footer-links h2{
    font-size: 24px;
    margin-bottom: 25px;
    color: white;
    position: relative;
}

.footer-links h2::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 60px;
    height: 2px;
    background: red;
}

.footer-links ul{
    list-style: none;
}

.footer-links ul li{
    margin-bottom: 15px;
}

.footer-links ul li a{
    text-decoration: none;
    color: rgba(240, 248, 255, 0.8);
    transition: 0.3s ease;
    position: relative;
}

.footer-links ul li a:hover{
    color: red;
    padding-left: 8px;
}

.footer-contact{
    min-width: 250px;
}

.footer-contact h2{
    font-size: 24px;
    margin-bottom: 25px;
    color: white;
    position: relative;
}

.footer-contact h2::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 60px;
    height: 2px;
    background: red;
}

.contact-item{
    margin-bottom: 22px;
}

.contact-item h3{
    font-size: 16px;
    margin-bottom: 6px;
    color: rgb(255, 0, 0);
}

.contact-item a{
    text-decoration: none;
    color: rgba(240, 248, 255, 0.8);
    transition: 0.3s ease;
}

.contact-item a:hover{
    color: red;
}

.contact-item p{
    color: rgba(240, 248, 255, 0.8);
}

.footer-bottom{
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    padding: 25px 20px;
}

.footer-bottom p{
    margin: 5px 0;
}

.footer-note{
    color: rgba(240, 248, 255, 0.6);
    font-size: 14px;
}

/* ================= FOOTER RESPONSIVE ================= */

@media (max-width: 1024px){

    .footer-container{
        padding: 0 40px 40px;
        gap: 40px;
    }

    .footer-brand h1{
        font-size: 32px;
    }

}

@media (max-width: 768px){

    .footer-container{
        flex-direction: column;
        text-align: center;
        align-items: center;
        padding: 0 25px 40px;
    }

    .footer-brand p{
        max-width: 100%;
    }

    .footer-links h2::after,
    .footer-contact h2::after{
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-links ul li a:hover{
        padding-left: 0;
    }

}

@media (max-width: 480px){

    .footer-section{
        padding-top: 50px;
    }

    .footer-brand h1{
        font-size: 28px;
    }

    .footer-links h2,
    .footer-contact h2{
        font-size: 22px;
    }

    .footer-bottom{
        font-size: 13px;
    }

}
/* ================= FOOTER BUSINESS ================= */

.footer-business{
    min-width: 200px;
}

.footer-business h2{
    font-size: 24px;
    margin-bottom: 25px;
    color: white;
    position: relative;
}

.footer-business h2::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 60px;
    height: 2px;
    background: red;
}

.footer-business ul{
    list-style: none;
}

.footer-business ul li{
    margin-bottom: 15px;
}

.footer-business ul li a{
    text-decoration: none;
    color: rgba(240, 248, 255, 0.8);
    transition: 0.3s ease;
}

.footer-business ul li a:hover{
    color: red;
    padding-left: 8px;
}

/* MOBILE */

@media (max-width: 768px){

    .footer-business h2::after{
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-business ul li a:hover{
        padding-left: 0;
    }

}
/* ================= EXTRA RESPONSIVE FIXES ================= */

/* Prevent all horizontal overflow */
html, body{
    overflow-x: hidden;
    width: 100%;
}

/* Better image responsiveness */
img{
    max-width: 100%;
    height: auto;
}

/* Hero section improvements */
@media (max-width: 768px){

    .Head-section{
        padding-top: 100px;
        justify-content: center;
    }

    .hero{
        width: 100%;
        text-align: center;
        padding: 20px;
    }

    .hero h1{
        font-size: 32px;
    }

    .hero p{
        font-size: 15px;
        line-height: 1.7;
    }

    .profile{
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .profile img{
        width: 260px;
    }

}

/* Navbar mobile optimization */
@media (max-width: 768px){

    .navbar{
        padding: 12px 15px;
    }

    .logo{
        font-size: 24px;
        text-align: center;
    }

    .nav-links{
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links a{
        font-size: 14px;
    }

}

/* About section mobile */
@media (max-width: 768px){

    .content{
        flex-direction: column;
        padding: 10px;
    }

    .About p{
        padding: 15px;
        text-align: center;
        font-size: 14px;
    }

    .Image{
        padding: 20px 0;
    }

}

/* Skills responsive */
@media (max-width: 768px){

    .skills-container{
        gap: 25px;
        padding: 0 15px;
    }

    .skill img{
        width: 70px;
        height: 70px;
    }

    .skill p{
        font-size: 15px;
    }

}

/* Project section responsive */
@media (max-width: 768px){

    .project-section h1{
        font-size: 55px;
    }

    .project-section p{
        width: 90%;
        font-size: 14px;
        line-height: 1.7;
    }

    .project-images{
        gap: 20px;
        padding: 15px;
    }

    .project-images img{
        width: 280px;
    }

}

/* Small phone optimization */
@media (max-width: 480px){

    .project-section h1{
        font-size: 42px;
    }

    .project-images img{
        width: 240px;
    }

    .skill img{
        width: 60px;
        height: 60px;
    }

    .skill p{
        font-size: 13px;
    }

}

/* Contact section responsive */
@media (max-width: 768px){

    .contact-section{
        height: auto;
        padding: 50px 20px;
    }

    .contact-section p{
        width: 100%;
        padding-left: 0;
        text-align: center;
        margin-top: 15px;
    }

    .contact-section h4{
        padding-left: 0;
        text-align: center;
        margin-top: 25px;
    }

    .main-contact{
        justify-content: center;
        text-align: center;
        padding: 30px 0;
    }

    .rights{
        justify-content: center;
        text-align: center;
        padding: 20px 10px;
    }

}

/* Footer smoother mobile layout */
@media (max-width: 768px){

    .footer-container{
        gap: 50px;
    }

    .footer-brand,
    .footer-links,
    .footer-business,
    .footer-contact{
        width: 100%;
    }

    .footer-brand p{
        margin: auto;
    }

}

/* Ultra small devices */
@media (max-width: 360px){

    .logo{
        font-size: 20px;
    }

    .hero h1{
        font-size: 26px;
    }

    .project-images img{
        width: 210px;
    }

    .footer-brand h1{
        font-size: 24px;
    }

}
