/* StreamBarX Landing Page Styles - Modern 2025 Refresh */

:root {
    --primary: #7c3aed; /* Vibrant Purple */
    --accent: #10b981;  /* Emerald Green */
    --background: #111827; /* Deep Indigo */
    --secondary-bg: #1f2937; /* Darker Gray */
    --text-primary: #f9fafb; /* Almost White */
    --text-secondary: #9ca3af; /* Medium Gray */
    --glass-bg: rgba(31, 41, 55, 0.6); /* Darker glass */
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --highlight: #ec4899; /* Pinkish accent for specific highlights */
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.7;
    font-size: 16px; /* Base font size */
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75em; /* Consistent heading margin */
    line-height: 1.3;
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

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

a:hover, a:focus {
    color: #34d399; /* Lighter accent on hover */
}

.section-padding {
    padding: clamp(4rem, 10vw, 6rem) 0;
}

.section-title {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    color: var(--text-secondary);
    font-weight: 400;
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    max-width: 600px; /* Constrain subtitle width */
    margin-left: auto;
    margin-right: auto;
}

/* Navigation */
.glass-nav {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--shadow-color);
    border-bottom: 1px solid var(--glass-border);
    transition: background-color 0.3s ease;
}

/* Add subtle background change on scroll */
.glass-nav.scrolled {
    background: rgba(31, 41, 55, 0.85); /* Darker on scroll */
}

.navbar {
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.4rem;
}

.navbar-brand img {
    filter: drop-shadow(0 0 5px var(--primary));
    transition: filter 0.3s ease;
}
.navbar-brand:hover img {
    filter: drop-shadow(0 0 10px var(--primary));
}

.navbar-toggler {
    border: none;
    color: var(--text-primary);
}
.navbar-toggler:focus {
    box-shadow: none;
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28249, 250, 251, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    margin: 0 0.75rem;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active { /* Style for active link */
    color: var(--text-primary);
}

/* Underline effect for nav links */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link:focus::after,
.nav-link.active::after {
    width: 100%;
}

/* Hero */
.hero {
    padding-top: clamp(8rem, 15vh, 10rem);
    padding-bottom: clamp(4rem, 10vh, 6rem);
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, var(--background) 0%, var(--secondary-bg) 100%);
}

.hero h1 {
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--text-primary) 60%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* text-fill-color: transparent; /* Optional, for browsers supporting standard */
}

.hero .lead {
    font-size: clamp(1.1rem, 2.5vw, 1.25rem);
    font-weight: 400;
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
    max-width: 550px; /* Constrain lead text */
}

.hero-shapes {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none;
}

/* Subtle shape movement (optional, can add JS later) */
.hero-shapes .shape-1 {
    position: absolute;
    right: -5%;
    top: 0%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
    width: clamp(300px, 40vw, 600px);
    height: clamp(300px, 40vw, 600px);
    border-radius: 50%;
    opacity: 0.8;
    animation: pulse-shape 15s infinite alternate ease-in-out;
}

.hero-shapes .shape-2 {
    position: absolute;
    left: -5%;
    bottom: 0%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
    width: clamp(250px, 30vw, 500px);
    height: clamp(250px, 30vw, 500px);
    border-radius: 50%;
    opacity: 0.7;
    animation: pulse-shape 18s infinite alternate ease-in-out;
    animation-delay: 3s;
}

@keyframes pulse-shape {
    0% { transform: scale(0.9); opacity: 0.6; }
    100% { transform: scale(1.1); opacity: 0.8; }
}

.hero-img-container {
    position: relative; /* For potential pseudo-elements */
    padding: 0.5rem;
    z-index: 1;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 8px 32px var(--shadow-color);
    border: 1px solid var(--glass-border);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card img {
    display: block; /* Remove potential bottom space */
    width: 100%;
    height: auto;
}

.glass-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(124, 58, 237, 0.2);
}

/* Buttons */
.btn {
    border-radius: 8px;
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-size: 1rem;
    display: inline-flex; /* Align icon and text */
    align-items: center;
    justify-content: center;
    gap: 0.5rem; /* Space between icon and text */
}

.btn-lg {
    padding: 0.9rem 2rem;
    font-size: 1.1rem;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #6d28d9; /* Darker purple */
    border-color: #6d28d9;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

.btn-outline-accent {
    color: var(--accent);
    border-color: var(--accent);
    background-color: transparent;
}

.btn-outline-accent:hover, .btn-outline-accent:focus {
    background-color: var(--accent);
    color: var(--background);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(16, 185, 129, 0.3);
}

/* Button focus state */
.btn:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

/* Features */
.feature-card {
    background: var(--secondary-bg);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid transparent; /* Start transparent */
    text-align: center; /* Center content */
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px var(--shadow-color);
    border-color: var(--primary);
}

.feature-card .icon-box {
    background: linear-gradient(135deg, var(--primary), var(--highlight));
    width: 72px;
    height: 72px;
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto; /* Center icon box */
    box-shadow: 0 6px 15px rgba(124, 58, 237, 0.3);
    color: white;
}

.feature-card .icon-box i {
    font-size: 32px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

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

/* Design Section */
.bg-subtle {
    background-color: var(--secondary-bg);
}

.design-img {
    position: relative;
    padding: 0; /* Remove extra padding */
}

.glass-img {
    border-radius: var(--border-radius-lg);
    box-shadow: 0 15px 35px var(--shadow-color);
    border: 1px solid var(--glass-border);
    display: block; /* Ensure block level */
    max-width: 100%;
    height: auto;
}

.design-icon {
    flex-shrink: 0; /* Prevent icon from shrinking */
    width: 56px;
    height: 56px;
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent), #059669); /* Green gradient */
    box-shadow: 0 6px 15px rgba(16, 185, 129, 0.3);
    color: white;
}

.design-icon i {
    font-size: 24px;
}

.design-features .d-flex {
    align-items: flex-start; /* Align items top */
}

.design-features h3 {
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
}

.design-features p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0; /* Remove default p margin */
}

/* Download */
.download-card {
    background: var(--secondary-bg);
    border-radius: var(--border-radius-lg);
    padding: clamp(2.5rem, 6vw, 4rem);
    box-shadow: 0 15px 40px var(--shadow-color);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

/* Subtle background gradient effect */
.download-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(124, 58, 237, 0.1), transparent 60%);
    animation: rotate-gradient 20s linear infinite;
    z-index: 0;
}

@keyframes rotate-gradient {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.download-card > * { /* Ensure content is above pseudo-element */
    position: relative;
    z-index: 1;
}

.download-btn {
    /* Inherits .btn and .btn-primary styles */
    /* Add specific overrides if needed */
}

.tech-details .badge {
    background-color: rgba(16, 185, 129, 0.15);
    color: var(--accent);
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0.2rem;
    border-radius: 6px;
    font-size: 0.9rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Footer */
footer {
    padding: 3rem 0;
    background-color: var(--secondary-bg);
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap; /* Wrap links on smaller screens */
    gap: 1.5rem;
}

.footer-links li {
    margin: 0;
}

.footer-links a,
.footer-links span {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

footer .navbar-brand span {
    color: var(--text-secondary);
}

/* Accessibility focus outline */
:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px; /* Add radius to outline */
}
/* Remove default focus for non-keyboard interactions if needed */
:focus:not(:focus-visible) {
  outline: none;
}


/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero {
        text-align: center;
    }
    .hero .lead, .hero h1 {
        margin-left: auto;
        margin-right: auto;
    }
    .hero .d-flex {
        justify-content: center;
    }
    .hero-img-container {
        margin-top: 3rem;
    }
    .design-img {
        margin-bottom: 2rem;
    }
    .footer-links {
        justify-content: center;
        margin-top: 1rem;
    }
    footer .row > div {
        text-align: center;
        margin-bottom: 1rem;
    }
    footer .d-flex.justify-content-md-end {
        justify-content: center !important;
    }
}

@media (max-width: 768px) {
    .feature-card {
        padding: 2rem;
    }
    .nav-link {
        margin: 0 0.5rem;
    }
}
