/* =====================================
   GENERAL
===================================== */

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #252525;
    line-height: 1.7;
    background: #ffffff;

    transition:
        background-color 0.3s ease,
        color 0.3s ease;
}

section {
    scroll-margin-top: 75px;
}

.section-padding {
    padding: 100px 0;
}

.section-title {
    margin-bottom: 50px;
}

.section-title span {
    color: #0d6efd;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 14px;
}

.section-title h2 {
    font-weight: 700;
    font-size: 38px;
    margin-top: 8px;
}

.section-title p {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #666;
}


/* =====================================
   NAVBAR
===================================== */

.navbar {
    padding: 15px 0;

    transition:
        padding 0.3s ease,
        box-shadow 0.3s ease,
        background-color 0.3s ease;
}

.navbar-brand {
    font-size: 24px;
}

.navbar-nav .nav-link {
    margin-left: 10px;
    font-weight: 500;

    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #4da3ff;
}

.navbar-scrolled {
    padding-top: 8px;
    padding-bottom: 8px;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.2);
}


/* =====================================
   HERO
===================================== */

.hero {
    min-height: 100vh;
    padding-top: 100px;

    background:
        linear-gradient(
            135deg,
            #ffffff,
            #eef5ff
        );

    transition: background 0.3s ease;
}

.hero-small-title {
    color: #0d6efd;
    font-weight: 700;
    letter-spacing: 2px;
}

.hero h1 {
    font-size: 64px;
}

.hero h2 {
    min-height: 50px;
    color: #555;
    font-size: 30px;
}

.hero-description {
    max-width: 700px;
    color: #666;
}


/* Typing text */

#typing-text {
    color: #0d6efd;
    font-weight: 600;
}

#typing-text::after {
    content: "|";
    margin-left: 4px;

    animation:
        cursorBlink 0.8s infinite;
}

@keyframes cursorBlink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}


/* Profile picture */

.profile-image {
    width: 360px;
    height: 360px;

    object-fit: cover;

    border-radius: 50%;

    border: 10px solid white;

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.12);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.03);

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.18);
}


/* Social icons */

.social-links a {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 45px;
    height: 45px;

    margin-right: 10px;

    border-radius: 50%;

    color: #212529;
    background: white;

    font-size: 21px;

    text-decoration: none;

    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.1);

    transition:
        transform 0.3s ease,
        background-color 0.3s ease,
        color 0.3s ease;
}

.social-links a:hover {
    background: #0d6efd;
    color: white;

    transform: translateY(-4px);
}


/* =====================================
   ABOUT
===================================== */

.about-card {
    padding: 35px;

    border-radius: 15px;

    background: #0d6efd;
    color: white;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.12);
}


/* =====================================
   SKILLS
===================================== */

.skill-card {
    height: 100%;

    padding: 30px;

    background: white;

    border-radius: 14px;

    border: 1px solid #eee;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.05);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background-color 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-8px);

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.12);
}

.skill-icon {
    width: 60px;
    height: 60px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #e8f1ff;

    border-radius: 12px;

    font-size: 28px;

    color: #0d6efd;

    margin-bottom: 20px;
}

.skill-card h4 {
    font-weight: 700;
}


/* =====================================
   EXPERIENCE
===================================== */

.experience-card {
    padding: 40px;

    background: white;

    border-left: 5px solid #0d6efd;

    border-radius: 10px;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.08);

    transition:
        background-color 0.3s ease,
        color 0.3s ease;
}

.experience-card h3 {
    font-weight: 700;
}


/* =====================================
   PROJECTS
===================================== */

.project-filters .filter-btn {
    margin: 5px;

    border-radius: 25px;

    padding: 8px 20px;
}

.project-item {
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

.project-card {
    border: none;

    border-radius: 15px;

    overflow: hidden;

    background: white;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.08);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background-color 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.14);
}

.project-placeholder {
    height: 220px;

    display: flex;

    justify-content: center;
    align-items: center;

    background:
        linear-gradient(
            135deg,
            #0d6efd,
            #084298
        );

    color: white;

    font-size: 70px;
}

.tech-badge {
    background: #e8f1ff;
    color: #0d6efd;

    padding: 8px 12px;

    margin-right: 4px;
    margin-bottom: 5px;

    font-weight: 500;
}


/* =====================================
   CERTIFICATIONS
===================================== */

.certification-card {
    display: flex;

    align-items: center;

    gap: 20px;

    padding: 30px;

    border-radius: 15px;

    background: white;

    border: 1px solid #eee;

    box-shadow:
        0 6px 25px rgba(0, 0, 0, 0.07);

    transition:
        transform 0.3s ease,
        background-color 0.3s ease;
}

.certification-card:hover {
    transform: translateY(-5px);
}

.certification-card i {
    font-size: 45px;
    color: #0d6efd;
}

.certification-card h4 {
    font-weight: 700;
    margin-bottom: 5px;
}

.certification-card p {
    margin: 0;
    color: #777;
}


/* =====================================
   CONTACT
===================================== */

.contact-section {
    padding: 100px 0;

    background:
        linear-gradient(
            135deg,
            #0d6efd,
            #073b83
        );

    color: white;
}

.contact-small {
    letter-spacing: 2px;
    font-weight: 700;
}

.contact-section h2 {
    font-size: 45px;
    font-weight: 700;

    margin: 15px 0;
}

.contact-section p {
    font-size: 18px;

    max-width: 650px;

    margin: 0 auto 30px;
}


/* =====================================
   FOOTER
===================================== */

.footer {
    padding: 35px 0;

    background: #111;

    color: #aaa;
}

.footer-social a {
    color: white;

    font-size: 22px;

    margin: 0 8px;

    text-decoration: none;

    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: #4da3ff;
}


/* =====================================
   BACK TO TOP
===================================== */

#back-to-top {
    position: fixed;

    right: 25px;
    bottom: 25px;

    width: 50px;
    height: 50px;

    border: none;

    border-radius: 50%;

    background: #0d6efd;
    color: white;

    font-size: 22px;

    display: flex;

    align-items: center;
    justify-content: center;

    cursor: pointer;

    opacity: 0;
    visibility: hidden;

    transform: translateY(20px);

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease,
        transform 0.3s ease;

    z-index: 1000;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.2);
}

#back-to-top.show {
    opacity: 1;

    visibility: visible;

    transform: translateY(0);
}

#back-to-top:hover {
    transform: translateY(-4px);
}


/* =====================================
   DARK MODE
===================================== */

body.dark-mode {
    background: #121212;
    color: #f5f5f5;
}

body.dark-mode .hero {
    background:
        linear-gradient(
            135deg,
            #121212,
            #1b263b
        );
}

body.dark-mode .bg-light {
    background-color:
        #181818 !important;
}

body.dark-mode .section-title p {
    color: #bbb;
}

body.dark-mode .skill-card,
body.dark-mode .experience-card,
body.dark-mode .certification-card,
body.dark-mode .project-card {
    background: #202020;

    color: #f5f5f5;

    border-color: #333;
}

body.dark-mode .project-card .card-text {
    color: #ccc;
}

body.dark-mode .hero h2 {
    color: #ccc;
}

body.dark-mode .hero-description {
    color: #bbb;
}

body.dark-mode .experience-subtitle {
    color: #aaa !important;
}

body.dark-mode .certification-card p {
    color: #aaa;
}

body.dark-mode .btn-outline-dark {
    color: white;
    border-color: white;
}

body.dark-mode .btn-outline-dark:hover {
    background: white;
    color: #121212;
}

body.dark-mode .social-links a {
    background: #202020;
    color: white;
}

body.dark-mode .social-links a:hover {
    background: #0d6efd;
}

body.dark-mode .profile-image {
    border-color: #202020;
}


/* =====================================
   RESPONSIVE
===================================== */

@media (max-width: 991px) {

    .hero {
        text-align: center;

        padding-top: 140px;
        padding-bottom: 80px;
    }

    .hero h1 {
        font-size: 50px;
    }

    .hero h2 {
        font-size: 25px;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .navbar-nav .nav-link {
        margin-left: 0;
    }

}


@media (max-width: 576px) {

    .section-padding {
        padding: 70px 0;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero h2 {
        font-size: 22px;
        min-height: 70px;
    }

    .profile-image {
        width: 260px;
        height: 260px;
    }

    .section-title h2 {
        font-size: 30px;
    }

    .contact-section h2 {
        font-size: 34px;
    }

    .experience-card {
        padding: 25px;
    }

    #back-to-top {
        right: 15px;
        bottom: 15px;

        width: 45px;
        height: 45px;
    }

}