/* Script Writer Page Specific Styles */

:root {
    --script-gold: #f59e0b;
    --script-indigo: #6366f1;
    --glass-border: rgba(255, 255, 255, 0.2);
}

.redesign-hero {
    padding: 160px 0 120px;
    background: radial-gradient(circle at 30% 50%, #2c3e50, #000000);
    position: relative;
    overflow: hidden;
    min-height: 85vh;
    /* Slightly taller for more presence */
    display: flex;
    align-items: center;
    color: white;
}

/* Full width background effect */
.redesign-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    z-index: -1;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 30px;
    color: white;
    letter-spacing: -0.02em;
}

.hero-content h1 .highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    color: rgba(255, 255, 255, 0.85);
    /* Slightly muted for better hierarchy */
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 40px;
}

/* Floating Image with Glass Box */
.hero-image-wrapper {
    position: relative;
    perspective: 1000px;
}

.hero-image-main {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    object-position: center;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.hero-image-wrapper:hover .hero-image-main {
    transform: rotateY(0deg) rotateX(0deg);
}

.floating-glass-box {
    position: absolute;
    top: -30px;
    left: -40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    padding: 25px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 420px;
    z-index: 5;
    animation: float 5s ease-in-out infinite;
    overflow: hidden;
    /* Prevent text spilling */
}

.floating-glass-box p {
    color: #ffffff !important;
    font-weight: 400;
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}

/* Section Title Styles */
.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title-modern {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: -0.01em;
    margin-bottom: 25px;
}

.section-title-modern span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glass Service Cards - Lateral Layout (Matching Screenshot 2) */
.services-grid-modern {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px 60px;
    padding-bottom: 40px;
}

@media (max-width: 992px) {
    .services-grid-modern {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.glass-service-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    background: transparent;
    padding: 20px;
    border-radius: 0;
    border: none;
    transition: transform 0.3s ease;
    gap: 30px;
}

.glass-service-card:hover {
    transform: translateX(10px);
    background: transparent;
    box-shadow: none;
    border-color: transparent;
}

.card-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: #ebf0ff;
    /* Soft blue background from screenshot 2 */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #2563eb;
    /* Primary blue from screenshot 2 */
    transition: all 0.3s ease;
}

.glass-service-card:hover .card-icon {
    background: #2563eb;
    color: white;
}

.glass-service-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #111827;
    line-height: 1.2;
    transition: color 0.4s ease;
    position: relative;
    z-index: 1;
}

.glass-service-card p {
    color: #4b5563;
    font-size: 1.15rem;
    line-height: 1.7;
    margin: 0;
    transition: color 0.4s ease;
    position: relative;
    z-index: 1;
}

/* Final CTA Section */
.premium-cta {
    margin: 60px 0 20px;
    background: var(--gradient-primary);
    border-radius: 40px;
    padding: 60px 40px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-glow);
}

.premium-cta h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 30px;
    line-height: 1.3;
}

.white-cta-btn {
    background: white;
    color: var(--color-primary);
    padding: 16px 40px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.white-cta-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.btn-hero-primary {
    display: inline-flex;
    padding: 18px 40px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Background blobs */
.blob {
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--gradient-primary);
    filter: blur(80px);
    opacity: 0.1;
    border-radius: 50%;
    z-index: 1;
}

.blob-1 {
    top: 10%;
    right: -100px;
}

.blob-2 {
    bottom: 10%;
    left: -100px;
    background: var(--gradient-secondary);
}

/* Reveal animations on scroll */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Spacing for sections 2 and 3 */
.narrow-section-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 60px 40px;
}

/* Responsive Overrides */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-content h1 {
        margin-bottom: 30px;
        font-size: clamp(2rem, 6vw, 4rem);
    }

    .hero-content {
        max-width: 600px;
        margin: 0 auto;
    }

    .premium-cta {
        margin-left: 20px;
        margin-right: 20px;
    }
}

@media (max-width: 768px) {
    .redesign-hero {
        padding: 0px 0 0px;
        min-height: 47vh;
    }

    .hero-image-wrapper {
        display: none;
    }

    .floating-glass-box {
        position: relative;
        left: 0;
        bottom: 0;
        margin: 20px auto 0;
        max-width: 100%;
        padding: 20px;
    }

    .services-grid-modern {
        grid-template-columns: 1fr;
    }

    .glass-service-card {
        padding: 0px;
        display: block;
    }
    
    .card-icon {
  margin-bottom: 20px;
}

    .premium-cta {
        padding: 40px 20px;
        border-radius: 24px;
        margin-left: 10px;
        margin-right: 10px;
    }

    .section-header {
        margin-bottom: 40px;
    }
    .premium-cta h2 {
  font-size: clamp(1.1rem, 4vw, 2.5rem);
}
    .section-title-modern {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
}
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

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

    /* Refactored inline styles */
    .narrow-section-container.script-page-padding {
        padding: 100px 40px 40px;
        /* Added side padding back for consistency, or should I strict follow inline? Inline was 100px 0 40px. Let's use 100px 20px 40px to be safe with mobile, or just 100px 0 40px but with the container width it might need sides. The original CSS had 0 40px. So I will combine: 100px 40px 40px. */
        padding: 100px 40px 40px;
    }

    @media (max-width: 768px) {
        .narrow-section-container.script-page-padding {
            padding: 60px 20px 40px;
        }
    }

    .section-subtitle-script {
        max-width: 800px;
        margin: 20px auto 0;
        color: var(--text-secondary, #4b5563);
        /* Fallback color */
        font-size: 1.1rem;
        line-height: 1.6;
        text-align: center;
    }