
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-size: 16px;
    width: 100%;
    height: 100%;
    font-family: 'Inter', sans-serif;
}

#main {
    height: 100%;
    width: 100%;
}

#hero {
    min-height: 100vh;
    width: 100%;
    padding: 4.4rem 3.75rem 3.75rem 3.75rem;
    display: flex;
    flex-direction: column;
    opacity: 0;
    animation: fadeIn 1.2s ease-out forwards;
    animation-delay: 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#hero-img {
    flex: 1;
    width: 100%;
    background-image: url('https://images.pexels.com/photos/3184419/pexels-photo-3184419.jpeg');
    background-size: cover;
    background-position: 0 30%;
    background-repeat: no-repeat;
}

#hero-text-container {
    padding-right: 2rem;
}

#hero > #hero-text-container > h1 {
    font-size: 6rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.2rem;
    margin-top: 3.75rem;
    opacity: 0;
    animation: slideUp 1s ease-out forwards;
    animation-delay: 0.6s;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#hero >  #hero-text-container > h1 > span {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    font-style: italic;
}

#hero >  #hero-text-container > button {
    border: 1px solid #000000;
    border-radius: 50rem;
    background-color: transparent;
    color: black;
    padding: 1rem 2rem;
    font-size: 1.25rem;
    font-weight: 400;
    cursor: pointer;
    margin-top: 3rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
    animation-delay: 0.9s;
}

#hero >  #hero-text-container > button:hover {
    color: white;
    background-color: #000000;
}

#hero > #hero-text-container > button > i {
    font-size: 1.25rem;
    margin-left: 0.5rem;
}

#projects {
    width: 100%;
    padding: 6rem 9.375rem;
    display: flex;
    flex-direction: column;
    gap: 5rem;
    min-height: 100vh;
    box-sizing: border-box;
}

#projects-text-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
}

#projects-text-content > #heading {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
    text-align: right;
}

#projects > #projects-text-content > #heading > h4 {
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: -0.09rem;
}

#projects > #projects-text-content > #heading > h2 {
    font-size: 4rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.2rem;
    margin-top: 1.8rem;
}

#projects > #projects-text-content > #secondary-text {
    flex: 3;
    margin-top: 5rem;
}

#projects > #projects-text-content > #heading {
    flex: 3;
}

#projects > #projects-text-content > #secondary-text > p {
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1.6;   
}

#projects > #projects-text-content > #secondary-text > button {
    font-size: 1.1rem;
    font-weight: 400;
    padding: 1rem 2rem;
    background-color: transparent;
    border: 1px solid #000;
    border-radius: 50rem;
    margin-top: 3rem;
}

#projects > #projects-text-content > #secondary-text > button > i {
    margin-left: 0.75rem;
}

#projects > #projects-text-content > #secondary-text > button {
    transition: all 0.3s ease-in-out;
}

#projects > #projects-text-content > #secondary-text > button:hover {
    background-color: #000;
    color: white;
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#projects-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6.5rem;
    padding-top: 6.25rem;
}

.project {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    padding: 2.5rem;
    margin: -2.5rem;
}

.project:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
    padding: 2.5rem;
    margin: -2.5rem;
    cursor: pointer;
}

.project > button {
    font-size: 1.2rem;
    font-weight: 600;
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
    margin-top: 2.5rem;
    letter-spacing: -0.05rem;
}

.project > button > i {
    margin-left: 0.5rem;
    transition: margin-left 0.3s ease;
}

.project:hover > button {
    color: #FF4500; /* Orange Red color */
}

.project:hover > button i {
    margin-left: 1rem;
}

.project > .project-details {
    margin-top: 1.8rem;
}

.project > .project-details > h4 {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.06rem;
}

.project > .project-details > p {
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1.5;
    color: #666;
    margin-top: 1rem;
}

.project > .project-tag {
    display: flex;
    gap: 1.2rem;
    margin-top: 1.8rem;
    font-size: 1rem;
    font-weight: 500;
}

.project > .project-tag > p {
    padding: 0.75rem 1rem;
    border: 1px solid #000;
    border-radius: 50rem;
}

.project > .project-img {
    height: 25rem;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.5s ease;
}

.project:hover .project-img {
    transform: none;
}

@media (max-width: 768px) {

    #projects {
        padding: 0rem 2rem 2rem 2rem;
    }

    #projects-text-content {
        flex-direction: column;
        gap: 0;
    }
    
    #projects-gallery {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project {
        margin-bottom: 2rem;
    }
    
    #projects > #projects-text-content > #heading {
        order: 1;
        align-items: flex-start;
        text-align: left;
    }
    
    #projects > #projects-text-content > #secondary-text {
        order: 2;
        margin-top: 2rem;
    }

    #projects > #projects-text-content > #heading > h4 {
        font-size: 1.75rem;
        letter-spacing: -0.1rem;
    }
    
    #projects > #projects-text-content > #heading > h2 {
        font-size: 3rem;
    }

    #projects > #projects-text-content > #secondary-text > p {
        font-size: 1.3rem;
        margin-top: 0.5rem;
    }

    #projects > #projects-text-content > #secondary-text {
        margin: 0;
    }

    .project > .project-tag > p {
        font-size: 0.8rem;
        padding: 0.5rem 0.8rem;
    }
    
    .project > .project-img {
        height: 20rem;
    }
    
    .project > .project-details > p {
        font-size: 1.1rem;
    }
}

@media (max-width: 430px) {
    #hero {
        height: 40vh;
        margin-top: 2.2rem;
        padding: 1.8rem 1.8rem 4rem 1.8rem;
    }
    #hero > #hero-text-container > h1 {
        margin-top: 1.5rem;
        font-size: 3rem;
    }
    #hero > #hero-text-container > h1 > span {
        font-size: 3rem;
    }
    #hero > #hero-text-container > button {
        margin-top: 1.5rem;
        font-size: 1rem;
        padding: 1rem 1.2rem;
    }
    #hero > #hero-text-container > button > i {
        font-size: 1rem;
    }


}

@media (min-width: 1200px) and (max-width: 1799px) {

    #hero > #hero-text-container > h1 {
	font-size: 4.5rem;
	margin-top: 2.75rem;
    }

    #hero > #hero-text-container > button {
	margin-top: 2.5rem;
    }

    #projects {
	padding: 6rem 5rem;
    }

    #projects-gallery {
	gap: 4.5rem;
    }

    .project > .project-img {
	height: 15rem;
    }

    .project > .project-tag > p {
	font-size: 0.8rem;
    }

    .project > .project-details > h4 {
	font-size: 1.8rem;
    }
}
