*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html{
    scroll-behavior: smooth;
}


/* Navbar */
.navbar{
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
}
.navbar ul{
    display: flex;
    list-style: none;
    margin: 20px 0px;
}
.navbar ul li{
    font-family: century;
    font-size: 1.1rem;
    font-weight: bold;
}
.navbar ul li a{
    text-decoration: none;
    color: white;
    padding: 8px 25px;
    transition: all .5s ease;
}
.navbar ul li a:hover{
    background-color: white;
    color: black;
    box-shadow: 0 0 10px white;
}

/* Home Section */
#home{
    display: flex;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.5);
    height: 940px;
    justify-content: flex-start;
    align-items: left;
    color: white;
}
#home::before{
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    background: url('../simages/sodusp5.jpg') no-repeat center center/cover; 
    height: 1000px;
    width: 100%;
    z-index: -1;
    opacity: .8;
}
.main{
    display: flex;
    flex-direction: column;
    /* border: 1px solid white; */
    align-items: center;
    position: absolute;
    top: 30%;
    left: 10%;
}
.headings{
    font-family: century;
    font-size: 3rem;
    text-align: center;
    margin: 40px 0px;
}
.main p{
    font-size: 1.2rem;
    margin-bottom: 10px;
    margin-top: 10px;
}
.btn{
    padding: 10px 35px;
    background-color: transparent;
    border: 1px solid white;
    color: white;
    outline: none;
    transform: .6s ease;
}
.btn:hover{
    cursor: pointer;
    background-color: white;
    color: black;
    box-shadow: 0 0 5px white, 0 0 10px white, 0 0 15px white;
    font-weight: bold;
    transform: translate(0, -10px);
}
.btn:nth-child(1):hover{
    background-color: rgb(213, 48, 169);
}

/* About Section */
#about{
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    padding: 20px;
    margin-bottom: 50px;
}
#pic{
    display: flex;
}
#pic img{
    width: 400px;
    height: 450px;
}
#intro{
    display: flex;
    flex-direction: column;
    text-align: justify;
    padding: 10px;
}
#intro h2{
    font-size: 2rem;
    margin-bottom: 20px;
}

/* Portfolio Section */
#portfolio{
    display: flex;
    flex-direction: column;
    background-color: rgba(11, 4, 4, 0.5);
    color: white;
    align-items: center;
    padding: 20px;

}
.gallery {
  text-align: center;
  padding: 2rem;
}

.portfolio-img {
  max-width: 100%;
  height: auto;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.portfolio-img:hover {
  transform: scale(1.05);
}

.btn-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 2rem;
}

.btn-stack .btn {
  margin: 10px 0; /* vertical spacing between buttons */
  padding: 12px 24px;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  background-color: #ffdec3;
  color: black;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 200px; /* optional: consistent button width */
}

.btn-stack .btn:hover {
  background-color:#ffdec3;
}


/* Service Section */
#services{
    display: flex;
    flex-direction: column;
    padding: 20px;
}
.row{
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    box-sizing: border-box;
}
.box{
    display: flex;
    flex-direction: column;
    width: 450px;
    height: 550px;
    border: 1px solid black;
    margin: 10px;
    align-items: center;
    text-align: justify;
    padding: 5px;
    border-radius: 15px;
    background: linear-gradient(to top,#57203f 50%, white 50%);
    background-size: 100% 200%;
    transition: all .8s;
}
.box:hover{
    background-position: left bottom;
    color: white;
    border: none;
    box-shadow: 0 0 20px rgb(213, 48, 169);
}
.box img{
    width: 80px;
    height: 80px;
    background-color: white;
    padding: 5px;
}

/* Contact Section */
#contact{
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 40px;
}
.form{
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    align-items: center;
    margin-top: 20px 0px;
}
.input{
    padding: 12px;
    margin: 15px;
    width: 30%;
    border: none;
    outline: none;
}
#msg{
    width: 20%;
    padding: 10px;
    margin: 15px;
    border: none;
    outline: none;
}
#send{
    padding: 10px;
    width: 10%;
    margin: 15px;
    border: none;
    outline: none;
}
#send:hover{
    cursor: pointer;
    box-shadow: 0 0 10px white;
}

.links {
  width: 100%;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Social icon list */
.links ul {
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Each icon item */
.links ul li {
  list-style: none;
  margin: 15px 0;
}

/* Font Awesome icons */
.links ul li .fa,
.links ul li .material-icons {
  font-size: 30px;
  line-height: 60px;
  transition: 0.5s;
  color: rgb(105, 4, 70);
}

.links ul li .fa:hover,
.links ul li .material-icons:hover {
  color: white;
}

/* Icon container */
.links ul li a {
  display: block;
  width: 60px;
  height: 60px;
  border-radius: 40%;
  background-color: white;
  text-align: center;
  line-height: 60px;
  transition: 0.5s;
  box-shadow: 0 5px 4px rgba(0, 0, 0, 0.5);
}

.links ul li a:hover {
  transform: translateY(-10px);
}

/* Hover background colors */
.links ul li:nth-child(1) a:hover {
  background-color: #0A66C2; /* LinkedIn */
}
.links ul li:nth-child(2) a:hover {
  background-color: #00ff8c; /* Whatsapp */
}
.links ul li:nth-child(3) a:hover {
  background-color: #E4405F; /* Instagram */
}
.links ul li:nth-child(4) a:hover {
  background-color: #000000; /* Tiktok */
}

/* Footer text */
#wrd {
  text-align: center;
  margin-top: 1rem;
  color: #aaa;
  font-size: 0.9rem;
}

/* Responsive tweaks */
@media (max-width: 600px) {
  .links ul li a {
    width: 50px;
    height: 50px;
    line-height: 50px;
    font-size: 24px;
  }

  .links ul li {
    margin: 10px 0;
  }

  #wrd {
    font-size: 0.8rem;
  }
}
