/* 
   Mediazoo Design System 
   Based on Prompt B: Visual Implementation 
*/

:root {
    /* Colors */
    --color-text-main: #1A1A1A;
    --color-text-light: #F5F5F5;
    --color-bg-light: #F5F5F5;
    --color-bg-white: #FFFFFF;
    --color-bg-dark: #1A1A1A;
    --color-cta: #F59E0B;
    /* Warm Orange/Gold */
    --color-cta-hover: #D97706;
    --color-border: #E5E7EB;

    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --h1-size: clamp(3rem, 5vw, 3.5rem);
    /* 48-56px */
    --h2-size: clamp(1.75rem, 3vw, 2.25rem);
    /* 28-36px */
    --h3-size: 1.5rem;
    --body-size: 1.125rem;
    /* 18px */
    --line-height: 1.6;

    /* Spacing & Layout */
    --container-width: 1200px;
    --section-padding: 4rem 1rem;
    --grid-gap: 2rem;
    --border-radius: 8px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

    /* Transitions */
    --transition-fast: 200ms ease;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text-main);
    background-color: var(--color-bg-light);
    line-height: var(--line-height);
    font-size: var(--body-size);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

/* Typography Utilities */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-align: center;
}

h1 {
    font-size: var(--h1-size);
}

h2 {
    font-size: var(--h2-size);
}

h3 {
    font-size: var(--h3-size);
}

.lead {
    font-size: 1.25rem;
    color: #4B5563;
    max-width: 65ch;
}

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.grid {
    display: grid;
    gap: var(--grid-gap);
}

.grid-2 {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.section {
    padding: var(--section-padding);
}

.bg-white {
    background-color: var(--color-bg-white);
}

.bg-light {
    background-color: var(--color-bg-light);
}

.cta-section .cta-group {
    margin-bottom: 2.5rem;
}

.cta-section .btn-primary {
    font-size: 1.1rem;
    padding: 0.85rem 2.5rem;
}

.bg-dark {
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
}

.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mb-4 {
    margin-bottom: 4rem;
}

/* Components */

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.btn-primary {
    background-color: var(--color-cta);
    color: white;
}

.btn-primary:hover {
    background-color: var(--color-cta-hover);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-cta);
    color: var(--color-cta);
}

.btn-outline:hover {
    background: var(--color-cta);
    color: #fff;
    transform: translateY(-2px);
}

/* Unified CTA Buttons in footer/cta section */
.cta-section .btn-outline,
.cta-section .btn-secondary {
    background-color: var(--color-cta);
    border-color: var(--color-cta);
    color: white;
}

.cta-section .btn-outline:hover,
.cta-section .btn-secondary:hover {
    background-color: var(--color-cta-hover);
    border-color: var(--color-cta-hover);
    transform: translateY(-2px);
}

.cta-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

/* Header */
.global-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
    transition: padding var(--transition-fast);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    height: 50px;
    /* Adjust based on logo aspect ratio */
    width: auto;
}

.logo-text {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-text-main);
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-slogan {
    font-size: 0.875rem;
    font-weight: 400;
    color: #6B7280;
}

@media (min-width: 768px) {
    .nav-toggle {
        display: none;
    }

    .main-nav ul {
        display: flex;
        gap: 2rem;
    }
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.nav-toggle span {
    width: 100%;
    height: 3px;
    background: var(--color-text-main);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

/* Mobile Overly Menu */
@media (max-width: 767px) {
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        display: flex !important;
        /* Ensure it's flex when showing */
        justify-content: center;
        align-items: center;
        transition: right 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        z-index: 1000;
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        padding: 0;
        margin: 0;
        list-style: none;
    }

    .main-nav .nav-link {
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--color-text-main);
        padding: 1rem;
    }

    /* Hide the primary CTA button in the header/mobile-menu on mobile as requested */
    .header-cta {
        display: none !important;
    }

    /* Hamburger Animation to X */
    .main-nav.active+.nav-toggle span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .main-nav.active+.nav-toggle span:nth-child(2) {
        opacity: 0;
        transform: translateX(10px);
    }

    .main-nav.active+.nav-toggle span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

.nav-link {
    font-weight: 500;
    position: relative;
}

.nav-link.active,
.nav-link:hover {
    color: var(--color-cta);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-cta);
}

/* Hero Section */
.hero {
    padding: 6rem 0 4rem;
    text-align: center;
    background: linear-gradient(135deg, #FFF5E6 0%, #FFE4B5 50%, #F5F5F5 100%);
    position: relative;
    overflow: hidden;
}

.hero .lead {
    margin-left: auto;
    margin-right: auto;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-group {
    margin-top: 2rem;
}

/* Feature List */
.feature-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(249, 250, 251, 0.9) 100%);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    border: 1px solid rgba(245, 158, 11, 0.1);
    position: relative;
    overflow: hidden;
    text-align: left;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-cta) 0%, #D97706 100%);
    transform: scaleX(0);
    transition: transform var(--transition-fast);
}

/* Corner decoration */
.feature-item::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, transparent 50%, rgba(245, 158, 11, 0.05) 50%);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.feature-item:hover::before {
    transform: scaleX(1);
}

.feature-item:hover::after {
    opacity: 1;
}

.feature-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(245, 158, 11, 0.15);
}

.feature-icon {
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #FFF5E6 0%, #FFE4B5 100%);
    border-radius: 12px;
    transition: transform var(--transition-fast);
}

.feature-item:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-item h3 {
    text-align: center;
    margin-bottom: 1rem;
}

.feature-item p {
    text-align: left;
    margin-bottom: 0.5rem;
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    background: white;
    box-shadow: var(--shadow-sm);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.comparison-table th {
    background-color: #F9FAFB;
    font-weight: 600;
}

/* Footer */
.global-footer {
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
    padding: 4rem 0 2rem;
    text-align: center;
}

.footer-grid {
    display: grid;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        text-align: left;
    }
}

.footer-col h4 {
    color: white;
    margin-bottom: 1.5rem;
    text-align: inherit;
}

.footer-contact-info p {
    margin-bottom: 0.5rem;
}

.footer-contact-info a {
    color: var(--color-cta);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-contact-info a:hover {
    color: white;
}

.social-icons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

@media (min-width: 768px) {
    .social-icons {
        justify-content: flex-start;
    }
}

.social-icon {
    font-size: 1.5rem;
    text-decoration: none;
    transition: transform var(--transition-fast);
}

.social-icon:hover {
    transform: scale(1.2);
}

.copyright {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Image Placeholders with Style */
.content-image-placeholder {
    background: linear-gradient(135deg, #E5E7EB 0%, #F3F4F6 100%);
    height: 350px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6B7280;
    font-size: 1rem;
    text-align: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.content-image-placeholder::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(45deg,
            transparent,
            transparent 10px,
            rgba(255, 255, 255, 0.3) 10px,
            rgba(255, 255, 255, 0.3) 20px);
    animation: shimmer 20s linear infinite;
}

@keyframes shimmer {
    0% {
        transform: translate(-50%, -50%);
    }

    100% {
        transform: translate(0%, 0%);
    }
}

.content-image-placeholder span {
    position: relative;
    z-index: 1;
    font-weight: 500;
}

/* Enhanced Section Backgrounds */
.section-accent {
    background: linear-gradient(180deg, #FFFFFF 0%, #F9FAFB 100%);
    position: relative;
}

.section-accent::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--color-cta) 50%, transparent 100%);
}

/* CTA Section Enhancement */
.cta-section {
    background: linear-gradient(135deg, #111827 0%, #1F2937 100%);
    color: white;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-section .container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.cta-section .lead {
    color: #9CA3AF;
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .btn-primary {
    font-size: 1.25rem;
    padding: 1.25rem 3.5rem;
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
    transition: all var(--transition-fast);
}

.cta-section .btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(245, 158, 11, 0.5);
}

.cta-phone {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #6B7280;
    letter-spacing: 0.05em;
}

/* Pricing Refinements */
.item-row {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.item-price {
    font-weight: 600;
    color: var(--color-cta);
    font-size: 0.95rem;
    text-align: left;
}

.item-price-dual {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-size: 0.9rem;
}

.item-price-dual .price-val {
    display: block;
}

/* Content Section Enhancements */
.content-text ul {
    list-style-type: none;
    padding-left: 0;
}

.content-text ul li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.75rem;
}

.content-text ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-cta);
    font-weight: bold;
}

/* Section Utilities */
.section {
    padding: var(--section-padding);
}

.bg-white {
    background-color: var(--color-bg-white);
}

.bg-light {
    background-color: var(--color-bg-light);
}

.section-accent {
    background-color: #FFF5E6;
}

/* Abstract Floating Shapes */
.abstract-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.abstract-shape {
    position: absolute;
    opacity: 0.08;
    animation: float 20s ease-in-out infinite;
}

.abstract-shape-1 {
    top: 10%;
    right: 5%;
    width: 300px;
    height: 300px;
    animation-delay: 0s;
}

.abstract-shape-2 {
    bottom: 15%;
    left: 8%;
    width: 250px;
    height: 250px;
    animation-delay: 5s;
}

.abstract-shape-3 {
    top: 45%;
    right: 15%;
    width: 200px;
    height: 200px;
    animation-delay: 10s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    33% {
        transform: translateY(-30px) rotate(5deg);
    }

    66% {
        transform: translateY(20px) rotate(-5deg);
    }
}

/* Enhanced Hero with Waves */
.hero {
    position: relative;
    padding-bottom: 6rem;
}

/* Section with Wave Transitions */
.section-with-wave {
    position: relative;
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.section-with-wave-top {
    padding-top: 7rem;
}

.section-with-wave-bottom {
    padding-bottom: 7rem;
}

/* Animated Gradient Background */
.section-gradient-animated {
    background: linear-gradient(-45deg, #FFF5E6, #FFE4B5, #F9FAFB, #FFFFFF);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    position: relative;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Abstract Film Strip Pattern */
.film-pattern-bg {
    position: relative;
    overflow: hidden;
}

.film-pattern-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(90deg, rgba(245, 158, 11, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(245, 158, 11, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.5;
    pointer-events: none;
}

/* Glassmorphism Effect for Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

/* Decorative Corner Elements */
.corner-decoration::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, transparent 50%, rgba(245, 158, 11, 0.1) 50%);
    border-radius: 0 12px 0 0;
}

/* Pulsing Glow Effect */
.glow-pulse {
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(245, 158, 11, 0.6);
    }
}

/* Portfolio Carousel */
.portfolio-carousel-wrapper {
    position: relative;
    margin-top: 2rem;
}

.portfolio-carousel {
    display: flex;
    overflow-x: auto;
    gap: 1.5rem;
    padding: 1rem 0 2rem;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.portfolio-carousel::-webkit-scrollbar {
    display: none;
}

.portfolio-item {
    flex: 0 0 300px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    cursor: pointer;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.portfolio-thumbnail {
    position: relative;
    height: 180px;
    background: #000;
}

.portfolio-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-icon {
    font-size: 2.5rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.portfolio-item h4 {
    padding: 1rem;
    margin: 0;
    font-size: 1rem;
    text-align: center;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--color-cta);
    transition: all var(--transition-fast);
}

.carousel-prev {
    left: -20px;
}

.carousel-next {
    right: -20px;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: var(--color-cta);
    color: white;
}

/* Lightbox Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal.visible {
    display: flex;
}

.modal-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-container {
    position: relative;
    width: 90%;
    max-width: 900px;
    z-index: 1001;
    background: black;
    border-radius: 12px;
    overflow: hidden;
    animation: zoomIn 0.3s ease-out;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 1002;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--color-cta);
}

#modal-body {
    line-height: 0;
    text-align: center;
    background: #000;
}

#modal-body img {
    margin: 0 auto;
    display: block;
}

.modal-caption {
    background: #111;
    color: white;
    padding: 1rem;
    text-align: center;
    font-weight: 500;
}

@media (max-width: 768px) {

    .carousel-prev,
    .carousel-next {
        display: none;
    }

    .portfolio-carousel {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}