@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --bg-primary: #1f242d;
    --bg-secondary: #323846;
    --text-primary: #fff;
    --color-accent: #00bfa6;
    --color-accent-dark: #007c6c;
    --color-error: #9d3025;
    --text-dark: #323846;
}

/* Global Styles */
* {
    box-sizing: border-box;
    border: none;
    outline: none;
    text-decoration: none;
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
    font-family: 'Roboto Condensed', sans-serif;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

section {
    min-height: 100vh;
    padding: 10rem 9% 2rem;
}

/* Header */
.header {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    background-color: var(--bg-primary);
    width: 100%;
    padding: 2.5rem 3rem;
    z-index: 1;
    justify-content: space-between;
    text-align: center;
}

.header.sticky {
    border-bottom: .1rem solid rgba(0, 0, 0, .2);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: default;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.navbar {
    position: relative;
    z-index: 2;
    transition: 0.2s all ease-in-out;
    align-content: center;
}

.navbar a {
    font-size: 1.7rem;
    color: var(--text-primary);
    margin-left: 3rem;
}

.navbar a:hover,
.navbar a.current {
    color: var(--color-accent);
}

.navbar i {
    margin-right: 8px;
    font-size: 18px;
}

#menu-icon {
    font-size: 3.6rem;
    color: var(--text-primary);
    display: none;
    align-content: center;
}

/* Home Section */
.home {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: justify;
}

.home-img img {
    width: 23.5vw;
    height: 50vh;
    margin-left: 100px;
    transition: transform 0.2s ease-out;
}

.home-content h3 {
    font-size: 3.2rem;
    font-weight: 700;
}

.home-content h3:nth-of-type(2) {
    margin-bottom: 2rem;
}

.home-content h1 {
    font-size: 5.6rem;
    font-weight: 700;
    line-height: 1.3;
}

.home-content p {
    font-size: 1.9rem;
}

span {
    color: var(--color-accent);
}

/* Social Media */
.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: .2rem solid var(--color-accent);
    border-radius: 50%;
    font-size: 2.5rem;
    color: var(--color-accent);
    margin: 3rem 1.5rem 3rem 0;
    transition: .5s ease-in-out;
}

.social-media a:hover {
    background-color: var(--color-accent);
    color: var(--text-dark);
    box-shadow: 0 0 1rem var(--color-accent);
}

/* Project Section */
.project {
    background: var(--bg-secondary);
}

.project h2 {
    margin-bottom: 4rem;
}

.project-container {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;
    gap: 2.5rem;
}

.project-box {
    width: calc(33.33% - 2.5rem);
    height: 200px;
    position: relative;
    border-radius: 2rem;
    box-shadow: 0 0 1rem var(--bg-primary);
    overflow: hidden;
    display: flex;
    object-fit: cover;
}

.project-box img {
    width: 100%;
    transition: .5s ease;
}

.project-box:hover img {
    transform: scale(1.1);
}

.project-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(180deg, rgba(0,59,51,.8) 0%, rgba(0,191,166,.8) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 0 4rem;
    transform: translateY(100%);
    transition: .5s ease;
}

.project-box:hover .project-layer {
    transform: translateY(0);
}

.project-layer h4 {
    font-size: 3rem;
}

.project-layer p {
    font-size: 1.6rem;
    margin: .3rem 0 1rem;
}

.project-layer a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 5rem;
    height: 5rem;
    background-color: var(--text-primary);
    border-radius: 50%;
}

.project-layer a i {
    font-size: 2rem;
    color: var(--text-dark);
}

/* Error Message */
.error {
    color: var(--color-error);
    font-size: 16px;
    display: none;
}

/* About Section */
.about {
    text-align: justify;
    gap: 3rem;
    background-color: var(--bg-primary);
}

.about-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 100px;
}

.heading {
    text-align: center;
    font-size: 4.5rem;
}

.about-content h2 {
    line-height: 1.2;
    text-align: left;
}

.about-content h3 {
    font-size: 2.6rem;
}

.about-content p {
    font-size: 1.6rem;
    margin-top: 1rem;
}

.contact-email,
.contact-number {
    font-size: 2rem;
    margin: 2rem 0;
}

.contact-number a {
    color: inherit;
    text-decoration: none;
}

.contact-span {
    font-weight: 600;
    color: var(--color-accent);
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--color-accent);
    border-radius: 4rem;
    box-shadow: 0 0 1rem var(--color-accent);
    font-size: 1.6rem;
    color: var(--text-dark);
    font-weight: 600;
    transition: .4s ease-in-out;
}

.btn:active {
    transform: scale(0.9);
}

.btn:hover {
    box-shadow: none;
}

.btn i {
    margin-right: 0.5rem;
}

/* Footer */
.footer {
    display: flex;
    height: 70px;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem 9%;
    background-color: var(--bg-secondary);
}

.footer-text p {
    font-size: 1.6rem;
}

.footericonTop {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: .8rem;
    background: var(--color-accent);
    border-radius: .8rem;
    font-weight: 700;
}

.footericonTop a i {
    font-size: 2.4rem;
    color: var(--text-dark);
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

::-webkit-scrollbar-thumb {
    background: var(--color-accent);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent-dark);
}

/* Responsive Design */
@media (max-width: 768px) {
    html {
        font-size: 55%;
    }

    .header {
        padding: 2.5rem 3%;
    }
    
    section {
        padding: 10rem 3% 2rem;
    }
    
    .footer {
        padding: 2rem 3%;
    }

    #menu-icon {
        display: block;
    }
    
    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        transform: translateX(200%);
        width: 100%;
        z-index: -1;
        padding: 1rem 3%;
        background: var(--bg-primary);
        border-top: .1rem solid rgba(0, 0, 0, .2);
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .2);
        text-align: left;
    }
    
    .navbar.current {
        transform: translateX(0);
    }
    
    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 2rem 0;
    }
    
    .home {
        flex-direction: column;
    }
    
    .home-content h3 {
        font-size: 2.6rem;
    }

    .home-content h2 {
        font-size: 5rem;
    }
    
    .home-img {
        display: flex;
        justify-content: center;
        width: 100%;
    }
    
    .home-img img {
        width: 65%;
        height: auto;
        margin-left: 0;
        transition: transform 0.1s ease-out;
    }
    
    .about-content {
        margin-top: 20px;
        flex-direction: column; 
        gap: 10px;
    }
    
    dotlottie-player {
        width: 250px !important;
        height: 250px !important;
    }
    
    .contact-number {
        text-decoration: none;
        color: var(--text-primary);
    }

    .project-container {
        flex-direction: column;
        gap: 2rem 0;
    }
    
    .project-box {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 400px) {
    html {
        font-size: 50%;
    }
}
