*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

:root {
  --bg-color: #fffbe6;        /* Light pastel yellow background */
  --snd-bg-color: #fff1a8;    /* Soft sunny yellow for sections/cards */
  --text-color: #2e2e2e;      /* Dark gray for readable text */
  --main-color: #f7c400;      /* Strong golden yellow for buttons/icons */
}

html{
    font-size: 62.5%;
    overflow-x: hidden;
}

body{
    background: var(--bg-color);
    color: var(--text-color);
}

section{
    min-height: 100vh;
    padding: 10rem 9% 2rem; 
}


/* Header Section Code */
.header {
  position: fixed;
  width: 100%;
  top: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 5%;
  background: var(--main-color);
  backdrop-filter: blur(10px);
  transition: all 0.5s ease;
}

.logo{
    font-size: 3rem;
    color: var(--bg-color);
    cursor: pointer;
    transition: 0.3s ease;
    font-weight: 900;
}

.logo:hover{
    transform: scale(1.05);
    text-shadow:2px 2px 2px rgb(230, 123, 84);
    color: var(--text-color);
}

.navbar a{
    font-size: 1.9rem;
    color: var(--bg-color);
    margin-left: 4rem;
    font-weight: 700;
    transition: 0.3s ease;
}

.navbar a:hover,
.navbar a:active{
    color: var(--text-color);
    text-shadow:2px 2px 2px rgb(230, 123, 84);
}

#menu-icon{
     font-size: 3.6rem;
     color: var(--bg-color);
     cursor: pointer;
     display: none;
}

.home{
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-img img {
  width: 25vw;
  aspect-ratio: 1 / 1;           /* Ensures it's a square */
  object-fit: cover; 
  border-radius: 50%;
  box-shadow: 0 0 25px var(--main-color);
  cursor: pointer;
  animation: floatImage 4s ease-in-out infinite;
  transition: 0.4s ease;
}

.home-img img:hover {
  box-shadow: 
    0 0 25px var(--main-color),
    0 0 35px var(--main-color),
    0 0 45px var(--main-color);
}

@keyframes floatImage{
    0%{
        transform: translateY(0);    
    }
    50%{
        transform: translateY(-2.4rem);
    }
    100%{
        transform: translateY(0);
    }
}

.home-content{
    margin-left: 5rem;
}

.home-content h3{
    font-size: 3.8rem;
    font-weight: 750;
}

.home-content h3:nth-of-type(2){
    margin-bottom: 2rem;
}

span{
    color: var(--main-color);
}

.home-content h1{
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.5;
}

.home-content p{
    font-size: 1.6rem;
}

.social-media a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    background: transparent;
    border: 0.2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease-in;
}

.social-media a:hover{
    transform: scale(1.1) translateY(-5px);
    background-color: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0px 0px 40px rgb(230, 123, 84);
}

.btn {
  display: block; /* Ensures width & height apply */
  width: 15rem;
  height: 5rem;
  color: var(--main-color);
  border-radius: 1rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.5s ease;
  text-decoration: none;
  align-items: center;
}

.btn:hover {
  box-shadow: 0 0 12rem rgb(230, 123, 84);
}

.typ1::before,
.typ1::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  font-size: 1.6rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s ease;
  
}

.typ1::before {
  content: "Resume";
  background-color: var(--bg-color);
  color: var(--main-color);
  transform: translateY(0) scale(1.2);
  border: 1px solid var(--main-color);
  text-shadow: 10px 10px 25px rgb(230, 123, 84);
}

.typ1::after {
  content: "Thanks";
  background-color: var(--main-color);
  color: var(--bg-color);
  transform: translateY(5rem);
}

.typ1:hover::before {
  transform: translateY(-5rem) scale(0) rotate(120deg);
}

.typ1:hover::after {
  transform: translateY(0) scale(1.2);
}


.button {
  display: inline-block;
  padding: 1rem 2.8rem;
  background: var(--main-color);
  border-radius: 4rem;
  box-shadow: none;
  font-size: 1.6rem;
  color: var(--bg-color);
  letter-spacing: 0.1rem;
  font-weight: 600;
  transition: 0.3s ease;
}

.button:hover {
  box-shadow: 0 0 1.6rem var(--main-color);
}

.about {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  background: var(--snd-bg-color);
}

.about-img img {
  width: 25vw;
  border: 2px solid var(--main-color);
  border-radius: 10%;
  box-shadow: 5px 5px 40px var(--main-color);
  cursor: pointer;
  transition: 0.4s ease;
}

.about-img img:hover{
    box-shadow: 
    0 0 25px var(--main-color),
    0 0 35px var(--main-color),
    0 0 45px var(--main-color);
}

.heading{
    font-size: 6rem;
    text-align: center;
}

.about-content{
    padding: 0 4rem;
}

.about-content h2{
    text-align: left;
    line-height: 1.2;
}

.about-content h3{
    font-size: 3rem;
}

.about-content p{
    font-size: 1.6rem;
    margin: 2rem 0 3rem ;
}

/* Skills Section Code */
.skills {
    background: var(--bg-color); /* Use the main background color */
    padding-bottom: 4rem; /* Reduced padding to bottom */
}

.skills .heading {
    margin-bottom: 4rem; /* Slightly reduced space below the main heading */
}

.skills-category {
    margin-bottom: 3rem; /* Slightly reduced space between different skill categories */
    text-align: center;
}

.skills-category h3 {
    font-size: 2.8rem; /* Slightly smaller font size */
    color: var(--text-color);
    margin-bottom: 2rem; /* Slightly reduced margin */
    position: relative;
    display: inline-block;
}

.skills-category h3::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -7px; /* Adjusted position */
    transform: translateX(-50%);
    width: 55%; /* Slightly narrower underline */
    height: 2px; /* Thinner underline */
    background-color: var(--main-color);
    border-radius: 5px;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem; /* Reduced space between skill items */
}

.skill-item {
    background: var(--snd-bg-color);
    border: 0.15rem solid var(--main-color); /* Slightly thinner border */
    border-radius: 1.2rem; /* Slightly smaller border-radius */
    padding: 2rem 2.5rem; /* Reduced padding */
    text-align: center;
    transition: all 0.3s ease;
    flex: 0 0 calc(18% - 2rem); /* Adjusted for roughly 5 items per row, considering new gap */
    max-width: 13rem; /* Reduced max width for each skill item */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Slightly smaller shadow */
}

.skill-item:hover {
    transform: translateY(-0.8rem) scale(1.03); /* Slightly less lift and enlargement on hover */
    box-shadow: 0 0 20px var(--main-color); /* Slightly smaller hover shadow */
}

.skill-item i {
    font-size: 5rem; /* Smaller icon size */
    color: var(--main-color);
    margin-bottom: 0.8rem; /* Slightly reduced space */
}

.skill-item span {
    font-size: 1.6rem; /* Slightly smaller font size for skill name */
    font-weight: 600;
    color: var(--text-color);
    display: block;
}

/* Responsive adjustments for skills section */
@media (max-width: 1200px) {
    .skill-item {
        flex: 0 0 calc(22% - 2rem); /* Adjust for 4-5 items per row */
        max-width: 14rem;
    }
}

@media (max-width: 991px) {
    .skill-item {
        flex: 0 0 calc(30% - 2rem); /* 3 items per row on tablets */
        max-width: 15rem;
    }
}

@media (max-width: 768px) {
    .skills .heading {
        font-size: 4rem; /* Smaller heading */
    }

    .skills-category h3 {
        font-size: 2.3rem; /* Smaller category heading */
    }

    .skill-item {
        flex: 0 0 calc(45% - 2rem); /* 2 items per row on larger phones */
        max-width: 18rem;
        padding: 1.8rem 2.2rem; /* Reduced padding */
    }

    .skill-item i {
        font-size: 4.5rem; /* Smaller icon */
    }

    .skill-item span {
        font-size: 1.5rem; /* Smaller skill name font */
    }
}

@media (max-width: 576px) {
    .skills-category h3 {
        font-size: 2rem; /* Even smaller category heading */
    }

    .skill-item {
        flex: 0 0 calc(80% - 2rem); /* 1 item per row on smaller phones */
        max-width: 25rem;
        padding: 1.5rem; /* More reduced padding */
    }
}

@media (max-width: 480px) {
    .skill-item {
        flex: 0 0 100%; /* Full width on very small screens */
        max-width: none;
    }
}

/* Experience Section Code */
.experience {
    background: var(--snd-bg-color); /* Soft sunny yellow for the section background */
    padding-bottom: 5rem;
}

.experience .heading {
    margin-bottom: 5rem;
}

/* Industrial Internship Styles */
.experience-internship {
    margin-bottom: 6rem; /* Space between internship and projects */
    text-align: center;
}

.experience-internship h3 {
    font-size: 3.5rem;
    color: var(--text-color);
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.experience-internship h3::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 70%;
    height: 3px;
    background-color: var(--main-color);
    border-radius: 5px;
}

.internship-item {
    background: var(--bg-color); 
    border: 0.2rem solid var(--main-color);
    border-radius: 1.5rem;
    padding: 3rem;
    max-width: 100rem; 
    margin: 0 auto; /* Center the box */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.internship-item:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 0 30px var(--main-color);
}

.internship-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.internship-header h4 {
    font-size: 2.5rem;
    color: var(--main-color);
    font-weight: 750;
}

.internship-header .date {
    font-size: 1.6rem;
    color: var(--text-color);
    font-weight: 700;
    margin-left: 1rem;
}

.internship-header h5 {
    font-size: 2rem;
    color: var(--text-color);
    font-weight: 650;
    width: 100%;
    text-align: left;
    margin-top: 0.5rem;
}

.internship-item p {
    font-size: 1.7rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: left;
    font-family: 'Tinos',sans-serif;
}

.internship-item ul {
    list-style: disc;
    margin-left: 2.5rem;
    text-align: left;
    font-size: 1.6rem;
    color: var(--text-color);
}

.internship-item ul li {
    margin-bottom: 0.8rem;
    font-family: 'Tinos',sans-serif;
}

/* Projects Grid Styles */
.experience-projects {
    text-align: center;
}

.experience-projects h3 {
    font-size: 3.5rem;
    color: var(--text-color);
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.experience-projects h3::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 70%;
    height: 3px;
    background-color: var(--main-color);
    border-radius: 5px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr)); /* Responsive grid columns */
    gap: 3rem; 
    justify-content: center;
    max-width: 120rem;
    margin: 0 auto;
}

.project-card {
    background: var(--bg-color); 
    border: 0.2rem solid var(--main-color);
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease; /* Tile animation */
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-1rem) scale(1.02);
    box-shadow: 0 0 30px var(--main-color);
}

.project-img-container {
    width: 100%;
    height: 20rem; 
    overflow: hidden;
    border-bottom: 0.1rem solid var(--main-color); /* Separator for image and info */
}

.project-img-container img {
    width: 100%;
    height: 100%;
    object-fit: contain; 
    transition: transform 0.4s ease; 
}

.project-info {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.project-info h4 {
    font-size: 2.2rem;
    color: var(--main-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.project-info p {
    font-size: 1.5rem;
    color: var(--text-color);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.project-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: auto; 
    margin-bottom: 1.5rem;
}

.project-tech-stack i {
    font-size: 2.5rem;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.project-tech-stack i:hover {
    color: var(--main-color); 
}

.project-links {
    display: flex;
    justify-content: flex-end; /* Align links to the right */
    width: 100%;
    margin-top: 1rem;
}

.project-links .preview-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: var(--main-color);
    color: var(--bg-color);
    border-radius: 0.8rem;
    font-size: 1.5rem;
    font-weight: 600;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.project-links .preview-link:hover {
    background: var(--text-color); /* Darken button on hover */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.project-links .preview-link i {
    font-size: 1.5rem;
    color: var(--bg-color);
}

/* Responsive adjustments for Experience section */
@media (max-width: 991px) {
    .experience-internship h3,
    .experience-projects h3 {
        font-size: 3rem;
    }

    .internship-item {
        padding: 2.5rem;
    }

    .internship-header h4 {
        font-size: 2.2rem;
    }

    .internship-header .date {
        font-size: 1.4rem;
    }

    .internship-header h5 {
        font-size: 1.8rem;
    }

    .internship-item p,
    .internship-item ul li {
        font-size: 1.5rem;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(28rem, 1fr));
    }

    .project-card {
        max-width: 35rem; /* Limit card width on smaller screens */
        margin: 0 auto; /* Center cards if they don't fill the row */
    }
}

@media (max-width: 768px) {
    .experience-internship h3,
    .experience-projects h3 {
        font-size: 2.8rem;
    }

    .internship-item {
        padding: 2rem;
    }

    .internship-header {
        flex-direction: column; /* Stack company and role on small screens */
        align-items: flex-start;
    }

    .internship-header h4 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .internship-header .date {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .internship-header h5 {
        font-size: 1.6rem;
        margin-top: 0;
    }

    .internship-item p,
    .internship-item ul li {
        font-size: 1.4rem;
    }

    .projects-grid {
        grid-template-columns: 1fr; /* Single column on very small screens */
        gap: 2.5rem;
    }

    .project-card {
        max-width: 90%; /* Allow cards to take more width */
    }

    .project-info h4 {
        font-size: 2rem;
    }

    .project-info p {
        font-size: 1.4rem;
    }

    .project-tech-stack i {
        font-size: 2.2rem;
    }

    .project-links .preview-link {
        font-size: 1.4rem;
        padding: 0.7rem 1.2rem;
    }
}

@media (max-width: 480px) {
    .experience-internship h3,
    .experience-projects h3 {
        font-size: 2.5rem;
    }
}


.miscellaneous {
    background: var(--snd-bg-color);
    padding-bottom: 3rem;
}

.miscellaneous .heading {
    margin-bottom: 5rem;
}

.miscellaneous-cards-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4rem;
    max-width: 120rem;
    margin: 0 auto;
}

.misc-card {
    background: var(--snd-bg-color);
    border: 0.2rem solid var(--main-color);
    border-radius: 1.5rem;
    padding: 3rem;
    text-align: center;
    flex: 0 0 calc(50% - 2rem);
    max-width: 50rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    min-height: 24rem;
}

.misc-card:hover {
    transform: translateY(-1rem) scale(1.02);
    box-shadow: 0 0 30px var(--main-color);
}

.misc-card i {
    font-size: 7rem;
    color: var(--main-color);
    margin-bottom: 1.5rem;
}

.misc-card h3 {
    font-size: 2.8rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.misc-card p {
    font-size: 1.6rem;
    color: var(--text-color);
    line-height: 1.5;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.misc-card .button-small {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--main-color);
    border-radius: 3rem;
    font-size: 1.5rem;
    color: var(--bg-color);
    letter-spacing: 0.05rem;
    font-weight: 600;
    transition: 0.3s ease;
    text-decoration: none;
}

.misc-card .button-small:hover {
    background: var(--text-color);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

@media (max-width: 991px) {
    .miscellaneous-cards-container {
        gap: 3rem;
    }
    .misc-card {
        flex: 0 0 calc(48% - 1.5rem);
        max-width: 45rem;
        padding: 2.5rem;
        min-height: 26rem;
    }
    .misc-card i {
        font-size: 6rem;
    }
    .misc-card h3 {
        font-size: 2.5rem;
    }
    .misc-card p {
        font-size: 1.5rem;
    }
    .misc-card .button-small {
        font-size: 1.4rem;
        padding: 0.7rem 1.8rem;
    }
}

@media (max-width: 768px) {
    .miscellaneous .heading {
        font-size: 4.5rem;
    }
    .miscellaneous-cards-container {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    .misc-card {
        flex: 0 0 90%;
        max-width: 45rem;
        padding: 2rem;
        min-height: unset;
    }
    .misc-card i {
        font-size: 5rem;
    }
    .misc-card h3 {
        font-size: 2.2rem;
    }
    .misc-card p {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }
    .misc-card .button-small {
        font-size: 1.3rem;
        padding: 0.6rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .miscellaneous .heading {
        font-size: 4rem;
    }
    .misc-card {
        padding: 1.5rem;
    }
    .misc-card i {
        font-size: 4.5rem;
    }
    .misc-card h3 {
        font-size: 2rem;
    }
    .misc-card p {
        font-size: 1.3rem;
    }
}

.contact{
    background-color: var(--bg-color);
}

.contact h2 {
  margin-bottom: 3rem;
  color: var(--main-color);
}

.contact form {
  max-width: 80rem;
  margin: 1rem auto;
  text-align: center;
  margin-bottom: 3rem;
}

.contact form .input-box {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.contact form .input-box input,
.contact form textarea {
  width: 100%;
  padding: 1.5rem;
  font-size: 1.6rem;
  color: var(--text-color);
  background: var(--bg-color);
  border-radius: 0.8rem;
  border: 0.25rem solid var(--main-color);
  margin: 0.7rem 0;
  resize: none;
}   

.contact form .input-box input{
    width: 49%;
    margin: 0.7rem 0.35rem; 
}

.contact form .button{
    margin-top: 2rem;
}

.footer{
    position: relative;
    bottom: 0;
    width: 100%;
    padding: 40px 0;
}

.footer .social{
    text-align: center;
    padding-bottom: 25px;
    color: var(--main-color);
}

.footer .social a{
    font-size: 25px;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    width: 42px;
    height: 42px;
    line-height: 42px;
    display: inline-block;
    text-align: center;
    border-radius: 50%;
    margin: 0 10px;
    transition: 0.3s ease;
}

.footer .copyright {
  margin-top: 20px;
  text-align: center;
  font-size: 16px;
  color: var(--text-color);
}

/* Responsive Design  */
@media (max-width: 1200px) {
  html {
    font-size: 55%;
  }
}

@media (max-width: 991px) {
  .header {
    padding: 2rem 3%;
  }
}

/* Responsive Design for Header, Home, and About Sections */

@media (max-width: 991px) {
    .header {
        padding: 2rem 3%;
    }

    #menu-icon {
        display: block; /* Show the menu icon */
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: -100%; /* Hide the navbar off-screen */
        width: 100%;
        padding: 1rem 3%;
        background: var(--main-color);
        border-top: .1rem solid rgba(0, 0, 0, .2);
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .2);
        transition: .25s ease;
    }

    .navbar.active {
        left: 0; /* Bring the navbar on-screen */
    }

    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
        color: var(--text-color);
    }
}

@media (max-width: 768px) {
    section {
        padding: 10rem 3% 2rem;
    }

    .home {
        flex-direction: column; /* Stack image and content vertically */
        text-align: center;
    }

    .home-content {
        margin-left: 0;
    }

    .home-content h3 {
        font-size: 2.6rem;
    }

    .home-content h1 {
        font-size: 5rem;
    }

    .home-img img {
        width: 70vw; /* Make image larger on mobile */
        margin-top: 4rem;
        margin-bottom: 2rem;
    }

    .about {
        flex-direction: column-reverse; /* Stack with image on top */
        text-align: center;
    }

    .about-content {
        padding: 0 2rem;
    }

    .about-content h2 {
        text-align: center;
    }

    .about-img img {
        width: 70vw;
        margin-top: 4rem;
        margin-bottom: 2rem;
    }

    .about .button {
        display: none; /* Hide the "Read More" button on smartphones */
    }
}

@media (max-width: 480px) {
    html {
        font-size: 50%;
    }
}

/* Modal Popup Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-color);
    padding: 3rem 4rem;
    border-radius: 1.5rem;
    max-width: 70rem;
    width: 90%;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 0 40px rgba(0,0,0,0.2);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-content h2 {
    font-size: 3rem;
    color: var(--main-color);
    margin-bottom: 2rem;
    text-align: center;
}

.modal-content p {
    font-size: 1.6rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 4rem;
    font-weight: bold;
    color: var(--text-color);
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--main-color);
}

/* Class to blur the background */
.blur-background > *:not(.modal-overlay) {
    filter: blur(5px);
    pointer-events: none;
    user-select: none;
    transition: filter 0.3s ease;
}