/* Additional Styles for Musicbox Project Page */

/* 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;
}

/* 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;
}

.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);
    }
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Mouse Follower */
.mouse-follower {
    position: fixed;
    width: 150px;
    height: 150px;
    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 Styles */
.project-header {
    padding: 4rem 0 2rem;
}

.project-meta {
    margin-bottom: 2rem;
}

.project-category {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(138, 86, 172, 0.2);
    border-radius: 4px;
    color: #d1a5ff;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.project-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    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;
    color: rgba(255, 255, 255, 0.7);
}

.project-image-main {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-image-main img {
    width: 100%;
    height: auto;
    display: block;
}

/* Project Overview */
.project-overview {
    padding: 5rem 0 3rem;
}

.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;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    max-width: 900px;
}

.key-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    background: rgba(20, 20, 40, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(138, 86, 172, 0.2);
}

.feature-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, rgba(138, 86, 172, 0.2), rgba(216, 59, 125, 0.2));
    border-radius: 50%;
    margin-bottom: 1.5rem;
    color: #d1a5ff;
}

.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 */
.project-details {
    padding: 3rem 0;
}

.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;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.detail-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Security Features */
.security-features {
    padding: 4rem 0;
    background: rgba(10, 10, 30, 0.3);
    backdrop-filter: blur(5px);
}

.security-features h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(to right, #ffffff, #d1a5ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.security-card {
    background: rgba(20, 20, 40, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.security-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(138, 86, 172, 0.2);
}

.security-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, rgba(138, 86, 172, 0.2), rgba(216, 59, 125, 0.2));
    border-radius: 50%;
    margin-bottom: 1rem;
    color: #d1a5ff;
}

.security-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: white;
}

.security-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
}

/* Project Results */
.project-results {
    padding: 5rem 0;
}

.project-results h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 3rem;
    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(20, 20, 40, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #8a56ac, #d83b7d);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

.testimonial {
    background: rgba(20, 20, 40, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    position: relative;
}

.testimonial blockquote {
    font-size: 1.2rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
    position: relative;
    padding-left: 2rem;
}

.testimonial blockquote::before {
    content: "";
    position: absolute;
    left: -1rem;
    top: -1rem;
    font-size: 5rem;
    opacity: 0.2;
    color: #d83b7d;
    line-height: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(138, 86, 172, 0.3);
}

.author-image img {
    width: 100%;
    height: auto;
}

.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 */
.project-gallery {
    padding: 5rem 0;
}

.project-gallery h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 3rem;
    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-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.gallery-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(138, 86, 172, 0.2);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* User Experience Section */
.user-experience {
    padding: 5rem 0;
    background: rgba(10, 10, 30, 0.3);
    backdrop-filter: blur(5px);
}

.user-experience h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(to right, #ffffff, #d1a5ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.ux-process {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.ux-step {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.step-number {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.1);
    line-height: 1;
}

.step-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #d1a5ff;
}

.step-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

/* Related Projects */
.related-projects {
    padding: 5rem 0;
}

.related-projects h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 3rem;
    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-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: rgba(20, 20, 40, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(138, 86, 172, 0.2);
}

.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.05);
}

.project-card-content {
    padding: 1.5rem;
}

.project-card-content .project-category {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(138, 86, 172, 0.2);
    border-radius: 4px;
    color: #d1a5ff;
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
}

.project-card-content h3 {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 0.5rem;
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(90, 54, 133, 0.2), rgba(216, 59, 125, 0.2));
    backdrop-filter: blur(10px);
    border-radius: 12px;
    margin: 0 2rem 5rem;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #ffffff, #d1a5ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.cta-content p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.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;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(137, 86, 172, 0.4);
}

/* Contact Form Popup */
.contact-popup {
    position: fixed;
    top: 0;
    right: -500px;
    width: 450px;
    max-width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #151530, #0d0d1a);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.contact-popup.active {
    transform: translateX(-500px);
}

.contact-popup-content {
    padding: 2rem;
}

.contact-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-popup-header h2 {
    font-size: 1.8rem;
    background: linear-gradient(to right, #ffffff, #d1a5ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.close-popup {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.8rem;
    cursor: pointer;
    transition: color 0.3s;
}

.close-popup:hover {
    color: white;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: white;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(138, 86, 172, 0.5);
    box-shadow: 0 0 0 2px rgba(138, 86, 172, 0.2);
}

.submit-btn {
    display: block;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(45deg, #8a56ac, #d83b7d);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(137, 86, 172, 0.3);
}

.thank-you-message {
    display: none;
    text-align: center;
    padding: 2rem 1rem;
}

.thank-you-message.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.thank-you-message svg {
    color: #d83b7d;
    margin-bottom: 1.5rem;
}

.thank-you-message h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.thank-you-message p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
}

.close-thank-you {
    padding: 0.8rem 2rem;
    background: linear-gradient(45deg, #8a56ac, #d83b7d);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.close-thank-you:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(137, 86, 172, 0.3);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .project-title {
        font-size: 2.5rem;
    }
    
    .detail-grid {
        gap: 2rem;
    }
}

@media (max-width: 992px) {
    .project-header {
        padding: 3rem 0 1.5rem;
    }
    
    .project-title {
        font-size: 2.2rem;
    }
    
    .key-features {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .detail-grid, 
    .detail-grid.reverse {
        grid-template-columns: 1fr;
        gap: 2rem;
        direction: ltr;
    }
    
    .detail-image {
        order: -1;
    }
    
    .detail-grid.reverse .detail-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .project-client {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .project-title {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonial {
        padding: 2rem;
    }
    
    .ux-step {
        gap: 1rem;
    }
    
    .step-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .project-title {
        font-size: 1.8rem;
    }
    
    .project-category {
        font-size: 0.8rem;
    }
    
    .overview-content h2,
    .detail-text h2,
    .security-features h2,
    .project-results h2,
    .project-gallery h2,
    .user-experience h2,
    .related-projects h2 {
        font-size: 1.8rem;
    }
    
    .overview-content p,
    .detail-text p {
        font-size: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    .testimonial blockquote {
        font-size: 1rem;
        padding-left: 1rem;
    }
    
    .contact-popup {
        width: 100%;
    }
}