/* Local Fonts */
@font-face {
    font-family: 'Poppins';
    src: url('fonts/Poppins-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('fonts/Poppins-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Quicksand';
    src: url('fonts/Quicksand-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Days One';
    src: url('fonts/DaysOne-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
.bg {
    background-color: #d3cbf4;
}

* {
    margin: 0;
    padding: 0;
    font-family: 'Poppins';
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #d3cbf4;
}

.main {
    flex: 1;
}

.navbar {
    width: 86%;
    display: flex;
    margin: auto;
    padding: 15px 0;
    align-items: center;
    justify-content: space-between;
    align-content: center;
}

.navbar .logo {
    width: 160px;
    cursor: pointer;
    margin-top: -1%;
}

ul {
    margin-top: -5%;
}

ul li {
    list-style: none;
    display: inline-block;
    padding: 11px 15px;
}

ul li a {
    font-family: 'Poppins';
    font-size: 1.3em;
    font-weight: bold;
    text-decoration: none;
    color: #3e0877;
    margin-top: -3%;
    transition: .4s ease;
}

ul li a:hover {
    color: white;
}

.info {
    margin-left: 7%;
    margin-top: 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 86%;
    margin-left: auto;
    margin-right: auto;
}

.info-content {
    flex: 1;
    padding-right: 30px;
}

.info h1 {
    font-size: 65px;
    color: #3e0877;
}

.info h3 {
    font-family: 'Quicksand';
    font-size: 28px;
    letter-spacing: 1px;
    line-height: 50px;
    font-weight: 600;
}

.info span {
    color: #3e0877;
}

.btn-container {
    display: flex;
    gap: 15px;
    margin: 26px 0;
}

.info a {
    font-family: 'Poppins';
    text-decoration: none;
    color: #3e0877;
    background: none;
    border: 2px solid #3e0877;
    padding: 10px 30px;
    border-radius: 20px;
    display: inline-block;
    transition: .4s ease;
    margin: 0;
    min-width: 120px;
    text-align: center;
}

.info a:hover {
    background: #3e0877;
    color: white;
}

.image {
    width: 40%;
    height: auto;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image img {
    border-radius: 50%; 
    width: 90%;
    aspect-ratio: 1/1; 
    object-fit: cover;
    border: 2px solid #1d1d1d;
    box-sizing: border-box;
}

.about {
    background-color: #d3cbf4;
    padding: 80px 10%;
    text-align: center;
}

.about-container {
    max-width: 800px;
    margin: auto;
    padding: 40px;
    background-color: #fff;
    border: 2px solid #3e0877;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.about h2 {
    font-size: 36px;
    color: #d9a24d;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.about p {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 20px;
    text-align: justify;
}

.about p:last-child {
    margin-bottom: 0;
}

.skills {
    background-color: #d3cbf4;
    padding: 80px 10%;
    text-align: center;
}

.skills-container {
    max-width: 1000px;
    margin: auto;
}

.skills h2 {
    font-size: 36px;
    color: #d9a24d;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.skill {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 180px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.skill img {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.skill:hover img {
    transform: scale(1.1);
}

.skill p {
    font-size: 18px;
    font-weight: bold;
    color: #3e0877;
    margin-top: 10px;
}

#my-works {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #d3cbf4;
    padding: 40px 20px;
    text-align: center;
}

#my-works h2 {
    font-size: 2em;
    color: #d9a24d;
    margin-bottom: 30px;
    width: 100%;
}

.works {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 0 20px; 
}

.work-item {
    width: 100%;
    max-width: 300px;
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
    min-height: 350px; /* adjust based on your content */
}

.work-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); 
}

.work-item img {
    width: 100%;
    height: 200px; /* fixed height for uniformity */
    object-fit: cover; /* makes the image fill the area without stretching */
    border-radius: 10px;
    margin-bottom: 10px;
}


.work-item h3 {
    font-size: 28px;
    color: #3e0877;
    margin-bottom: 10px;
}

.work-item p {
    font-size: 0.9em;
    color: #333;
}

.contact {
    background: #d3cbf4;
    padding: 80px 10%;
    text-align: center;
}

.container {
    max-width: 800px;
    margin: auto;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.contact h2 {
    font-size: 36px;
    color: #d9a24d;
    margin-bottom: 20px; 
}

.contact p {
    margin-bottom: 20px;
    font-size: 18px;
    color: #333; 
}

.contact form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px; 
}

.contact input,
.contact textarea {
    width: 100%;
    max-width: 600px;
    padding: 10px;
    border: 2px solid #3e0877;
    border-radius: 8px;
    font-size: 16px;
    margin: 0; 
}

.contact textarea {
    resize: vertical;
    min-height: 150px; 
}

.contact button {
    background: #3e0877;
    color: white;
    padding: 10px 30px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.3s ease; 
}

.contact button:hover {
    background: #d9a24d;
}

.icons {
    display: flex;
    justify-content: center;
    gap: 80px; 
    margin-bottom: 10px;
}

.icons a {
    display: inline-block;
    transition: transform 0.3s ease;
}

.icons a:hover {
    transform: scale(1.1);
}

.icons img {
    width: 30px; 
    height: 30px;
}

.f2 {
    margin-bottom: 10px;
    word-spacing: 50px;
}

.f1 {
    color: #1D1D1D; 
}

footer {
    position: relative;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 1rem 0;
    background-color: #7064A2;
    color: #FFFFFF;
    text-align: center;
    margin-top: auto;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    overflow: auto;
}

.modal-content {
    position: relative;
    background-color: transparent;
    margin: 10% auto;
    width: 80%;
    max-width: 800px;
}

.close-button {
    position: absolute;
    top: -40px;
    right: 0;
    color: #ffffff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-button:hover {
    color: #d9a24d;
}

.video-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Fade-in animation */
@keyframes fadeIn {
    from {opacity: 0}
    to {opacity: 1}
}

.fade-in {
    animation: fadeIn 0.5s;
}

/* Media query for large screens */
@media (min-width: 1200px) {
    .info {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        gap: 40px;
    }
    
    .info-content {
        flex: 1;
        padding-right: 30px;
        order: 1;
    }
    
    .info h1 {
        font-size: 75px;
    }
    
    .info h3 {
        font-size: 28px;
    }
    
    .image {
        width: 35%;
        order: 2;
        margin: 0;
    }
    
    .navbar {
        width: 90%;
    }
}

/* Media query for medium screens */
@media (max-width: 1199px) {
    .navbar {
        width: 95%;
    }
    
    ul li a {
        font-size: 1.1em;
    }
    
    .info {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
        width: 90%;
        flex-direction: column;
    }
    
    .info-content {
        padding-right: 0;
    }
    
    .info h1 {
        font-size: 50px;
    }
    
    .info h3 {
        font-size: 28px;
        line-height: 40px;
    }
    
    .image {
        display: block;
        width: 60%;
        max-width: 300px;
        margin: 30px auto 0;
    }
    
    .about-container, .skills-container, .container {
        max-width: 90%;
    }
    
    .skill {
        width: 130px;
    }
    
    .btn-container {
        justify-content: center;
    }
}

/* Media query for small screens/mobile */
@media (max-width: 576px) {
    .navbar {
        flex-direction: column;
        text-align: center;
    }
    
    .navbar .logo {
        margin-bottom: 15px;
    }
    
    ul {
        margin-top: 0;
    }
    
    ul li {
        padding: 8px 10px;
    }
    
    ul li a {
        font-size: 1em;
    }
    
    .info {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
        margin-top: 20px;
        width: 90%;
        flex-direction: column;
    }
    
    .info h1 {
        font-size: 40px;
    }
    
    .info h3 {
        font-size: 28px;
        line-height: 30px;
    }
    
    .image {
        display: block;
        width: 80%;
        max-width: 250px;
        margin: 20px auto 0;
    }
    
    .skills-grid {
        gap: 15px;
    }
    
    .skill {
        width: 100px;
    }
    
    .works {
        gap: 15px;
    }
    
    .work-item {
        max-width: 100%;
    }
    
    .icons {
        gap: 30px;
    }
    
    .btn-container {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}

