/* =========================================
   RESET
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: "Poppins", sans-serif;
    background: #f8fafc;
    color: #172033;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
textarea {
    font-family: inherit;
}

img {
    max-width: 100%;
    display: block;
}


/* =========================================
   DARK MODE
========================================= */

body.dark-mode {
    background: #0b1120;
    color: #e8edf7;
}

body.dark-mode .header {
    background: rgba(11, 17, 32, 0.92);
    border-bottom-color: rgba(255,255,255,0.08);
}

body.dark-mode .navbar a {
    color: #d6dceb;
}

body.dark-mode .navbar a:hover,
body.dark-mode .navbar a.active {
    color: #7c8cff;
}

body.dark-mode .skills-card,
body.dark-mode .project-card,
body.dark-mode .service-card,
body.dark-mode .timeline-content,
body.dark-mode .contact-form,
body.dark-mode .about-box {
    background: #111a2e;
    border-color: rgba(255,255,255,0.08);
}

body.dark-mode .skills-card p,
body.dark-mode .project-content p,
body.dark-mode .service-card p,
body.dark-mode .timeline-content p,
body.dark-mode .about-content p,
body.dark-mode .contact-info > p {
    color: #aeb8cc;
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea {
    background: #0b1120;
    border-color: #27334d;
    color: white;
}

body.dark-mode .icon-btn {
    color: white;
}

body.dark-mode .about-info > div {
    border-bottom-color: #27334d;
}


/* =========================================
   VARIABLES
========================================= */

:root {

    --primary: #635bff;
    --primary-dark: #5147e5;

    --secondary: #00bfa6;

    --text: #172033;
    --muted: #667085;

    --white: #ffffff;

    --border: #e6eaf0;

    --bg: #f8fafc;
    --card: #ffffff;

    --shadow:
        0 15px 45px rgba(31, 41, 55, 0.08);

    --radius: 18px;
}


/* =========================================
   COMMON
========================================= */

.section {
    padding: 100px 8%;
}

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

.section-heading p {
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 13px;
    margin-bottom: 8px;
}

.section-heading h2 {
    font-size: clamp(32px, 5vw, 46px);
    font-weight: 700;
}

.section-heading h2 span {
    color: var(--primary);
}

.heading-line {
    width: 65px;
    height: 4px;
    background: var(--primary);
    border-radius: 20px;
    margin: 15px auto 0;
}


/* =========================================
   HEADER
========================================= */

.header {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 75px;

    padding: 0 8%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: rgba(255,255,255,0.92);

    backdrop-filter: blur(15px);

    border-bottom: 1px solid rgba(0,0,0,0.05);

    z-index: 1000;
}

.logo {
    font-size: 25px;
    font-weight: 800;
}

.logo span {
    color: var(--primary);
}

.navbar {
    display: flex;
    gap: 32px;
}

.navbar a {
    font-size: 14px;
    font-weight: 500;
    color: #475467;

    position: relative;

    transition: 0.3s;
}

.navbar a::after {
    content: "";

    position: absolute;

    width: 0;
    height: 2px;

    bottom: -7px;
    left: 50%;

    background: var(--primary);

    transform: translateX(-50%);

    transition: 0.3s;
}

.navbar a:hover,
.navbar a.active {
    color: var(--primary);
}

.navbar a:hover::after,
.navbar a.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-btn {
    border: none;
    background: transparent;

    width: 40px;
    height: 40px;

    border-radius: 50%;

    cursor: pointer;

    font-size: 17px;

    color: #344054;

    transition: 0.3s;
}

.icon-btn:hover {
    background: #eef0ff;
    color: var(--primary);
}

.menu-btn {
    display: none;
}


/* =========================================
   HOME
========================================= */

.home {
    min-height: 100vh;

    padding-top: 140px;

    display: grid;

    grid-template-columns: 1.1fr 0.9fr;

    align-items: center;

    gap: 60px;

    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(99,91,255,0.12),
            transparent 30%
        ),
        radial-gradient(
            circle at 10% 80%,
            rgba(0,191,166,0.08),
            transparent 25%
        );
}

.intro-text {
    color: var(--primary);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.home-content h1 {
    font-size: clamp(45px, 7vw, 76px);
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 15px;
}

.home-content h1 span {
    color: var(--primary);
}

.home-content h2 {
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 600;
    margin-bottom: 20px;
}

.home-content h2 span {
    color: var(--secondary);
}

.home-description {
    max-width: 650px;

    color: var(--muted);

    font-size: 16px;

    margin-bottom: 30px;
}

.home-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    padding: 13px 24px;

    border-radius: 10px;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    border: 2px solid transparent;

    transition: 0.3s;
}

.primary-btn {
    background: var(--primary);
    color: white;

    box-shadow:
        0 10px 25px rgba(99,91,255,0.25);
}

.primary-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

.secondary-btn {
    border-color: var(--primary);
    color: var(--primary);
}

.secondary-btn:hover {
    background: var(--primary);
    color: white;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.social-links a {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: white;

    color: #475467;

    box-shadow: var(--shadow);

    transition: 0.3s;
}

.social-links a:hover {
    color: white;
    background: var(--primary);
    transform: translateY(-4px);
}


/* =========================================
   HOME VISUAL
========================================= */

.home-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-card {
    position: relative;

    width: min(420px, 90vw);
    height: 420px;

    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-card::before {
    content: "";

    position: absolute;

    width: 320px;
    height: 320px;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            rgba(99,91,255,0.18),
            rgba(0,191,166,0.15)
        );

    border: 1px solid rgba(99,91,255,0.2);

    animation: float 5s ease-in-out infinite;
}

.profile-circle {
    width: 230px;
    height: 230px;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            #8a84ff
        );

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow:
        0 25px 60px rgba(99,91,255,0.3);

    position: relative;

    z-index: 2;
}

.profile-letter {
    font-size: 100px;
    font-weight: 800;
    color: white;
}

.floating-card {
    position: absolute;

    background: white;

    padding: 12px 18px;

    border-radius: 12px;

    display: flex;
    align-items: center;

    gap: 8px;

    box-shadow: var(--shadow);

    font-size: 13px;
    font-weight: 600;

    z-index: 3;

    animation: floating 4s ease-in-out infinite;
}

.floating-card i {
    color: var(--primary);
}

.card-one {
    top: 60px;
    left: 15px;
}

.card-two {
    bottom: 65px;
    right: 0;
    animation-delay: 1s;
}

.card-three {
    bottom: 15px;
    left: 55px;
    animation-delay: 2s;
}

@keyframes floating {

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

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

}

@keyframes float {

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

    50% {
        transform: translateY(-10px) rotate(2deg);
    }

}


/* =========================================
   ABOUT
========================================= */

.about-container {
    display: grid;

    grid-template-columns: 0.8fr 1.2fr;

    gap: 70px;

    align-items: center;
}

.about-image {
    display: flex;
    justify-content: center;
}

.about-box {
    width: 300px;
    height: 300px;

    border-radius: 30px;

    background: white;

    border: 1px solid var(--border);

    box-shadow: var(--shadow);

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;

    transform: rotate(-3deg);

    transition: 0.4s;
}

.about-box:hover {
    transform: rotate(0deg) translateY(-8px);
}

.about-icon {
    width: 85px;
    height: 85px;

    border-radius: 20px;

    background: #eef0ff;

    color: var(--primary);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 35px;

    margin-bottom: 20px;
}

.about-box h3 {
    font-size: 21px;
}

.about-box p {
    color: var(--muted);
    font-size: 14px;
}

.about-content h3 {
    font-size: 28px;
    margin-bottom: 18px;
}

.about-content > p {
    color: var(--muted);
    margin-bottom: 15px;
}

.about-info {
    margin: 25px 0;
}

.about-info > div {
    display: flex;
    gap: 10px;

    padding: 10px 0;

    border-bottom: 1px solid var(--border);

    font-size: 14px;
}

.about-info strong {
    min-width: 100px;
}


/* =========================================
   SKILLS
========================================= */

.skills {
    background: #f1f4f9;
}

body.dark-mode .skills {
    background: #080e1b;
}

.skills-container {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 25px;
}

.skills-card {
    background: white;

    border: 1px solid var(--border);

    border-radius: var(--radius);

    padding: 28px;

    box-shadow: var(--shadow);

    transition: 0.3s;
}

.skills-card:hover {
    transform: translateY(-5px);
}

.skill-card-title {
    display: flex;
    align-items: center;
    gap: 15px;

    margin-bottom: 25px;
}

.skill-icon {
    width: 52px;
    height: 52px;

    border-radius: 14px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #eef0ff;

    color: var(--primary);

    font-size: 20px;
}

.skill-card-title h3 {
    font-size: 18px;
}

.skill-card-title p {
    color: var(--muted);
    font-size: 12px;
}

.skill {
    margin-bottom: 18px;
}

.skill-info {
    display: flex;
    justify-content: space-between;

    font-size: 13px;
    font-weight: 600;

    margin-bottom: 7px;
}

.progress {
    height: 8px;

    background: #edf0f5;

    border-radius: 20px;

    overflow: hidden;
}

.progress span {
    display: block;

    height: 100%;

    background:
        linear-gradient(
            90deg,
            var(--primary),
            var(--secondary)
        );

    border-radius: 20px;
}


/* =========================================
   EDUCATION
========================================= */

.timeline {
    max-width: 900px;
    margin: auto;

    position: relative;
}

.timeline::before {
    content: "";

    position: absolute;

    left: 25px;
    top: 0;
    bottom: 0;

    width: 2px;

    background: #dfe3ec;
}

.timeline-item {
    position: relative;

    padding-left: 80px;

    margin-bottom: 40px;
}

.timeline-dot {
    position: absolute;

    left: 0;

    width: 52px;
    height: 52px;

    border-radius: 50%;

    background: var(--primary);

    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 5px solid #f8fafc;

    box-shadow: 0 5px 20px rgba(99,91,255,0.2);
}

.timeline-content {
    background: white;

    border: 1px solid var(--border);

    padding: 25px;

    border-radius: var(--radius);

    box-shadow: var(--shadow);
}

.timeline-date {
    display: inline-block;

    color: var(--primary);

    background: #eef0ff;

    padding: 5px 10px;

    border-radius: 20px;

    font-size: 11px;
    font-weight: 600;

    margin-bottom: 10px;
}

.timeline-content h3 {
    font-size: 19px;
    margin-bottom: 5px;
}

.timeline-content h4 {
    font-size: 14px;
    color: var(--muted);
    font-weight: 500;
}

.timeline-content p {
    color: var(--muted);
    font-size: 13px;
}


/* =========================================
   PROJECTS
========================================= */

.projects {
    background: #f1f4f9;
}

body.dark-mode .projects {
    background: #080e1b;
}

.projects-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 25px;
}

.project-card {
    background: white;

    border: 1px solid var(--border);

    border-radius: var(--radius);

    overflow: hidden;

    box-shadow: var(--shadow);

    transition: 0.35s;
}

.project-card:hover {
    transform: translateY(-8px);
}

.project-image {
    height: 190px;

    display: flex;

    align-items: center;
    justify-content: center;

    position: relative;

    overflow: hidden;
}

.qr-project {
    background:
        linear-gradient(
            135deg,
            #eef0ff,
            #dfe1ff
        );
}

.portfolio-project {
    background:
        linear-gradient(
            135deg,
            #e7fff9,
            #d4f7ef
        );
}

.ai-project {
    background:
        linear-gradient(
            135deg,
            #fff1e8,
            #ffe0cc
        );
}

.project-icon {
    width: 95px;
    height: 95px;

    border-radius: 25px;

    background: white;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 40px;

    color: var(--primary);

    box-shadow: var(--shadow);

    transition: 0.4s;
}

.project-card:hover .project-icon {
    transform: scale(1.1) rotate(5deg);
}

.project-content {
    padding: 25px;
}

.project-category {
    font-size: 11px;

    color: var(--primary);

    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 1px;
}

.project-content h3 {
    margin: 8px 0;

    font-size: 21px;
}

.project-content p {
    color: var(--muted);

    font-size: 13px;

    min-height: 65px;
}

.project-tech {
    display: flex;

    flex-wrap: wrap;

    gap: 7px;

    margin: 18px 0;
}

.project-tech span {
    background: #f1f3f7;

    padding: 5px 9px;

    border-radius: 5px;

    font-size: 11px;

    font-weight: 600;
}

body.dark-mode .project-tech span {
    background: #202a40;
}

.project-links {
    display: flex;

    gap: 15px;

    padding-top: 15px;

    border-top: 1px solid var(--border);
}

.project-link {
    font-size: 12px;

    color: var(--primary);

    font-weight: 600;

    transition: 0.3s;
}

.project-link:hover {
    transform: translateX(3px);
}


/* =========================================
   SERVICES
========================================= */

.services-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 25px;
}

.service-card {
    background: white;

    border: 1px solid var(--border);

    border-radius: var(--radius);

    padding: 35px 28px;

    text-align: center;

    box-shadow: var(--shadow);

    transition: 0.3s;
}

.service-card:hover {
    transform: translateY(-7px);

    border-color: rgba(99,91,255,0.3);
}

.service-icon {
    width: 65px;
    height: 65px;

    border-radius: 18px;

    background: #eef0ff;

    color: var(--primary);

    display: flex;

    align-items: center;
    justify-content: center;

    margin: 0 auto 20px;

    font-size: 25px;
}

.service-card h3 {
    margin-bottom: 10px;
}

.service-card p {
    color: var(--muted);

    font-size: 13px;
}


/* =========================================
   CONTACT
========================================= */

.contact {
    background:
        linear-gradient(
            135deg,
            #f6f5ff,
            #f8fafc
        );
}

body.dark-mode .contact {
    background: #0b1120;
}

.contact-container {
    display: grid;

    grid-template-columns: 0.8fr 1.2fr;

    gap: 60px;

    max-width: 1100px;

    margin: auto;
}

.contact-info h3 {
    font-size: 28px;
    margin-bottom: 15px;
}

.contact-info > p {
    color: var(--muted);

    margin-bottom: 30px;
}

.contact-item {
    display: flex;

    gap: 15px;

    margin-bottom: 22px;

    align-items: center;
}

.contact-icon {
    width: 48px;
    height: 48px;

    border-radius: 12px;

    background: #eef0ff;

    color: var(--primary);

    display: flex;

    align-items: center;
    justify-content: center;
}

.contact-item span {
    display: block;

    font-size: 11px;

    color: var(--muted);
}

.contact-item a,
.contact-item p {
    font-size: 13px;
    font-weight: 500;
}

.contact-socials {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.contact-socials a {
    width: 42px;
    height: 42px;

    border-radius: 50%;

    background: white;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--primary);

    box-shadow: var(--shadow);

    transition: 0.3s;
}

.contact-socials a:hover {
    background: var(--primary);
    color: white;
}

.contact-form {
    background: white;

    padding: 30px;

    border-radius: var(--radius);

    border: 1px solid var(--border);

    box-shadow: var(--shadow);
}

.form-row {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 15px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;

    font-size: 12px;

    font-weight: 600;

    margin-bottom: 7px;
}

.form-group input,
.form-group textarea {
    width: 100%;

    border: 1px solid #dce1e8;

    border-radius: 9px;

    padding: 12px 14px;

    outline: none;

    font-size: 13px;

    background: #fbfcfd;

    color: var(--text);

    transition: 0.3s;

    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 3px rgba(99,91,255,0.08);
}

.submit-btn {
    border: none;
}

.form-message {
    font-size: 13px;
    margin-top: 15px;
    font-weight: 600;
}


/* =========================================
   FOOTER
========================================= */

.footer {
    background: #101828;

    color: white;

    padding: 45px 8% 20px;
}

.footer-content {
    text-align: center;
}

.footer .logo {
    display: inline-block;
    color: white;
}

.footer-content > p {
    color: #98a2b3;

    font-size: 13px;

    margin: 10px 0 20px;
}

.footer-socials {
    display: flex;

    justify-content: center;

    gap: 10px;
}

.footer-socials a {
    width: 40px;
    height: 40px;

    border-radius: 50%;

    background: #1d2939;

    display: flex;

    align-items: center;
    justify-content: center;

    transition: 0.3s;
}

.footer-socials a:hover {
    background: var(--primary);
}

.footer-bottom {
    text-align: center;

    margin-top: 35px;

    padding-top: 20px;

    border-top: 1px solid #253047;

    color: #667085;

    font-size: 11px;
}


/* =========================================
   SCROLL TOP
========================================= */

.scroll-top {
    position: fixed;

    right: 25px;
    bottom: 25px;

    width: 45px;
    height: 45px;

    border: none;

    border-radius: 50%;

    background: var(--primary);

    color: white;

    cursor: pointer;

    box-shadow:
        0 10px 25px rgba(99,91,255,0.25);
        opacity :0;
        visibility :hidden;
        transform :translateY(15px);
        transition :0.3s;
        z-index:900;
}

.scroll-top.show {
    opacity: 1;

    visibility: visible;

    transform: translateY(0);
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1050px) {

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

    .home {
        grid-template-columns: 1fr 0.8fr;
    }

}


@media (max-width: 850px) {

    .header {
        padding: 0 5%;
    }

    .navbar {

        position: absolute;

        top: 75px;
        left: 0;

        width: 100%;

        background: white;

        display: flex;

        flex-direction: column;

        gap: 0;

        padding: 15px 8%;

        box-shadow: 0 15px 25px rgba(0,0,0,0.08);

        transform: translateY(-150%);

        transition: 0.3s;

        opacity: 0;
    }

    body.dark-mode .navbar {
        background: #111a2e;
    }

    .navbar.open {
        transform: translateY(0);
        opacity: 1;
    }

    .navbar a {
        padding: 14px 0;
    }

    .menu-btn {
        display: block;
    }

    .home {
        grid-template-columns: 1fr;

        text-align: center;

        padding-top: 120px;
    }

    .home-description {
        margin-left: auto;
        margin-right: auto;
    }

    .home-buttons,
    .social-links {
        justify-content: center;
    }

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

    .about-image {
        order: 2;
    }

    .skills-container {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 600px) {

    .section {
        padding: 75px 5%;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .profile-card {
        height: 350px;
    }

    .profile-card::before {
        width: 270px;
        height: 270px;
    }

    .profile-circle {
        width: 190px;
        height: 190px;
    }

    .profile-letter {
        font-size: 80px;
    }

    .floating-card {
        padding: 9px 12px;
        font-size: 11px;
    }

    .card-one {
        left: 0;
    }

    .card-two {
        right: 0;
    }

    .about-box {
        width: 270px;
        height: 270px;
    }

    .timeline-item {
        padding-left: 65px;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-dot {
        width: 42px;
        height: 42px;
    }

}
