@import url("https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@300;400;600;700&display=swap");

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  text-decoration: none;
  list-style: none;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background-color: #ffffff;
  font-family: "Roboto Slab", serif;
  font-size: 16px;
  line-height: 1.7;
  color: #1a1a1a;
  transition: background-color 300ms ease, color 300ms ease;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  color: #191970;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
}

p {
  font-size: 1rem;
}

/* THE NAVIGATION */

nav .mylogo {
  color: #191970;
  font-weight: 600;
  cursor: pointer;
}

nav .mylogo:hover {
  color: #1C86EE;
  text-decoration: underline;
}

.heading {
  background: #ffffff;
  box-sizing: border-box;
  width: 100%;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.08);
  font-size: 14px;
  cursor: pointer;
}

.heading li a:hover {
  color: #1C86EE;
  font-weight: 700;
  text-decoration: underline;
}

section {
  padding: 6rem 0;
}

/* THE LOGO & HOME */

.home {
  min-height: 100vh;
  padding: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home .logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo .image {
  /*width: 200px; 
  height: 200px;*/
  width: clamp(200px, 20vw, 260px);
  height: clamp(200px, 20vw, 260px);
  border-radius: 50%;
  border: 3px solid #5A7690; 
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.15);
  object-fit: cover;
transition: transform 200ms ease, box-shadow 200ms ease;
}

.logo .image:hover {
  transform: scale(1.05);
  box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.18);
}

.home .container .subtitle{
  font-size: 1.05rem;
  max-width: 600px;
  margin: 1.5rem auto 0;
  color: #475569;
}

.headline{
  margin-top: 20px;
  color: #475569;
}

.title,
.subtitle,
.description {
  text-align: center;
  margin-top: 20px;
}

.title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.5px;
  /*font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;*/
}

.subtitle {
  font-size: 1rem;
  font-weight: 500;
  color: #475569;
}

.description {
  font-size: 0.9rem;
  color: #64748b;
}

.subtitle.text-left,
.description.text-left {
  text-align: left;
}

.analysis-web{
  cursor: pointer;
}

.analysis-web .container .web {
  height: 55px;
  text-align: center;
  background-color: #1C86EE;
  color: white;
  padding: 12px 24px;
  margin: 10px auto;
  border: 2px solid #1E90FF;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  transition: background 0.3s;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.analysis-web .web:hover{
  background-color: transparent;
  color: #191970;
  border: 2px solid #191970;
  transform: translateY(-2px);
  box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.2);
}

/* THE ABOUT */

.about {
  min-height: 100vh;
}

.about .about-image {
  /*width: 250px;
  height: 250px;*/
  width: clamp(250px, 20vw, 300px);
  height: clamp(250px, 20vw, 300px);
  background: #5A7690;
  border: 1px solid #5A7690;
  border-radius: 15px;
  box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.about .about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
  transition: transform 0.3s ease-out;
  cursor: pointer;
}

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

.about .about-image:hover {
  box-shadow: 4px 8px 15px rgba(0, 0, 0, 0.3); /* Larger shadow on hover */
}

/* THE SKILLS */

.my-skills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.my-skills .btn {
  margin: 0;
  padding: 10px 20px;
  font-size: 0.9rem;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.06);
  border-radius: 5px;
  cursor: pointer;
}

.btn-outline-success {
  background-color: transparent;
 border-color: #A9BFD1;
  color: #475569;
  box-shadow: none;
  transition: transform 200ms ease, background 200ms ease, box-shadow 200ms ease;
}

.btn-outline-success:hover {
  background-color: #1C86EE;
  border-color: transparent; 
  color: white;
  box-shadow: 0px 8px 20px rgba(28, 134, 238, 0.2);
  transform: translateY(-2px);
}


/* THE PORTFOLIO */
/*
.portfolio .container {
  /*display: flex;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;*/
  /*display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}*/
/*
.portfolio .container .box {
  background: white;
  display: flex;
  flex-direction: column;
  padding-bottom: 1.5rem;
  border-radius: 12px;
  border: none;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
*/
/*
.portfolio .container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.portfolio .container .box {
  flex: 0 1 calc(50% - 10px);
  min-width: 250px; 
  height: auto; 
  min-height: 220px;
  border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 2px;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column; 
}*/

/* Featured Projects - 3 columns */
#featured .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}
/*
#featured .container .box {
  margin: 0.5rem 0;
}
*/
/* All Projects - 2 columns */
#portfolio .container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

.portfolio .container .box {
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 2px;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.portfolio .box:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
}

.box .image-project {
  width: 100%;
  height: 240px;
  border: 1px solid transparent;
  border-radius: 12px 12px 0 0;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.portfolio .container .box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: 0.5s ease;
  cursor: pointer;
}

.portfolio .container .box:hover img {
  transform: scale(1.05);
  box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.15);
}

.portfolio .container .box .description {
  width: 100%;
  flex-grow: 1;
  padding: 1rem;
  border-radius: 0 0 12px 12px;
}

.portfolio .container .description span {
  font-size: 15px;
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}

.portfolio .container .description p {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-top: 0.5rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tags p {
  background: rgba(169, 191, 209, 0.2);
  border: 1px solid rgba(169, 191, 209, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 8px;
  padding: 5px 12px;
  font-weight: 500;
  font-size: 10px;
  color: #191970;
  display: inline-block;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.tags p:hover {
  background: rgba(169, 191, 209, 0.3);
  transform: scale(1.03);
}

.btn-view {
  width: 90%;             
  max-width: 300px;
  /*margin: 1.5rem auto 1rem;
  padding: 0.9rem 1.5rem;
  font-size: 14px;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease;
  animation: shake 2.8s infinite;*/
  display: block;
  margin: 1.5rem auto;
  padding: 0.85rem 1.6rem;
  background: #191970;
  text-align: center;
  color: #fff;
  font-size: 0.95rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.btn-view:hover {
  background-color: #1C86EE;
  color: #fff;
  border-color: transparent; 
  transform: translateY(-2px);
  box-shadow: 0px 2px 4px rgba(28, 134, 238, 0.6);
}


/* Experience */
.experience {
  text-align: center;
}

.experience .parent {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}

.experience .child {
  flex: 1 1 calc(30% - 20px);
  min-height: 150px;
  background-color: rgba(30, 144, 255, 0.1);
  border: 1px solid #A9BFD1;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.experience .child:hover {
  transform: translateY(-10px);
  box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.15);
}

.experience .child span {
  font-weight: 700;
  font-size: 24px;
  color: #191970;
}

.experience .child i {
  font-size: 32px;
  color: #191970;
  margin-top: 10px;
}

.experience .child p {
  font-weight: 500;
  color: #6c757d;
  margin-top: 8px;
}

.available-tag {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: #475569;
}

.available-tag i {
  color: #22c55e;
  margin-right: 6px;
}

.available-tag a {
  color: #191970;
  font-weight: 600;
  text-decoration: underline;
}

.available-tag a:hover {
  color: #1c86ee;
}


/* THE CONTACT */

.contact .contact-item .subtitle a {
  color: #191970; 
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.contact .contact-item .subtitle {
  background: rgba(30, 144, 255, 0.1); 
  border: 1px solid #A9BFD1; /* Softer blue-gray border */
  border-radius: 5px;
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px);
  box-shadow: 0 4px 6px rgba(30, 144, 255, 0.23); /* Lighter and softer shadow */
  display: flex;
  align-items: center;
  width: 80%;
  height: 40px;
  color: #191970;
  font-size: 17px;
  font-weight: 700;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.contact .contact-item .subtitle a:hover {
  color: #1C86EE;
}

.contact .contact-item .subtitle:hover {
  transform: translateY(-10px);
  box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.15);
}

::placeholder {
  font-size: 65%;
}

.contact .contact-item {
  line-height: 1px;
}

input {
  width: 200px;
  height: 40px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  outline: none;
}

input:focus {
  border-color: #bbb; /* Change border color on focus */
}

textarea {
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  outline: none;
}

textarea:focus {
  border-color: #bbb; /* Change border color on focus */
}

@keyframes swing {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateX(-5px);
  }
  60% {
    transform: translateX(-3px);
  }
}

form button {
  background: #191970;
  color: #fff;
  width: 200px;
  height: 40px;
  border: 1px solid transparent;
  cursor: pointer;
  border-radius: 8px;
  animation: swing 2.2s infinite;
}

form button:hover {
  background: #1C86EE;
  border: 1px solid transparent;
}

/* THE FOOTER */

footer {
  background: #ffffff;
  border-top: 1px solid transparent;
  box-shadow: 0px -2px 4px rgba(0, 0, 0, 0.1);
}

footer .icon-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

footer .icon-container .icon-item {
  border-radius: 50%;
  /*background-color: rgba(30, 144, 255, 0.6);
  box-shadow: 2px 2px 5px rgba(30, 144, 255, 0.6);
  border: 1px solid rgba(30, 144, 255, 0.6);*/
  background-color: rgb(25, 25, 112, 0.6);
  box-shadow: 2px 2px 5px rgb(25, 25, 112, 0.6);
  border: 1px solid rgb(25, 25, 112, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  width: 40px;
  height: 40px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

footer .icon-container .icon-item i {
  /*color: #555555;*/
  color: #fff;
}


@media screen and (max-width: 640px) {
  section {
    padding: 4rem 0;
  }
  /*
   .home {
    min-height: auto;
    padding: 3rem 0;
  }*/
  
  .home {
    min-height: 100vh;
    padding: 4rem 0;
  }

  .my-skills .btn {
    width: 100%;
    font-size: 0.9rem;
  }
  
  #featured .container,
  #portfolio .container {
    grid-template-columns: 1fr;
  }

  .contact .contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .contact .contact-item .subtitle a {
    font-size: 12px;
  }

  .contact .contact-item .subtitle {
    font-size: 12px;
  }
  
  form button{
margin-left: 50px;
    margin-right: 50px;
  }
}

@media screen and (min-width: 641px) and (max-width: 900px) {
  #featured .container,
  #portfolio .container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* FOR BIGGER SCREEN VIEW */

@media screen and (min-width: 901px) {
  .navbar-nav {
    margin-left: auto;
    margin-right: auto;
  }

  .navbar-brand {
    padding-left: 15px;
  }
  
  .logo .image {
    width: clamp(200px, 20vw, 260px);
    height: clamp(200px, 20vw, 260px);
  }

  #featured .container {
    grid-template-columns: repeat(3, 1fr);
  }

  #portfolio .container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .analysis-web .container{
display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 10px;
}
/*
  .analysis-web .analysis,
  .analysis-web .web{
    width: 45%;
  }*/
  
}

.third-scroll,
.fourth-scroll {
  opacity: 0;
  transform: translateX(100px);
  transition: all 0.6s ease;
}

.fifth-scroll {
  opacity: 0;
  transform: translateX(-100px); 
  transition: all 0.6s ease;
}

.for-scroll {
  opacity: 1;
  transform: translateX(0);
}



