@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800&display=swap');

:root {
    --accent: #2563eb;
    --accent-light: #38bdf8;
    --accent-dark: #1e40af;
    --surface: #0b1220;
    --surface-soft: #111827;
    --text-soft: #cbd5e1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    font-family: 'Poppins', sans-serif;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    background-color: black;
    color: white;
    display: flex;
    flex-direction: column;
}

header {
    margin-top: 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 9%;
    background-color: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(10px);
    filter: drop-shadow(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo {
    font-size: 3rem;
    color: var(--accent-light);
    font-weight: 800;
    cursor: pointer;
    transition: 0.5s ease;
}

.logo:hover {
    transform: scale(1.1);
}

nav a {
    font-size: 1.8rem;
    color: white;
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
}

nav a:hover,
nav a.active {
    color: var(--accent-light);
    border-bottom: 3px solid var(--accent-light);
}

section {
    min-height: 100vh;
    padding: 12rem 9% 5rem;
}

.home {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8rem;
    background-color: black;
}

.home .home-content h1 {
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.3;
}

span {
    color: var(--accent-light);
}

.home-content h3 {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.home-content p {
    font-size: 1.6rem;
    color: var(--text-soft);
    line-height: 1.8;
    max-width: 72rem;
}

.home-img {
    border-radius: 50%;
}

.home-img img {
    position: relative;
    width: 32vw;
    max-width: 420px;
    min-width: 260px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 0 25px var(--accent);
    cursor: pointer;
    transition: 0.2s linear;
}

.home-img img:hover {
    transform: scale(1.02);
    box-shadow: 0 0 45px var(--accent-light);
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background-color: transparent;
    border: 0.2rem solid var(--accent-light);
    font-size: 2rem;
    border-radius: 50%;
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease;
    color: var(--accent-light);
}

.social-icons a:hover {
    color: black;
    transform: scale(1.3) translateY(-5px);
    background-color: var(--accent-light);
    box-shadow: 0 0 25px var(--accent-light);
}

.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background-color: black;
    border-radius: 4rem;
    font-size: 1.6rem;
    color: var(--accent-light);
    letter-spacing: 0.3rem;
    font-weight: 600;
    border: 2px solid var(--accent-light);
    transition: 0.3s ease;
    cursor: pointer;
    margin-right: 1rem;
    margin-bottom: 1rem;
}

.btn:hover {
    transform: scale3d(1.03, 1.03, 1.03);
    background-color: var(--accent-light);
    color: black;
    box-shadow: 0 0 25px var(--accent-light);
}

.typing-text {
    font-size: 34px;
    font-weight: 600;
    min-width: 280px;
}

.typing-text span {
    position: relative;
}



.page {
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.22), transparent 32rem), black;
}

.page-title {
    max-width: 95rem;
    margin-bottom: 4rem;
}

.page-title h1 {
    font-size: 5.2rem;
    line-height: 1.2;
    margin-bottom: 1.4rem;
}

.page-title p {
    font-size: 1.7rem;
    color: var(--text-soft);
    line-height: 1.8;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.4rem;
}

.card {
    padding: 2.6rem;
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 2rem;
    background: linear-gradient(145deg, rgba(17, 24, 39, 0.95), rgba(2, 6, 23, 0.9));
    box-shadow: 0 0 28px rgba(37, 99, 235, 0.12);
    transition: 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-light);
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.25);
}

.card i {
    font-size: 3rem;
    color: var(--accent-light);
    margin-bottom: 1.8rem;
}

.card h2,
.card h3 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.card p,
.card li {
    font-size: 1.5rem;
    color: var(--text-soft);
    line-height: 1.8;
}

.card ul {
    padding-left: 2rem;
}

.card a {
    color: var(--accent-light);
    font-weight: 600;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.8rem;
}

.tag {
    font-size: 1.3rem;
    color: white;
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 999px;
    padding: 0.6rem 1.2rem;
    background: rgba(37, 99, 235, 0.14);
}

.timeline {
    display: grid;
    gap: 2rem;
    max-width: 100rem;
}

.timeline-item {
    border-left: 3px solid var(--accent-light);
    padding: 2rem 2.4rem;
    background: rgba(17, 24, 39, 0.78);
    border-radius: 0 1.6rem 1.6rem 0;
}

.timeline-item h2 {
    font-size: 2.4rem;
    margin-bottom: 0.8rem;
}

.timeline-item p {
    font-size: 1.5rem;
    color: var(--text-soft);
    line-height: 1.8;
}

.contact-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    max-width: 90rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    padding: 2.2rem;
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 1.8rem;
    background: rgba(17, 24, 39, 0.82);
    color: white;
    transition: 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-light);
}

.contact-item i {
    color: var(--accent-light);
    font-size: 2.8rem;
}

.contact-item strong {
    display: block;
    font-size: 1.8rem;
}

.contact-item span {
    color: var(--text-soft);
    font-size: 1.4rem;
}

@media (max-width: 1000px) {
    .home {
        gap: 4rem;
    }

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

@media(max-width:995px) {
    header {
        flex-direction: column;
        gap: 1.2rem;
        margin-top: 0;
        padding: 1rem 5%;
    }

    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.2rem;
    }

    nav a {
        font-size: 1.5rem;
        margin-left: 0;
    }

    .home {
        flex-direction: column;
        margin: 0;
        text-align: center;
        padding-top: 16rem;
    }

    .home .home-content h3 {
        font-size: 2.5rem;
    }

    .home-content h1,
    .page-title h1 {
        font-size: 4.2rem;
    }

    .home-img img {
        width: 70vw;
        margin-top: 4rem;
    }

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

@media(max-width:600px) {
    html {
        font-size: 56%;
    }

    section {
        padding-left: 6%;
        padding-right: 6%;
    }

    .typing-text {
        min-width: auto;
        font-size: 2.8rem;
    }
}

/* Education Timeline Page */
.education-page {
    padding-top: 12rem;
}

.section-label {
    color: #3b82f6;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.education-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 4rem 0 6rem;
}

.education-summary div {
    background: #0b0f19;
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 1.6rem;
    padding: 2.5rem;
    transition: 0.3s ease;
}

.education-summary div:hover {
    transform: translateY(-5px);
    border-color: #3b82f6;
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.18);
}

.education-summary h2 {
    font-size: 2rem;
    color: #60a5fa;
    margin-bottom: 1rem;
}

.education-summary p {
    font-size: 1.5rem;
    line-height: 1.7;
    color: #dbeafe;
}

.education-timeline {
    position: relative;
    margin: 2rem 0;
    padding-left: 4rem;
}

.education-timeline::before {
    content: "";
    position: absolute;
    left: 1.2rem;
    top: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, #60a5fa, #2563eb, #1e3a8a);
    border-radius: 10px;
}

.education-item {
    position: relative;
    display: grid;
    grid-template-columns: 18rem 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.education-item::before {
    content: "";
    position: absolute;
    left: -3.5rem;
    top: 0.6rem;
    width: 1.8rem;
    height: 1.8rem;
    background: #60a5fa;
    border: 4px solid #050816;
    border-radius: 50%;
    box-shadow: 0 0 20px #3b82f6;
    z-index: 2;
}

.education-date {
    text-align: right;
    padding-top: 0.2rem;
}

.education-date span {
    display: block;
    color: #60a5fa;
    font-size: 1.7rem;
    font-weight: 700;
}

.education-date small {
    display: block;
    color: #94a3b8;
    font-size: 1.3rem;
    margin-top: 0.4rem;
}

.education-content {
    background: #0b0f19;
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 1.8rem;
    padding: 2.8rem;
    transition: 0.3s ease;
}

.education-content:hover {
    transform: translateY(-4px);
    border-color: #3b82f6;
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.16);
}

.education-content h2 {
    font-size: 2.4rem;
    color: white;
    margin-bottom: 0.6rem;
}

.education-content h3 {
    font-size: 1.6rem;
    color: #60a5fa;
    margin-bottom: 1.4rem;
    font-weight: 600;
}

.education-content p {
    font-size: 1.5rem;
    line-height: 1.8;
    color: #dbeafe;
    margin-bottom: 1.4rem;
}

.education-content ul {
    padding-left: 2rem;
}

.education-content li {
    font-size: 1.45rem;
    line-height: 1.8;
    color: #cbd5e1;
    margin-bottom: 0.5rem;
}

@media(max-width: 995px) {
    .education-summary {
        grid-template-columns: 1fr;
    }

    .education-timeline {
        padding-left: 3rem;
    }

    .education-item {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .education-date {
        text-align: left;
    }

    .education-item::before {
        left: -3.2rem;
    }
}

/* Homepage About Section */
.about-home {
    min-height: auto;
    padding: 10rem 9% 8rem;
    background: #050816;
}

.about-container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 5rem;
    align-items: start;
}

.section-label {
    color: #60a5fa;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.22rem;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}

.about-text h2 {
    font-size: 4rem;
    line-height: 1.25;
    margin-bottom: 2rem;
}

.about-text p {
    font-size: 1.6rem;
    line-height: 1.9;
    color: #dbeafe;
    margin-bottom: 1.6rem;
}

.about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin-top: 2.5rem;
}

.about-tags span {
    font-size: 1.3rem;
    color: #bfdbfe;
    border: 1px solid rgba(96, 165, 250, 0.35);
    background: rgba(37, 99, 235, 0.08);
    padding: 0.9rem 1.4rem;
    border-radius: 999px;
}

.about-card {
    background: #0b0f19;
    border: 1px solid rgba(96, 165, 250, 0.25);
    border-radius: 2rem;
    padding: 3rem;
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.12);
}

.about-card h3 {
    font-size: 2.8rem;
    color: white;
    margin-bottom: 2.5rem;
}

.about-card-item {
    display: flex;
    gap: 1.6rem;
    padding: 1.8rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.about-card-item:last-child {
    border-bottom: none;
}

.about-card-item i {
    width: 4.2rem;
    height: 4.2rem;
    min-width: 4.2rem;
    border-radius: 50%;
    border: 1px solid #3b82f6;
    color: #60a5fa;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.about-card-item h4 {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 0.6rem;
}

.about-card-item p {
    font-size: 1.4rem;
    color: #cbd5e1;
    line-height: 1.7;
}

.seo-home {
    min-height: auto;
    padding: 5rem 9% 8rem;
    background: black;
}

.seo-container {
    max-width: 1000px;
    border-left: 4px solid #3b82f6;
    padding-left: 2.5rem;
}

.seo-container h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.seo-container p {
    font-size: 1.55rem;
    line-height: 1.9;
    color: #dbeafe;
}

@media(max-width: 995px) {
    .about-container {
        grid-template-columns: 1fr;
    }

    .about-text h2 {
        font-size: 3rem;
    }

    .seo-container h2 {
        font-size: 2.4rem;
    }
}

.education-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.8rem;
}

.education-badges span {
    font-size: 1.25rem;
    color: #bfdbfe;
    border: 1px solid rgba(96, 165, 250, 0.35);
    background: rgba(37, 99, 235, 0.08);
    padding: 0.75rem 1.2rem;
    border-radius: 999px;
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 9% 4rem;
    background: #050816;
    border-top: 1px solid rgba(56, 189, 248, 0.15);
    margin-top: auto;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-content p {
    font-size: 1.4rem;
    color: var(--text-soft);
}

.footer-content .copyright {
    font-size: 1.3rem;
    color: #94a3b8;
}
