* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
}

:root {
    --bg: #08111f;
    --bg2: #0d1b2e;
    --card: #10243b;
    --text: #ffffff;
    --text-light: #b9c5d3;
    --main: #00ff4c;
    --main2: #0066ff;
    --border: rgba(255,255,255,0.1);
}

html {
    font-size: 62.5%;
}

body {
    font-family: "Poppins", sans-serif;
    background: var(--bg);
    color: var(--text);
}

section {
    min-height: 100vh;
    padding: 10rem 8% 6rem;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(8,17,31,0.9);
    backdrop-filter: blur(15px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.logo {
    font-size: 2.6rem;
    font-weight: 800;
    color: white;
}

.logo span,
.footer span {
    color: var(--main);
}

.navbar {
    display: flex;
    gap: 3rem;
}

.navbar a {
    color: white;
    font-size: 1.5rem;
    font-weight: 500;
    transition: .3s;
}

.navbar a:hover,
.navbar a.active {
    color: var(--main);
}

#menu-icon {
    display: none;
    font-size: 2.8rem;
    cursor: pointer;
}

.home {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5rem;
    background:
        radial-gradient(circle at 80% 30%,
        rgba(0,217,255,.15),
        transparent 30%);
}

.home-content {
    max-width: 65rem;
}

.small-title {
    color: var(--main);
    font-size: 1.4rem;
    letter-spacing: 3px;
    margin-bottom: 2rem;
}

.home h1 {
    font-size: clamp(4rem, 6vw, 7rem);
    line-height: 1.1;
}

.home h1 span {
    color: var(--main);
}

.home h2 {
    font-size: 3rem;
    margin: 1.5rem 0;
    color: #d7e4f0;
}

.home-content > p {
    font-size: 1.6rem;
    line-height: 1.8;
    color: var(--text-light);
    max-width: 60rem;
}

.home-buttons {
    margin-top: 3rem;
    display: flex;
    gap: 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.3rem 2.8rem;
    border-radius: 5rem;
    background: linear-gradient(90deg, var(--main2), var(--main));
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: .3s;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,217,255,.25);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--main);
}

.social-icons {
    display: flex;
    gap: 1.2rem;
    margin-top: 3rem;
}

.social-icons a,
.footer-social a {
    width: 4.5rem;
    height: 4.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--main);
    border-radius: 50%;
    color: var(--main);
    font-size: 1.8rem;
    transition: .3s;
}

.social-icons a:hover,
.footer-social a:hover {
    background: var(--main);
    color: var(--bg);
    transform: translateY(-4px);
}

.home-image {
    position: relative;
    width: 42rem;
    height: 55rem;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.home-image img {
    width: 180%;
    height: 180%;
    object-fit: contain;
    object-position: bottom;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 15px 30px rgba(0,0,0,.5));
}

.image-circle {
    position: absolute;
    width: 30rem;
    height: 33rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--main2), var(--main));
    opacity: .25;
    box-shadow: 0 0 100px rgba(0,217,255,.25);
}

.section-title {
    text-align: center;
    margin-bottom: 6rem;
}

.section-title p {
    color: var(--main);
    font-size: 1.3rem;
    letter-spacing: 3px;
}

.section-title h2 {
    font-size: 4.5rem;
    margin-top: .7rem;
}

.section-title h2 span {
    color: var(--main);
}

.about {
    background: var(--bg2);
}

.about-container {
    display: grid;
    grid-template-columns: 40% 60%;
    align-items: center;
    gap: 5rem;
    max-width: 1200px;
    margin: auto;
}

.about-image img {
    width: 100%;
    max-height: 55rem;
    object-fit: cover;
    border-radius: 2rem;
    border: 1px solid var(--border);
}

.about-content h3 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.about-content p {
    font-size: 1.6rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1.8rem;
}

.about-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 3rem 0;
    font-size: 1.5rem;
}

.about-info strong {
    color: var(--main);
}

.services-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1200px;
    margin: auto;
}

.service-box {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 4rem 3rem;
    border-radius: 2rem;
    text-align: center;
    transition: .3s;
}

.service-box:hover {
    transform: translateY(-8px);
    border-color: var(--main);
}

.service-box i {
    font-size: 4rem;
    color: var(--main);
    margin-bottom: 2rem;
}

.service-box h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.service-box p {
    color: var(--text-light);
    font-size: 1.4rem;
    line-height: 1.7;
}

.portfolio {
    background: var(--bg2);
}

.portfolio-buttons {
    text-align: center;
    margin-bottom: 4rem;
}

.filter-btn {
    padding: 1rem 2rem;
    margin: .5rem;
    border: 1px solid var(--main);
    background: transparent;
    color: white;
    border-radius: 3rem;
    cursor: pointer;
    font-size: 1.4rem;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--main);
    color: var(--bg);
}

.portfolio-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.portfolio-item {
    position: relative;
    height: 30rem;
    overflow: hidden;
    border-radius: 1.5rem;
    border: 1px solid var(--border);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .5s;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-layer {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 3rem;
    background: linear-gradient(
        transparent,
        rgba(0,0,0,.95)
    );
    transform: translateY(100%);
    transition: .4s;
}

.portfolio-item:hover .portfolio-layer {
    transform: translateY(0);
}

.portfolio-layer h3 {
    font-size: 2rem;
}

.portfolio-layer p {
    font-size: 1.3rem;
    color: #ccc;
}

.portfolio-layer a {
    display: inline-flex;
    margin-top: 1rem;
    color: var(--main);
    font-size: 2rem;
}

.skills-container {
    max-width: 900px;
    margin: auto;
}

.skill {
    margin-bottom: 3rem;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.skill-header span {
    color: var(--main);
}

.skill-bar {
    height: 1rem;
    background: #1d3045;
    border-radius: 2rem;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--main2), var(--main));
    border-radius: 2rem;
    transition: width 1.5s ease;
}

.html {
    width: 90%;
}

.javascript {
    width: 75%;
}

.php {
    width: 70%;
}

.photoshop {
    width: 95%;
}

.indesign {
    width: 95%;
}

.video-edit {
    width: 90%;
}

.experience {
    background: var(--bg2);
}

.timeline {
    max-width: 900px;
    margin: auto;
    position: relative;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 0;
    width: 2px;
    height: 100%;
    background: var(--main);
}

.timeline-item {
    position: relative;
    padding-left: 7rem;
    margin-bottom: 5rem;
}

.timeline-dot {
    position: absolute;
    left: 10px;
    top: 5px;
    width: 2.2rem;
    height: 2.2rem;
    background: var(--main);
    border-radius: 50%;
}

.timeline-content {
    background: var(--card);
    padding: 3rem;
    border-radius: 1.5rem;
    border: 1px solid var(--border);
}

.timeline-content span {
    color: var(--main);
    font-size: 1.3rem;
}

.timeline-content h3 {
    font-size: 2.2rem;
    margin: .8rem 0;
}

.timeline-content p {
    font-size: 1.4rem;
    line-height: 1.7;
    color: var(--text-light);
}

.contact {
    background:
        radial-gradient(circle at 80% 50%,
        rgba(0,217,255,.12),
        transparent 30%);
}

.contact-container {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 5rem;
}

.contact-info h3 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.contact-info > p {
    color: var(--text-light);
    font-size: 1.5rem;
    line-height: 1.8;
    margin-bottom: 3rem;
}

.contact-box {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.contact-box i {
    width: 5rem;
    height: 5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--card);
    border-radius: 50%;
    color: var(--main);
    font-size: 1.8rem;
}

.contact-box h4 {
    font-size: 1.5rem;
}

.contact-box p {
    color: var(--text-light);
    font-size: 1.3rem;
}

form input,
form textarea {
    width: 100%;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: var(--card);
    border: 1px solid var(--border);
    color: white;
    border-radius: 1rem;
    font-family: inherit;
    font-size: 1.4rem;
}

form input:focus,
form textarea:focus {
    border-color: var(--main);
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

#form-message {
    margin-top: 2rem;
    font-size: 1.4rem;
}

.footer {
    background: #050b13;
    padding: 4rem 8%;
    text-align: center;
}

.footer h3 {
    font-size: 2.5rem;
}

.footer p {
    color: var(--text-light);
    font-size: 1.3rem;
    margin-top: 1rem;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.copyright {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
}


/* ================= RESPONSIVE ================= */

@media (max-width: 1000px) {

    .navbar {
        gap: 1.5rem;
    }

    .home {
        flex-direction: column;
        text-align: center;
        padding-top: 13rem;
    }

    .social-icons,
    .home-buttons {
        justify-content: center;
    }

    .home-image {
        width: 35rem;
        height: 45rem;
    }

    .services-container,
    .portfolio-container {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 768px) {

    html {
        font-size: 55%;
    }

    #menu-icon {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        display: none;
        flex-direction: column;
        padding: 2rem;
        background: var(--bg2);
    }

    .navbar.active {
        display: flex;
    }

    .navbar a {
        padding: 1rem;
    }

    .about-container,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .about-image {
        text-align: center;
    }

    .about-image img {
        max-width: 450px;
    }

    .services-container,
    .portfolio-container {
        grid-template-columns: 1fr;
    }

    .input-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .home-image {
        width: 30rem;
        height: 40rem;
    }

}

@media (max-width: 450px) {

    section {
        padding-left: 5%;
        padding-right: 5%;
    }

    .home h1 {
        font-size: 4rem;
    }

    .section-title h2 {
        font-size: 3.5rem;
    }

    .about-info {
        grid-template-columns: 1fr;
    }

}