/* ============================================
   COMPONENTS.CSS - 27 Creative Studio
   All Component Styles with Updated Benefits Grid
   ============================================ */

/* ==================== SERVICES ==================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    border-color: rgba(147, 51, 234, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(147, 51, 234, 0.2);
}

.service-icon {
    display: inline-flex;
    padding: 1rem;
    background: rgba(147, 51, 234, 0.2);
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    width: fit-content;
}

.service-icon svg {
    width: 32px;
    height: 32px;
    color: #c084fc;
}

.service-tagline {
    color: #9ca3af;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.service-price {
    font-size: 2rem;
    font-weight: 800;
    color: #c084fc;
    letter-spacing: -0.02em;
}

.price-container {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.promo-note {
    font-size: 0.75rem;
    color: #9ca3af;
    font-weight: 500;
}

.service-features-visible {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.feature-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
    transition: background 0.3s;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.check-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background: rgba(147, 51, 234, 0.2);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.check-icon svg {
    color: #c084fc;
}

.service-buttons {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
}

.btn-service-preview,
.btn-service-contact {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-service-preview {
    background: linear-gradient(to right, rgba(147, 51, 234, 0.2), rgba(59, 130, 246, 0.2));
    border: 1px solid rgba(147, 51, 234, 0.5);
    color: white;
}

.btn-service-preview:hover {
    background: linear-gradient(to right, rgba(147, 51, 234, 0.4), rgba(59, 130, 246, 0.4));
    border-color: rgba(147, 51, 234, 0.8);
    transform: translateY(-2px);
}

.btn-service-contact {
    background: linear-gradient(to right, #9333ea, #3b82f6);
    color: white;
}

.btn-service-contact:hover {
    background: linear-gradient(to right, #7e22ce, #2563eb);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.4);
}

/* ==================== BENEFITS GRID ==================== */
/* Updated: 3 columns on desktop, 2 on mobile */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
    gap: 1.5rem;
    max-width: 80rem;
    margin: 0 auto;
}

@media (min-width: 640px) and (max-width: 1023px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns on desktop */
        gap: 2rem;
    }
}

.benefit-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.benefit-card:hover {
    border-color: rgba(147, 51, 234, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(147, 51, 234, 0.2);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
}

.benefit-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: flex-start;
}

.benefit-icon {
    flex-shrink: 0;
    padding: 0.875rem;
    background: rgba(147, 51, 234, 0.2);
    border-radius: 0.75rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c084fc;
}

.benefit-icon svg {
    width: 24px;
    height: 24px;
}

.benefit-card:hover .benefit-icon {
    background: rgba(147, 51, 234, 0.35);
    transform: scale(1.1);
}

.benefit-header h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.benefit-header p {
    font-size: 0.875rem;
    color: #9ca3af;
    line-height: 1.6;
}

/* ==================== VIDEO SECTION ==================== */
.video-section {
    background: linear-gradient(to bottom, transparent, rgba(249, 115, 22, 0.05), transparent);
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 56rem;
    margin: 0 auto;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 1rem;
}

/* ==================== BOOKING SECTION ==================== */
.booking-section {
    position: relative;
    background: linear-gradient(to bottom, rgba(147, 51, 234, 0.05), transparent, rgba(59, 130, 246, 0.05));
    overflow: hidden;
}

.booking-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(147, 51, 234, 0.15), transparent 70%);
}

.booking-container {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .booking-container {
        grid-template-columns: 1fr 1.2fr;
    }
}

.booking-content {
    position: sticky;
    top: 2rem;
}

.booking-benefits {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.booking-benefit-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    transition: all 0.3s;
}

.booking-benefit-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(147, 51, 234, 0.3);
    transform: translateX(4px);
}

.booking-benefit-item svg {
    flex-shrink: 0;
    color: #c084fc;
}

/* Booking Form */
.booking-form-container {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #e5e7eb;
    letter-spacing: 0.025em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: #e5e7eb;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(147, 51, 234, 0.5);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #6b7280;
}

.form-group select {
    cursor: pointer;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: linear-gradient(to right, #9333ea, #3b82f6);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    border: none;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 0.5rem;
}

.btn-submit:hover {
    background: linear-gradient(to right, #7e22ce, #2563eb);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(147, 51, 234, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-message {
    padding: 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    text-align: center;
    display: none;
    animation: slideIn 0.3s ease-out;
}

.form-message.success {
    display: block;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

.form-message.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== REVIEWS CAROUSEL ==================== */
.carousel-container {
    max-width: 56rem;
    margin: 0 auto;
    position: relative;
}

.review-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem 3rem;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.reviewer {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.avatar {
    width: 64px;
    height: 64px;
    border-radius: 9999px;
    background: linear-gradient(135deg, #9333ea, #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.25rem;
    color: white;
}

.stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.star {
    color: #fbbf24;
    fill: #fbbf24;
}

.carousel-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
}

.carousel-btn {
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.3s;
    color: white;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.carousel-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    width: 32px;
    background: #c084fc;
}

/* ==================== TECH STACK ==================== */
.tech-display {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    margin-bottom: 3rem;
}

.tech-icon-container {
    padding: 2rem;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 42rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .tech-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.tech-btn {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

.tech-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.tech-btn.active {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.2), rgba(59, 130, 246, 0.2));
    border-color: rgba(147, 51, 234, 0.5);
    transform: scale(1.05);
}

/* ==================== PRICING CARDS ==================== */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.pricing-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s;
}

.pricing-card:hover {
    border-color: rgba(147, 51, 234, 0.5);
}

.pricing-card.featured {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.2), rgba(59, 130, 246, 0.2));
    border-color: rgba(147, 51, 234, 0.5);
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(147, 51, 234, 0.3);
}

/* ==================== CONTACT GRID ==================== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 60rem;
    margin: 0 auto;
}

.contact-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-card:hover {
    border-color: rgba(147, 51, 234, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(147, 51, 234, 0.2);
}

.contact-card-icon {
    width: 64px;
    height: 64px;
    background: rgba(147, 51, 234, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: #c084fc;
}

.contact-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: white;
}

.contact-card p {
    font-size: 1rem;
    color: #c084fc;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-card-label {
    font-size: 0.875rem;
    color: #9ca3af;
}

/* ==================== FOOTER ==================== */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4rem 0 2rem;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.5));
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: 1.5fr 2fr;
    }
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    transition: all 0.3s;
    text-decoration: none;
}

.social-link:hover {
    background: rgba(147, 51, 234, 0.2);
    border-color: rgba(147, 51, 234, 0.5);
    color: #c084fc;
    transform: translateY(-2px);
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 2rem;
}

.footer-column h4 {
    font-size: 0.875rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-column .footer-link {
    display: block;
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    transition: color 0.3s;
    text-align: left;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.footer-column .footer-link:hover {
    color: #c084fc;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #9ca3af;
    font-size: 0.875rem;
}

/* ==================== MODAL ==================== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 50;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e, #000000);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    max-width: 56rem;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    position: sticky;
    top: 0;
    background: linear-gradient(to right, rgba(147, 51, 234, 0.2), rgba(59, 130, 246, 0.2));
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-close {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: white;
}

.modal-body {
    padding: 2rem;
    color: #d1d5db;
}

.modal-body h3 {
    color: white;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.modal-body ul {
    margin-left: 1rem;
}

.modal-body li {
    margin-bottom: 0.5rem;
}

.modal-footer {
    position: sticky;
    bottom: 0;
    background: linear-gradient(to top, #1a1a2e, transparent);
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-modal-close {
    width: 100%;
    background: #9333ea;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-modal-close:hover {
    background: #7e22ce;
}

/* ==================== RESPONSIVE ADJUSTMENTS ==================== */
@media (max-width: 639px) {
    /* Benefits - 1 column on small mobile */
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .benefit-card {
        padding: 1.5rem;
    }
    
    .benefit-icon {
        padding: 0.75rem;
    }
    
    .benefit-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .benefit-header h3 {
        font-size: 1rem;
    }
    
    .benefit-header p {
        font-size: 0.8125rem;
    }
    
    /* Booking form adjustments */
    .booking-form-container {
        padding: 1.5rem;
    }
    
    .booking-content {
        position: static;
    }
    
    /* Video adjustments */
    .video-container {
        border-radius: 0.5rem;
    }
}