/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #0a0a1a;
    color: #ffffff;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Background Gradient Effect */
.bg-gradient {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: -1;
}

.gradient-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    animation: flow 15s infinite alternate ease-in-out;
}

.shape-1 {
    background: linear-gradient(45deg, #5a3685, #d83b7d);
    width: 70vw;
    height: 70vw;
    top: -20%;
    right: -20%;
    opacity: 0.6;
    animation-delay: 0s;
}

.shape-2 {
    background: linear-gradient(45deg, #3c1053, #ad2677);
    width: 60vw;
    height: 60vw;
    bottom: -30%;
    left: -10%;
    opacity: 0.5;
    animation-delay: -7s;
}

/* Add a third shape for more motion */
.shape-3 {
    background: linear-gradient(45deg, #7b4397, #dc2430);
    width: 50vw;
    height: 50vw;
    top: 40%;
    right: -10%;
    opacity: 0.4;
    animation-delay: -3s;
}

@keyframes flow {
    0% {
        transform: translateY(0) translateX(0) scale(1);
    }
    50% {
        transform: translateY(-5%) translateX(3%) scale(1.05);
    }
    100% {
        transform: translateY(5%) translateX(-3%) scale(0.95);
    }
}

/* Header and Navigation */
header {
    width: 100%;
    padding: 1.5rem 2rem;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    max-width: 100%;
    object-fit: contain;
}

.contact-info {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
}

.contact-info a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.contact-info a:hover {
    opacity: 0.8;
}

/* Main Navigation */
.main-navigation {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    background: rgba(20, 20, 40, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-top: 1rem;
}

.nav-tabs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-tab {
    padding: 0.8rem 1.2rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-tab::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(45deg, #8a56ac, #d83b7d);
    transition: width 0.3s ease;
}

.nav-tab:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.nav-tab:hover::before {
    width: 100%;
}

.nav-tab.active {
    color: white;
    background: rgba(255, 255, 255, 0.15);
}

.nav-tab.active::before {
    width: 100%;
}

/* Mouse follower */
.mouse-follower {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(138, 86, 172, 0.6) 0%, rgba(216, 59, 125, 0.3) 50%, rgba(0, 0, 0, 0) 70%);
    transform: translate(-50%, -50%);
    filter: blur(20px);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.mouse-follower.visible {
    opacity: 1;
}

/* Project Header Section */
.project-header {
    padding: 4rem 0 3rem;
}

.project-meta {
    margin-bottom: 2rem;
}

.project-category {
    display: inline-block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #d83b7d;
    margin-bottom: 1rem;
}

.project-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #ffffff, #d1a5ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.project-client {
    display: flex;
    gap: 2rem;
    font-size: 1rem;
    opacity: 0.7;
}

.project-image-main {
    width: 300px;  /* desired width */
    height: 200px; /* desired height */
    overflow: hidden;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.project-image-main img {
    width: 100%;
    height: auto;
    object-fit: cover; /* crops the image to cover the container */
    object-position: center; /* positions the cropping at the center */
    display: block;
}

/* Project Overview Section */
.project-overview {
    padding: 5rem 0;
}

.overview-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #ffffff, #d1a5ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.overview-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 900px;
}

.key-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 12px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.feature-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #5a3685, #d83b7d);
    border-radius: 50%;
    color: white;
}

.feature h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: white;
}

.feature p {
    font-size: 1rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
}

/* Project Details Section */
.project-details {
    padding: 5rem 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.15), rgba(90, 54, 133, 0.2));
    position: relative;
    overflow: hidden;
}

.project-details::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(circle at 20% 80%, rgba(216, 59, 125, 0.15), transparent 40%);
    z-index: 0;
}

.project-details .container {
    position: relative;
    z-index: 1;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 5rem;
}

.detail-grid.reverse {
    grid-template-columns: 1fr 1fr;
    direction: rtl;
}

.detail-grid.reverse .detail-text {
    direction: ltr;
}

.detail-grid.reverse .detail-image {
    direction: ltr;
}

.detail-text h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #ffffff, #d1a5ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.detail-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.detail-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
}

.detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Project Results Section */
.project-results {
    padding: 5rem 0;
}

.project-results h2 {
    font-size: 2.2rem;
    margin-bottom: 3rem;
    text-align: center;
    background: linear-gradient(to right, #ffffff, #d1a5ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #d83b7d;
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.testimonial {
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 12px;
    margin: 0 auto;
    max-width: 900px;
}

.testimonial blockquote {
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1rem;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-info strong {
    font-size: 1.1rem;
    color: white;
}

.author-info span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Project Gallery Section */
.project-gallery {
    padding: 5rem 0;
    background: linear-gradient(to bottom, rgba(90, 54, 133, 0.2), rgba(0, 0, 0, 0.15));
    position: relative;
    overflow: hidden;
}

.project-gallery::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    right: 0;
    background: radial-gradient(circle at 70% 30%, rgba(216, 59, 125, 0.2), transparent 50%);
    z-index: 0;
}

.project-gallery .container {
    position: relative;
    z-index: 1;
}

.project-gallery h2 {
    font-size: 2.2rem;
    margin-bottom: 3rem;
    text-align: center;
    background: linear-gradient(to right, #ffffff, #d1a5ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Related Projects Section */
.related-projects {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.related-projects::before {
    content: "";
    position: absolute;
    width: 60vw;
    height: 60vw;
    bottom: -20%;
    right: -20%;
    background: radial-gradient(circle, rgba(90, 54, 133, 0.15), transparent 70%);
    z-index: 0;
    filter: blur(40px);
}

.related-projects::after {
    content: "";
    position: absolute;
    width: 40vw;
    height: 40vw;
    top: 10%;
    left: -10%;
    background: radial-gradient(circle, rgba(216, 59, 125, 0.1), transparent 70%);
    z-index: 0;
    filter: blur(40px);
}

.related-projects .container {
    position: relative;
    z-index: 1;
}

.related-projects h2 {
    font-size: 2.2rem;
    margin-bottom: 3rem;
    text-align: center;
    background: linear-gradient(to right, #ffffff, #d1a5ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    text-decoration: none;
    color: white;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-7px);
    background: rgba(255, 255, 255, 0.08);
}

.project-card-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.project-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-card-img img {
    transform: scale(1.1);
}

.project-card-content {
    padding: 1.5rem;
}

.project-card .project-category {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.project-card h3 {
    font-size: 1.3rem;
    color: white;
    margin-bottom: 0.5rem;
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(90, 54, 133, 0.3), rgba(216, 59, 125, 0.3));
    border-radius: 20px;
    margin: 3rem auto;
    max-width: 1300px;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: white;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.8);
}

.cta-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(45deg, #8a56ac, #d83b7d);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(137, 86, 172, 0.3);
}

/* Footer */
footer {
    padding: 2rem;
    background: rgba(10, 10, 30, 0.8);
    margin-top: 4rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-content {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-contact {
    display: flex;
    gap: 1.5rem;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-contact a:hover {
    color: white;
}

/* Responsive Design */
@media (max-width: 1100px) {
    .detail-grid, 
    .detail-grid.reverse {
        grid-template-columns: 1fr;
        gap: 2rem;
        direction: ltr;
    }
    
    .detail-text {
        order: 1;
    }
    
    .detail-image {
        order: 2;
    }
    
    .project-title {
        font-size: 2.5rem;
    }
    
    .project-client {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 900px) {
    .contact-info {
        display: none;
    }
    
    .key-features {
        grid-template-columns: 1fr;
    }
    
    .project-title {
        font-size: 2.2rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-tabs {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 0.5rem;
        scrollbar-width: none; /* Firefox */
    }

    .nav-tabs::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Edge */
    }

    .nav-tab {
        padding: 0.7rem 1rem;
    }
    
    .project-header {
        padding: 2rem 0 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonial {
        padding: 1.5rem;
    }
    
    .testimonial blockquote {
        font-size: 1.1rem;
    }
    
    .detail-text h2,
    .overview-content h2,
    .project-results h2,
    .project-gallery h2,
    .related-projects h2 {
        font-size: 1.8rem;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    header {
        padding: 1rem;
    }

    .main-navigation {
        padding: 0.8rem 1rem;
    }

    .nav-tab {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .project-title {
        font-size: 1.8rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .feature {
        padding: 1.5rem;
    }
    
    .cta-section {
        padding: 3rem 1rem;
    }
    
    .cta-content h2 {
        font-size: 1.5rem;
    }
    
    .cta-btn {
        padding: 0.8rem 1.8rem;
        font-size: 1rem;
    }
}