/* =========================================================
   GOOGLE FONT
========================================================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');


/* =========================================================
   ROOT COLORS
========================================================= */

:root {

    --primary: #8b5cf6;
    --primary-dark: #6d28d9;

    --pink: #ec4899;
    --pink-light: #f9a8d4;

    --lavender: #ede9fe;
    --lavender-dark: #c4b5fd;

    --cyan: #06b6d4;

    --text: #29213d;
    --text-light: #6b6478;

    --background: #fff9fd;

    --card: #ffffff;

    --border: #f1dff0;

    --navy: #21152d;

    --shadow:
        0 15px 40px rgba(139, 92, 246, 0.12);

    --transition:
        all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}


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

body.dark-mode {

    --text: #f8f5ff;

    --text-light: #c9bfd7;

    --background: #120d1c;

    --card: #1d1529;

    --border: #3b2948;

    --lavender: #251a35;

    --navy: #0e0914;

    --shadow:
        0 20px 50px rgba(0, 0, 0, 0.4);
}


/* =========================================================
   GLOBAL
========================================================= */

* {

    box-sizing: border-box;

    margin: 0;

    padding: 0;
}


html {

    scroll-behavior: smooth;
}


body {

    font-family:
        "DM Sans",
        "Segoe UI",
        Arial,
        sans-serif;

    color: var(--text);

    background:
        var(--background);

    transition:
        background 0.5s ease,
        color 0.5s ease;
}


a {

    text-decoration: none;
}


/* =========================================================
   NAVBAR
========================================================= */

#nav {

    background:
        linear-gradient(
            135deg,
            #6d28d9,
            #8b5cf6,
            #ec4899
        );

    padding: 16px 0;

    box-shadow:
        0 5px 25px
        rgba(139, 92, 246, 0.25);

    position: sticky;

    top: 0;

    z-index: 1000;

    transition:
        var(--transition);
}


#nav:hover {

    box-shadow:
        0 8px 30px
        rgba(236, 72, 153, 0.3);
}


/* =========================================================
   BRAND
========================================================= */

.navbar-brand {

    color: white !important;

    font-size: 21px;

    font-weight: 800;

    letter-spacing: -0.5px;

    transition:
        var(--transition);
}


.navbar-brand:hover {

    transform:
        translateY(-2px);

    letter-spacing: 0.3px;
}


.navbar-brand span {

    font-weight: 500;

    opacity: 0.9;
}


/* =========================================================
   NAV LINKS
========================================================= */

.nav-link {

    color: white !important;

    font-weight: 600;

    margin-left: 18px;

    position: relative;

    transition:
        var(--transition);
}


.nav-link::after {

    content: "";

    position: absolute;

    width: 0;

    height: 2px;

    left: 50%;

    bottom: 2px;

    background:
        #ffd6ec;

    transform:
        translateX(-50%);

    transition:
        width 0.3s ease;
}


.nav-link:hover {

    color:
        #ffe4f2 !important;

    transform:
        translateY(-3px);
}


.nav-link:hover::after {

    width: 80%;
}


/* =========================================================
   THEME BUTTON
========================================================= */

.theme-toggle {

    width: 42px;

    height: 42px;

    border: none;

    border-radius: 50%;

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

    color: white;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    transition:
        var(--transition);
}


.theme-toggle:hover {

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

    transform:
        rotate(20deg)
        scale(1.1);

    box-shadow:
        0 5px 15px
        rgba(255,255,255,0.2);
}


.theme-toggle:active {

    transform:
        scale(0.9);
}


/* =========================================================
   SECTIONS
========================================================= */

section {

    padding:
        100px 0;

    transition:
        background 0.5s ease;
}


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

#aboutme {

    min-height: 550px;

    display: flex;

    align-items: center;

    position: relative;

    overflow: hidden;

    background:

        radial-gradient(
            circle at 10% 20%,
            rgba(236,72,153,0.14),
            transparent 30%
        ),

        radial-gradient(
            circle at 90% 20%,
            rgba(139,92,246,0.18),
            transparent 30%
        ),

        linear-gradient(
            135deg,
            #fff7fc,
            #f5f3ff,
            #ecfeff
        );
}


body.dark-mode #aboutme {

    background:

        radial-gradient(
            circle at 10% 20%,
            rgba(236,72,153,0.12),
            transparent 30%
        ),

        radial-gradient(
            circle at 90% 20%,
            rgba(139,92,246,0.15),
            transparent 30%
        ),

        #120d1c;
}


/* =========================================================
   HELLO BADGE
========================================================= */

.hello-badge {

    display: inline-block;

    padding:
        9px 18px;

    border-radius: 30px;

    background:
        rgba(236,72,153,0.1);

    color:
        var(--pink);

    font-size: 14px;

    font-weight: 700;

    margin-bottom: 22px;

    transition:
        var(--transition);
}


.hello-badge:hover {

    transform:
        translateY(-4px)
        scale(1.04);

    background:
        rgba(236,72,153,0.16);

    box-shadow:
        0 8px 20px
        rgba(236,72,153,0.12);
}


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

#aboutme h1 {

    font-family:
        "Playfair Display",
        Georgia,
        serif;

    font-size: 58px;

    font-weight: 700;

    letter-spacing: -1px;

    background:
        linear-gradient(
            90deg,
            #7c3aed,
            #ec4899,
            #06b6d4
        );

    -webkit-background-clip: text;

    -webkit-text-fill-color: transparent;

    margin-bottom: 25px;

    transition:
        var(--transition);
}


#aboutme h1:hover {

    transform:
        translateY(-5px);
}


#aboutme p {

    max-width: 850px;

    margin: auto;

    font-size: 18px;

    line-height: 1.9;

    color:
        var(--text-light);
}


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

.about-buttons {

    margin-top: 32px;
}


.main-btn,
.outline-btn {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding:
        13px 25px;

    margin: 5px;

    border-radius: 12px;

    font-weight: 700;

    transition:
        var(--transition);
}


.main-btn {

    color: white;

    background:
        linear-gradient(
            135deg,
            #7c3aed,
            #ec4899
        );

    box-shadow:
        0 8px 20px
        rgba(139,92,246,0.18);
}


.main-btn:hover {

    color: white;

    transform:
        translateY(-5px)
        scale(1.03);

    box-shadow:
        0 15px 30px
        rgba(236,72,153,0.28);
}


.main-btn i {

    transition:
        transform 0.3s ease;
}


.main-btn:hover i {

    transform:
        translateX(4px);
}


.outline-btn {

    color:
        var(--primary);

    border:
        2px solid var(--primary);

    background:
        transparent;
}


.outline-btn:hover {

    color: white;

    background:
        var(--primary);

    transform:
        translateY(-5px)
        scale(1.03);

    box-shadow:
        0 10px 25px
        rgba(139,92,246,0.2);
}


/* =========================================================
   SECTION HEADING
========================================================= */

.section-heading {

    margin-bottom: 55px;
}


.section-heading span {

    color:
        var(--pink);

    font-size: 13px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 2.5px;
}


.section-heading h1 {

    font-family:
        "Playfair Display",
        Georgia,
        serif;

    font-size: 45px;

    font-weight: 700;

    margin:
        10px 0;

    background:
        linear-gradient(
            90deg,
            #7c3aed,
            #ec4899
        );

    -webkit-background-clip: text;

    -webkit-text-fill-color: transparent;

    transition:
        var(--transition);
}


.section-heading h1:hover {

    transform:
        translateY(-4px);
}


.section-heading p {

    color:
        var(--text-light);

    font-size: 16px;
}


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

#skills {

    background:
        linear-gradient(
            135deg,
            #ffffff,
            #faf5ff,
            #fff1f8
        );
}


body.dark-mode #skills {

    background:
        #171020;
}


/* =========================================================
   SKILL BOX
========================================================= */

.skill-box {

    height: 100%;

    padding:
        38px 32px;

    border-radius: 22px;

    background:
        var(--card);

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

    box-shadow:
        var(--shadow);

    text-align: center;

    transition:
        transform 0.4s cubic-bezier(.2,.8,.2,1),
        box-shadow 0.4s ease,
        border-color 0.4s ease;
}


.skill-box:hover {

    transform:
        translateY(-12px);

    border-color:
        var(--pink-light);

    box-shadow:
        0 25px 50px
        rgba(236,72,153,0.16);
}


/* =========================================================
   SKILL ICON
========================================================= */

.skill-icon {

    width: 68px;

    height: 68px;

    margin:
        auto auto 22px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 20px;

    color: white;

    font-size: 25px;

    background:
        linear-gradient(
            135deg,
            #7c3aed,
            #ec4899
        );

    transition:
        var(--transition);
}


.skill-box:hover .skill-icon {

    transform:
        rotate(-7deg)
        scale(1.1);

    box-shadow:
        0 10px 25px
        rgba(236,72,153,0.25);
}


.skill-box h4 {

    color:
        var(--text);

    font-weight: 800;

    margin-bottom: 20px;

    transition:
        var(--transition);
}


.skill-box:hover h4 {

    color:
        var(--pink);

    transform:
        translateY(-2px);
}


/* =========================================================
   SKILL LIST
========================================================= */

.skill-box ul {

    list-style: none;

    padding: 0;

    text-align: left;
}


.skill-box li {

    padding:
        8px 0;

    color:
        var(--text-light);

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

    transition:
        var(--transition);
}


.skill-box li:hover {

    color:
        var(--primary);

    padding-left: 7px;
}


.skill-box li::before {

    content: "✦";

    color:
        var(--pink);

    margin-right: 9px;

    transition:
        transform 0.3s ease;
}


.skill-box li:hover::before {

    display: inline-block;

    transform:
        rotate(90deg)
        scale(1.2);
}


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

#myprojects {

    background:
        linear-gradient(
            135deg,
            #f8f5ff,
            #fff7fc,
            #f0fdff
        );
}


body.dark-mode #myprojects {

    background:
        #120d1c;
}


/* =========================================================
   PROJECT CARD
========================================================= */

.project-card {

    height: 100%;

    overflow: hidden;

    border-radius: 24px;

    background:
        var(--card);

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

    box-shadow:
        var(--shadow);

    transition:
        transform 0.45s cubic-bezier(.2,.8,.2,1),
        box-shadow 0.45s ease,
        border-color 0.35s ease;
}


.project-card:hover {

    transform:
        translateY(-12px);

    border-color:
        var(--lavender-dark);

    box-shadow:
        0 28px 60px
        rgba(139,92,246,0.2);
}


/* =========================================================
   PROJECT IMAGE CONTAINER
========================================================= */

.project-card .carousel {

    overflow: hidden;

    background:
        #f2edf8;
}


/* =========================================================
   PROJECT IMAGE
========================================================= */

.project-image {

    width: 100%;

    height: 360px;

    object-fit: cover;

    object-position: center;

    display: block;

    transition:
        transform 0.6s cubic-bezier(.2,.8,.2,1),
        filter 0.4s ease;
}


/*
   Image Hover
*/

.project-card:hover
.project-image {

    transform:
        scale(1.035);

    filter:
        brightness(1.04)
        saturate(1.05);
}


/* =========================================================
   PROJECT CONTENT
========================================================= */

.project-content {

    padding:
        32px;
}


.project-number {

    color:
        var(--pink);

    font-size: 13px;

    font-weight: 900;

    letter-spacing: 2px;

    margin-bottom: 5px;
}


.project-content h2 {

    font-family:
        "Playfair Display",
        Georgia,
        serif;

    font-size: 31px;

    font-weight: 700;

    color:
        var(--text);

    margin-bottom: 3px;

    transition:
        var(--transition);
}


.project-card:hover
.project-content h2 {

    color:
        var(--primary);

    transform:
        translateX(3px);
}


.project-content h5 {

    color:
        var(--primary);

    font-size: 15px;

    font-weight: 700;

    margin-bottom: 18px;
}


.project-content p {

    color:
        var(--text-light);

    line-height: 1.8;

    margin-top: 20px;
}


/* =========================================================
   TECH TAGS
========================================================= */

.tech-tags {

    display: flex;

    flex-wrap: wrap;

    gap: 8px;
}


.tech-tags span {

    padding:
        6px 12px;

    border-radius: 20px;

    font-size: 11px;

    font-weight: 700;

    color:
        var(--primary);

    background:
        rgba(139,92,246,0.1);

    border:
        1px solid
        rgba(139,92,246,0.08);

    transition:
        var(--transition);
}


.tech-tags span:hover {

    color:
        white;

    background:
        var(--primary);

    transform:
        translateY(-3px)
        scale(1.04);
}


/* =========================================================
   PROJECT BUTTONS
========================================================= */

.project-links {

    margin-top: 25px;

    display: flex;

    flex-wrap: wrap;

    gap: 8px;
}


.project-btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    padding:
        11px 18px;

    border-radius: 10px;

    font-weight: 700;

    transition:
        var(--transition);
}


.dark-btn {

    color: white;

    background:
        #241633;
}


.dark-btn:hover {

    color: white;

    transform:
        translateY(-4px);

    background:
        #3b2452;

    box-shadow:
        0 10px 20px
        rgba(36,22,51,0.25);
}


.primary-btn {

    color: white;

    background:
        linear-gradient(
            135deg,
            #7c3aed,
            #ec4899
        );
}


.primary-btn:hover {

    color: white;

    transform:
        translateY(-4px)
        scale(1.03);

    box-shadow:
        0 12px 25px
        rgba(236,72,153,0.28);
}


.project-btn i {

    transition:
        transform 0.3s ease;
}


.project-btn:hover i {

    transform:
        translateX(3px);
}


/* =========================================================
   CAROUSEL CONTROLS
========================================================= */

.carousel-control-prev,
.carousel-control-next {

    width: 14%;

    opacity: 0;

    transition:
        opacity 0.3s ease;
}


.project-card:hover
.carousel-control-prev,
.project-card:hover
.carousel-control-next {

    opacity: 1;
}


.carousel-control-prev-icon,
.carousel-control-next-icon {

    width: 42px;

    height: 42px;

    border-radius: 50%;

    background-color:
        rgba(124,58,237,0.9);

    background-size: 45%;

    transition:
        transform 0.3s ease;
}


.carousel-control-prev:hover
.carousel-control-prev-icon {

    transform:
        translateX(-4px)
        scale(1.08);
}


.carousel-control-next:hover
.carousel-control-next-icon {

    transform:
        translateX(4px)
        scale(1.08);
}


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

#contact {

    padding:
        75px 0 30px;

    color: white;

    background:
        linear-gradient(
            135deg,
            #4c1d95,
            #7c3aed,
            #db2777
        );
}


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

.footer-title span {

    color:
        #fbcfe8;

    font-size: 13px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 2px;
}


.footer-title h2 {

    font-family:
        "Playfair Display",
        Georgia,
        serif;

    font-size: 38px;

    font-weight: 700;

    margin:
        10px 0 35px;
}


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

.contact-links {

    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 15px;

    margin-bottom: 45px;
}


.contact-link {

    display: flex;

    align-items: center;

    gap: 10px;

    padding:
        12px 20px;

    border-radius: 12px;

    color: white;

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

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

    transition:
        var(--transition);
}


.contact-link:hover {

    color: white;

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

    transform:
        translateY(-6px)
        scale(1.04);

    box-shadow:
        0 10px 25px
        rgba(0,0,0,0.12);
}


.contact-link i {

    font-size: 20px;

    transition:
        transform 0.3s ease;
}


.contact-link:hover i {

    transform:
        rotate(-8deg)
        scale(1.15);
}


/* =========================================================
   COPYRIGHT
========================================================= */

.copyright {

    padding-top: 25px;

    border-top:
        1px solid
        rgba(255,255,255,0.2);

    color:
        #f5d0fe;

    line-height: 2;
}


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

@media (max-width: 992px) {

    .nav-link {

        margin-left: 0;

        padding:
            10px 0;
    }


    .theme-toggle {

        margin-top: 10px;
    }


    .project-image {

        height: 320px;
    }

}


@media (max-width: 768px) {

    section {

        padding:
            70px 0;
    }


    #aboutme {

        min-height: 480px;
    }


    #aboutme h1 {

        font-size: 42px;
    }


    #aboutme p {

        font-size: 16px;

        padding:
            0 15px;
    }


    .section-heading h1 {

        font-size: 36px;
    }


    .project-image {

        height: 270px;
    }


    .project-content {

        padding:
            25px;
    }


    .project-content h2 {

        font-size: 26px;
    }


    .carousel-control-prev,
    .carousel-control-next {

        opacity: 1;
    }

}


@media (max-width: 480px) {

    #aboutme h1 {

        font-size: 35px;
    }


    .project-image {

        height: 220px;
    }


    .project-content {

        padding:
            20px;
    }


    .project-links {

        flex-direction: column;
    }


    .project-btn {

        width: 100%;
    }


    .contact-links {

        flex-direction: column;

        align-items: center;
    }


    .contact-link {

        width: 180px;

        justify-content: center;
    }

}