@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;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

:root {
    --bg: #08111f;
    --bg2: #0f1d35;
    --card: rgba(255, 255, 255, .06);
    --white: #fff;
    --text: #c7d2e2;
    --blue: #3b82f6;
    --border: rgba(255, 255, 255, .1);
}

body {
    background: var(--bg);
    color: var(--white);
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        linear-gradient(rgba(8, 17, 31, .86), rgba(8, 17, 31, .95)),
        url("./resources/homebg.png") center/cover no-repeat;
    z-index: -2;
}

body::after {
    content: "";
    position: fixed;
    width: 700px;
    height: 700px;
    background: #2563eb22;
    filter: blur(170px);
    border-radius: 50%;
    top: -200px;
    right: -150px;
    z-index: -1;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--blue);
    border-radius: 20px;
}

::-webkit-scrollbar-track {
    background: #08111f;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 18px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(8, 17, 31, .55);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    z-index: 999;
}

.logo h2 {
    color: var(--blue);
    font-size: 30px;
    letter-spacing: 2px;
}

.name {
    display: flex;
    flex-direction: row;
    gap: 2px;
    letter-spacing: 1px;
    color: var(--white);
    font-size: 10px;
    margin-bottom: -10px;
}

.name p::first-letter {
    color: var(--blue);
}

.navlinks {
    display: flex;
    gap: 35px;
    list-style: none;
}

.navlinks a {
    color: white;
    text-decoration: none;
    transition: .3s;
    position: relative;
}

.navlinks a:hover {
    color: var(--blue);
}

.navlinks a.active {
    color: var(--blue);
}

.navlinks a.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 100%;
    height: 3px;
    background: var(--blue);
    border-radius: 10px;
}

.buttons {
    align-items: center;
}

.cvbtn,
.btn1,
.btn2,
.contact-form button {
    text-decoration: none;
    color: white;
    padding: 13px 28px;
    border-radius: 40px;
    transition: .35s;
    cursor: pointer;
    border: none;
}

.cvbtn,
.btn1,
.contact-form button {
    background: var(--blue);
}

.btn2 {
    border: 2px solid var(--blue);
    background: transparent;
}

.cvbtn:hover,
.btn1:hover,
.contact-form button:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 30px #2563eb66;
}

.btn2:hover {
    background: var(--blue);
}

section,
.home,
.about,
.experience {
    min-height: 100vh;
    padding: 120px 8%;
}

.education,
.skills,
.contact {
    padding: 120px 8%;
}

.home {
    display: grid;
    grid-template-columns: 1fr 450px;
    align-items: center;
    gap: 60px;
}

.home-left p:first-child {
    color: var(--blue);
    font-size: 22px;
}

.home-left h1 {
    font-size: 70px;
    margin: 12px 0;
    line-height: 1.05;
}

.home-left span {
    color: var(--blue);
}

.home-left h3 {
    color: #9ec5ff;
    margin-bottom: 18px;
}

.home-desc {
    color: var(--text);
    line-height: 1.9;
    max-width: 650px;
}

.buttons {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.home-right {
    display: flex;
    justify-content: center;
}

.home-right img {
    width: 380px;
    height: 380px;
    object-fit: cover;
    border-radius: 50%;
    border: 8px solid #1f3b6e;
    box-shadow: 0 0 50px rgba(59, 130, 246, .35);
    animation: float 5s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.heading {
    text-align: center;
    margin-bottom: 60px;
}

.heading h2 {
    font-size: 42px;
}

.heading p {
    color: var(--blue);
}

.about-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
}

.about-text {
    color: var(--text);
    line-height: 2;
    font-size: 18px;
}

.about-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.card,
.edu-card,
.skill-card,
.timeline-box {
    background: var(--card);
    border: 1px solid var(--border);
    backdrop-filter: blur(14px);
    border-radius: 20px;
    transition: .35s;
}

.card {
    padding: 35px;
    text-align: center;
}

.card h2 {
    color: var(--blue);
    font-size: 45px;
}

.card:hover,
.edu-card:hover,
.skill-card:hover,
.timeline-box:hover {
    transform: translateY(-10px);
    border-color: #3b82f6;
}

.timeline {
    display: grid;
    gap: 40px;
}

.timeline-box {
    padding: 35px;
}

.timeline-box h3 {
    color: var(--blue);
}

.timeline-box h4 {
    margin: 8px 0;
}

.timeline-box span {
    color: #8fb8ff;
    display: block;
    margin-bottom: 15px;
}

.timeline-box ul {
    margin-left: 20px;
    color: var(--text);
    line-height: 2;
}

.edu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.edu-card {
    padding: 30px;
    text-align: center;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
}

.skill-card {
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-weight: 600;
}

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

.contact-info h3 {
    font-size: 35px;
    margin-bottom: 20px;
}

.contact-info p {
    color: var(--text);
    margin: 18px 0;
}

.copy-text {
    cursor: pointer;
    transition: .3s;
    user-select: none;
}

.copy-text:hover {
    color: var(--blue);
    transform: translateX(5px);
}

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

.contact-form input,
.contact-form textarea {
    padding: 16px;
    border-radius: 15px;
    border: 1px solid var(--border);
    background: #13213b;
    color: white;
    outline: none;
}

.contact-form textarea {
    resize: none;
    height: 180px;
}

.footer {
    padding: 50px 8%;
    text-align: center;
    background: #050c18;
    ;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 25px 0;
}

.copyright a,
.footer-links a {
    text-decoration: none;
    color: var(--text);
}

.footer-links a:hover,
.copyright a:hover {
    color: var(--blue);
}

.copyright {
    color: #7b8ba4;
}

@media(max-width:1000px) {

    body::before {
        background-position: 85% center;
    }

    .home {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

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

    .home-left h1 {
        font-size: 52px;
    }

    .navlinks {
        display: none;
    }

    .home-right img {
        width: 300px;
        height: 300px;
    }
}

@media(max-width:600px) {

    .home-left h1 {
        font-size: 40px;
    }

    .heading h2 {
        font-size: 32px;
    }

    .card h2 {
        font-size: 35px;
    }
}

@media (max-width:380px) {

    .about-cards {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 20px;
    }
}
