@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

*{
    margin:0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: "Poppins", sans-serif;
    list-style: none;
}

/* Existing CSS styles for the header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 12%;
    /* background-color: rgba(61, 75, 51, 0.842); */
    background-color: #FF90BC;
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

p{
  font-family: "Roboto Mono", monospace;
  /* font-optical-sizing: auto; */
  /* font-weight: <weight>; */
  /* font-style: normal; */
}

.logo {
    font-size: 25px;
    color: white;
    font-weight: 600;
    transition: 0.3s ease;
}

.logo:hover {
    color: #ffffff;
    text-shadow: 0 0 25px #ffffff,
                 0 0 50px #ffffff;
    transform: scale(1.1);
}

.navbar a {
    font-size: 18px;
    color: white;
    font-weight: 500;
    margin: 0 20px;
    border-bottom: 3px solid transparent;
    transition: 0.3s ease;
}

.navbar a:hover {
    color: rgb(255, 255, 255);
    text-shadow: 0 0 25px #ffffff,
                 0 0 50px #ffffff;
    border-bottom: 3px solid #C2185B;
}

span {
    /* color: rgb(127, 212, 114); */
    color : #C2185B;
}

/* Additional styles for mobile menu */
.menu-toggle {
    display: none;
}

/* Media query for small screens (e.g., mobile devices) */
@media screen and (max-width: 768px) {
    .navbar {
        display: none; 
        flex-direction: column; 
        /* background-color: #444;  */
        background-color: #252525;
        position: absolute;
        top: 60px; 
        left: 0;
        width: 100%;
    }

    .navbar.active {
        display: flex; 
    }

    .menu-toggle {
        display: block; 
        color: white;
        background-color: transparent;
        border: none;
        font-size: 1.5em;
        cursor: pointer;
    }
}

.menu-toggle {
    display: none;
}

/* Media query for small screens (e.g., mobile devices) */
@media screen and (max-width: 768px) {
    .navbar {
        display: none; 
        flex-direction: column; 
        /* background-color: #3a4e3a;  */
        background-color: #252525;
        position: absolute;
        top: 60px; 
        left: 0;
        width: 100%;
    }

    .navbar.active {
        display: flex; 
    }

    .menu-toggle {
        display: block; 
        color: white;
        background-color: transparent;
        border: none;
        font-size: 1.5em;
        cursor: pointer;
    }
}

/* Home section styles */
.home{
    position: relative;
    background-image: url('./images/2206_w019_n002_621b_p15_621.jpg');
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 80px 12% 0;
}

/* .home-content{
    max-width:500px;
}

.home-content h3{
    padding: 5px;
    font-size: 35px;
    font-family: "Cutive", serif;
}

.home-content h1{
    font-family: "Cutive", serif;
    font-size: 46px;
    line-height: 1.2;
}

.home-content p{
    border-bottom: 2px solid black;
    font-size: 15px;
    margin: 20px 0 13px;
    background-image: repeating-linear-gradient(to bottom, #6699cc 1px, #F9F9E0 1px, #ebebd2 40px);
    background-size: 100% 41px; 
    padding: 20px;
} */
.home-content{
    max-width:500px;
}

.home-content h3{
    padding: 5px;
    font-size: 35px;
    font-family: "Cutive", serif;
}

.home-content h1{
    font-family: "Cutive", serif;
    font-size: 46px;
    line-height: 1.2;
}

.home-content p{
    border-bottom: 2px solid black;
    font-size: 15px;
    margin: 20px 0 13px;
    background-image: repeating-linear-gradient(to bottom, #6699cc 1px, #F9F9E0 1px, #ebebd2 40px);
    background-size: 100% 41px; /* 1px line + 40px spacing */
    padding: 20px;
    line-height: 1.6;
}

/* --- Geronimo Stilton fun styles --- */
.fun {
    font-family: 'Comic Sans MS', cursive;
    font-size: 1.3rem;
    color: #ff5733;
    font-weight: bold;
}
.explore {
    font-family: 'Verdana', sans-serif;
    font-size: 1.1rem;
    color: #008080;
    font-style: italic;
}
.ai {
    font-family: 'Courier New', monospace;
    background: #f4d03f;
    padding: 2px 5px;
    border-radius: 3px;
    font-weight: bold;
}
.ml {
    font-family: 'Georgia', serif;
    color: #5d3fd3;
    font-weight: bold;
}
.calm {
    font-family: 'Brush Script MT', cursive;
    font-size: 1.2rem;
    color: #2e8b57;
}
.book {
    font-weight: bold;
    font-size: 1.2rem;
    color: #8b0000;
}
.art {
    font-style: italic;
    color: #ff69b4;
}
.animate {
    font-family: 'Trebuchet MS', sans-serif;
    font-size: 1.1rem;
    color: #ff8c00;
}
.bold {
    font-weight: 900;
    color: #000;
    text-transform: uppercase;
}
.bright {
    font-weight: bold;
    color: #1e90ff;
    font-style: italic;
}
.strong {
    font-family: 'Impact', sans-serif;
    color: #4b0082;
    font-size: 1.3rem;
}
.wow {
    font-family: 'Arial Black', sans-serif;
    font-size: 1.2rem;
    color: #ff1493;
    text-decoration: underline wavy #ff1493;
}
.quote {
    font-style: italic;
    font-size: 1.2rem;
    color: #444;
    border-left: 3px solid #aaa;
    padding-left: 10px;
    margin-top: 15px;
}


.img-box {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0 13px;
}

.img-box img {
    width: 300px;
    height: 380px;
    border-radius: 50% / 45%;
    object-fit: cover;
    border: 6px solid pink;
    transition: 
        border 0.4s ease, 
        transform 0.3s ease, 
        box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Desktop hover effect */
.img-box img:hover {
    border: 6px solid;
    border-image: linear-gradient(135deg, #ff80ab, #ff4081, #f50057, #ff80ab) 1;
    border-image-slice: 1;
    transform: scale(1.03);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

/* Tap feedback for mobile */
.img-box img:active {
    border: 6px solid;
    border-image: linear-gradient(135deg, #ff80ab, #ff4081, #f50057, #ff80ab) 1;
    border-image-slice: 1;
    transform: scale(1.03);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

figcaption {
    font-family: "Cutive", serif;
    text-align: center;
    font-weight: bold;
    font-size: 20px;
    color: #C2185B;
}

/* Always show gradient border on touch devices */
@media (hover: none) and (pointer: coarse) {
    .img-box img {
        border: 6px solid;
         box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
        border-image: linear-gradient(135deg, #ff80ab, #ff4081, #f50057, #ff80ab) 1;
        border-image-slice: 1;
    }
}

/* About section styles */
.about{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8% 8%;
    background-color: #252525;
}

.about-content h2{
    text-align: left;
    color: white;
    font-size: 42px;
    padding: 20px 18px;
}

.social-icon{
    color: #C2185B;
    font-size: 3rem;
}

.edu-div p {
    margin-left: 110px;
    color: white;
}

.edu-div h3 {
    margin-left: 110px;
    color: white;
    font-family: "Cutive", serif;
}

.about-exp{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8% 8%;
    background-color: rgb(255, 255, 255);
}

.about-exp-content h2{
    text-align: left;
    color: #000000;
    font-size: 42px;
    padding: 20px 18px;
}

.about-exp-content span{
    color: #C2185B;
}

.exp-div {
    
    justify-content: center;
    align-items: center;
    padding: 2%;
}

.exp-div p {
    margin-left: 110px;
    color: #000000;
}

.exp-div h3 {
    margin-left: 110px;
    color:  #001AFF;
    font-family: "Cutive", serif;
}

.skill-badge {
  background-color: #e3f2fd;
  color: #0d47a1;
  padding: 4px 10px;
  margin: 3px;
  display: inline-block;
  border-radius: 20px;
  font-size: 0.85rem;
}


.exp-tm-div {
    
    justify-content: center;
    align-items: center;
    padding: 2%;
}

.exp-tm-div p {
    margin-left: 110px;
    color: #000000;
}


.exp-tm-div h3 {
    margin-left: 110px;
    color:  #004165;
    font-family: "Cutive", serif;
}


.edu-img {
    float: left;
    width: 80px;
    height: 80px;
    margin-right: 10px;
    border-radius: 50%; 
}

/* Skills section styles */
#skills {
    padding: 20px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 20px;
}

.skill-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.skill-card {
  background-color: #FFFFFF;
  border: 2px solid #C2185B; /* Accent pink */
  border-radius: 12px;
  padding: 16px;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.skill-card:hover {
  transform: scale(1.02);
}

.skill-card h3 {
  font-size: 1.2rem;
  color: #0D47A1; /* Deep blue */
  margin-bottom: 10px;
  border-bottom: 2px solid #E3F2FD;
  padding-bottom: 5px;
  font-family: "Cutive", serif;
}

.skill-card ul {
  list-style: none;
  padding-left: 0;
}

.skill-card ul li {
  padding: 6px 0;
  border-bottom: 1px solid #eee;
  font-weight: 500;
  color: #424242;
}

.tool-icons {
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
}
.tool-icons img {
  width: 40px;
  height: 40px;
  transition: transform 0.3s ease;
}
.tool-icons img:hover {
  transform: scale(1.2);
}

/* Projects section styles */

.projects-section {
  background-color: #FAFAFA;
  /* background-image: url('./images/book_page.jpg'); */
  padding: 60px 20px;
  text-align: center;
}

.section-title {
  font-size: 2.2rem;
  color: #0D47A1;
  margin-bottom: 40px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  box-sizing: border-box;
  /* background-color: #FFFFFF; */
  background-image: url('./images/book_page.jpg');
  border-radius: 16px;
  gap: 1.5rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Force 1 card per row on smaller screens */
@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

.project-card {
  background-color: #F9F9E0; /* or a soft card background */
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-card img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 16px;
}

.project-card h3 {
  font-size: 1.3rem;
  color: #C2185B;
  margin-bottom: 8px;
  font-family: "Cutive", serif;
}

.project-short {
  color: #424242;
  margin-bottom: 12px;
}

.btn {
  background-color: #0D47A1;
  color: white;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  margin-bottom: 12px;
}

.btn:hover {
  background-color: #08306b;
}

details {
  margin-top: 10px;
  background-color: #8ACDD7;
  padding: 10px;
  border-radius: 8px;
  font-size: 0.95rem;
}

details summary {
  cursor: pointer;
  font-weight: bold;
  margin-bottom: 8px;
}

details ul {
  list-style-type: disc;
  margin-left: 20px;
}



.btn{
    background-color: #FF90BC; 
    border: none;
    color: white;
    padding: 1px 10px;
    text-align: center;
    display: inline-block;
    font-size: 16px;
    margin: 4px 6px;
    transition-duration: 0.4s;
    cursor: pointer;
    border-radius: 10px;
}

.btn:hover {
    background-color: #C2185B; 
    box-shadow: 0 12px 16px 0 rgba(0,0,0,0.24), 0 17px 50px 0 rgba(0,0,0,0.19);
}

/* This is for Links */
/* I reused .about{} */
/* Responsive links section */
.link-div {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: white; /* from your original */
}

.link {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1% 8%;
    background-color: black;
}

.link-div a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: large; /* from your original */
    font-size: 1.1em; /* responsive font size */
    text-decoration: none;
    color: rgb(255, 255, 255); /* from your original */
    padding: 8px 16px;
    border-radius: 8px;
    transition: background 0.2s;
    margin-left: 0; /* override margin for flex layout */
}

.link-div a:hover {
    background: #f0f0f0;
    color: #252525;
}

@media (max-width: 600px) {
    .link-div {
        flex-direction: column;
        gap: 12px;
        padding: 10px;
    }
    .link-div a {
        font-size: 1em;
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }
}