* {
   margin: 0;
   padding: 0;
   box-sizing: border-box;
}

html {
   scroll-behavior: smooth;
}

body {
   background-color: #0A192F;
   color: white;
   font-family: 'Poppins', sans-serif;
}

#header {
   width: 100%;
   height: 100vh;
   background-image: url("image/presonalimg.png");
   background-size: cover;
   background-position: center;
   background-attachment: fixed;
}

.container {
   padding: 10px 10px;
}

nav {
   display: flex;
   align-items: center;
   justify-content: space-between;
   flex-wrap: wrap;
}

.logo {
   width: 200px;
}

nav ul li {
   display: inline-block;
   list-style: none;
   margin: 10px 20px;
}

nav ul li a {
   color: white;
   text-decoration: none;
   font-size: 18px;
   position: relative;
}

nav ul li a::after {
   content: '';
   width: 0;
   height: 3px;
   background: rgb(230, 5, 43);
   position: absolute;
   left: 0;
   bottom: -6px;
   transition: 0.5s;
}

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

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

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

.header-text h1 span {
   color: rgb(230, 5, 43);
}

#element {
   color: rgb(230, 5, 43);
}

/* -----------About-------------------- */
#about {
   padding: 80px 0;
}

.row {
   display: flex;
   justify-content: space-between;
   flex-wrap: wrap;
}

.col1 {
   flex-basis: 35%;
}

.col1 img {
   width: 95%;
   border-radius: 15px;
}

.col2 {
   flex-basis: 60%;
}

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

.col2 h1 {
   color: rgb(230, 5, 43);
}

.col2 p {
   font-size: 15px;
}

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

.tab-titles p {
   margin-right: 20px;
   font-size: 25px;
   font-weight: 500;
   cursor: pointer;
   position: relative;
}

.tab-links::after {
   content: '';
   width: 0;
   height: 3px;
   background: rgb(230, 5, 43);
   position: absolute;
   left: 0;
   bottom: -8px;
   transition: 0.5s;
}

.tab-links.active-links::after {
   width: 100%;
}

.tab-contents ul li {
   list-style: none;
   margin: 10px 0;
}

.tab-contents ul li span {
   color: rgb(230, 5, 43);
   font-size: 14px;
}

.tab-contents {
   display: none;
}

.tab-contents.active-tab {
   display: block;
}

/* ---------------contact--------------- */
.contact-left {
   flex-basis: 35%;
}

.contact-right {
   flex-basis: 60%;
}

.contact-left p {
   margin-top: 30px;
}

.contact-left p i {
   color: rgb(230, 5, 43);
   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;
   color: rgb(230, 213, 223);
   transition: transform 0.5px;
}

.social-icons a:hover {
   color: rgb(230, 5, 43);
   transform: translatey(-5px);
}

.btncv {
   background-color: rgb(230, 5, 43);
   color: white;
   padding: 0px 24px;
   font-size: 16px;
   border: none;
   border-radius: 8px;
   cursor: pointer;
   text-decoration: none;
   /* in case it's an <a> link */
   transition: background-color 0.3s ease, transform 0.2s ease;
}

.btncv:hover {
   background-color: rgb(200, 0, 30);
   transform: scale(1.5);
   /* slight zoom on hover */
}


/* Style the form */
form {
   display: flex;
   flex-direction: column;
   gap: 15px;
   /* spacing between elements */
   max-width: 500px;
   margin: auto;
   /* center horizontally */
   padding: 20px;
   background-color: #112240;
   /* dark background */
   border-radius: 12px;
   /* rounded corners */
   box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
   /* subtle shadow */
}

/* Style text inputs and textarea */
form input,
form textarea {
   width: 100%;
   padding: 12px 15px;
   border: 1px solid #ccc;
   border-radius: 8px;
   background-color: #0A192F;
   color: white;
   font-size: 16px;
   outline: none;
   transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

form input:focus,
form textarea:focus {
   border-color: rgb(230, 5, 43);
   box-shadow: 0 0 8px rgb(230, 5, 43, 0.5);
}

/* Style the submit button */
.btn {
   background-color: rgb(230, 5, 43);
   color: white;
   border: none;
   padding: 14px 25px;
   font-size: 16px;
   border-radius: 8px;
   cursor: pointer;
   transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
   background-color: rgb(200, 0, 30);
   transform: translateY(-2px);
   /* subtle hover lift */
}

.copyright {
   background: rgb(1, 8, 44);
   text-align: center;
   color: #4b5361;
}

/* -----------small screen------------ */
nav .fa-solid {
   display: none;
}

@media only screen and (max-width:600px) {
   #header {
      background-image: url("image/profile-for-mbl.jpg");
   }

   .header-text {
      margin-top: 100%;
      font-size: 16px;
   }

   .header-text h1 {
      font-size: 30px;
      color: black;
   }

   nav .fa-solid {
      display: block;
      font-size: 25px;
   }

   nav ul {
      background: rgb(230, 5, 43);
      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;
   }

   .col1,
   .col2 {
      flex-basis: 100%;
   }

   .contact-left h1 {
      font-size: 35px;
      margin-top: 10px;
   }

   #contact .row {
      flex-direction: column;
   }

   .contact-left,
   .contact-right {
      flex-basis: 100%;
      width: 100%;
      margin-bottom: 20px;
      /* spacing between contact-left and contact-right */
   }

   .contact-left {
      text-align: center;
      /* center the text/icons */
   }

   .contact-left .social-icons {
      justify-content: center;
   }

   form {
      width: 100%;
      padding: 15px;
      box-shadow: none;
      /* optional: remove shadow on small screen if you want a cleaner look */
   }
}