/* Project Card Hover Effect */
.project-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    /* glassmorphism effect */
    backdrop-filter: blur(10px);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.swiper-button-next,
.swiper-button-prev {
    color: #00d4ff;
    /* accent color */
}

.swiper-pagination-bullet-active {
    background-color: #6c63ff;
}

:root {

    --primary: #7c3aed;
    --secondary: #06b6d4;

    --dark: #09090b;
    --card: #18181b;

}
body {
    background: var(--dark);
    color: white;
    overflow-x: hidden;
}

#hero {

    position: relative;
    min-height: 100vh;
    overflow: hidden;

}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 50px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .1);
    backdrop-filter: blur(12px);
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
        
    }
    .hero-badge {
        margin: 15px auto;
    }
    .sm-text-center {
        text-align: center;
    }
}

.gradient-text {

    background:
        linear-gradient(135deg,
            #7c3aed,
            #06b6d4);

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

}

.hero-typing {

    font-size: 1.8rem;

    color: #06b6d4;

    min-height: 70px;

    margin-top: 20px;

}

.hero-description {
    margin-top: 25px;
    font-size: 1.1rem;
    color: #b3b3b3;
    max-width: 700px;
    text-align: justify;
}

.hero-buttons {
    margin-top: 35px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-card {
    padding: 40px;
    border-radius: 25px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .08);
    backdrop-filter: blur(20px);
    box-shadow:
        0 0 40px rgba(124, 58, 237, .2);
}

@media (max-width: 768px) {
    .hero-card {
        margin-top: 50px;
    }

    .hero-buttons a {
        margin: 0 auto;
    }
}

.stat-item {

    text-align: center;

    margin: 20px 0;

}

.stat-item h3 {

    color: #06b6d4;

    font-size: 2rem;

    font-weight: 700;

}

.navbar {
    background: rgba(9, 9, 11, .7) !important;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1030;
    transition: background 0.3s;
}

.navbar.scrolled {
    background: rgba(17, 17, 17, 0.95) !important;
}
.nav-link.active {
    color: #7c3aed !important;
}

#tech-stack {
    padding: 120px 0;
    position: relative;
}

.section-subtitle {
    color: #06b6d4;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: .9rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-top: 15px;
}

.section-description {
    max-width: 700px;
    margin: auto;
    color: #a1a1aa;
    margin-top: 20px;
}

.tech-card {

    text-align: center;

    padding: 35px 25px;

    border-radius: 24px;

    background: rgba(255, 255, 255, .04);

    border: 1px solid rgba(255, 255, 255, .06);

    backdrop-filter: blur(20px);

    transition: .4s;

    height: 100%;

}

.tech-card:hover {

    transform:
        translateY(-12px);

    box-shadow:
        0 0 40px rgba(124, 58, 237, .2);

}

.tech-card i {

    font-size: 3rem;

    margin-bottom: 20px;

    background:
        linear-gradient(135deg,
            #7c3aed,
            #06b6d4);

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

}

.tech-card h4 {

    font-weight: 700;

    margin-bottom: 10px;

}

.tech-card p {

    color: #a1a1aa;

    margin: 0;

}

#projects {
    padding: 100px 0;
}

.project-card {
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .06);
    backdrop-filter: blur(20px);
    padding: 25px 20px;
    border-radius: 20px;
    transition: .4s;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 0 40px rgba(124, 58, 237, .2);
}

.project-header h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.project-header span {
    color: #a1a1aa;
    font-size: .95rem;
}

.project-status {
    margin: 15px 0;
    font-size: .9rem;
    color: #06b6d4;
    font-weight: 600;
}

.project-card a.btn {
    align-self: flex-start;
}

#services {

    padding: 120px 0;

}

.service-card {

    position: relative;

    height: 100%;

    padding: 35px;

    border-radius: 24px;

    background:
        rgba(255, 255, 255, .04);

    border:
        1px solid rgba(255, 255, 255, .06);

    backdrop-filter:
        blur(20px);

    transition: .4s;

    overflow: hidden;

}

.service-card:hover {

    transform:
        translateY(-10px);

    box-shadow:
        0 0 40px rgba(124, 58, 237, .2);

}

.service-icon {

    width: 70px;
    height: 70px;

    border-radius: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 25px;

    background:
        linear-gradient(135deg,
            rgba(124, 58, 237, .2),
            rgba(6, 182, 212, .2));

}

.service-icon i {

    font-size: 2rem;

    background:
        linear-gradient(135deg,
            #7c3aed,
            #06b6d4);

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

}

.service-card h3 {

    font-size: 1.4rem;
    font-weight: 700;

    margin-bottom: 15px;

}

.service-card p {

    color: #a1a1aa;

    margin: 0;

    line-height: 1.8;

}

.service-card::before {

    content: '';

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 2px;

    background:
        linear-gradient(90deg,
            #7c3aed,
            #06b6d4);

    opacity: 0;

    transition: .4s;

}

.service-card:hover::before {

    opacity: 1;

}

#why-me {

    padding: 120px 0;

}

.why-card {

    position: relative;

    height: 100%;

    padding: 40px;

    border-radius: 24px;

    background:
        rgba(255, 255, 255, .04);

    border:
        1px solid rgba(255, 255, 255, .06);

    backdrop-filter:
        blur(20px);

    transition: .4s;

}

.why-card:hover {

    transform:
        translateY(-10px);

    box-shadow:
        0 0 40px rgba(124, 58, 237, .2);

}

.why-number {

    font-size: 4rem;

    font-weight: 800;

    line-height: 1;

    margin-bottom: 20px;

    background:
        linear-gradient(135deg,
            #7c3aed,
            #06b6d4);

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

}

.why-card h3 {

    font-size: 1.5rem;

    margin-bottom: 15px;

    font-weight: 700;

}

.why-card p {

    color: #a1a1aa;

    line-height: 1.8;

    margin: 0;

}

.metrics-strip {

    margin-top: 70px;

    padding: 40px;

    border-radius: 24px;

    background:
        rgba(255, 255, 255, .04);

    display: flex;

    justify-content: space-around;

    flex-wrap: wrap;

    gap: 30px;

    text-align: center;

}

.metrics-strip h3 {

    font-size: 2.5rem;

    font-weight: 800;

    color: #06b6d4;

}

#cta {

    background:
        linear-gradient(135deg,
            #7c3aed,
            #06b6d4);

    color: white;

    padding: 120px 0;

    position: relative;

    overflow: hidden;

    text-align: center;

}

.cta-title {

    font-size: 3rem;

    font-weight: 800;

    margin-bottom: 20px;

}

.cta-description {

    font-size: 1.2rem;

    max-width: 700px;

    margin: auto;

    color: rgba(255, 255, 255, 0.9);

}

#cta a.btn {

    padding: 15px 35px;

    font-size: 1.1rem;

    font-weight: 700;

    border-radius: 50px;

    transition: .4s;

}

#cta a.btn:hover {

    transform: translateY(-5px);

    box-shadow: 0 0 30px rgba(255, 255, 255, .4);

}

#cta-particles {
    height: 250px;
}

@media (max-width:768px){
    #cta-particles {
        height: 450px;
    }
}

#contact {

    padding: 120px 0;

}

.contact-info-card,
.contact-form-card {

    height: 100%;

    padding: 40px;

    border-radius: 24px;

    background:
        rgba(255, 255, 255, .04);

    border:
        1px solid rgba(255, 255, 255, .06);

    backdrop-filter:
        blur(20px);

}

.contact-info-card h3 {

    margin-bottom: 35px;

    font-weight: 700;

}

.contact-item {

    display: flex;

    gap: 20px;

    margin-bottom: 30px;

}

.contact-item i {

    font-size: 1.8rem;

    color: #06b6d4;

    margin-top: 4px;

}

.contact-item p {

    margin: 0;

    color: #a1a1aa;

}

.form-control,
.form-select {

    background:
        rgba(255, 255, 255, .05);

    border:
        1px solid rgba(255, 255, 255, .08);

    color: white;

    padding: 15px;

}

.form-control:focus,
.form-select:focus {

    box-shadow: none;

    border-color: #06b6d4;

    background:
        rgba(255, 255, 255, .05);

    color: white;

}

textarea {

    resize: none;

}

#footer {

    background: #111;

    color: #c1c1c1;

    position: relative;

    font-size: 0.95rem;

}

#footer h3,
#footer h5 {
    color: #fff;
    margin-bottom: 15px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links li a {
    color: #c1c1c1;
    text-decoration: none;
    transition: 0.3s;
}

.footer-links li a:hover {
    color: #7c3aed;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
}

#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #7c3aed;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: 0.3s;
}

#backToTop:hover {
    background: #06b6d4;
    transform: translateY(-5px);
}

#technologies {

    padding: 120px 0;

}

.nav-pills .nav-link {

    border-radius: 50px;

    padding: 10px 25px;

    margin: 5px;

    font-weight: 600;

    transition: .4s;

}

.nav-pills .nav-link.active {

    background: linear-gradient(135deg, #7c3aed, #06b6d4);

    color: white;

}

.tech-card {

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;

    padding: 20px;

    border-radius: 24px;

    background: rgba(255, 255, 255, .04);

    border: 1px solid rgba(255, 255, 255, .06);

    backdrop-filter: blur(20px);

    transition: .4s;

}

.tech-card:hover {

    transform: translateY(-10px);

    box-shadow: 0 0 40px rgba(124, 58, 237, .2);

}

.tech-card i {

    background: linear-gradient(135deg, #7c3aed, #06b6d4);

    -webkit-background-clip: text;

    -webkit-text-fill-color: transparent;

}

.tech-card p {

    margin-top: 10px;

    font-weight: 600;

}

/* Initial state (hidden and scaled down) */
.animate-modal {
    transform: scale(0.8);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

/* Active state when modal is shown */
.animate-modal.showing {
    transform: scale(1);
    opacity: 1;
}

.animate-modal.showing {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.animate-modal {
    transform: translateY(-50px) scale(0.8);
    opacity: 0;
}

.project-btn {
    position: relative;
    overflow: hidden;
    border-radius: 50px;
    padding: 8px 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    transform: translateZ(0);
}

/* subtle lift on hover */
.project-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.25);
}

/* animated shine effect */
.project-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent,
            rgba(255, 255, 255, 0.35),
            transparent);
    transform: skewX(-20deg);
}

/* shine animation on hover */
.project-btn:hover::before {
    animation: shine 0.8s ease;
}

@keyframes shine {
    100% {
        left: 125%;
    }
}

.project-btn:active {
    transform: translateY(0px) scale(0.96);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.project-btn {
    position: relative;
}

.project-btn {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: scale(0);
    animation: rippleEffect 0.6s linear;
    pointer-events: none;
}

@keyframes rippleEffect {
    to {
        transform: scale(20);
        opacity: 0;
    }
}

.clickable-modal {
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}
.clickable-modal:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(124, 58, 237, 0.2);
}
.clickable-modal img {
    transition: transform 0.3s;
}
.clickable-modal:hover img {
    transform: scale(1.05);
}
#scrollProgressContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1050;
}

#scrollProgress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #7c3aed, #06b6d4);
    transition: width 0.1s ease-out;
}