/* ===============================RESET================================ */

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

}

html {
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
    font-family: cursive;
    height: 100vh;
    background: linear-gradient(to right, green, rgb(117, 117, 38));
    color: aliceblue;
    line-height: 1.6;
}


a {
    text-decoration: none;
    color: rgb(5, 18, 29);
}

button,
input,
textarea {
    font-family: inherit;
}

/* ===============================VARIABLES================================ */
:root {

    --primary: #ececec;
    --secondary: #7c3aed;

    --background: #003feb;
    --card: #323561;

    --text: #ffffff;
    --muted: #ecf8ff;

    --border: rgba(0, 0, 0, 0.2);

}


/* ===============================
   LIGHT MODE
================================ */

body.light {

    --background: #195999;
    --card: #f0c68e;

    --text: #cccccc;
    --muted: #ffffff;

    --border: rgba(251, 251, 252, 0.1);

}


/* ===============================CONTAINER================================ */

.container {
    width: min(1100px, 90%);
    margin: auto;
}


/* ===============================HEADER================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(to right, rgb(5, 93, 122), yellow);
    border-bottom: 1px solid var(--border);
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 700;
    color: rgb(21, 88, 146);

}



.navbar {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 32px;
    font-weight: 700;
}

.logo span {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-menu a {
    color: var(--muted);
    transition: 0.3s;
}

.nav-menu a:hover {
    color: var(--primary);
}

.theme-btn,
.menu-toggle {
    background: none;
    border: none;
    color: var(--text);
    font-size: 20px;
    cursor: pointer;
}

.menu-toggle {
    display: none;
}

img {
    height: 30%;
    width: 10%;
}


/* ===============================HERO================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 70px;
}

.hero-content {
    display: grid;
    grid-template-columns: 2fr 2fr;
    gap: 60px;
    align-items: center;
}
.image-hero{
    width: 50%;
    height: 50%;
}

.testimonial-container{
    width: 200px;
    height: 10px;
    background-color: black;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, .3);
    min-width: 400px;
    padding: 50px 100px;
    margin: 5px;
    color: white;
    position: relative;
}


img{
    width: 100px;
    height: 100px;
    border-radius: 75%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -50px;


}

.hero h1 {
    font-size: clamp(45px, 7vw, 75px);
    line-height: 1.1;
    margin: 10px 0;
}

.gradient-text {
    background:
        linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: none;
    color: transparent;
}

.hero h2 {
    color: var(--text);
    font-size: 25px;
    margin-bottom: 20px;
}

#typing {
    color: var(--primary);
}

.hero-description {
    max-width: 600px;
    color: var(--muted);
    margin-bottom: 30px;
}

/* =============================== BUTTON================================ */

.hero-buttons,
.project-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.3s;
    cursor: pointer;
    border: none;
    background: var(--primary);
    color: #001018;
}

.btn-primary:hover {
    transform: translateY(3px);
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.25);
}

.btn-secondary {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.3s;
    cursor: pointer;
    border: none;
    background: var(--primary);
    color: #cf1313;
    background: var(--card);
}

.btn-secondary:hover {
    transform: translateY(3px);
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.25);

}

.small {
    padding: 9px 15px;
    font-size: 14px;
}


/* ===============================CODE WINDOW================================ */
.code-window {
    background: #050914;
    border-radius: 15px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    transform: rotate(2deg);
    transition: 0.4s;
}

.code-window:hover {
    transform: rotate(0deg) translateY(-10px);
}

.window-header {
    padding: 12px;
    display: flex;
    gap: 7px;
    border-bottom: 1px solid var(--border);
}

.window-header span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #555;

}

pre {
    padding: 25px;
    color: #7dd3fc;
    overflow: auto;
}

/* ===============================SECTION================================ */
.section {
    padding: 100px 0;
}

.section-title {

    margin-bottom: 50px;

}

.section-title p {

    color: var(--primary);

    font-weight: 600;

}

.section-title h2 {

    font-size: 38px;

}


/* ===============================ABOUT================================ */
.section{
    background: #be710c;
}
.about-content {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.profile-placeholder {
    width: 280px;
    height: 280px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 30px;
    background: var(--card);
    box-shadow: 0 0 60px rgba(0, 229, 255, 0.1);

}

.about-text h3 {
    font-size: 30px;
    margin-bottom: 20px;
}

.about-text p {
    color: var(--muted);
    margin-bottom: 15px;
    text-align: justify;
}
.about-text p.paragraph{
    text-indent: 40px;
    line-height: 1.8;
    text-align: justify;
}

.stats {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat strong {
    font-size: 30px;
    color: var(--primary);
}

.stat span {
    color: var(--muted);
}


/* ===============================SKILLS================================ */

.skills-section {
    background: rgba(106, 141, 8, 0.836);
}

.section-title h2 {
    text-align: center;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.skill-card {
    padding: 25px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 15px;
    transition: 0.2s ease-in-out;
}

.skill-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
}

.skill-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: justify;
    background: rgba(0, 229, 255, 0.1);
    color: black;
    font-weight: 800;
    margin-bottom: 20px;
}




.skill-card p {
    color: var(--muted);
    margin: 10px 0 20px;
    text-align: center;
}

.progress {
    height: 5px;
    background: #263041;
    border-radius: 10px;
    overflow: hidden;
}

.progress span {
    display: block;
    height: 100%;
    background: var(--primary);
}


/* ===============================PROJECTS================================ */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.project-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 15px;
    overflow: hidden;
    transition: 0.3s;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.project-image {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #00e5ff, #7c3aed);
    font-size: 22px;
    font-weight: 800;
}

.project-two {
    background: linear-gradient(135deg, #7c3aed, #ec4899);
}

.project-three {
    background: linear-gradient(135deg, #06b6d4, #2563eb);
}

.project-content {
    padding: 25px;
}

.project-type {
    color: var(--primary);
    font-size: 13px;
}

.project-content h3 {
    margin: 8px 0;
}

.project-content>p {
    color: var(--muted);
}

.tags {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.tags span {
    padding: 5px 9px;
    border-radius: 5px;
    background: rgba(0, 229, 255, 0.1);
    color: var(--primary);
    font-size: 12px;
}


/* ===============================CONTACT================================ */

.contact-section {
    background: green;
}

.section-title p {
    color: rgb(127, 185, 72);
    text-align: center;
    margin-bottom: 50px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 30px;
    margin-bottom: 15px;
    text-align: center;

}

.contact-info p {
    color: aliceblue;
    margin-bottom: 25px;
}

.contact-item {
    margin: 15px 0;
    display: flex;
    gap: 12px;
    align-items: center;

}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text);
    border-radius: 8px;
    outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
}


/* ===============================FOOTER================================ */

footer {
    background: rgb(39, 116, 63);
    padding: 30px 0;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-content p {
    color: var(--muted);
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a:hover {
    color: var(--primary);
}


/* ===============================WHATSAPP================================ */

.whatsapp {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25d366;
    border-radius: 50%;
    font-size: 25px;
    z-index: 999;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);

}


/* ===============================BACK TO TOP================================ */

.back-top {
    position: fixed;
    right: 25px;
    bottom: 90px;
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;

}

.back-top.show {
    opacity: 1;
    pointer-events: auto;
}


/* ===============================TOAST================================ */

.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translate(-50%, 100px);
    background: var(--card);
    border: 1px solid var(--primary);
    padding: 15px 25px;
    border-radius: 8px;
    opacity: 0;
    transition: 0.4s;
    z-index: 2000;

}

.toast.show {
    transform: translate(-50%, 0);
    opacity: 1;
}


/* ===============================RESPONSIVE================================ */

@media (max-width: 900px) {

    .hero-content,
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .hero-card {
        display: none;
    }
}


@media (max-width: 650px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: var(--background);
        padding: 20px;
        display: none;
    }

    .nav-menu.active {
        display: flex;
    }

    .skills-grid {
        grid-template-columns: 1fr;

    }

    .stats {
        gap: 20px;
    }

    .footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

}