@import url('https://fonts.googleapis.com/css2?family=Turret+Road:wght@200;300;400;500;700;800&display=swap');

body {
    background-color: #f6f5f5;
    margin: 0;
    padding: 0;
}

ul { list-style: none; }
a { text-decoration: none; }

section {
    width: 100%;
    height: 95vh;
    background-image: url('https://i.postimg.cc/pdjRsMfM/bg.png');
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    display: flex;
    flex-direction: column;
}

.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 0 5%;
    box-sizing: border-box;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    background-color: #ffffff;
    box-shadow: 2px 2px 12px rgba(0, 0, 0, .2);
    padding: 0 5%;
}

    nav ul { display: flex; }

        nav ul li a {
            margin: 30px;
            font-family: myriad pro regular;
            color: #505050;
            font-size: 15px;
            font-weight: 700;
        }

.logo { font-family: 'Turret Road'; color: #000000; font-size: 22px; }
.active { font-weight: bold; color: #2d2a2a; }

.text-container {
    position: relative;
    width: 90%;
    max-width: 500px;
    margin-left: 13%;
    margin-top: 10%;
}

.text-container p { line-height: 1.2; margin: 20px 0; }

    .text-container p:nth-child(1) {
        font-family: calibri;
        font-weight: bold;
        color: #6d6d6d;
        font-size: 22px;
    }

    .text-container p:nth-child(2) {
        font-family: calibri;
        font-weight: bold;
        letter-spacing: 1px;
        color: #1a1a1a;
        font-size: 45px;
    }

    .text-container p:nth-child(3) {
        font-family: myriad pro regular;
        color: #403e3e;
        font-size: 30px;
    }

    .text-container button {
        width: 130px;
        height: 42px;
        border-radius: 10px;
        font-family: calibri;
        font-weight: bold;
        font-size: 14px;
        outline: none;
        margin: 0 10px;
    }

.hire-btn { border: 2px solid #373636; cursor: pointer; }
.down-cv { background-color: #0b0b0b; color: #ffffff; border: none; cursor: pointer; }
button:active { transform: scale(1.1); }

.model {
    height: auto;
    max-height: 550px;
    width: auto;
    max-width: 40%;
    position: absolute;
    bottom: 40px;
    right: 10%;
    left: auto;
    transform: none;
}

.about-container {
    width: 80%;
    height: 330px;
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 2px 2px 12px rgba(0, 0, 0, .2);
    display: flex;
    margin: -7% auto 20px auto;
    position: relative;
    justify-content: space-evenly;
    align-items: center;
}

    .about-container img { height: 250px; }

.about-text { width: 550px; }
    .about-text p:nth-child(1) {
        color: #403e3e;
        font-family: myriad pro;
        font-weight: bold;
        font-size: 23px;
        line-height: 0px;
    }

    .about-text p:nth-child(2) {
        color: #3e3d3d;
        font-size: 13px;
        font-family: myriad pro;
        font-weight: bold;
        line-height: 5px;
    }

    .about-text p:nth-child(3),
    .about-text p:nth-child(4) {
        color: #7e7d7d;
        font-family: calibri;
        font-size: 16px;
    }

    .about-text button {
        width: 120px;
        height: 40px;
        color: #ffffff;
        outline: none;
        border: none;
        font-family: calibri;
        background-color: #262525;
    }

.services {
    height: max-content;
    background-color: #ffffff;
    padding: 2% 10% 0px 10%;
}

.services-text { width: 500px; margin: 50px 0; }

    .services-text p:nth-child(1) {
        font-family: calibri;
        font-weight: bold;
        color: #3e3d3d;
        font-size: 30px;
        line-height: 0px;
    }

    .services-text p:nth-child(2) {
        font-family: calibri;
        font-weight: bold;
        color: #3e3e3d;
        font-size: 15px;
        line-height: 5px;
    }

    .services-text p:nth-child(3) {font-family: calibri; color: #7e7d7d; }

.box1, .box2, .box3 {
    width: 300px;
    height: 320px;
    background-repeat: no-repeat;
    background-size: cover;
    box-shadow: 2px 2px 12px rgba(0, 0, 0, .3);
}

.box-container { display: flex; justify-content: space-between; }

.box1 { background-image: url('https://i.postimg.cc/B6b1V6nw/services-1.png'); }
.box2 { background-image: url('https://i.postimg.cc/B6z1908Z/services-2.png'); }
.box3 { background-image: url('https://i.postimg.cc/Z0tBnxF1/services-3.png'); }

    .box1, .box2, .box3 {
        width: 300px;
        height: 320px;
        background-repeat: no-repeat;
        background-size: cover;
        box-shadow: 2px 2px 12px rgba(0, 0, 0, .3);
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

        .box1 span, .box2 span, .box3 span {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background-color: #ffffff;
            display: flex;
            justify-content: center;
            align-items: center;
            font-family: calibri;
            font-weight: bold;
        }

        .box1 p:nth-child(2),
        .box2 p:nth-child(2),
        .box3 p:nth-child(2) {
            color: #ffffff;
            font-family: calibri;
            font-size: 23px;
            line-height: 0px;
        }

        .box1 p:nth-child(3),
        .box2 p:nth-child(3),
        .box3 p:nth-child(3) {
            font-family: calibri;
            text-align: center;
            width: 230px;
            margin: 0 0 20px 0;
            color: #8f8f8f;
        }

        .box1 button, .box2 button, .box3 button {
            width: 100px;
            height: 30px;
            background-color: #ffffff;
            border: none;
            outline: none;
            border-radius: 5px;
        }

.box-container { display: flex; justify-content: space-between; }

.contact-me {
    width: 100%;
    height: 280px;
    background-image: url('https://i.postimg.cc/0NzPFZQY/project-in-your-mind.png');
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

    .contact-me p {
        color: #ffffff;
        font-size: 30px;
        font-family: calibri;
        font-weight: bold;
        border-bottom: 2px solid #ffffff;
    }

    .contact-me button {
        width: 240px;
        height: 40px;
        background-color: #ffffff;
        outline: none;
        border: none;
        font-size: 14px;
        font-weight: bold;
    }

footer {
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

    footer p { font-family: calibri; }
        footer p:nth-child(1) { font-size: 30px; font-weight: bold; color: #191919; line-height: 10px; font-family: 'Turret Road'; }
        footer p:nth-child(2) { font-size: 16px; width: 600px;; color: #7e7d7d; text-align: center; }

.social-icons { display: flex;}

    .social-icons a{
        width: 40px;
        height: 40px;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: #e6e3e3;
        margin: 20px 10px;
        border-radius: 50%;
    }

    .social-icons i, .a-social-b i { color: #000000; transition: all .5s ease; }
        .social-icons i:hover, .a-social-b i:hover { transform: scale(2); }
            .social-icons .fa-facebook:hover, .a-social-b .fa-facebook:hover { color: #4267b2; }
            .social-icons .fa-x-twitter:hover, .a-social-b .fa-x-twitter:hover { color: #1da1f2; }
            .social-icons .fa-instagram:hover, .a-social-b .fa-instagram:hover { color: #c13584; }
            .social-icons .fa-youtube:hover, .a-social-b .fa-youtube:hover { color: #ff0000; }

.copyright {
    color: #565555;
    font-size: 15px;
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
}

.a-social-b {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateX(-50%);
}

    .a-social-b a {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 50px;
        height: 50px;
        padding: 0;
        margin: 0;
        line-height: 0px;
        background-color: #ffffff;
        border: 1px solid #cbcbcb;
        box-shadow: 2px 2px 12px rgba(0, 0, 0, .2);
    }

@media(max-width: 1200px) {
    .model {
        max-width: 35%;
        right: 5%;
        bottom: 100px;
    }

    .services { min-height: max-content; height: 100%; margin-bottom: 20px; }
        .services-text { display: flex; justify-content: center; align-items: center; flex-direction: column; width: 100%; }
            .services-text p:nth-child(3) { width: 350px; text-align: center; }

    .box-container { flex-direction: column; display: grid; gap: 2rem; justify-content: center; align-items: center; }

}

@media(max-width: 1000px) {
    .hero-container {
        flex-direction: column;
        justify-content: center;
    }

    .model {
        position: relative;
        max-width: 60%;
        margin: 30px auto 0;
        bottom: 0;
        right: 0;
    }

    .text-container {
        text-align: center;
        margin: 5% auto;
    }

    section {
        height: auto;
        min-height: 100vh;
        padding-bottom: 50px;
    }
}

@media(max-width: 720px) {
    .text-container p:nth-child(2) {
        font-size: 40px;
    }

    .text-container p:nth-child(3) {
        font-size: 25px;
    }

    nav ul { display: none; }
    footer p:nth-child(2) { max-width: 90%; }
    .contact-me p { max-width: 90%; text-align: center; border-bottom: none;}
}

@media(max-width: 480px) {
    .text-container p:nth-child(2) {
        font-size: 34px;
    }

    .text-container p:nth-child(3) {
        font-size: 20px;
    }

    .model {
        max-width: 80%;
    }
}

@media(max-width: 420px) {
    .logo { font-size: 16px;}
    .text-container {
        margin-left: 5%;
        margin-right: 5%;
    }
    .text-container p:nth-child(1) {
        font-size: 18px;
    }
    .text-container p:nth-child(2) {
        font-size: 30px;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.service-card {
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    fill: #1e70bf;
}

.service-title {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
    font-weight: bold;
}

.service-description {
    font-size: 14px;
    color: #666;
}

.scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #1e70bf;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-size: 20px;
    cursor: pointer;
    z-index: 100;
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

#popup {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    display: flex;
}

#popup-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

#popup-content button {
    margin: 10px;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    background-color: #4CAF50;
    color: white;
    cursor: pointer;
}

#popup-content button.close {
    background-color: #ccc;
    color: black;
}
