/* =========================================
   RESET
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
    color: #151515;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
textarea {
    font-family: inherit;
}


/* =========================================
   HEADER
========================================= */

header {
    height: 65px;

    background: #0b0e16;

    color: white;

    display: flex;
    align-items: center;

    padding: 0 5%;

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;

    z-index: 1000;

    border-bottom: 1px solid #1d2330;
}


/* LOGO */

.logo {
    display: flex;

    align-items: center;

    gap: 7px;

    font-size: 15px;

    margin-right: auto;
}

.logo span {
    color: #2864f0;

    font-size: 20px;
}

.logo strong {
    color: #eeeeee;
}


/* NAVIGATION */

nav {
    display: flex;

    align-items: center;

    gap: 30px;
}

nav a {
    color: #c9cbd1;

    font-size: 12px;

    position: relative;

    transition: 0.3s;
}

nav a:hover,
nav a.active {
    color: #3472ff;
}

nav a.active::after {
    content: "";

    position: absolute;

    bottom: -14px;

    left: 0;

    width: 100%;

    height: 2px;

    background: #3472ff;
}


/* THEME BUTTON */

.theme-btn {
    border: none;

    width: 32px;
    height: 32px;

    border-radius: 50%;

    background: #2864f0;

    color: white;

    margin-left: 45px;

    cursor: pointer;
}


/* =========================================
   HERO
========================================= */

.hero {
    min-height: 390px;

    background: #0b0e16;

    color: white;

    display: flex;

    align-items: center;

    padding: 90px 7% 40px;

    position: relative;

    overflow: hidden;
}


.hero-content {
    width: 55%;

    position: relative;

    z-index: 5;
}


.intro {
    color: #3472ff;

    font-size: 16px;

    margin-bottom: 2px;
}


.hero h1 {
    font-size: 34px;

    line-height: 1.2;

    margin-bottom: 4px;
}


.hero h2 {
    color: #3472ff;

    font-size: 18px;

    margin-bottom: 10px;
}


.description {
    color: #c4c6cd;

    font-size: 12px;

    max-width: 390px;

    line-height: 1.6;
}


/* =========================================
   BUTTONS
========================================= */

.hero-buttons {
    display: flex;

    gap: 10px;

    margin-top: 20px;
}


.btn {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    padding: 9px 17px;

    border-radius: 4px;

    font-size: 11px;

    cursor: pointer;

    transition: 0.3s;
}


.btn.primary {
    background: #2864f0;

    color: white;

    border: 1px solid #2864f0;
}


.btn.primary:hover {
    background: #174dcc;
}


.btn.secondary {
    border: 1px solid #2864f0;

    color: white;

    background: transparent;
}


.btn.secondary:hover {
    background: #2864f0;
}


/* =========================================
   SOCIAL ICONS
========================================= */

.socials {
    display: flex;

    gap: 22px;

    margin-top: 25px;
}


.socials a {
    color: #e7e8eb;

    font-size: 16px;

    transition: 0.3s;
}


.socials a:hover {
    color: #3472ff;

    transform: translateY(-3px);
}


/* =========================================
   HERO IMAGE
========================================= */

.hero-image {
    width: 45%;

    height: 330px;

    position: relative;

    display: flex;

    justify-content: center;

    align-items: flex-end;
}


.blue-circle {
    width: 240px;

    height: 240px;

    background: #245ce8;

    border-radius: 50%;

    position: absolute;

    bottom: 10px;

    left: 50%;

    transform: translateX(-50%);
}


.blue-circle::before {
    content: "";

    width: 210px;

    height: 210px;

    border: 1px dashed #245ce8;

    border-radius: 50%;

    position: absolute;

    top: -20px;

    left: -25px;
}


.image-container {
    position: relative;
    z-index: 3;

    width: 240px;
    height: 240px;

    border-radius: 50%;

    overflow: hidden;

    display: flex;
    justify-content: center;
    align-items: center;

    background: #245ce8;
}

.image-container img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    object-position: center top;

    border-radius: 50%;
}

.image-container img {
    width: 100%;

    height: 100%;

    object-fit: cover;

    object-position: center top;

    border: radius 50%;o;
}


/* =========================================
   GENERAL SECTIONS
========================================= */

.section {
    padding: 25px 7%;
}


.section-title {
    margin-bottom: 18px;
}


.section-title h2 {
    font-size: 20px;

    display: inline-block;

    position: relative;
}


.section-title h2::after {
    content: "";

    display: block;

    width: 23px;

    height: 2px;

    background: #2864f0;

    margin-top: 5px;
}


/* =========================================
   ABOUT
========================================= */

.about-content {
    display: flex;

    align-items: center;

    gap: 20px;

    max-width: 700px;
}


.about-icon {
    min-width: 55px;

    height: 55px;

    background: #edf3ff;

    color: #2864f0;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 25px;
}


.about-text p {
    font-size: 11px;

    color: #333;

    margin-bottom: 12px;
}


/* =========================================
   TECH STACK
========================================= */

.tech-container {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 15px;

    max-width: 800px;
}


.tech-card {
    display: flex;

    align-items: center;

    gap: 14px;

    padding: 15px;

    border: 1px solid #e8e8e8;

    border-radius: 5px;

    background: #fff;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);

    transition: 0.3s;
}


.tech-card:hover {
    transform: translateY(-4px);

    border-color: #2864f0;

    box-shadow: 0 5px 15px rgba(40, 100, 240, 0.12);
}


.tech-icon {
    width: 45px;

    height: 45px;

    min-width: 45px;

    border-radius: 5px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 24px;

    background: #edf3ff;

    color: #2864f0;
}


.tech-card h3 {
    font-size: 13px;

    margin-bottom: 2px;
}


.tech-card p {
    font-size: 9px;

    color: #666;
}


.html-icon {
    color: #e34f26;
}

.css-icon {
    color: #1572b6;
}

.js-icon {
    color: #d6a800;
}

.php-icon {
    color: #777bb4;
}

.mysql-icon {
    color: #00758f;
}

.git-icon {
    color: #f05032;
}

.github-icon {
    color: #181717;
}


/* =========================================
   PROJECTS
========================================= */

.project-container {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 18px;
}


.project-card {
    border: 1px solid #e8e8e8;

    border-radius: 5px;

    overflow: hidden;

    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.08);

    background: white;

    transition: 0.3s;
}


.project-card:hover {
    transform: translateY(-4px);
}


/* SAME SIZE FOR ALL PROJECT IMAGES */

.project-image {
    width: 100%;

    height: 155px;

    overflow: hidden;

    background: #edf3ff;
}


.project-image img {
    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

    transition: 0.4s;
}


.project-card:hover .project-image img {
    transform: scale(1.05);
}


.project-info {
    padding: 12px;
}


.project-info h3 {
    font-size: 13px;

    margin-bottom: 4px;
}


.project-info p {
    font-size: 9px;

    color: #666;

    min-height: 35px;

    margin-bottom: 8px;
}


.project-links {
    display: flex;

    gap: 15px;
}


.project-links a {
    color: #2864f0;

    font-size: 9px;

    font-weight: bold;
}


.project-links a:hover {
    text-decoration: underline;
}


/* =========================================
   WHAT I CAN BUILD
========================================= */

.expertise-container {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 15px;
}


.expertise-card {
    border: 1px solid #e8e8e8;

    border-radius: 5px;

    padding: 18px;

    text-align: center;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);

    transition: 0.3s;
}


.expertise-card:hover {
    transform: translateY(-4px);

    border-color: #2864f0;
}


.expertise-card i {
    color: #2864f0;

    font-size: 24px;

    margin-bottom: 8px;
}


.expertise-card h3 {
    font-size: 12px;

    margin-bottom: 5px;
}


.expertise-card p {
    font-size: 9px;

    color: #666;
}


/* =========================================
   CONTACT
========================================= */

.contact-container {
    display: grid;

    grid-template-columns: 1.4fr 1fr;

    gap: 20px;
}


form {
    display: flex;

    flex-direction: column;

    gap: 10px;
}


.form-row {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 10px;
}


input,
textarea {
    width: 100%;

    border: 1px solid #e2e2e2;

    padding: 9px;

    outline: none;

    font-size: 10px;

    border-radius: 3px;
}


textarea {
    height: 75px;

    resize: none;
}


input:focus,
textarea:focus {
    border-color: #2864f0;
}


form .btn {
    width: fit-content;

    border: none;
}


.contact-info {
    background: #edf4ff;

    padding: 18px;

    border-radius: 4px;
}


.contact-info h3 {
    font-size: 13px;

    margin-bottom: 5px;
}


.contact-info > p:first-of-type {
    font-size: 9px;

    margin-bottom: 12px;

    color: #444;
}


.contact-info p:not(:first-of-type) {
    font-size: 9px;

    margin-bottom: 8px;
}


.contact-info i {
    color: #2864f0;

    width: 20px;
}


/* =========================================
   FOOTER
========================================= */

footer {
    background: #0b0e16;

    color: white;

    text-align: center;

    padding: 12px;

    font-size: 9px;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 850px) {

    header {
        padding: 0 4%;
    }

    nav {
        gap: 15px;
    }

    nav a {
        font-size: 10px;
    }

    .theme-btn {
        margin-left: 20px;
    }

    .hero {
        padding-left: 5%;

        padding-right: 5%;
    }

    .hero h1 {
        font-size: 28px;
    }

    .project-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .expertise-container {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

    header {
        height: auto;

        min-height: 65px;

        flex-wrap: wrap;

        padding: 12px 5%;
    }


    .logo {
        margin-right: 0;
    }


    nav {
        order: 3;

        width: 100%;

        justify-content: center;

        padding-top: 12px;

        gap: 18px;
    }


    nav a.active::after {
        bottom: -5px;
    }


    .theme-btn {
        margin-left: auto;
    }


    .hero {
        flex-direction: column;

        text-align: center;

        padding-top: 150px;
    }


    .hero-content {
        width: 100%;
    }


    .description {
        margin: auto;
    }


    .hero-buttons {
        justify-content: center;
    }


    .socials {
        justify-content: center;
    }


    .hero-image {
        width: 100%;

        margin-top: 25px;
    }


    .about-content {
        align-items: flex-start;
    }


    .tech-container,
    .project-container,
    .expertise-container {
        grid-template-columns: 1fr;
    }


    .contact-container {
        grid-template-columns: 1fr;
    }


    .form-row {
        grid-template-columns: 1fr;
    }

}