/* 
   Stream Beam - Main Stylesheet
   A professional website for a live streaming business
*/

/* ===== GLOBAL STYLES ===== */
:root {
    /* Primary color scheme */
    --primary-color: #3498db;
    --primary-dark: #2980b9;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333333;
    --text-light: #7f8c8d;
    --success-color: #2ecc71;
    
    /* Typography */
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Poppins', sans-serif;
    
    /* Spacing */
    --section-spacing: 5rem;
    --element-spacing: 2rem;
}

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

html {
    font-size: 62.5%; /* 10px = 1rem */
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

p {
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

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

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3.6rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h2:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-header p {
    font-size: 1.8rem;
    color: var(--text-light);
}

.btn {
    display: inline-block;
    padding: 1.2rem 2.4rem;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.6rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* ===== HEADER ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 2.8rem;
    margin-bottom: 0;
    color: var(--secondary-color);
}

.logo h1 span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 3rem;
}

.nav-links a {
    color: var(--secondary-color);
    font-weight: 500;
    font-size: 1.6rem;
    position: relative;
}

.nav-links a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    bottom: -5px;
    left: 0;
    transition: width 0.3s ease;
}

.nav-links a:hover:after,
.nav-links a.active:after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--secondary-color);
    transition: all 0.3s ease;
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 15rem 0 10rem;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.9) 0%, rgba(44, 62, 80, 0.9) 100%), url('../images/hero-bg.jpg') center/cover no-repeat;
    color: white;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    padding-right: 4rem;
}

.hero-content h1 {
    font-size: 4.8rem;
    color: white;
    margin-bottom: 2rem;
}

.hero-content p {
    font-size: 2rem;
    margin-bottom: 3rem;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

.hero-video {
    flex: 1;
}

.video-container {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.placeholder-img {
    width: 100%;
    height: auto;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-button i {
    font-size: 3rem;
    color: white;
}

.play-button:hover {
    background-color: var(--primary-color);
}

/* ===== SERVICES OVERVIEW ===== */
.services-overview {
    padding: var(--section-spacing) 0;
    background-color: var(--light-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.service-card {
    background-color: white;
    border-radius: 8px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 2rem;
}

.service-icon i {
    font-size: 3rem;
}

.service-card h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

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

/* ===== WHY CHOOSE US ===== */
.why-choose-us {
    padding: var(--section-spacing) 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
}

.feature {
    text-align: center;
}

.feature-icon {
    width: 100px;
    height: 100px;
    background-color: rgba(52, 152, 219, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 2rem;
    transition: all 0.3s ease;
}

.feature:hover .feature-icon {
    background-color: var(--primary-color);
    color: white;
}

.feature-icon i {
    font-size: 4rem;
}

.feature h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
    padding: var(--section-spacing) 0;
    background-color: var(--light-color);
}

.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial {
    background-color: white;
    border-radius: 8px;
    padding: 3rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-content {
    margin-bottom: 2rem;
}

.testimonial-content p {
    font-size: 1.8rem;
    font-style: italic;
    position: relative;
    padding: 0 2rem;
}

.testimonial-content p:before,
.testimonial-content p:after {
    content: '"';
    font-size: 4rem;
    color: var(--primary-color);
    position: absolute;
    opacity: 0.3;
}

.testimonial-content p:before {
    top: -1rem;
    left: 0;
}

.testimonial-content p:after {
    bottom: -3rem;
    right: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1.5rem;
}

.author-info h4 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.author-info p {
    font-size: 1.4rem;
    color: var(--text-light);
    margin-bottom: 0;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
    gap: 1rem;
}

.prev-btn,
.next-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: white;
    border: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.prev-btn:hover,
.next-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 8rem 0;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.9) 0%, rgba(44, 62, 80, 0.9) 100%), url('../images/cta-bg.jpg') center/cover no-repeat;
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 3.6rem;
    color: white;
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.8rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 5rem 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo h2 {
    font-size: 2.8rem;
    color: white;
    margin-bottom: 1rem;
}

.footer-logo h2 span {
    color: var(--primary-color);
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links h3,
.footer-services h3,
.footer-contact h3 {
    font-size: 2rem;
    color: white;
    margin-bottom: 2rem;
    position: relative;
}

.footer-links h3:after,
.footer-services h3:after,
.footer-contact h3:after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
    bottom: -10px;
    left: 0;
}

.footer-links ul,
.footer-services ul,
.footer-contact ul {
    list-style: none;
}

.footer-links li,
.footer-services li,
.footer-contact li {
    margin-bottom: 1rem;
}

.footer-links a,
.footer-services a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.footer-links a:hover,
.footer-services a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact li i {
    margin-right: 1rem;
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
}

/* ===== CHAT WIDGET ===== */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.chat-button {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.chat-button i {
    font-size: 2.4rem;
    color: white;
}

.chat-button:hover {
    background-color: var(--primary-dark);
    transform: scale(1.05);
}

.chat-popup {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    display: none;
}

.chat-header {
    background-color: var(--primary-color);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    margin-bottom: 0;
    color: white;
    font-size: 1.8rem;
}

.close-chat {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.8rem;
}

.chat-messages {
    height: 300px;
    padding: 1.5rem;
    overflow-y: auto;
}

.message {
    margin-bottom: 1.5rem;
    max-width: 80%;
}

.message p {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 0.5rem;
}

.received {
    align-self: flex-start;
}

.received p {
    background-color: #f1f1f1;
}

.sent {
    margin-left: auto;
}

.sent p {
    background-color: var(--primary-color);
    color: white;
}

.chat-input {
    display: flex;
    padding: 1.5rem;
    border-top: 1px solid #eee;
}

.chat-input input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 1.4rem;
    outline: none;
}

.send-message {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    margin-left: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ===== RESPONSIVE STYLES ===== */
@media screen and (max-width: 1024px) {
    html {
        font-size: 60%;
    }
    
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 4rem;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
}

@media screen and (max-width: 768px) {
    html {
        font-size: 55%;
    }
    
    .hamburger {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 2.5rem 0;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .services-grid,
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links h3:after,
    .footer-services h3:after,
    .footer-contact h3:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-contact li {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media screen and (max-width: 480px) {
    .hero-content h1 {
        font-size: 3.6rem;
    }
    
    .section-header h2 {
        font-size: 3rem;
    }
    
    .chat-popup {
        width: 300px;
    }
}
