/* =========================================
   Eventcast.pro | Main Stylesheet
   Vibe: Warm, Emotional, Family, Festive
========================================= */

:root {
    /* Color Palette - Luxury Dark */
    --primary-color: #fbbf24;
    /* Luxurious Gold */
    --primary-hover: #f59e0b;
    --secondary-color: #6366f1;
    /* Modern Indigo Accent */

    --bg-dark: #0f172a;
    /* Deep Charcoal */
    --bg-surface: #1e293b;
    /* Surface Slate */
    --bg-card: #1e293b;
    --bg-glass: rgba(15, 23, 42, 0.8);

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-gold: #fbbf24;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Borders */
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    --shadow-premium: 0 20px 50px rgba(0, 0, 0, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--text-primary);
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 50px;
}

.bg-light {
    background-color: var(--bg-surface);
}

.bg-warm {
    background-color: var(--bg-dark);
    color: var(--text-primary);
}

.w-100 {
    width: 100%;
}

.mt-4 {
    margin-top: 50px;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--bg-dark);
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1rem;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(251, 191, 36, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(251, 191, 36, 0.3);
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--text-primary);
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--text-primary);
    transform: translateY(-2px);
}

/* Navigation - Glassmorphism */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    z-index: 1000;
    padding: 12px 30px;
    border-radius: var(--radius-full);
    transition: var(--transition);
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-premium);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo img {
    height: 80px; /* Reduced from 100px as requested */
    width: auto;
    transition: var(--transition);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links li a {
    font-weight: 600;
    color: var(--text-primary); /* Use light color for the dark theme */
}

.nav-links li a:hover {
    color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary); /* Use light color for the hamburger lines */
    border-radius: 2px;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--bg-dark);
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    /* Shifting center slightly down (60%) where the couple is, and softening the fade */
    background: radial-gradient(circle at 50% 60%, transparent 20%, var(--bg-dark) 100%);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    /* Lighter top-to-bottom overlay to keep the image visible */
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.1), var(--bg-dark) 98%);
    z-index: 1;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.8;
    /* Higher opacity as requested */
    filter: brightness(1.1) contrast(1.05);
    /* Adding a bit of "pop" */
    animation: kenBurns 30s ease-in-out infinite alternate;
}

@keyframes kenBurns {
    0% {
        transform: scale(1) translate(0, 0);
    }

    100% {
        transform: scale(1.15) translate(-2%, -1%);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 5.5rem);
    line-height: 1.05;
    margin-bottom: 25px;
    font-weight: 800;
    letter-spacing: -0.04em;
    background: linear-gradient(to bottom, #fff, #94a3b8);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    margin-bottom: 40px;
    color: var(--text-secondary);
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.hero-tags {
    margin-bottom: 50px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 0.85rem;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Services / Event Types */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-surface);
    padding: 50px 40px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
    transform: translateX(-100%);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(251, 191, 36, 0.4);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), 0 0 20px rgba(251, 191, 36, 0.1);
}

.service-card:hover::before {
    transform: translateX(100%);
    opacity: 0.8;
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 25px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

.service-card h3 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-size: 1.6rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Technology / Equipment */
.technology {
    background-color: var(--bg-dark);
    position: relative;
}

.tech-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: center;
}

.tech-list {
    margin-top: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.tech-list li {
    background: rgba(255, 255, 255, 0.02);
    padding: 25px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: var(--transition);
}

.tech-list li:hover {
    background: rgba(251, 191, 36, 0.05);
    border-color: rgba(251, 191, 36, 0.2);
}

.tech-list li p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.tech-list strong {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-gold);
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.tech-visual {
    position: relative;
    height: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-glow-circle {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(15, 23, 42, 0) 70%);
    position: absolute;
    border-radius: 50%;
    animation: pulse 6s infinite alternate;
}

.tech-card-glass {
    position: relative;
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 50px 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-premium);
    max-width: 400px;
    text-align: center;
    z-index: 2;
}

.tech-card-glass h3 {
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.tech-card-glass p {
    color: var(--text-secondary);
}

@keyframes pulse {
    0% {
        transform: scale(0.85);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.15);
        opacity: 0.9;
    }
}

/* Portfolio Gallery */
.portfolio {
    background-color: var(--bg-surface);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.portfolio-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 450px;
    box-shadow: var(--shadow-premium);
    background-color: var(--bg-dark);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.8;
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-dark), transparent 70%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    color: var(--text-primary);
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.portfolio-item:hover img {
    transform: scale(1.1);
    opacity: 1;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-overlay h4 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.portfolio-overlay span {
    color: var(--text-gold);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
}

/* Testimonials */
.testimonials {
    background-color: var(--bg-dark);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.review-card {
    background: var(--bg-surface);
    padding: 50px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    transition: var(--transition);
}

.review-card:hover {
    transform: translateY(-5px);
    border-color: rgba(251, 191, 36, 0.2);
}

.review-card::before {
    content: "“";
    font-family: var(--font-heading);
    font-size: 6rem;
    color: rgba(251, 191, 36, 0.1);
    position: absolute;
    top: 10px;
    left: 30px;
    line-height: 1;
}

.stars {
    color: var(--text-gold);
    font-size: 1.2rem;
    margin-bottom: 25px;
}

.review-text {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 30px;
    line-height: 1.8;
}

.review-card h4 {
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
}

.review-role {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Booking Form */
.book-now {
    background-color: var(--bg-dark);
}

.form-container {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 100px;
    align-items: center;
}

.form-box {
    background: var(--bg-surface);
    padding: 60px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow-premium);
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    transition: var(--transition);
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.1);
}

.form-notice {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 20px;
}

/* Footer */
.footer {
    background-color: #020617;
    color: var(--text-secondary);
    padding: 100px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 1.2fr;
    gap: 80px;
    margin-bottom: 80px;
}

.footer-brand img {
    height: 140px; /* Re-applied: Significantly increased from 60px */
    width: auto;
    margin-bottom: 20px;
}

.footer-brand p {
    margin-top: 25px;
    line-height: 1.8;
}

.footer h3 {
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 30px;
    font-weight: 700;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible,
.slide-up.visible {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Responsive */
@media (max-width: 900px) {

    .tech-layout,
    .form-container,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .tech-visual {
        min-height: 300px;
    }
}

@media (max-width: 768px) {

    .nav-links,
    .nav-btn {
        display: none;
    }

    .navbar {
        top: 10px;
        padding: 10px 20px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .tech-list {
        grid-template-columns: 1fr;
    }

    .form-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* =========================================
   AI Chat Widget - Glassmorphism
========================================= */
#ai-chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: var(--font-body);
}

.glass-btn {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5), inset 0 1px 1px rgba(255,255,255,0.1);
    transition: var(--transition);
}

.glass-btn:hover {
    background: rgba(40, 50, 70, 0.9);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.glass-btn .chat-text {
    font-weight: 600;
}

.glass-panel {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 380px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-premium), 0 0 40px rgba(99, 102, 241, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: var(--transition);
    transform-origin: bottom right;
}

.glass-panel.hidden {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
    pointer-events: none;
}

.chat-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.5), rgba(99, 102, 241, 0.2));
}

.chat-header h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin: 0;
    color: var(--text-primary);
}

.online-status {
    font-size: 0.75rem;
    color: #4ade80;
    font-weight: 600;
}

#close-chat-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

#close-chat-btn:hover {
    color: var(--text-primary);
}

/* Calculator Section */
.cost-calculator {
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cost-calculator h4 {
    font-size: 0.9rem;
    color: var(--text-gold);
    margin-bottom: 10px;
}

.calc-inputs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.calc-inputs label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
}

.calc-inputs input[type="range"] {
    width: 100%;
    accent-color: var(--primary-color);
}

.calc-results {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.old-price {
    color: #ef4444;
    text-decoration: line-through;
    margin-left: 5px;
}

.new-price {
    color: #4ade80;
    font-weight: bold;
    margin-left: 5px;
}

.savings-highlight {
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
    padding: 8px;
    border-radius: var(--radius-md);
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    border: 1px solid rgba(74, 222, 128, 0.2);
}

/* Chat Messages Area */
.chat-messages {
    flex-grow: 1;
    height: 250px;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}
.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.message {
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.4;
    max-width: 85%;
    animation: fadeUpIn 0.3s ease-out;
}

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

.ai-message {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.user-message {
    background: var(--secondary-color);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.chat-input-area {
    padding: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 10px;
}

.chat-input-area input {
    flex-grow: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    padding: 10px 15px;
    color: white;
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}

.chat-input-area input:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.chat-input-area button {
    background: var(--secondary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.chat-input-area button:hover {
    background: #4f46e5;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .glass-panel {
        width: calc(100vw - 40px);
        right: -10px;
        bottom: 60px;
    }
}