/* =========================
   RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background: #ffffff;
    color: #172033;
    line-height: 1.6;
    transition: background 0.3s ease, color 0.3s ease;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
textarea {
    font-family: inherit;
}

button {
    border: none;
    cursor: pointer;
}

img {
    max-width: 100%;
    display: block;
}


/* =========================
   VARIABLES
========================= */

:root {

    --primary: #6366f1;
    --primary-dark: #4f46e5;

    --text: #172033;
    --text-light: #667085;

    --background: #ffffff;
    --background-secondary: #f8f9fc;

    --border: #e6e8ef;

    --card: #ffffff;

    --shadow:
        0 15px 40px rgba(15, 23, 42, 0.08);

    --transition: 0.3s ease;

}


/* =========================
   DARK MODE
========================= */

body.dark {

    --text: #f3f4f6;
    --text-light: #a8b0c0;

    --background: #0d1117;
    --background-secondary: #151a21;

    --border: #252c36;

    --card: #151a21;

    --shadow:
        0 15px 40px rgba(0, 0, 0, 0.3);
}


/* =========================
   COMMON
========================= */

.container {
    width: min(1120px, 90%);
    margin: auto;
}

.section {
    padding: 100px 0;
}

.section-heading {
    text-align: center;
    margin-bottom: 60px;
}

.section-heading p {
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-heading h2 {
    font-size: 38px;
    line-height: 1.2;
}

.section-heading h2 span {
    color: var(--primary);
}


/* =========================
   HEADER
========================= */

.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;

    background: rgba(255, 255, 255, 0.88);

    backdrop-filter: blur(12px);

    border-bottom: 1px solid var(--border);
}

body.dark .header {
    background: rgba(13, 17, 23, 0.88);
}

.navbar {
    height: 72px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 27px;
    font-weight: 800;
}

.logo span {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    position: relative;

    font-size: 14px;
    font-weight: 600;

    color: var(--text-light);

    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {

    content: "";

    position: absolute;

    left: 0;
    bottom: -8px;

    width: 100%;
    height: 2px;

    background: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-btn,
.menu-btn {

    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: var(--background-secondary);

    color: var(--text);

    transition: var(--transition);
}

.theme-btn:hover,
.menu-btn:hover {
    color: white;
    background: var(--primary);
}

.menu-btn {
    display: none;
}


/* =========================
   HERO
========================= */

.hero {
    min-height: 100vh;

    display: flex;
    align-items: center;

    padding-top: 120px;
}

.hero-container {

    display: grid;

    grid-template-columns: 1.1fr 0.9fr;

    align-items: center;

    gap: 80px;
}

.hero-subtitle {
    color: var(--primary);

    font-size: 17px;

    font-weight: 700;

    margin-bottom: 12px;
}

.hero-content h1 {

    font-size: clamp(50px, 7vw, 80px);

    line-height: 1;

    letter-spacing: -3px;

    margin-bottom: 20px;
}

.hero-content h1 span {
    color: var(--primary);
}

.hero-content h2 {

    font-size: 26px;

    color: var(--text-light);

    margin-bottom: 22px;
}

.hero-description {

    max-width: 600px;

    color: var(--text-light);

    font-size: 16px;

    margin-bottom: 32px;
}

.hero-buttons {

    display: flex;

    gap: 14px;

    flex-wrap: wrap;

    margin-bottom: 30px;
}


/* =========================
   BUTTON
========================= */

.btn {

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    padding: 13px 22px;

    border-radius: 8px;

    font-size: 14px;

    font-weight: 700;

    transition: var(--transition);
}

.btn-primary {

    background: var(--primary);

    color: white;

    box-shadow:
        0 10px 25px rgba(99, 102, 241, 0.25);
}

.btn-primary:hover {

    background: var(--primary-dark);

    transform: translateY(-3px);
}

.btn-outline {

    border: 1px solid var(--border);

    color: var(--text);
}

.btn-outline:hover {

    border-color: var(--primary);

    color: var(--primary);

    transform: translateY(-3px);
}


/* =========================
   SOCIAL
========================= */

.social-links {

    display: flex;

    gap: 12px;
}

.social-links a {

    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border: 1px solid var(--border);

    border-radius: 50%;

    color: var(--text-light);

    transition: var(--transition);
}

.social-links a:hover {

    color: white;

    background: var(--primary);

    border-color: var(--primary);

    transform: translateY(-3px);
}


/* =========================
   HERO IMAGE
========================= */

.hero-image {

    position: relative;

    display: flex;

    justify-content: center;

    align-items: center;
}

.image-circle {

    width: 370px;
    height: 370px;

    border-radius: 50%;

    display: grid;
    place-items: center;

    background:
        linear-gradient(
            135deg,
            rgba(99, 102, 241, 0.15),
            rgba(129, 140, 248, 0.4)
        );

    border: 1px solid rgba(99, 102, 241, 0.25);
}

.profile-placeholder {

    width: 300px;
    height: 300px;

    border-radius: 50%;

    display: grid;
    place-items: center;

    background: var(--primary);

    color: white;

    font-size: 100px;

    box-shadow:
        0 25px 60px rgba(99, 102, 241, 0.3);
}

.floating-card {

    position: absolute;

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 12px 17px;

    border-radius: 10px;

    background: var(--card);

    box-shadow: var(--shadow);

    font-size: 13px;

    font-weight: 700;

    border: 1px solid var(--border);
}

.floating-card i {
    color: var(--primary);
}

.card-one {
    top: 50px;
    left: 0;
}

.card-two {
    right: 0;
    bottom: 50px;
}


/* =========================
   ABOUT
========================= */

.about {
    background: var(--background-secondary);
}

.about-container {

    display: grid;

    grid-template-columns: 0.8fr 1.2fr;

    gap: 80px;

    align-items: center;
}

.about-image {

    display: flex;

    justify-content: center;
}

.about-card {

    width: 300px;

    padding: 40px 30px;

    text-align: center;

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: 18px;

    box-shadow: var(--shadow);
}

.about-icon {

    width: 80px;
    height: 80px;

    margin: 0 auto 25px;

    display: grid;
    place-items: center;

    border-radius: 18px;

    background: rgba(99, 102, 241, 0.1);

    color: var(--primary);

    font-size: 32px;
}

.about-card h3 {
    margin-bottom: 10px;
}

.about-card p {
    color: var(--text-light);
    font-size: 14px;
}

.about-content h3 {

    font-size: 27px;

    margin-bottom: 20px;
}

.about-content > p {

    color: var(--text-light);

    margin-bottom: 15px;
}

.about-info {

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 15px;

    margin-top: 30px;
}

.about-info div {

    padding: 15px;

    border: 1px solid var(--border);

    border-radius: 10px;

    background: var(--card);
}

.about-info span {

    display: block;

    color: var(--text-light);

    font-size: 12px;

    margin-bottom: 4px;
}

.about-info strong {
    font-size: 14px;
}


/* =========================
   SKILLS
========================= */

.skills-grid {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
}

.skill-card {

    padding: 30px;

    border: 1px solid var(--border);

    border-radius: 14px;

    background: var(--card);

    transition: var(--transition);
}

.skill-card:hover {

    transform: translateY(-7px);

    border-color: rgba(99, 102, 241, 0.4);

    box-shadow: var(--shadow);
}

.skill-icon {

    width: 52px;
    height: 52px;

    display: grid;
    place-items: center;

    border-radius: 12px;

    background: rgba(99, 102, 241, 0.1);

    color: var(--primary);

    font-size: 22px;

    margin-bottom: 20px;
}

.skill-card h3 {
    margin-bottom: 16px;
}

.skill-list {

    display: flex;

    flex-wrap: wrap;

    gap: 8px;
}

.skill-list span {

    padding: 6px 10px;

    border-radius: 6px;

    background: var(--background-secondary);

    color: var(--text-light);

    font-size: 12px;

    font-weight: 600;
}


/* =========================
   PROJECTS
========================= */

.projects {
    background: var(--background-secondary);
}

.projects-grid {

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 25px;
}

.project-card {

    overflow: hidden;

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: 16px;

    transition: var(--transition);
}

.project-card:hover {

    transform: translateY(-7px);

    box-shadow: var(--shadow);
}

.project-image {

    height: 210px;

    display: grid;

    place-items: center;

    font-size: 65px;

    color: white;
}

.project-image-one {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.project-image-two {
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
}

.project-image-three {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.project-image-four {
    background: linear-gradient(135deg, #10b981, #0ea5e9);
}

.project-content {
    padding: 25px;
}

.project-category {

    color: var(--primary);

    font-size: 12px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 1px;
}

.project-content h3 {

    font-size: 22px;

    margin: 8px 0 12px;
}

.project-content p {

    color: var(--text-light);

    font-size: 14px;

    margin-bottom: 18px;
}

.project-tech {

    display: flex;

    flex-wrap: wrap;

    gap: 7px;

    margin-bottom: 22px;
}

.project-tech span {

    padding: 5px 9px;

    border-radius: 5px;

    background: var(--background-secondary);

    color: var(--text-light);

    font-size: 11px;

    font-weight: 600;
}

.project-links {

    display: flex;

    justify-content: space-between;

    align-items: center;
}

.project-link {

    display: flex;

    align-items: center;

    gap: 7px;

    color: var(--text);

    font-size: 13px;

    font-weight: 700;

    transition: var(--transition);
}

.project-link:hover {
    color: var(--primary);
}


/* =========================
   TIMELINE
========================= */

.timeline {

    position: relative;

    max-width: 800px;

    margin: auto;

    padding-left: 30px;
}

.timeline::before {

    content: "";

    position: absolute;

    left: 6px;

    top: 0;
    bottom: 0;

    width: 2px;

    background: var(--border);
}

.timeline-item {

    position: relative;

    padding-bottom: 45px;
}

.timeline-dot {

    position: absolute;

    left: -30px;

    top: 4px;

    width: 14px;
    height: 14px;

    border-radius: 50%;

    background: var(--primary);

    border: 3px solid var(--background);
}

.timeline-content {

    padding: 25px;

    border: 1px solid var(--border);

    border-radius: 12px;

    background: var(--card);

    box-shadow: var(--shadow);
}

.timeline-date {

    display: inline-block;

    color: var(--primary);

    font-size: 12px;

    font-weight: 700;

    margin-bottom: 8px;
}

.timeline-content h3 {
    font-size: 20px;
}

.timeline-content h4 {

    color: var(--text-light);

    font-size: 14px;

    margin: 4px 0 12px;
}

.timeline-content p {

    color: var(--text-light);

    font-size: 14px;
}


/* =========================
   CONTACT
========================= */

.contact {
    background: var(--background-secondary);
}

.contact-container {

    display: grid;

    grid-template-columns: 0.8fr 1.2fr;

    gap: 70px;
}

.contact-info h3 {

    font-size: 28px;

    margin-bottom: 15px;
}

.contact-info > p {

    color: var(--text-light);

    margin-bottom: 30px;
}

.contact-item {

    display: flex;

    align-items: center;

    gap: 15px;

    margin-bottom: 22px;
}

.contact-icon {

    width: 45px;
    height: 45px;

    flex-shrink: 0;

    display: grid;
    place-items: center;

    border-radius: 10px;

    background: rgba(99, 102, 241, 0.1);

    color: var(--primary);
}

.contact-item span {

    display: block;

    color: var(--text-light);

    font-size: 12px;
}

.contact-item a {

    font-size: 14px;

    font-weight: 600;
}

.contact-item a:hover {
    color: var(--primary);
}


/* =========================
   FORM
========================= */

.contact-form {

    padding: 30px;

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: 15px;

    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {

    display: block;

    font-size: 13px;

    font-weight: 700;

    margin-bottom: 7px;
}

.form-group input,
.form-group textarea {

    width: 100%;

    padding: 13px 15px;

    border: 1px solid var(--border);

    border-radius: 8px;

    outline: none;

    background: var(--background);

    color: var(--text);

    resize: vertical;

    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {

    border-color: var(--primary);

    box-shadow:
        0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-message {

    margin-top: 15px;

    font-size: 13px;

    color: var(--primary);
}


/* =========================
   FOOTER
========================= */

.footer {

    padding: 25px 0;

    border-top: 1px solid var(--border);

    background: var(--background);
}

.footer-container {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;
}

.footer p {

    color: var(--text-light);

    font-size: 12px;
}

.footer-social {

    display: flex;

    gap: 12px;
}

.footer-social a {

    color: var(--text-light);

    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--primary);
}


/* =========================
   SCROLL TOP
========================= */

.scroll-top {

    position: fixed;

    right: 25px;
    bottom: 25px;

    width: 45px;
    height: 45px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    color: white;

    background: var(--primary);

    box-shadow:
        0 10px 25px rgba(99, 102, 241, 0.3);

    opacity: 0;

    visibility: hidden;

    transform: translateY(20px);

    transition: var(--transition);

    z-index: 500;
}

.scroll-top.show {

    opacity: 1;

    visibility: visible;

    transform: translateY(0);
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {

    .nav-menu {

        position: fixed;

        top: 72px;
        right: -100%;

        width: 280px;

        height: calc(100vh - 72px);

        padding: 35px 25px;

        flex-direction: column;

        align-items: flex-start;

        background: var(--card);

        border-left: 1px solid var(--border);

        transition: var(--transition);
    }

    .nav-menu.show {
        right: 0;
    }

    .nav-link.active::after {
        display: none;
    }

    .menu-btn {
        display: grid;
    }

    .hero-container {

        grid-template-columns: 1fr;

        text-align: center;

    }

    .hero-content {

        display: flex;

        flex-direction: column;

        align-items: center;
    }

    .hero-image {
        order: -1;
    }

    .image-circle {

        width: 280px;
        height: 280px;
    }

    .profile-placeholder {

        width: 225px;
        height: 225px;

        font-size: 75px;
    }

    .about-container,
    .contact-container {

        grid-template-columns: 1fr;

    }

    .about-image {
        order: 2;
    }

    .skills-grid {

        grid-template-columns: repeat(2, 1fr);

    }

}


@media (max-width: 600px) {

    .section {
        padding: 75px 0;
    }

    .section-heading h2 {
        font-size: 30px;
    }

    .hero-content h1 {
        font-size: 50px;
    }

    .hero-content h2 {
        font-size: 21px;
    }

    .hero-description {
        font-size: 14px;
    }

    .floating-card {
        display: none;
    }

    .skills-grid,
    .projects-grid {

        grid-template-columns: 1fr;

    }

    .about-info {

        grid-template-columns: 1fr;

    }

    .project-image {
        height: 180px;
    }

    .footer-container {

        flex-direction: column;

        text-align: center;

    }

    .contact-container {
        gap: 40px;
    }

}