/* ============================================
   RENDER STUDIOS - MAIN STYLESHEET
   Theme: Purple Rain (Deep Dark Mode)
   ============================================ */

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #050505;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* Nebula Background - Purple Rain Effect */
.nebula-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(circle at 50% -20%, rgba(120, 50, 255, 0.5) 0%, rgba(100, 40, 200, 0.3) 40%, #050505 80%);
}

/* Twinkling Stars with Falling Effect */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
    animation: star-fall 25s linear infinite;
}

@keyframes star-fall {
    from {
        transform: translateY(-5%);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    to {
        transform: translateY(15%);
        opacity: 0;
    }
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle var(--duration) ease-in-out infinite;
    animation-delay: var(--delay);
}

@keyframes twinkle {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Glassmorphism Card */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Interactive glass cards (service, pricing, faq) */
.glass-card-interactive {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.glass-card-interactive:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 48px rgba(139, 92, 246, 0.15);
    transform: translateY(-2px);
}

/* Infinite Scroll Animation */
@keyframes scrollUp {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

.scroll-container {
    animation: scrollUp 15s linear infinite;
}

.scroll-container:hover {
    animation-play-state: paused;
}

/* Pulse Animation for Tool Lines */
@keyframes pulse-glow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

@keyframes pulse-flow {
    0% {
        opacity: 0.2;
        filter: blur(0px);
    }
    25% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
        filter: blur(1px);
        box-shadow: 0 0 8px currentColor;
    }
    75% {
        opacity: 0.5;
    }
    100% {
        opacity: 0.2;
        filter: blur(0px);
    }
}

.pulse-line {
    animation: pulse-flow 2.5s ease-in-out infinite;
}

/* Sequential delays for each connector line */
.integration-node:nth-child(1) .pulse-line { animation-delay: 0s; }
.integration-node:nth-child(2) .pulse-line { animation-delay: 0.4s; }
.integration-node:nth-child(3) .pulse-line { animation-delay: 0.8s; }
.integration-node:nth-child(4) .pulse-line { animation-delay: 1.2s; }
.integration-node:nth-child(5) .pulse-line { animation-delay: 1.6s; }
.integration-node:nth-child(6) .pulse-line { animation-delay: 2.0s; }

/* Cursor Blink */
.cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background-color: #8B5CF6;
    margin-left: 2px;
    animation: blink 1s step-end infinite;
    vertical-align: text-bottom;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.8);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #8B5CF6 0%, #3B82F6 50%, #8B5CF6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Metallic White Gradient Text (Hero) */
.gradient-text-metallic {
    background: linear-gradient(180deg, #FFFFFF 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding-bottom: 0.15em;
    display: inline-block;
}

/* Hero Headline Styling */
.hero-headline {
    font-size: clamp(2.75rem, 8vw, 6rem);
    letter-spacing: -0.03em;
    line-height: 1.05;
    overflow: visible;
}

/* Hero Subheadline Responsive */
.hero-sub {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    line-height: 1.6;
}

/* Mobile Optimization */
@media (max-width: 640px) {
    .hero-headline {
        font-size: clamp(2.25rem, 10vw, 3.5rem);
        letter-spacing: -0.02em;
    }

    .hero-sub {
        font-size: 1rem;
        padding: 0 0.5rem;
    }

    .hero-cta {
        padding: 0 1rem;
    }

    .hero-cta a {
        width: 100%;
        justify-content: center;
    }
}

/* Digital Toolbox Cards */
.toolbox-card {
    background: rgba(255, 255, 255, 0.03);
    border: 0.5px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.toolbox-card:hover {
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

.toolbox-number {
    position: absolute;
    top: 12px;
    left: 14px;
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(139, 92, 246, 0.6);
    letter-spacing: 0.05em;
}

.toolbox-card h4 {
    margin-top: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
}

.toolbox-card p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.5;
}

/* Mobile Toolbox - Compact 2-col with tap expand */
@media (max-width: 768px) {
    .toolbox-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }

    .toolbox-card {
        padding: 1rem;
        min-height: auto;
    }

    .toolbox-card p {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        margin: 0;
        transition: max-height 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
    }

    .toolbox-card.expanded p {
        max-height: 100px;
        opacity: 1;
        margin-top: 0.5rem;
    }

    .toolbox-card h4 {
        font-size: 0.9rem;
        margin-bottom: 0;
    }

    .toolbox-card::after {
        content: '';
        position: absolute;
        bottom: 8px;
        right: 10px;
        width: 6px;
        height: 6px;
        border-right: 1.5px solid rgba(139, 92, 246, 0.5);
        border-bottom: 1.5px solid rgba(139, 92, 246, 0.5);
        transform: rotate(45deg);
        transition: transform 0.3s ease;
    }

    .toolbox-card.expanded::after {
        transform: rotate(-135deg);
    }
}

/* Button Glow */
.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-glow:hover::before {
    left: 100%;
}

/* FAQ Accordion */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.3s ease-out, opacity 0.3s ease-out;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    opacity: 1;
    padding-bottom: 1rem;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: #8B5CF6;
}

.faq-icon {
    transition: transform 0.3s ease, color 0.3s ease;
    font-weight: 300;
}

.faq-item button {
    cursor: pointer;
}

.faq-item button:hover .faq-icon {
    color: #8B5CF6;
}

/* Web Design Card - Browser Mockup */
.browser-mockup {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.browser-mockup:hover {
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.2);
}

.browser-dots {
    display: flex;
    gap: 4px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.browser-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.browser-content {
    padding: 12px;
    position: relative;
    min-height: 140px;
}

/* Responsive Grid Animation */
.responsive-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 8px;
    animation: grid-pulse 3s ease-in-out infinite;
}

@keyframes grid-pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.grid-block {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(59, 130, 246, 0.2));
    border-radius: 4px;
    animation: block-shimmer 2s ease-in-out infinite;
}

.grid-block:nth-child(1) { animation-delay: 0s; }
.grid-block:nth-child(2) { animation-delay: 0.2s; }
.grid-block:nth-child(3) { animation-delay: 0.4s; }
.grid-block:nth-child(4) { animation-delay: 0.6s; }

@keyframes block-shimmer {
    0%, 100% {
        background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(59, 130, 246, 0.1));
    }
    50% {
        background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(59, 130, 246, 0.3));
    }
}

/* Animated Cursor */
.mock-cursor {
    position: absolute;
    width: 16px;
    height: 16px;
    pointer-events: none;
    animation: cursor-move 4s ease-in-out infinite;
    z-index: 10;
}

@keyframes cursor-move {
    0%, 100% {
        top: 20%;
        left: 20%;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    40% {
        top: 60%;
        left: 70%;
    }
    50% {
        top: 60%;
        left: 70%;
        transform: scale(0.9);
    }
    60% {
        transform: scale(1);
    }
    90% {
        opacity: 1;
        top: 30%;
        left: 40%;
    }
    95% {
        opacity: 0;
    }
}

/* Click Ripple */
.click-ripple {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(139, 92, 246, 0.6);
    animation: ripple 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes ripple {
    0%, 45%, 100% {
        opacity: 0;
        transform: scale(0);
        top: 60%;
        left: 70%;
    }
    50% {
        opacity: 1;
        transform: scale(0.5);
    }
    60% {
        opacity: 0;
        transform: scale(2);
    }
}

/* Hero Badge - Premium Single Line */
.hero-badge-premium {
    white-space: nowrap;
    font-size: clamp(0.65rem, 1.5vw, 0.75rem);
    letter-spacing: 0.1em;
    padding: 0.4rem 1rem;
    border: 1px solid rgba(139, 92, 246, 0.3);
    background: rgba(139, 92, 246, 0.08);
}

.hero-badge-premium:hover {
    border-color: rgba(139, 92, 246, 0.5);
    background: rgba(139, 92, 246, 0.12);
}

/* Pulse CTA Button - Elegant Glowing Aura */
@keyframes pulse-cta {
    0% {
        box-shadow:
            0 0 0 0 rgba(139, 92, 246, 0.5),
            0 0 0 0 rgba(139, 92, 246, 0.3),
            0 4px 20px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow:
            0 0 20px 2px rgba(139, 92, 246, 0.4),
            0 0 40px 8px rgba(139, 92, 246, 0.15),
            0 4px 20px rgba(0, 0, 0, 0.3);
    }
    100% {
        box-shadow:
            0 0 0 0 rgba(139, 92, 246, 0.5),
            0 0 0 0 rgba(139, 92, 246, 0.3),
            0 4px 20px rgba(0, 0, 0, 0.3);
    }
}

.btn-pulse {
    animation: pulse-cta 3s ease-in-out infinite;
    position: relative;
}

.btn-pulse::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(59, 130, 246, 0.2));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.btn-pulse:hover {
    animation: none;
    box-shadow:
        0 0 25px 4px rgba(139, 92, 246, 0.5),
        0 0 50px 12px rgba(139, 92, 246, 0.2),
        0 4px 20px rgba(0, 0, 0, 0.3);
}

.btn-pulse:hover::after {
    opacity: 1;
}

/* Glassmorphism Form Inputs */
.glass-input {
    background: rgba(255, 255, 255, 0.03);
    border: 0.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    color: white;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    width: 100%;
    outline: none;
}

.glass-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.glass-input:focus {
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.25), inset 0 0 20px rgba(139, 92, 246, 0.05);
    background: rgba(255, 255, 255, 0.05);
}

.glass-input:hover:not(:focus) {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
}

/* Footer Link Hover */
.footer-link {
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-link:hover {
    color: white;
    transform: translateX(4px);
}

/* Submit Button Enhanced Hover State */
#contact-form button[type="submit"] {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

#contact-form button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow:
        0 0 30px 5px rgba(139, 92, 246, 0.5),
        0 0 60px 15px rgba(139, 92, 246, 0.2),
        0 8px 25px rgba(0, 0, 0, 0.4);
}

#contact-form button[type="submit"]:active {
    transform: translateY(0);
}

/* Form submission states */
#contact-form.submitting button[type="submit"] {
    pointer-events: none;
    opacity: 0.7;
}

#contact-form.submitted button[type="submit"] {
    background: #22c55e;
}

/* ============================================
   SUCCESS MESSAGE - PURPLE RAIN AESTHETIC
   ============================================ */

/* Success Message Container */
#success-message {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 2rem;
    min-height: 400px;
}

/* Success Icon Container */
.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3) 0%, rgba(59, 130, 246, 0.2) 100%);
    border: 2px solid rgba(139, 92, 246, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow:
        0 0 30px rgba(139, 92, 246, 0.4),
        0 0 60px rgba(139, 92, 246, 0.2),
        inset 0 0 20px rgba(139, 92, 246, 0.1);
    position: relative;
}

.success-icon::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B5CF6, #3B82F6);
    opacity: 0.3;
    z-index: -1;
    animation: icon-pulse 2s ease-in-out infinite;
}

@keyframes icon-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.5;
    }
}

.success-icon svg {
    width: 40px;
    height: 40px;
    color: #8B5CF6;
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.5));
}

/* Success Text Styles */
.success-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.success-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 280px;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Send Another Message Button */
.success-reset-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.success-reset-btn:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.2);
}

.success-reset-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.success-reset-btn:hover svg {
    transform: rotate(-45deg);
}

/* Error Notification */
.error-notification {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Loading Spinner Animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Mobile Responsive Adjustments */
@media (max-width: 640px) {
    #success-message {
        padding: 2rem 1.5rem;
        min-height: 350px;
    }

    .success-icon {
        width: 70px;
        height: 70px;
    }

    .success-icon svg {
        width: 35px;
        height: 35px;
    }

    .success-title {
        font-size: 1.5rem;
    }

    .success-subtitle {
        font-size: 0.9rem;
    }
}

/* Confetti-like particle effect (optional enhancement) */
.success-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.success-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #8B5CF6, #3B82F6);
    border-radius: 50%;
    opacity: 0;
}

/* ============================================
   COOKIE CONSENT BANNER - Purple Rain Aesthetic
   ============================================ */

.cookie-banner {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999; /* Highest layer - above everything */
    max-width: 420px;
    /* FAIL-OPEN: Visible by default - JS hides if consent exists */
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    /* No CSS transitions - GSAP handles all animations */
}

/* Hidden state - applied by JS when consent exists */
.cookie-banner.hidden {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.cookie-content {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 16px;
    padding: 20px;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(139, 92, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.cookie-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(59, 130, 246, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: #8B5CF6;
}

.cookie-text {
    margin-bottom: 16px;
}

.cookie-title {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
}

.cookie-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}

.cookie-link {
    color: #8B5CF6;
    text-decoration: none;
    transition: color 0.2s ease;
}

.cookie-link:hover {
    color: #A78BFA;
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.cookie-btn {
    flex: 1;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: 'Inter', sans-serif;
}

.cookie-btn-decline {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-btn-decline:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, #8B5CF6, #7C3AED);
    color: #fff;
    box-shadow: 0 2px 10px rgba(139, 92, 246, 0.3);
}

.cookie-btn-accept:hover {
    background: linear-gradient(135deg, #9D6FFF, #8B5CF6);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
    transform: translateY(-1px);
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .cookie-banner {
        bottom: 16px;
        right: 16px;
        left: 16px;
        max-width: none;
    }

    .cookie-content {
        padding: 16px;
    }

    .cookie-buttons {
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
    }
}
