/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background: #070b14;
    color: #134ce9;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
}

img {
    max-width: 100%;
    display: block;
}


/* =========================================================
   VARIABLES
========================================================= */

:root {
    --bg: #070b14;
    --bg-secondary: #0b111e;
    --card: #0d1422;

    --text: #f4f7ff;
    --text-muted: #8d99ad;

    --primary: #3977ff;
    --primary-light: #5f91ff;

    --border: rgba(91, 126, 190, 0.2);

    --container: 1150px;

    --transition: 0.3s ease;
}


/* =========================================================
   LIGHT MODE
========================================================= */

body.light {
    --bg: #f5f7fb;
    --bg-secondary: #ffffff;
    --card: #ffffff;

    --text: #111827;
    --text-muted: #64748b;

    --border: rgba(15, 23, 42, 0.12);
}


/* =========================================================
   GLOBAL
========================================================= */

body {
    background:
        radial-gradient(
            circle at 80% 10%,
            rgba(42, 91, 190, 0.12),
            transparent 30%
        ),
        var(--bg);
}

.container {
    width: min(90%, var(--container));
    margin: auto;
}

.section {
    padding: 100px 0;
    border-top: 1px solid var(--border);
}


/* =========================================================
   NAVBAR
========================================================= */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;

    background: rgba(7, 11, 20, 0.75);
    backdrop-filter: blur(15px);

    border-bottom: 1px solid transparent;

    transition: var(--transition);
}

.header.scrolled {
    border-bottom-color: var(--border);
}

.navbar {
    height: 75px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.logo span {
    color: var(--primary);
    margin-right: 7px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    position: relative;

    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;

    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
}

.nav-link.active::after {
    content: "";

    position: absolute;
    bottom: -9px;
    left: 0;

    width: 100%;
    height: 2px;

    background: var(--primary);
}

.theme-btn,
.menu-btn {
    border: 0;
    background: transparent;
    color: var(--text);

    cursor: pointer;
}

.theme-btn {
    margin-left: 10px;
}

.menu-btn {
    display: none;
    font-size: 1.3rem;
}


/* =========================================================
   HERO
========================================================= */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;

    padding-top: 130px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    align-items: center;
    gap: 80px;
}

.hero-tag {
    display: inline-block;

    padding: 7px 15px;
    margin-bottom: 20px;

    color: #74a0ff;
    background: rgba(57, 119, 255, 0.1);

    border: 1px solid rgba(57, 119, 255, 0.25);
    border-radius: 50px;

    font-size: 0.8rem;
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1.02;
    letter-spacing: -3px;

    margin-bottom: 20px;
}

.hero h1 span {
    display: block;
    color: var(--primary);
}

.hero h2 {
    font-size: 1.25rem;
    font-weight: 500;

    color: var(--text-muted);

    margin-bottom: 20px;
}

.hero h2 span {
    color: var(--text);
}

.hero h2 strong {
    color: var(--primary-light);
}

.hero-description {
    max-width: 570px;

    color: var(--text-muted);

    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 13px 20px;

    border-radius: 8px;

    font-size: 0.85rem;
    font-weight: 600;

    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
}

.btn-outline {
    border: 1px solid var(--primary);
    color: var(--text);
}

.btn-outline:hover {
    background: rgba(57, 119, 255, 0.1);
    transform: translateY(-3px);
}

.social-links {
    display: flex;
    gap: 18px;
    margin-top: 25px;
}

.social-links a {
    color: var(--text-muted);
    font-size: 1.15rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary);
    transform: translateY(-3px);
}


/* =========================================================
   HERO IMAGE
========================================================= */

.hero-image {
    display: flex;
    justify-content: center;
}

.image-frame {
    position: relative;
    width: min(100%, 430px);
}

.image-frame img {
    width: 100%;
    aspect-ratio: 0.85;
    object-fit: cover;

    border-radius: 12px;

    border: 1px solid var(--border);

    box-shadow:
        0 0 80px rgba(57, 119, 255, 0.12);
}

.image-frame::before,
.image-frame::after {
    content: "";

    position: absolute;

    width: 45px;
    height: 45px;

    border-color: var(--primary);
}

.image-frame::before {
    top: -12px;
    left: -12px;

    border-top: 2px solid;
    border-left: 2px solid;
}

.image-frame::after {
    right: -12px;
    bottom: -12px;

    border-right: 2px solid;
    border-bottom: 2px solid;
}

.image-decoration {
    position: absolute;

    color: var(--primary-light);

    font-size: 0.75rem;
}

.decoration-left {
    left: -45px;
    top: 50%;

    display: flex;
    flex-direction: column;
    gap: 70px;
}

.decoration-right {
    right: -80px;
    top: 35%;

    display: flex;
    flex-direction: column;

    font-size: 1.2rem;
    font-style: italic;
}


/* =========================================================
   SECTION HEADING
========================================================= */

.section-heading {
    margin-bottom: 50px;
}

.section-heading span {
    color: var(--primary-light);

    font-size: 0.7rem;
    font-weight: 700;

    letter-spacing: 3px;
}

.section-heading h2 {
    font-size: 2rem;
    margin-top: 5px;
}

.section-heading p {
    color: var(--text-muted);
    margin-top: 10px;
}


/* =========================================================
   ABOUT
========================================================= */

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.about-info {
    display: flex;
    gap: 35px;
    margin-top: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-item i {
    color: var(--primary);
    font-size: 1.2rem;
}

.info-item span,
.about-card-row span {
    display: block;
    color: var(--text-muted);
    font-size: 0.7rem;
}

.info-item strong,
.about-card-row strong {
    display: block;
    font-size: 0.85rem;
}

.about-card {
    padding: 30px;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: var(--card);

    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.about-card-row {
    display: flex;
    align-items: center;

    gap: 20px;

    padding: 18px 0;

    border-bottom: 1px solid var(--border);
}

.about-card-row:last-child {
    border-bottom: 0;
}

.about-card-row i {
    width: 35px;
    color: var(--primary);
}


/* =========================================================
   SKILLS
========================================================= */

.skills {
    background: var(--bg-secondary);
}

.skills-grid {
    display: grid;

    grid-template-columns: repeat(5, 1fr);

    gap: 15px;
}

.skill-card {
    min-height: 100px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-direction: column;

    gap: 10px;

    border: 1px solid var(--border);
    border-radius: 10px;

    background: var(--card);

    transition: var(--transition);
}

.skill-card i {
    font-size: 1.8rem;
    color: var(--primary);
}

.skill-card span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.skill-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);

    box-shadow:
        0 10px 30px rgba(57, 119, 255, 0.1);
}


/* =========================================================
   PROJECTS
========================================================= */

.projects-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
}

.project-card {
    overflow: hidden;

    background: var(--card);

    border: 1px solid var(--border);
    border-radius: 12px;

    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-7px);

    border-color: rgba(57, 119, 255, 0.5);

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.2);
}

.project-image {
    height: 190px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-content {
    padding: 22px;
}

.project-content h3 {
    font-size: 1rem;
    margin-bottom: 12px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;

    margin-bottom: 15px;
}

.project-tags span {
    padding: 4px 8px;

    border-radius: 4px;

    background: rgba(57, 119, 255, 0.1);
    color: var(--primary-light);

    font-size: 0.65rem;
}

.project-content p {
    color: var(--text-muted);
    font-size: 0.8rem;

    margin-bottom: 18px;
}

.project-link {
    color: var(--primary-light);

    font-size: 0.75rem;
    font-weight: 600;

    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.projects-button {
    margin-top: 35px;
    text-align: center;
}


/* =========================================================
   EDUCATION
========================================================= */

.education {
    background: var(--bg-secondary);
}

.timeline {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 25px;
}

.timeline-item {
    position: relative;

    padding: 25px;

    border: 1px solid var(--border);
    border-radius: 10px;

    background: var(--card);
}

.timeline-dot {
    width: 10px;
    height: 10px;

    background: var(--primary);

    border-radius: 50%;

    margin-bottom: 20px;

    box-shadow: 0 0 15px rgba(57, 119, 255, 0.6);
}

.timeline-content span {
    color: var(--primary-light);
    font-size: 0.7rem;
}

.timeline-content h3 {
    font-size: 0.95rem;
    margin: 5px 0;
}

.timeline-content p {
    color: var(--text-muted);
    font-size: 0.75rem;
}


/* =========================================================
   CONTACT
========================================================= */

.contact-container {
    display: grid;

    grid-template-columns: 1fr 1fr 1fr;

    gap: 30px;

    align-items: center;
}

.contact-text span {
    color: var(--primary-light);

    font-size: 0.7rem;
    font-weight: 700;

    letter-spacing: 3px;
}

.contact-text h2 {
    font-size: 2rem;
    margin: 5px 0 10px;
}

.contact-text p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-info > a,
.contact-info > div {
    color: var(--text-muted);

    font-size: 0.8rem;

    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-info i {
    color: var(--primary);
}

.contact-socials {
    display: flex;
    gap: 18px;
    margin-top: 10px;
}

.contact-socials a {
    font-size: 1.1rem;
}

.contact-card {
    padding: 25px;

    display: flex;
    align-items: center;
    gap: 15px;

    border: 1px solid var(--border);
    border-radius: 10px;

    background: var(--card);
}

.contact-card > i:first-child {
    color: var(--primary);
    font-size: 1.5rem;
}

.contact-card > i:last-child {
    color: var(--text-muted);
}

.contact-card h3 {
    font-size: 0.8rem;
}

.contact-card p {
    color: var(--text-muted);
    font-size: 0.7rem;
    margin-top: 5px;
}


/* =========================================================
   FOOTER
========================================================= */

.footer {
    padding: 25px 0;

    border-top: 1px solid var(--border);
}

.footer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer strong {
    font-size: 0.85rem;
}

.footer p,
.footer a {
    color: var(--text-muted);
    font-size: 0.7rem;
}

.footer a:hover {
    color: var(--primary);
}


/* =========================================================
   REVEAL ANIMATION
========================================================= */

.reveal {
    opacity: 1;
    transform: translateY(30px);

    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.reveal.show {
    opacity: 1;
    transform: translateY(0);
}


/* =========================================================
   RESPONSIVE TABLET
========================================================= */

@media (max-width: 900px) {

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons,
    .social-links {
        justify-content: center;
    }

    .hero-image {
        margin-top: 30px;
    }

    .about-container {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .projects-grid {
        grid-template-columns: 1fr 1fr;
    }

    .timeline {
        grid-template-columns: 1fr;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   RESPONSIVE MOBILE
========================================================= */

@media (max-width: 650px) {

    .section {
        padding: 75px 0;
    }

    .nav-menu {
        position: fixed;

        top: 75px;
        right: -100%;

        width: 80%;

        padding: 30px;

        flex-direction: column;
        align-items: flex-start;

        background: var(--bg-secondary);

        border-left: 1px solid var(--border);
        border-bottom: 1px solid var(--border);

        transition: var(--transition);
    }

    .nav-menu.show {
        right: 0;
    }

    .menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 3rem;
        letter-spacing: -2px;
    }

    .hero h2 {
        font-size: 1rem;
    }

    .decoration-left,
    .decoration-right {
        display: none;
    }

    .about-info {
        flex-direction: column;
        gap: 20px;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}
/*instagram link*/
    .contact-text .instagram-link {
        display: inline-block !important;
        margin-top: 60px !important;
        font-size: 2rem !important;
        color: var(--primary) !important;
        transform: translateY(1px);
}
/*whatsapp link*/
    .contact-text .whatsapp-link {
        display: inline-block !important;
        margin-top: 60px !important;
        font-size: 2rem !important;
        color: var(--primary) !important;
        transform: translateY(10px);
        transform: translateX(10px);
}
/*linkedin link*/
    .contact-text .linkedin-link {
        display: inline-block !important;
        margin-top: 60px !important;
        font-size: 2rem !important;
        color: var(--primary) !important;
        transform: translateY(10px);
        transform: translateX(20px);
}
/*github link*/
    .contact-text .github-link {
        display: inline-block !important;
        margin-top: 60px !important;
        font-size: 2rem !important;
        color: var(--primary) !important;
        transform: translateY(10px);
        transform: translateX(30px);
}