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

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

html {
    scroll-behavior: smooth;
}

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

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #e74c3c;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #c0392b;
}

section {
    padding: 100px 0;
}

.max-width {
    max-width: 1300px;
    padding: 0 80px;
    margin: auto;
}

.about,
.qualification,
.skills,
.projects,
.achievements,
.contact {
    font-family: 'Poppins', sans-serif;
}

.about .about-content,
.qualification .qual-content,
.skills .skills-content,
.projects .projects-content,
.contact .contact-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

section .title {
    position: relative;
    text-align: center;
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 60px;
    padding-bottom: 20px;
    font-family: 'Poppins', sans-serif;
}

section .title::before {
    content: "";
    position: absolute;
    bottom: 0px;
    left: 50%;
    width: 120px;
    height: 3px;
    background: #e74c3c;
    transform: translateX(-50%);
}

section .title::after {
    position: absolute;
    bottom: -12px;
    left: 50%;
    font-size: 16px;
    color: #888;
    padding: 0 8px;
    background: inherit;
    transform: translateX(-50%);
    white-space: nowrap;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    width: 100%;
    z-index: 999;
    padding: 30px 0;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.navbar.sticky {
    padding: 12px 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.navbar .max-width {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar .logo a {
    font-size: 30px;
    color: #fff;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.navbar .logo a span {
    color: #e74c3c;
    transition: all 0.3s ease;
}

.navbar .sticky .logo a span {
    color: white;
}

.navbar .menu li {
    list-style: none;
    display: inline-block;
}

.navbar .menu li a {
    display: block;
    font-size: 15px;
    font-weight: 400;
    margin-left: 30px;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
    letter-spacing: 0.5px;
}

.navbar .menu li a:hover {
    color: #e74c3c;
}

.navbar.sticky .menu li a:hover {
    color: #e74c3c;
}

.menu-btn {
    color: white;
    font-size: 23px;
    cursor: pointer;
    display: none;
}

.scroll-up-btn {
    position: fixed;
    height: 45px;
    width: 42px;
    background: #e74c3c;
    right: 30px;
    bottom: 30px;
    text-align: center;
    line-height: 45px;
    color: white;
    z-index: 9999;
    font-size: 30px;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.scroll-up-btn.show {
    bottom: 30px;
    opacity: 1;
    pointer-events: auto;
}

.scroll-up-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.5);
}

/* ===== HOME ===== */
.home {
    display: flex;
    align-items: center;
    justify-content: center;
    background: url("./black.gif") no-repeat center;
    height: 100vh;
    min-height: 500px;
    color: white;
    background-size: cover;
    background-attachment: fixed;
    font-family: 'Poppins', sans-serif;
    position: relative;
}

.home::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.7) 100%);
}

.home .max-width {
    width: 100%;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.home .home-content .text-1 {
    font-size: 20px;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

.home .home-content .text-2 {
    font-size: 72px;
    font-weight: 700;
    margin-left: -4px;
    line-height: 1.1;
    background: linear-gradient(to right, #fff, #e74c3c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.home .home-content .text-3 {
    font-size: 28px;
    margin: 15px 0;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
}

.home .home-content .text-3 span {
    color: #e74c3c;
    font-weight: 500;
}

/* ===== ABOUT ===== */
.about {
    background: #fff;
}

.about .title::after {
    content: "who i am";
    background: #fff;
}

.about .about-content .left {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #e74c3c;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.about .about-content .left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about .about-content .right {
    width: calc(100% - 300px);
}

.about .about-content .right .text {
    font-size: 25px;
    font-weight: 600;
    margin-bottom: 10px;
}

.about .about-content .right .text span {
    color: #e74c3c;
}

.about .about-content .right p {
    text-align: justify;
    color: #555;
    line-height: 1.8;
    font-size: 15px;
}

.about .about-content .right .social-links {
    margin-top: 20px;
}

.about .about-content .right .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #e74c3c;
    color: #fff;
    font-size: 20px;
    border-radius: 50%;
    margin-right: 10px;
    border: 2px solid #e74c3c;
    transition: all 0.3s ease;
}

.about .about-content .right .social-links a:hover {
    color: #e74c3c;
    background: none;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

/* ===== QUALIFICATION ===== */
.qualification,
.achievements {
    color: #fff;
    background: #0a0a0a;
}

.qualification .title::before,
.achievements .title::before {
    background: #e74c3c;
}

.qualification .title::after {
    background: #0a0a0a;
    content: "my education";
}

.achievements .title::after {
    background: #0a0a0a;
    content: "what i achieved";
}

.qualification .qual-content .card {
    width: calc(33% - 20px);
    background: #151515;
    text-align: center;
    border-radius: 12px;
    padding: 40px 25px;
    cursor: pointer;
    transition: all 0.4s ease;
    border: 1px solid #222;
}

.qualification .qual-content .card:hover {
    background: #e74c3c;
    transform: translateY(-8px);
    border-color: #e74c3c;
    box-shadow: 0 15px 40px rgba(231, 76, 60, 0.3);
}

.qualification .qual-content .card .box {
    transition: all 0.3s ease;
}

.qualification .qual-content .card:hover .box {
    transform: scale(1.02);
}

.qualification .qual-content .card i {
    font-size: 40px;
    color: #e74c3c;
    transition: color 0.3s ease;
}

.qualification .qual-content .card:hover i {
    color: #fff;
}

.qualification .qual-content .card .text {
    font-size: 22px;
    font-weight: 600;
    margin: 15px 0 10px 0;
}

.qualification .qual-content .card p {
    font-size: 14px;
    color: #aaa;
    line-height: 1.6;
}

.qualification .qual-content .card:hover p {
    color: rgba(255, 255, 255, 0.9);
}

/* ===== SKILLS ===== */
.skills {
    background: #fff;
}

.skills .title::after {
    content: "what i know";
    background: #fff;
}

.skills .skills-content .column {
    width: calc(50% - 30px);
}

.skills .skills-content .left .text {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.skills .skills-content .left p {
    text-align: justify;
    color: #555;
    line-height: 1.7;
    font-size: 14px;
}

.skills .skills-content .left b {
    color: #222;
}

.skills .skills-content .right .bars {
    margin-bottom: 15px;
}

.skills .skills-content .right .info {
    display: flex;
    margin-bottom: 5px;
    align-items: center;
    justify-content: space-between;
}

.skills .skills-content .right span {
    font-weight: 500;
    font-size: 15px;
    color: #333;
}

.skills .skills-content .right .line {
    height: 8px;
    width: 100%;
    background: #f0f0f0;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}

.skills .skills-content .right .line::before {
    content: "";
    position: absolute;
    height: 100%;
    left: 0;
    top: 0;
    background: linear-gradient(to right, #e74c3c, #c0392b);
    border-radius: 4px;
    transition: width 0.8s ease;
}

.skills-content .right .html::before {
    width: 90%;
}

.skills-content .right .css::before {
    width: 90%;
}

.skills-content .right .java::before {
    width: 90%;
}

.skills-content .right .python::before {
    width: 85%;
}

.skills-content .right .mysql::before {
    width: 80%;
}

/* ===== PROJECTS ===== */
.projects {
    background: #f5f5f5;
}

.projects .title::after {
    content: "what i built";
    background: #f5f5f5;
}

.projects .projects-content {
    gap: 30px;
    justify-content: center;
}

.projects .projects-content .card {
    width: calc(50% - 20px);
    background: #fff;
    border-radius: 12px;
    padding: 40px 30px;
    cursor: default;
    transition: all 0.4s ease;
    border: 1px solid #eee;
}

.projects .projects-content .card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-8px);
    border-color: #e74c3c;
}

.projects .projects-content .card i {
    font-size: 45px;
    color: #e74c3c;
}

.projects .projects-content .card .text {
    font-size: 24px;
    font-weight: 600;
    margin: 12px 0 5px 0;
    color: #222;
}

.projects .projects-content .card .tech-stack {
    font-size: 13px;
    color: #e74c3c;
    margin-bottom: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.projects .projects-content .card p {
    text-align: justify;
    font-size: 14px;
    line-height: 1.7;
    color: #666;
}

.projects .projects-content .card .project-links {
    margin-top: 20px;
    display: flex;
    gap: 12px;
}

.projects .projects-content .card .project-links a {
    display: inline-block;
    background: #e74c3c;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 20px;
    border-radius: 25px;
    border: 2px solid #e74c3c;
    transition: all 0.3s ease;
}

.projects .projects-content .card .project-links a:hover {
    color: #e74c3c;
    background: none;
}

.projects .projects-content .card .project-links a i {
    font-size: 13px;
    margin-right: 5px;
    color: inherit;
}

/* ===== ACHIEVEMENTS ===== */
.achievements .carousel .card {
    background: #151515;
    border-radius: 12px;
    padding: 30px 35px;
    text-align: center;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid #222;
}

.achievements .carousel .card:hover {
    background: #e74c3c;
    border-color: #e74c3c;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(231, 76, 60, 0.3);
}

.achievements .carousel .card .box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.achievements .carousel .card:hover .box {
    transform: scale(1.02);
}

.achievements .carousel .card .text {
    font-size: 22px;
    font-weight: 600;
    margin: 10px 0 10px 0;
}

.achievements .carousel .card p {
    font-size: 14px;
    color: #aaa;
    line-height: 1.6;
}

.achievements .carousel .card:hover p {
    color: rgba(255, 255, 255, 0.9);
}

.owl-dots {
    text-align: center;
    margin-top: 25px;
}

.owl-dot {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    outline: none !important;
    border-radius: 50%;
    border: 2px solid #e74c3c !important;
    transition: all 0.3s ease;
}

.owl-dot.active {
    width: 35px;
    border-radius: 14px;
}

.owl-dot.active,
.owl-dot:hover {
    background: #e74c3c !important;
}

/* ===== CONTACT ===== */
.contact {
    background: #fff;
}

.contact .title::after {
    content: "get in touch";
    background: #fff;
}

.contact .contact-content .column {
    width: calc(50% - 30px);
}

.contact .contact-content .text {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.contact .contact-content .left p {
    text-align: justify;
}

.contact .contact-content .left .icons {
    margin: 10px 0;
}

.contact .contact-content .row {
    display: flex;
    height: 65px;
    align-items: center;
}

.contact .contact-content .row .info {
    margin-left: 25px;
}

.contact .contact-content .row i {
    font-size: 22px;
    color: #e74c3c;
    width: 25px;
    text-align: center;
}

.contact .contact-content .info .head {
    font-weight: 500;
    font-size: 15px;
    color: #222;
}

.contact .contact-content .info .sub-title {
    color: #666;
    font-size: 14px;
}

.contact .contact-content .info .sub-title a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact .contact-content .info .sub-title a:hover {
    color: #e74c3c;
}

.contact .right form .fields {
    display: flex;
}

.contact .right form .field,
.contact .right form .fields .field {
    height: 45px;
    width: 100%;
    margin-bottom: 15px;
}

.contact .right form .textarea {
    height: 80px;
    width: 100%;
}

.contact .right form .name {
    margin-right: 10px;
}

.contact .right form .field input,
.contact .right form .textarea textarea {
    height: 100%;
    width: 100%;
    border: 2px solid #eee;
    border-radius: 8px;
    outline: none;
    padding: 0 15px;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    background: #f9f9f9;
}

.contact .right form .field input:focus,
.contact .right form .textarea textarea:focus {
    border-color: #e74c3c;
    background: #fff;
}

.contact .right form .textarea textarea {
    padding-top: 10px;
    resize: none;
}

/* ===== FOOTER ===== */
footer {
    background: #0a0a0a;
    color: #888;
    text-align: center;
    padding: 20px 0;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
}

/* ===== RESPONSIVE ===== */
@media(max-width:1104px) {
    .about .about-content .left {
        width: 220px;
        height: 220px;
    }

    .about .about-content .right {
        width: calc(100% - 260px);
    }
}

@media(max-width:991px) {
    .max-width {
        padding: 0 50px;
    }
}

@media(max-width:947px) {
    .menu-btn {
        display: block;
        z-index: 999;
    }

    .menu-btn i.active:before {
        content: "close";
    }

    .navbar .menu {
        position: fixed;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        width: 100%;
        left: -100%;
        top: 0;
        text-align: center;
        padding-top: 80px;
        transition: all 0.3s ease;
    }

    .navbar .menu.active {
        left: 0;
    }

    .navbar .menu li {
        display: block;
    }

    .navbar .menu li a {
        display: inline-block;
        margin: 20px 0;
        font-size: 22px;
    }

    .home .home-content .text-2 {
        font-size: 60px;
    }

    .home .home-content .text-3 {
        font-size: 24px;
    }

    .max-width {
        max-width: 930px;
    }

    .about .about-content .column {
        width: 100%;
    }

    .about .about-content .left {
        display: flex;
        justify-content: center;
        margin: 0 auto 40px;
    }

    .about .about-content .right {
        width: 100%;
    }

    .qualification .qual-content .card {
        width: calc(50% - 10px);
        margin-bottom: 20px;
    }

    .projects .projects-content .card {
        width: 100%;
    }

    .skills .skills-content .column,
    .contact .contact-content .column {
        width: 100%;
        margin-bottom: 35px;
    }
}

@media (max-width: 690px) {
    .max-width {
        padding: 0 23px;
    }

    .home .home-content .text-2 {
        font-size: 48px;
    }

    .home .home-content .text-3 {
        font-size: 20px;
    }

    .qualification .qual-content .card {
        width: 100%;
    }
}

@media (max-width: 500px) {
    .home .home-content .text-1 {
        font-size: 16px;
    }

    .home .home-content .text-2 {
        font-size: 38px;
    }

    .home .home-content .text-3 {
        font-size: 18px;
    }

    .about .about-content .right .text,
    .skills .skills-content .left .text {
        font-size: 19px;
    }

    .contact .right form .fields {
        flex-direction: column;
    }

    .contact .right form .name,
    .contact .right form .email {
        margin: 0;
    }

    .scroll-up-btn {
        right: 15px;
        bottom: 15px;
        height: 38px;
        width: 38px;
        font-size: 23px;
        line-height: 38px;
    }
}
