*{
    margin: 0;
}
body{
    background-color: #5D1DB1;
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    background-image: 
        linear-gradient(45deg, #542D86 25%, transparent 25%),
        linear-gradient(-45deg, #542D86 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #5F01DC 75%),
        linear-gradient(-45deg, transparent 75%, #5F01DC 75%),
        linear-gradient(45deg, #422E5C 25%, transparent 25%),
        linear-gradient(-45deg, #422E5C 25%, transparent 25%);
    background-size: 100px 100px;
    background-position: 0 0, 0 50px, 50px -50px, -50px 0px, 50px 50px, 0px 0px;
    position: relative;
}
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(93, 29, 177, 0.7);
    z-index: 0;
}
.main-section{
    position: relative;
    z-index: 1;
    color: white;
    letter-spacing: 25;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: 100vh;
    gap: 10px;
}
.main-section h1{
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 2px;
}
.main-section h3{
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 1px;
}
.cssbuttons-io-button {
    background: #a370f0;
    color: white;
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    padding: 0.35em;
    padding-left: 1.2em;
    font-size: 17px;
    border-radius: 0.9em;
    border: none;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    box-shadow: inset 0 0 1.6em -0.6em #714da6;
    overflow: hidden;
    position: relative;
    height: 2.8em;
    padding-right: 3.3em;
    cursor: pointer;
  }
  
  .cssbuttons-io-button .icon {
    background: white;
    margin-left: 1em;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2.2em;
    width: 2.2em;
    border-radius: 0.7em;
    box-shadow: 0.1em 0.1em 0.6em 0.2em #7b52b9;
    right: 0.3em;
    transition: all 0.3s;
  }
  
  .cssbuttons-io-button:hover .icon {
    width: calc(100% - 0.6em);
  }
  
  .cssbuttons-io-button .icon svg {
    width: 1.1em;
    transition: transform 0.3s;
    color: #7b52b9;
  }
  
  .cssbuttons-io-button:hover .icon svg {
    transform: translateX(0.1em);
  }
  
  .cssbuttons-io-button:active .icon {
    transform: scale(0.95);
  }

.main-projects {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    background-color: rgba(93, 29, 177, 0.9);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-image: 
        linear-gradient(30deg, #542D86 12%, transparent 12.5%, transparent 87%, #542D86 87.5%, #542D86),
        linear-gradient(150deg, #542D86 12%, transparent 12.5%, transparent 87%, #542D86 87.5%, #542D86),
        linear-gradient(30deg, #542D86 12%, transparent 12.5%, transparent 87%, #542D86 87.5%, #542D86),
        linear-gradient(150deg, #542D86 12%, transparent 12.5%, transparent 87%, #542D86 87.5%, #542D86),
        linear-gradient(60deg, #5F01DC 25%, transparent 25.5%, transparent 75%, #5F01DC 75%, #5F01DC),
        linear-gradient(60deg, #5F01DC 25%, transparent 25.5%, transparent 75%, #5F01DC 75%, #5F01DC);
    background-size: 80px 140px;
    background-position: 0 0, 0 0, 40px 70px, 40px 70px, 0 0, 40px 70px;
}

.main-projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(93, 29, 177, 0.85);
    z-index: -1;
}

.main-projects h2 {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    padding: 0 1rem;
    position: relative;
    z-index: 2;
}

.project-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.project-image {
    width: 100%;
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio (9/16 = 0.5625) */
    overflow: hidden;
}

.project-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-content {
    padding: 1.5rem;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.project-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.project-button {
    background: #a370f0;
    color: white;
    font-family: "Montserrat", sans-serif;
    padding: 0.35em;
    padding-left: 1.2em;
    font-size: 17px;
    font-weight: 500;
    border-radius: 0.9em;
    border: none;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    box-shadow: inset 0 0 1.6em -0.6em #714da6;
    overflow: hidden;
    position: relative;
    height: 2.8em;
    padding-right: 3.3em;
    cursor: pointer;
    text-decoration: none;
    width: fit-content;
    margin-top: auto;
}

.project-button .icon {
    background: white;
    margin-left: 1em;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2.2em;
    width: 2.2em;
    border-radius: 0.7em;
    box-shadow: 0.1em 0.1em 0.6em 0.2em #7b52b9;
    right: 0.3em;
    transition: all 0.3s;
}

.project-button:hover .icon {
    width: calc(100% - 0.6em);
}

.project-button .icon svg {
    width: 1.1em;
    transition: transform 0.3s;
    color: #7b52b9;
}

.project-button:hover .icon svg {
    transform: translateX(0.1em);
}

.project-button:active .icon {
    transform: scale(0.95);
}