:root {
    --primary: #9d4edd;
    --primary-dark: #9500ff;
    --dark: #121212;
    --dark-light: #1a1a1a;
    --light: #f5f5f5;
}

body {
    background-color: var(--dark);
    color: var(--light);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

.navbar {
    background-color: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 2px;
}

.nav-link {
    color: var(--light);
    transition: color 0.3s ease;
    margin: 0 10px;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link::after,
.nav-link.active::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.btn-signin {
    background-color: var(--dark-light);
    color: var(--light);
    border: 1px solid var(--primary);
    border-radius: 50px;
    padding: 8px 25px;
    transition: all 0.3s ease;
}

.btn-signin:hover {
    background-color: var(--primary);
    color: var(--light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(157, 78, 221, 0.4);
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(
        circle,
        var(--primary) 0%,
        rgba(157, 78, 221, 0) 70%
    );
    top: 10%;
    left: 5%;
    opacity: 0.15;
    filter: blur(50px);
    animation: pulse 8s ease-in-out infinite alternate;
}

.hero::after {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(
        circle,
        var(--primary) 0%,
        rgba(157, 78, 221, 0) 70%
    );
    bottom: 5%;
    right: 5%;
    opacity: 0.1;
    filter: blur(60px);
    animation: pulse 10s ease-in-out infinite alternate-reverse;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.15;
    }

    100% {
        transform: scale(1);
        opacity: 0.1;
    }
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1rem;
    color: #aaaaaa;
    margin-bottom: 2rem;
}

.btn-primary {
    background-color: var(--primary);
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-right: 15px;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(157, 78, 221, 0.4);
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: rgba(157, 78, 221, 0.1);
    transform: translateY(-2px);
}

.intro-tag {
    background-color: rgba(157, 78, 221, 0.2);
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: inline-block;
}

.card {
    background-color: var(--dark-light);
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    height: 100%;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(157, 78, 221, 0.2);
}

.card-body {
    padding: 2rem;
}

.card-title {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--light);
}

.card-text {
    color: #aaaaaa;
    font-size: 0.9rem;
}

.section-title {
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: "";
    position: absolute;
    width: 50%;
    height: 4px;
    background-color: var(--primary);
    bottom: -10px;
    left: 0;
    border-radius: 2px;
}

.service-image {
    width: 100%;
    min-height: 300px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 19 / 1;
    border-radius: 80px;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;

    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.card:hover .service-icon {
    background-color: var(--primary);
    transform: scale(1.1);
}

.project-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(157, 78, 221, 0.2);
}

.project-img {
    width: 100%;
    aspect-ratio: 16 / 9; /* or 4 / 3, depending on design */
    object-fit: cover;
    transition: all 0.5s ease;
    display: block;
}

.project-card:hover .project-img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(18, 18, 18, 0.9), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: all 0.4s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-title {
    color: var(--light);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.project-link {
    color: var(--light);
    padding: 10px;
    background-color: var(--primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.project-link:hover {
    background-color: var(--primary-dark);
    transform: scale(1.1);
}

.testimonial-container {
    overflow: hidden;
    position: relative;
}

.testimonial-slider {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-card {
    flex: 0 0 auto;
    width: 350px;
    margin-right: 30px;
    background-color: var(--dark-light);
    border-radius: 15px;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), 0 0 15px rgba(157, 78, 221, 0.1);
}

.testimonial-card::before {
    content: "\201C";
    font-size: 4rem;
    font-family: Georgia, serif;
    position: absolute;
    top: 10px;
    left: 20px;
    color: rgba(157, 78, 221, 0.2);
    line-height: 1;
}

.testimonial-text {
    color: #cccccc;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.author-info h5 {
    margin: 0;
    font-weight: 600;
    font-size: 1rem;
}

.author-info span {
    color: #aaaaaa;
    font-size: 0.85rem;
}

.slider-controls {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.slider-btn {
    width: 50px;
    height: 50px;
    background-color: var(--dark-light);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background-color: var(--primary);
}

.slider-btn i {
    color: var(--light);
    font-size: 1.2rem;
}

ul.pagination {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 20px 0 !important;
    background-color: transparent;
}

ul.pagination .page-item {
    display: inline-block;
}

ul.pagination .page-link,
ul.pagination button.page-link {
    background-color: #8d46c6 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

ul.pagination .page-link:hover,
ul.pagination button.page-link:hover {
    background-color: #2c2a2f !important;
}

ul.pagination .page-item.disabled .page-link {
    opacity: 0.5 !important;
    cursor: not-allowed;
}

.footer {
    background-color: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(10px);
    color: #f5f5f5;
    padding: 4rem 0 1rem;
    position: relative;
}

.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* This ensures clicks pass through this layer */
}

/* Brand section */
.footer-brand {
    position: relative;
}

.footer-logo {
    width: 180px;
    height: 120px;
    border-radius: 20px;
    object-fit: contain;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: translateY(-5px);
}

.footer-tagline {
    font-size: 0.95rem;
    color: #bbb;
    margin-bottom: 1.5rem;
    max-width: 300px;
    line-height: 1.6;
}

/* Contact info */
.contact-info {
    margin-top: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    color: #bbb;
    position: relative;
    /* Added to make sure links are clickable */
}

.contact-item i {
    color: var(--primary);
    font-size: 1rem;
    margin-right: 0.75rem;
    min-width: 20px;
}

.contact-link {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    /* Ensures this element gets its own stack context */
    z-index: 5;
    /* Higher than the background elements */
    display: inline-block;
    /* Ensures the link occupies space */
    padding: 2px 0;
    /* Add a bit of padding to make clicking easier */
}

.contact-link:hover {
    color: var(--primary);
}

/* Widget sections */
.footer-widget {
    position: relative;
    margin-bottom: 2rem;
}

.footer-widget-title {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-widget-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(to right, var(--primary), transparent);
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

.footer-menu li {
    position: relative;
    padding-left: 0;
    margin-bottom: 0.75rem;
    transition: transform 0.3s ease;
}

.footer-menu li:hover {
    transform: translateX(5px);
}

.footer-link {
    color: #bbb;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    display: block;
    position: relative;
    z-index: 5;
    padding: 2px 0;
}

.footer-link:hover {
    color: var(--primary);
}

/* Social links */
.social-links-container {
    margin-top: 1.5rem;
    position: relative;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    position: relative;
    z-index: 5;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(157, 78, 221, 0.1);
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
    /* Higher z-index to ensure clickability */
}

.social-link:hover {
    background-color: var(--primary);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(157, 78, 221, 0.3);
}

.social-link i {
    font-size: 1.1rem;
}

/* Copyright bar */
.copyright-bar {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.copyright-bar p {
    color: #888;
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .footer {
        padding-top: 3rem;
    }

    .footer-widget-title {
        margin-top: 1rem;
        /* text-align: center; */
    }
}

@media (max-width: 767.98px) {
    .footer-logo {
        width: 150px;
        height: 100px;
    }

    .social-links {
        justify-content: center;
    }

    .footer-widget {
        text-align: center;
    }

    .footer-widget-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .contact-item {
        justify-content: center;
    }

    .footer-menu li:hover {
        transform: translateX(0) translateY(-3px);
    }
}

@media (max-width: 767.98px) {
    .footer-widget-title {
        margin-top: 1rem;
        text-align: center;
    }
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-top: 3rem;
    text-align: center;
    color: #aaaaaa;
    font-size: 0.9rem;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
}

.back-to-top i {
    font-size: 1.2rem;
}

/* 3D Elements Styling */
.cube-container {
    position: relative;
    width: 400px;
    height: 400px;
    perspective: 1000px;
    margin: 0 auto;
}

.cube {
    width: 100%;
    height: 100%;
    cursor: grab;
    transform-style: preserve-3d;
    transform: rotateX(20deg) rotateY(-30deg);
    animation: rotate 20s infinite linear;
}

@keyframes rotate {
    0% {
        transform: rotateX(20deg) rotateY(0deg);
    }

    100% {
        transform: rotateX(20deg) rotateY(360deg);
    }
}

.cube-face {
    position: absolute;
    width: 200px;
    height: 200px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: bold;
    box-shadow: 0 0 20px rgba(157, 78, 221, 0.3);
}

.cube-front {
    background-color: rgba(157, 78, 221, 0.7);
    transform: translateZ(100px);
}

.cube-back {
    background-color: rgba(123, 44, 191, 0.7);
    transform: rotateY(180deg) translateZ(100px);
}

.cube-top {
    background-color: rgba(157, 78, 221, 0.7);
    transform: rotateX(90deg) translateZ(100px);
}

.cube-bottom {
    background-color: rgba(123, 44, 191, 0.7);
    transform: rotateX(-90deg) translateZ(100px);
}

.cube-left {
    background-color: rgba(157, 78, 221, 0.7);
    transform: rotateY(-90deg) translateZ(100px);
}

.cube-right {
    background-color: rgba(123, 44, 191, 0.7);
    transform: rotateY(90deg) translateZ(100px);
}

.floating-box {
    position: absolute;
    width: 80px;
    height: 80px;
    background-color: var(--primary);
    border-radius: 10px;
    filter: drop-shadow(0 0 15px rgba(157, 78, 221, 0.5));
    animation: float 6s ease-in-out infinite;
    z-index: -1;
}

.floating-box:nth-child(2) {
    top: 20%;
    right: 10%;
    width: 50px;
    height: 50px;
    animation-delay: 1s;
    animation-duration: 8s;
}

.floating-box:nth-child(3) {
    bottom: 15%;
    left: 5%;
    width: 40px;
    height: 40px;
    animation-delay: 2s;
    animation-duration: 7s;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(10deg);
    }

    100% {
        transform: translateY(0) rotate(0deg);
    }
}

/* Responsive */

@media (min-width: 992px) {
    .cube-container {
        margin-top: 250px;
    }
}

@media (max-width: 991px) {
    .hero-content h1 {
        font-size: 3rem;
        margin-top: 100px;
    }

    .cube-container {
        width: 200px;
        height: 200px;
        margin-top: 100px;
    }

    .cube-face {
        width: 150px;
        height: 150px;
    }

    .cube-front {
        transform: translateZ(75px);
    }

    .cube-back {
        transform: rotateY(180deg) translateZ(75px);
    }

    .cube-top {
        transform: rotateX(90deg) translateZ(75px);
    }

    .cube-bottom {
        transform: rotateX(-90deg) translateZ(75px);
    }

    .cube-left {
        transform: rotateY(-90deg) translateZ(75px);
    }

    .cube-right {
        transform: rotateY(90deg) translateZ(75px);
    }
}

@media (max-width: 767.98px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .btn-secondary {
        height: 50px;
    }

    .hero {
        padding: 80px 0;
    }

    .cube-container {
        display: none;
    }

    .floating-box {
        display: none;
    }

    .cube-face {
        display: none;
    }

    .hero::before {
        display: none;
    }

    .hero::after {
        display: none;
    }

    .testimonial-card {
        width: 290px;
    }
}
