@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

:root {
    --primary: #7c3aed;
    --secondary: #06b6d4;
    --bg: #080b14;
    --card: #111827;
    --text: #ffffff;
    --muted: #94a3b8;
    --border: rgba(255,255,255,0.1);
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
}

body.light {
    --bg: #f8fafc;
    --card: #ffffff;
    --text: #111827;
    --muted: #475569;
    --border: rgba(0,0,0,0.1);
}


/* NAVBAR */

header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(8,11,20,.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
}

.navbar {
    max-width: 1200px;
    height: 75px;
    margin: auto;
    padding: 0 25px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 22px;
    font-weight: 800;
}

.logo span {
    color: var(--secondary);
}

.nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-size: 14px;
    transition: .3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--secondary);
}

.nav-buttons {
    display: flex;
    gap: 15px;
}

.nav-buttons button {
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 20px;
    cursor: pointer;
}

.menu-btn {
    display: none;
}


/* HERO */

.hero {
    max-width: 1200px;
    min-height: 100vh;
    margin: auto;
    padding: 120px 25px 60px;

    display: grid;
    grid-template-columns: 1.2fr .8fr;
    align-items: center;
    gap: 50px;
}

.hello {
    color: var(--secondary);
    letter-spacing: 4px;
    font-weight: 600;
}

.hero h1 {
    font-size: clamp(40px, 6vw, 70px);
    line-height: 1.1;
    margin: 15px 0;
}

.hero h1 span,
.hero h2 span {
    color: var(--secondary);
}

.hero h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.hero-text {
    color: var(--muted);
    max-width: 650px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin: 30px 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: .3s;
}

.primary {
    color: white;
    background: linear-gradient(135deg,var(--primary),var(--secondary));
}

.secondary {
    color: var(--text);
    border: 1px solid var(--border);
}

.btn:hover {
    transform: translateY(-4px);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;

    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 50%;

    transition: .3s;
}

.social-icons a:hover {
    background: var(--secondary);
    transform: translateY(-5px);
}


/* PROFILE */

.hero-image {
    position: relative;
    display: grid;
    place-items: center;
}

.image-circle {
    width: 330px;
    height: 330px;
    padding: 10px;
    border-radius: 50%;

    background: linear-gradient(
        135deg,
        var(--primary),
        var(--secondary)
    );

    animation: float 4s infinite ease-in-out;
}

.profile {
    width: 100%;
    height: 100%;
    border-radius: 50%;

    background: var(--card);

    display: grid;
    place-items: center;

    font-size: 100px;
    color: var(--secondary);
}

.floating-card {
    position: absolute;
    padding: 10px 18px;

    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;

    animation: float 3s infinite ease-in-out;
}

.card1 {
    top: 15%;
    left: 5%;
}

.card2 {
    top: 35%;
    right: 0;
}

.card3 {
    bottom: 10%;
    left: 15%;
}

@keyframes float {
    50% {
        transform: translateY(-15px);
    }
}


/* SECTIONS */

.section {
    max-width: 1200px;
    margin: auto;
    padding: 100px 25px;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title p {
    color: var(--secondary);
    letter-spacing: 3px;
    font-size: 13px;
}

.section-title h2 {
    font-size: 42px;
}

.section-title span {
    color: var(--secondary);
}


/* ABOUT */

.about-container {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 70px;
    align-items: center;
}

.about-box {
    height: 350px;
    border-radius: 25px;

    background: linear-gradient(
        135deg,
        var(--primary),
        var(--secondary)
    );

    display: grid;
    place-items: center;

    font-size: 100px;
}

.about-content h3 {
    font-size: 30px;
    margin-bottom: 20px;
}

.about-content p {
    color: var(--muted);
    margin-bottom: 15px;
}

.about-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 25px 0;
}

.about-info div {
    display: flex;
    flex-direction: column;
}

.about-info span {
    color: var(--muted);
}


/* SKILLS */

.skills-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.skill-box {
    padding: 25px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 15px;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.skill-header i {
    color: var(--secondary);
    margin-right: 8px;
}

.progress {
    height: 8px;
    background: rgba(255,255,255,.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    width: 0;
    height: 100%;

    background: linear-gradient(
        90deg,
        var(--primary),
        var(--secondary)
    );

    transition: width 1.5s ease;
}


/* TIMELINE */

.timeline {
    max-width: 900px;
    margin: auto;
    position: relative;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--secondary);
}

.timeline-item {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.timeline-icon {
    min-width: 60px;
    height: 60px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: linear-gradient(
        135deg,
        var(--primary),
        var(--secondary)
    );

    z-index: 2;
}

.timeline-content {
    flex: 1;
    padding: 25px;
    border-radius: 15px;

    background: var(--card);
    border: 1px solid var(--border);
}

.timeline-content span {
    color: var(--secondary);
    font-size: 13px;
}

.timeline-content h4,
.timeline-content p {
    color: var(--muted);
}


/* PROJECTS */

.project-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 20px;
}

.project-card {
    padding: 30px;
    border-radius: 20px;

    background: var(--card);
    border: 1px solid var(--border);

    transition: .4s;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary);
}

.project-icon {
    width: 60px;
    height: 60px;

    display: grid;
    place-items: center;

    border-radius: 15px;

    color: var(--secondary);
    background: rgba(6,182,212,.1);

    font-size: 25px;
}

.project-card p {
    color: var(--muted);
    margin: 15px 0;
}

.tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tech span {
    padding: 4px 9px;
    border-radius: 20px;

    color: var(--secondary);
    background: rgba(124,58,237,.15);

    font-size: 11px;
}

.project-card a {
    display: inline-block;
    margin-top: 20px;

    color: var(--secondary);
    text-decoration: none;
}


/* SERVICES */

.service-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 25px;
}

.service-card {
    padding: 40px 25px;
    text-align: center;

    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;

    transition: .3s;
}

.service-card:hover {
    transform: translateY(-8px);
}

.service-card i {
    font-size: 40px;
    color: var(--secondary);
}

.service-card p {
    color: var(--muted);
}


/* CONTACT */

.contact-container {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 50px;
}

.contact-info h3 {
    font-size: 30px;
}

.contact-info > p {
    color: var(--muted);
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: center;
    margin: 20px 0;
}

.contact-item i {
    width: 50px;
    height: 50px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    color: var(--secondary);
    background: rgba(6,182,212,.1);
}

.contact-item small {
    color: var(--secondary);
}

.contact-item p {
    color: var(--muted);
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

input,
textarea {
    width: 100%;
    padding: 15px;

    border: 1px solid var(--border);
    border-radius: 10px;

    outline: none;

    background: var(--card);
    color: var(--text);

    font-family: inherit;
}

input:focus,
textarea:focus {
    border-color: var(--secondary);
}


/* FOOTER */

footer {
    text-align: center;
    padding: 50px 20px;
    border-top: 1px solid var(--border);
}

footer span {
    color: var(--secondary);
}

footer p {
    color: var(--muted);
    margin: 10px;
}

footer .social-icons {
    justify-content: center;
}


/* TOP BUTTON */

#topBtn {
    position: fixed;
    right: 25px;
    bottom: 25px;

    width: 45px;
    height: 45px;

    display: none;
    place-items: center;

    border: none;
    border-radius: 50%;

    color: white;

    background: linear-gradient(
        135deg,
        var(--primary),
        var(--secondary)
    );

    cursor: pointer;
}


/* RESPONSIVE */

@media(max-width:1000px) {

    .project-grid {
        grid-template-columns: 1fr 1fr;
    }

}

@media(max-width:768px) {

    .menu-btn {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 75px;
        left: -100%;

        width: 100%;

        padding: 25px;

        flex-direction: column;
        text-align: center;

        background: var(--card);

        transition: .4s;
    }

    .nav-links.show {
        left: 0;
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image {
        order: -1;
    }

    .hero-buttons,
    .social-icons {
        justify-content: center;
    }

    .about-container,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .skills-container,
    .service-grid {
        grid-template-columns: 1fr;
    }

}

@media(max-width:550px) {

    .project-grid {
        grid-template-columns: 1fr;
    }

    .input-row {
        grid-template-columns: 1fr;
    }

    .image-circle {
        width: 260px;
        height: 260px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .section-title h2 {
        font-size: 32px;
    }

    .about-info {
        grid-template-columns: 1fr;
    }

}