*{
    padding: 0;
    margin: 0;
}


.main{
    width: 100%;
    background: url("../images/background.jpeg");
    min-height: 100vh;
    position: relative;
    font-family: sans-serif;
    padding-bottom: 100px;
}

.navbar{
        width: 86%;
        display: flex;
        margin: auto;
        padding: 25px 0;
        align-items: center;
        justify-content: space-between;
}

.navbar .logo{
    width: 120px;
    cursor: pointer;
    margin-top: -3%;
    margin-left: -2%;
    margin-bottom: 10px;
} 

/* Mobile menu toggle button */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: brown;
  margin: 5px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}


ul{
    margin-top: -4%;
}

ul li{
    list-style: none;
    display: inline-block;
    padding: 10px 16px;
}

ul li a{
    font-size: 16px;
     font-weight: bold;
     text-decoration: none;
     color: brown;
     margin-top: -3%;
     transition: 2s ease;
}

/* Active nav link */
ul li a.active{
  text-decoration: underline;
}

ul li a:hover{
    color:rgb(170, 41, 170);
}

.cont{
    margin-left: 7%;
    margin-top: 6%;
}

.cont h1{
    font-size: 65px;
    color: black;
}

.cont h3{
    font-size: 18px;
    letter-spacing: 1px;
    line-height: 24px;
}

.cont span{
    color: brown;
}

.cont a{
    text-decoration: none;
    color: #fff;
    background: black;
    margin: 26px 0;
    padding: 10px 18px;
    border-radius: 10px;
    display: inline-block;
    transition: 4s ease;
}

.cont a:hover{
    background: rgb(170, 41, 170);
}

.image{
    width: 30%;
    height: 60%;
    position: absolute;
    right: 100px;
    bottom: 0;
}

.image img{
    position: absolute;
    height: 140%;
    left: 40%;
    transform: translate(-55%);
    bottom: 0;
    transition: left 2s ease;
}

.image:hover .me{
    left: 55%;
}

.site-footer {
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  background-color: #f0f0f0;
  color: #555;
  font-size: 0.9rem;
}


/* Styling my About Page */
.first{
    justify-content: space-between;
    padding: 30px;
}

.second{
    justify-content: space-between;
    padding: 30px;
}

.cv{
    justify-content: space-between;
    padding: 30px;  
}

.cv a{
    text-decoration: none;
    color: #fff;
    background: brown;
    margin: 26px 0;
    padding: 10px 18px;
    border-radius: 10px;
    display: inline-block;
    transition: 4s ease;
}

/* Reset & Base Styles  */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f7f9fc;
  color: #333;
  padding: 20px;
}

/*  About Section  */
.about-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 5px;
  text-align: center;
}

.about-section h1 {
  margin-bottom: 40px;
  font-size: 2.5rem;
  color: #222;
}

/*  Card Container */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

/*  Individual Card Styles */
.card {
  background-color: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
  width: 100%;
  max-width: 100%;
}

.card:hover {
  transform: translateY(-5px);
}

.card h2 {
  margin-bottom: 10px;
  color: brown;
}

.card p {
  font-size: 1rem;
  line-height: 1.5;
}

/* Responsive Layout  */

/* Tablet: 2 per row */
@media (min-width: 600px) {
  .card {
    flex: 0 0 45%;
    max-width: 45%;
  }
}

/* Desktop: 4 per row without wrapping */
@media (min-width: 1024px) {
  .card {
    flex: 0 0 22%;
    max-width: 22%;
  }
}


/* Styling my Contact Page */
.idea{
    line-height: 24px;
    padding: 22px;

}

.contact-button{
    text-decoration: none;
    color: #fff;
    background: brown;
    margin: 22px;
    padding: 15px 20px;
    border-radius: 10px;
    display: inline-block;
    transition: 4s ease;
}


/* Styling my Skills page */

.skills-intro p{
    padding: 15px;
    font-size: medium;
    font-style: oblique;
}

.skills-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: left;
}

.skills-section h1 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: #222;
}

.skill-block {
  background-color: #fff;
  border-left: 6px solid rgb(170, 41, 170);
  border-radius: 8px;
  padding: 20px 25px;
  margin-bottom: 30px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.skill-block h2 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color:brown;
  padding: 20px 25px;
}

.skill-block ul {
  list-style-type: disc;
  padding-left: 20px;
}

.skill-block ul li {
  margin-bottom: 10px;
  line-height: 1.6;
  color: #333;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .skills-section {
    padding: 30px 15px;
  }

  .skill-block h2 {
    font-size: 1.3rem;
  }

  .skills-section h1 {
    font-size: 2rem;
  }
}

/* Styling my Projects Page */

.projects-intro p{
    padding: 15px;
    font-size: medium;
    font-style: oblique;
}

.projects-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
}

.projects-section h1 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: #222;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

/* Medium screens (tablet) - 2 per row */
@media (min-width: 600px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Large screens (desktop) - 4 per row */
@media (min-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}


/* Styling my Project cards*/
.project-card {
  background-color: #fff;
  border-radius: 10px;
  padding: 25px;
  text-align: left;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-card h2 {
  color: brown;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.project-card p {
  margin: 8px 0;
  color: #444;
}

.project-card a {
  display: inline-block;
  margin-top: 10px;
  color: brown;
  text-decoration: none;
  font-weight: bold;
}

.project-card a:hover {
  text-decoration: underline;
}

/* === Responsive Styles === */

/* MOBILE: Up to 768px */
@media only screen and (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .menu-toggle {
    display: block;
  }

  ul {
    flex-direction: column;
    width: 100%;
    display: none;
  }

  ul.open {
    display: block;
  }

  ul li {
    display: block;
    padding: 8px 0;
  }

  .cont {
    margin: 20px;
  }

  .cont h1 {
    font-size: 35px;
  }

  .image {
    position: static;
    width: 100%;
    height: auto;
    text-align: center;
    margin-top: 20px;
  }

  .image img {
    position: static;
    width: 70%;
    height: auto;
    transform: none;
  }

  .social-icons {
    margin-left: 20px;
    flex-wrap: wrap;
  }

}

/* TABLET: 769px to 1024px */
@media only screen and (min-width: 769px) and (max-width: 1024px) {
  .navbar {
    flex-direction: row;
    justify-content: space-between;
  }

  ul {
    flex-direction: row;
  }

  .cont {
    margin-left: 5%;
    margin-top: 4%;
  }

  .cont h1 {
    font-size: 50px;
  }

  .image {
    width: 50%;
    right: 30px;
  }

  .image img {
    width: 100%;
    height: auto;
    transform: translate(-50%);
    left: 50%;
  }

  .social-icons {
    margin-left: 5%;
    gap: 12px;
  }
}

/* Basic dark theme support */
.dark body {
  background-color: #0f172a;
  color: #e5e7eb;
}

.dark .cont h1,
.dark .cont h3,
.dark .skills-section h1,
.dark .projects-section h1 {
  color: #e5e7eb;
}

.dark .site-footer {
  background-color: #111827;
  color: #9ca3af;
}

.dark ul li a { color: #f59e0b; }
.dark .card,
.dark .project-card,
.dark .skill-block {
  background-color: #1f2937;
  color: #e5e7eb;
}
