*{
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
}

body{
    background: #fff;
    color: black;
}

#header{
    width: 100%;
    height: 100vh;
    background-image: url(img/background2.jpg);
    background-size: cover;
    background-position: center;
}

.container{
    padding: 10px 10%;
}

nav{
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo {
    width: 300px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    background: white;
    padding: 10px;
    box-sizing: border-box;
}
nav ul li{
    display: inline-block;
    list-style: none;
    margin: 10px 20px;
}

nav ul li a{
    color: black;
    text-decoration: none;
    font-size: 18px;
    position: relative;
}

nav ul li a::after{
    content:'';
    width: 0;
    height: 3px;
    background: blue;
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: 0.5s;
}

nav ul li a:hover::after{
    width: 100%;
}

/* About Section */
#about{
    padding: 80px 0;
    color: #4f4a4a;
}

.row{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.col-1{
    flex-basis: 35%;
}

.col-1 img{
    width: 100%;
    border-radius: 15px;
}

.abtimg{
    width: 100%;
    height: auto;
}

.col-2{
    flex-basis: 60%;
}

.subtit{
    font-size: 60px;
    font-weight: 800;
    margin-bottom: 20px;
}

.about-desc{
    font-weight: 600;
    margin-bottom: 30px;
    line-height: 1.6;
}

.tabtit{
    display: flex;
    margin: 20px 0 40px;
}

.tblink{
    margin-right: 50px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
}

.tblink::after{
    content: '';
    width: 0;
    height: 3px;
    background: blue;
    position: absolute;
    left: 0;
    bottom: -8px;
    transition: 0.5s;
}

.tblink.active::after{
    width: 50%;
}

.contents ul li{
    list-style: none;
    margin: 10px 0;
}

.contents ul li span{
    font-weight: 600;
    color: blue;
    font-size: 18px;
}

.contents{
    display: none;
}

.contents.active-tab{
    display: block !important;
}

/* Projects Section */
#projects{
    padding: 50px 0;
    background: #f8f8f8;
}

.projectlist{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-gap: 40px;
    margin-top: 50px;
}

.projectlist div{
    background: white;
    padding: 40px;
    font-size: 14px;
    font-weight: 300;
    border-radius: 10px;
    transition: background 0.5s, transform 0.5s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.projectlist div i{
    color: blue;
    font-size: 50px;
    margin-bottom: 30px;
    font-weight: 800;
}

.projectlist div h2{
    color: black;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 15px;
}

.projectlist div p{
    line-height: 1.6;
    margin-bottom: 15px;
}

.projectlist div:hover{
    background: rgb(74, 170, 249);
    transform: translateY(-10px);
    color: white;
}

.projectlist div:hover h2{
    color: white;
}

.projectlist div:hover i{
    color: white;
}

//* === Global Box Sizing and Reset === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* === Contact Section === */
#contact {
  padding: 80px 0;
  background-color: #f9f9f9; /* Light background */
  color: black;
  font-family: 'Segoe UI', sans-serif;
}

/* === Flex Container for Columns === */
.contact-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  max-width: 1100px;
  margin: auto;
  padding: 0 20px;
}

/* === Left Column (Contact Info) === */
.conleft {
  flex-basis: 35%;
}

.conleft h1.subtit {
  font-size: 32px;
  margin-bottom: 30px;
}

.conleft a {
  display: block;
  text-decoration: none;
  color: #555;
  font-size: 18px;
  margin-top: 20px;
  transition: transform 0.3s ease;
}

.conleft a i {
  color: rgb(75, 45, 175);
  font-size: 22px;
  margin-right: 12px;
}

.conleft a:hover {
  color: blue;
  transform: translateY(-4px);
}

.conleft a:hover i {
  color: blue;
}

/* === Social Media Icons === */
.socicon {
  margin-top: 30px;
}

.socicon a {
  text-decoration: none;
  font-size: 28px;
  margin-right: 15px;
  color: rgb(75, 45, 175);
  transition: transform 0.3s ease;
  display: inline-block;
}

.socicon a:hover {
  color: blue;
  transform: translateY(-4px);
}

/* === Resume Button === */
.but.but2 {
  margin-top: 30px;
  padding: 14px 40px;
  background: rgb(75, 45, 175);
  color: white;
  border: none;
  border-radius: 6px;
  display: inline-block;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.but.but2:hover {
  background-color: blue;
}

/* === Right Column (Contact Form) === */
.conright {
  flex-basis: 60%;
}

.conright form {
  width: 100%;
}

form input,
form textarea {
  width: 100%;
  padding: 14px;
  margin: 15px 0;
  font-size: 16px;
  border-radius: 6px;
  border: 1px solid #888;
  background-color: transparent;
  color: #000;
  font-family: inherit;
  transition: border-color 0.3s, box-shadow 0.3s;
}

form input:focus,
form textarea:focus {
  border-color: rgb(75, 45, 175);
  box-shadow: 0 0 6px rgba(75, 45, 175, 0.3);
  outline: none;
}

form textarea {
  min-height: 120px;
  resize: vertical;
}

form input::placeholder,
form textarea::placeholder {
  color: #aaa;
}

/* === Submit Button === */
form button.but2 {
  margin-top: 15px;
}

/* === Success/Error Message === */
#msg {
  margin-top: 15px;
  font-weight: 600;
  color: green;
  display: block;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

#msg.show {
  opacity: 1;
}

/* === Responsive Design === */
@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
  }

  .conleft,
  .conright {
    flex-basis: 100%;
  }

  .conleft h1.subtit {
    text-align: center;
  }

  .conright form {
    margin-top: 20px;
  }
}


.copyright{
    width: 100%;
    text-align: center;
    padding: 25px 0;
    font-weight: 300;
    margin-top: 20px;
    border-top: 1px solid #555;
}

.copyright i{
    color: rgb(75, 45, 175);
}

#msg {
  margin-top: 15px;
  font-size: 20px;       /* bigger font size */
  font-weight: 700;      /* bold */
  color: green;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  display: block;
  text-shadow: 1px 1px 2px rgba(0, 128, 0, 0.7); /* subtle green glow */
}

#msg.show {
  opacity: 1;
}

#msg.error {
  color: red;
  font-weight: 700;
  text-shadow: 1px 1px 2px rgba(255, 0, 0, 0.7); /* subtle red glow */
}


/* === Responsive Design for Screens < 600px === */
@media only screen and (max-width: 600px) {
    /* Background Image for Header */
    #header {
        background-image: url("img/phonebg-removebg-preview.png");
        background-size: cover;
        background-position: center;
    }

    /* Stack rows vertically */
    .row {
        flex-direction: column;
    }

    /* Make all columns full width */
    .col-1, .col-2,
    .conleft, .conright {
        flex-basis: 100%;
    }

    /* Increase subtitle size */
    .subtit {
        font-size: 36px;
        text-align: center;
    }

    /* Stack tab titles */
    .tabtit {
        flex-direction: column;
        align-items: center;
    }

    /* Space between tab links on mobile */
    .tblink {
        margin: 0 0 20px 0;
        text-align: center;
    }

    /* Add spacing around contact info */
    .conleft {
        margin: 40px 0;
        text-align: center;
    }

    /* Contact form spacing */
    .conright form {
        padding: 0 10px;
    }

    /* Form inputs full width with spacing */
    .conright input,
    .conright textarea {
        font-size: 16px;
    }
}
