/*  typography */
@import url("https://fonts.googleapis.com/css?family=Playfair+Display:700|Roboto:400");


/* ===== SKILLS SECTION ===== */
.skill-card {
    border: none;
    border-radius: 18px;
    overflow: hidden;
    background: #ffffff;
    transition: all 0.4s ease;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.skill-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.15);
}

.progress-wrapper {
    height: 140px;
    position: relative;
    background: #f8fafc;
    overflow: hidden;
}

.wave {
    position: absolute;
    bottom: -100%;
    width: 200%;
    height: 200%;
    border-radius: 45%;
    animation: waveMove 10s;
    opacity: 0.95;
}

.card-footer {
    background: #fff;
    padding: 15px;
}

.card-footer h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.card-footer span {
    font-size: 14px;
    color: #64748b;
}


/* ===== END OF SKILLS SECTION ===== */

body {
    line-height: 1.2;
    font-family: "Roboto", sans-serif;
    -webkit-font-smoothing: antialiased;
    font-size: 15px;
    color: #4c4c4c;
    background-color: #fff;
    overflow-x: hidden;
}


p {
    font-weight: 400;
    color: #4c4c4c;
    font-size: 15px;
    line-height: 1.8;
    font-family: "Roboto", sans-serif;
}

.paragraph-lg {
    font-size: 22px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: #000;
    font-family: "Playfair Display", serif;
    line-height: 1.2;
}

h1,
.h1 {
    font-size: 80px;
}

@media (max-width: 991px) {

    h1,
    .h1 {
        font-size: 65px;
    }
}

h2,
.h2 {
    font-size: 60px;
}

@media (max-width: 991px) {

    h2,
    .h2 {
        font-size: 50px;
    }
}

h3,
.h3 {
    font-size: 40px;
}

h4,
.h4 {
    font-size: 22px;
}

h5,
.h5 {
    font-size: 18px;
}

h6,
.h6 {
    font-size: 14px;
}

/* Button style */
.btn {
    font-size: 22px;
    font-family: "Playfair Display", serif;
    text-transform: capitalize;
    padding: 16px 44px;
    border-radius: 5px;
    font-weight: 600;
    border: 0;
    position: relative;
    z-index: 1;
    transition: 0.2s ease;
}

.btn:focus {
    outline: 0;
    box-shadow: none !important;
}

.btn:active {
    box-shadow: none;
}

.btn-sm {
    font-size: 15px;
    padding: 10px 30px;
}

.btn-xs {
    padding: 5px 10px;
    font-size: 15px;
}

.btn-primary {
    background: #41228e;
    color: #fff;
}

.btn-primary:active {
    background: #542cb7 !important;
}

.btn-primary:hover {
    background: #542cb7;
}

.btn-primary.focus,
.btn-primary.active {
    background: #542cb7 !important;
    box-shadow: none !important;
}

.btn-transparent {
    background: transparent;
    color: #41228e;
    font-weight: bold;
}

.btn-transparent:active,
.btn-transparent:hover {
    color: #41228e;
}

::-moz-selection {
    background: #542cb7;
    color: #fff;
}

::selection {
    background: #542cb7;
    color: #fff;
}

ol,
ul {
    list-style-type: none;
    margin: 0px;
}

img {
    vertical-align: middle;
    border: 0;
}

a,
a:hover,
a:focus {
    text-decoration: none;
}

a,
button,
select {
    cursor: pointer;
    transition: 0.2s ease;
}

a:focus,
button:focus,
select:focus {
    outline: 0;
}

a.text-dark:hover {
    color: #41228e !important;
}

a:hover {
    color: #41228e;
}

.section {
    padding-top: 80px;
    padding-bottom: 80px;
}

.section-title {
    margin-bottom: 50px;
    font-family: "Playfair Display", serif;
}

.outline-0 {
    outline: 0 !important;
}

.d-unset {
    display: unset !important;
}

.bg-primary {
    background: #41228e !important;
}

.text-dark {
    color: #000 !important;
}

.text-light {
    color: #999999 !important;
}

.zindex-1 {
    z-index: 1;
}

.font-tertiary {
    font-family: "Playfair Display", serif !important;
}

.shadow {
    box-shadow: 0px 18px 39.1px 6.9px rgba(224, 241, 255, 0.34) !important;
}

.bg-dark {
    background-color: #222222 !important;
}

.icon {
    font-size: 45px;
}

.icon-bg {
    height: 100px;
    width: 100px;
    line-height: 100px;
    text-align: center;
}

.icon-light {
    color: #c8d5ef;
}

.card {
    border: 0;
}

.card-header {
    border: 0;
}

.card-footer {
    border: 0;
}

/* /card */
.navigation {
    padding: 40px 130px;
    transition: 0.3s ease;
}

.navigation.nav-bg {
    background-color: #41228e;
    padding: 15px 100px;
}

@media (max-width: 991px) {
    .navigation.nav-bg {
        padding: 15px 20px;
    }
}

@media (max-width: 991px) {
    .navigation {
        padding: 20px;
        background: #41228e;
    }
}

.navbar .nav-item .nav-link {
    font-family: "Playfair Display", serif;
    text-transform: uppercase;
    padding: 15px;
}

.navbar-dark .navbar-nav .nav-link {
    color: #fff;
    opacity: 0.8;
    position: relative;
}

.navbar .nav-item.active .nav-link {
    font-weight: bold;
    opacity: 1;
}

.navbar .nav-item.active .nav-link:after {
    content: "";
    height: 3px;
    width: 50%;
    background-color: #fff;
    position: absolute;
    left: 0;
    right: 0;
    margin: 0 auto;
    bottom: 0;
    border-radius: 20px;
}

.hero-area {
    padding: 300px 0 200px;
    position: relative;
    overflow: hidden;
}

@media (max-width: 767px) {
    .hero-area {
        padding: 250px 0 150px;
        overflow: hidden;
    }
}

.hero-area h1 {
    position: relative;
    z-index: 2;
}

.layer {
    position: absolute;
    z-index: 1;
}

#l1 {
    bottom: 0;
    left: 0;
}

#l2 {
    top: 190px;
    left: -250px;
}

#l3 {
    top: 200px;
    left: 40%;
}

#l4 {
    top: 200px;
    right: 40%;
}

#l5 {
    top: 100px;
    right: -150px;
}

#l6 {
    bottom: -20px;
    left: 10%;
}

#l7 {
    bottom: 100px;
    left: 20%;
}

#l8 {
    bottom: 160px;
    right: 45%;
}

#l9 {
    bottom: 100px;
    right: -10px;
}

.layer-bg {
    position: absolute;
    bottom: 0;
    left: 0;
}

.progress-wrapper {
    height: 130px;
    overflow: hidden;
}

.wave {
    position: absolute;
    width: 100%;
    height: 100%;
}

.wave::before,
.wave::after {
    content: "";
    position: absolute;
    width: 800px;
    height: 800px;
    bottom: 0;
    left: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 45%;
    transform: translateX(-50%) rotate(0);
    -webkit-animation: rotate 6s linear infinite;
    animation: rotate 6s linear infinite;
    z-index: 10;
}

.wave::after {
    border-radius: 47%;
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateX(-50%) rotate(0);
    -webkit-animation: rotate 10s linear -5s infinite;
    animation: rotate 10s linear -5s infinite;
    z-index: 20;
}

@-webkit-keyframes rotate {
    50% {
        transform: translateX(-50%) rotate(180deg);
    }

    100% {
        transform: translateX(-50%) rotate(360deg);
    }
}

@keyframes rotate {
    50% {
        transform: translateX(-50%) rotate(180deg);
    }

    100% {
        transform: translateX(-50%) rotate(360deg);
    }
}

.section.position-relative {
    overflow: hidden;
}

.edu-bg-image {
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
}


.hover-bg-primary {
    transition: 0.3s ease;
}

.hover-bg-primary:hover {
    background: #41228e;
}

.hover-bg-primary:hover * {
    color: #fff;
}

.active-bg-primary {
    transition: 0.3s ease;
    background: #41228e;
}

.active-bg-primary * {
    color: #fff;
}

.hover-shadow {
    transition: 0.2s ease;
}

.hover-shadow:hover {
    box-shadow: 0px 18px 40px 8px rgba(224, 241, 255, 0.54) !important;
}

.hover-wrapper {
    overflow: hidden;
}

.hover-wrapper img {
    transition: 0.3s ease;
    transform: scale(1.1);
}

.hover-wrapper:hover img {
    transform: scale(1);
}

.hover-wrapper:hover .hover-overlay {
    opacity: 1;
    visibility: visible;
}

.hover-overlay {
    position: absolute;
    height: 100%;
    width: 100%;
    border-radius: inherit;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
}

.hover-content {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    right: 0;
    text-align: center;
}

.slick-slide {
    outline: 0;
}

.slick-dots {
    text-align: center;
    padding-left: 0;
}

.slick-dots li {
    display: inline-block;
    margin: 2px;
}

.slick-dots li.slick-active button {
    background: #fff;
    width: 25px;
}

.slick-dots li button {
    height: 6px;
    width: 12px;
    background: rgba(255, 255, 255, 0.5);
    color: transparent;
    border-radius: 10px;
    overflow: hidden;
    transition: 0.2s ease;
    border: 0;
}

/* ================================
   EDUCATION SECTION ANIMATION
================================ */

/* base animation */
.section .row>.col-lg-6 .d-flex {
    opacity: 0;
    animation-duration: 1s;
    animation-fill-mode: forwards;
    animation-timing-function: ease-out;
}

.section .row>.col-lg-6:nth-child(odd) .d-flex {
    animation-name: slideFromLeft;
}

.section .row>.col-lg-6:nth-child(even) .d-flex {
    animation-name: slideFromRight;
}

/* LEFT animation */
@keyframes slideFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-80px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* RIGHT animation */
@keyframes slideFromRight {
    0% {
        opacity: 0;
        transform: translateX(80px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}



/* ===== SERVICES HOVER EFFECT ===== */
.service-card {
    border-radius: 18px;
    transition: all 0.4s ease;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    background: #fff;
}

.service-card:hover {
    transform: translateY(-14px);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.18);
}

/* active (middle card) */
.service-card.active {
    background: #41228e;
    color: #fff;
}

.service-card.active h4,
.service-card.active p {
    color: #fff;
}

/* ICON STYLES */
.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    transition: all 0.4s ease;
}

/* icon colors */
.service-icon.frontend {
    background: linear-gradient(135deg, #38bdf8, #2563eb);
    color: #fff;
}

.service-icon.backend {
    background: linear-gradient(135deg, #22c55e, #15803d);
    color: #fff;
}

.service-icon.database {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
}

/* icon hover animation */
.service-card:hover .service-icon {
    transform: scale(1.15) rotate(6deg);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

/* text spacing */
.service-card p {
    line-height: 1.7;
    color: #555;
}

.service-card h4 {
    font-weight: 600;
}


/* ===== PORTFOLIO CARD BACKGROUND ===== */

#portfolio .hover-wrapper {
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(135deg, #1e1b4b, #312e81);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
    transition: all 0.4s ease;
}

#portfolio .hover-wrapper img {
    transition: all 0.5s ease;
    filter: brightness(0.9);
}

/* Hover image zoom */
#portfolio .hover-wrapper:hover img {
    transform: scale(1.1);
    filter: brightness(0.6);
}

#portfolio .hover-overlay {
    background: linear-gradient(to top,
            rgba(79, 70, 229, 0.95),
            rgba(15, 23, 42, 0.6));
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

#portfolio .hover-wrapper:hover .hover-overlay {
    opacity: 1;
    visibility: visible;
}

/* ===== Tech Stack Mouse Scroll ===== */
#tech-stack {
    background: #f9f9ff;
}

.tech-scroll-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 10px;
}

/* hide scrollbar but keep scroll */
.tech-scroll-wrapper::-webkit-scrollbar {
    height: 6px;
}

.tech-scroll-wrapper::-webkit-scrollbar-thumb {
    background: #c7baf7;
    border-radius: 10px;
}

.tech-scroll-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.tech-scroll {
    display: flex;
    gap: 20px;
    padding: 10px 0;
    min-width: max-content;
}

.tech-card {
    padding: 14px 30px;
    background: linear-gradient(135deg, #9473e6, #6f5bd6);
    color: #fff;
    font-weight: 600;
    border-radius: 30px;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(148, 115, 230, 0.25);
    transition: all 0.3s ease;
    cursor: grab;
}

.tech-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(148, 115, 230, 0.45);
}

.form-control {
    border: 0;
    border-radius: 0;
    border-bottom: 1px solid #c7c7c7;
    height: 60px;
}

.form-control:focus {
    border-color: #41228e;
    outline: 0;
    box-shadow: none !important;
}

textarea.form-control {
    height: 120px;
}


.footer-section {
    background: linear-gradient(135deg, #0f0f1a, #1a1a2e);
    color: #fff;
}

.footer-title {
    color: #9473e6;
    font-size: 18px;
    margin-bottom: 10px;
}

.footer-text {
    color: #cfcfcf;
    font-size: 15px;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.footer-social .social {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    transition: all 0.3s ease;
}

.social.facebook {
    background: #1877f2;
}

.social.instagram {
    background: radial-gradient(circle at 30% 107%,
            #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}

.social.linkedin {
    background: #0a66c2;
}

.social.github {
    background: #24292e;
}

.footer-social .social:hover {
    transform: translateY(-6px) scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 0;
    background: #0b0b14;
}

.footer-bottom p {
    margin: 0;
    color: #aaa;
    font-size: 14px;
}

.footer-bottom span {
    color: #9473e6;
}