/*
Theme Name: BeiraByte Technologies
Theme URI: https://beirabyte.com
Author: BeiraByte Technologies
Author URI: https://beirabyte.com
Description: A modern, AI-driven grocery shopping landing page theme for BeiraByte Technologies. Features a sleek dark design with gradient accents, email subscription form, and responsive layout.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: beirabyte
Tags: one-column, custom-colors, custom-logo, custom-menu, featured-images, full-width-template, translation-ready
*/

/* ============================================
   CSS VARIABLES & ROOT STYLES
   ============================================ */
:root {
    /* Original BeiraByte Colors - Dark purple/blue gradient background */
    --primary-bg: #0a0014;
    --primary-gradient-start: #0a0014;
    --primary-gradient-mid: #1a0a2e;
    --primary-gradient-end: #0d0620;
    
    /* Accent colors from original site */
    --accent-purple: #6b2fb3;
    --accent-blue: #1e3a8a;
    --accent-pink: #c026d3;
    --accent-cyan: #22d3ee;
    --accent-magenta: #d946ef;
    
    /* Button/CTA colors */
    --button-bg: #3b82f6;
    --button-hover: #2563eb;
    
    /* Text colors */
    --text-white: #ffffff;
    --text-light: rgba(255, 255, 255, 0.95);
    --text-muted: rgba(255, 255, 255, 0.75);
    --text-dim: rgba(255, 255, 255, 0.6);
    
    /* Font - matching original site */
    --font-primary: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-white);
    background-color: var(--primary-bg);
    background-image: url('images/hero-background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Dark overlay for better text readability */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg, 
        rgba(10, 0, 20, 0.85) 0%, 
        rgba(26, 10, 46, 0.75) 30%,
        rgba(13, 6, 32, 0.8) 70%,
        rgba(10, 0, 20, 0.9) 100%
    );
    pointer-events: none;
    z-index: 0;
}

/* Subtle purple glow effects like original */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 30% 20%, rgba(107, 47, 179, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 60%, rgba(192, 38, 211, 0.1) 0%, transparent 40%),
        radial-gradient(ellipse at 20% 80%, rgba(30, 58, 138, 0.12) 0%, transparent 45%);
    pointer-events: none;
    z-index: 0;
}

a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--accent-pink);
}

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

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    color: var(--text-white);
    font-weight: 700;
    letter-spacing: -0.5px;
}

h2 {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-light);
    font-weight: 400;
    line-height: 1.6;
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

/* ============================================
   LAYOUT & CONTAINERS
   ============================================ */
.site-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem 2rem;
    text-align: center;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    background: transparent;
    transition: var(--transition-smooth);
}

.site-header.scrolled {
    padding: 0.75rem 2rem;
    background: rgba(10, 0, 20, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-logo img {
    height: 50px;
    width: auto;
}

.site-logo .logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: -0.5px;
}

.site-logo .logo-text span {
    color: var(--accent-cyan);
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-navigation a {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-pink));
    transition: var(--transition-smooth);
}

.main-navigation a:hover::after,
.main-navigation a.current::after {
    width: 100%;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-white);
    margin: 5px 0;
    transition: var(--transition-smooth);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 6rem 2rem 4rem;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: none; /* Hidden to match original site */
}

.hero-title {
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-subtitle {
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 2rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
    line-height: 1.7;
}

.hero-announcement {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    animation: fadeInUp 0.8s ease-out 0.5s both;
    font-weight: 400;
    line-height: 1.6;
}

/* Hero image/illustration */
.hero-image {
    position: relative;
    margin: 2rem auto;
    max-width: 500px;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-image img {
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(107, 47, 179, 0.25);
}

.hero-image::before {
    content: '';
    position: absolute;
    inset: -8px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-magenta));
    border-radius: 16px;
    z-index: -1;
    opacity: 0.25;
    filter: blur(15px);
}

/* ============================================
   SUBSCRIPTION FORM - Matching Original Blue Style
   ============================================ */
.subscription-section {
    width: 100%;
    max-width: 480px;
    margin: 1.5rem auto;
    animation: fadeInUp 0.8s ease-out 0.7s both;
}

.subscription-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.subscription-form input[type="email"] {
    width: 100%;
    max-width: 350px;
    padding: 0.9rem 1.25rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: var(--text-white);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-smooth);
}

.subscription-form input[type="email"]:focus {
    border-color: var(--button-bg);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.subscription-form input[type="email"]::placeholder {
    color: var(--text-dim);
}

.subscription-form button {
    padding: 0.9rem 2rem;
    background: var(--button-bg);
    border: none;
    border-radius: 4px;
    color: var(--text-white);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    min-width: 160px;
}

.subscription-form button:hover {
    background: var(--button-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.subscription-form button:active {
    transform: translateY(0);
}

/* Form messages */
.form-message {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(46, 213, 115, 0.2);
    border: 1px solid rgba(46, 213, 115, 0.3);
    color: #2ed573;
}

.form-message.error {
    display: block;
    background: rgba(255, 71, 87, 0.2);
    border: 1px solid rgba(255, 71, 87, 0.3);
    color: #ff4757;
}

/* ============================================
   FEATURES SECTION (Optional)
   ============================================ */
.features-section {
    padding: 6rem 2rem;
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: var(--transition-smooth);
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-5px);
    border-color: rgba(0, 212, 255, 0.3);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(233, 30, 140, 0.2));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

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

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* ============================================
   FOOTER - Matching Original Site
   ============================================ */
.site-footer {
    padding: 2.5rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 0, 20, 0.6);
    position: relative;
    z-index: 1;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-links a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 50%;
    transition: var(--transition-smooth);
    opacity: 0.8;
}

.social-links a:hover {
    opacity: 1;
    transform: scale(1.1);
}

.social-links svg {
    width: 20px;
    height: 20px;
    fill: var(--text-white);
}

.footer-address {
    color: var(--text-dim);
    font-size: 0.85rem;
    text-align: center;
    margin: 0;
}

.footer-copyright {
    color: var(--text-dim);
    font-size: 0.8rem;
    text-align: center;
    margin: 0;
}

.footer-copyright a {
    color: var(--text-dim);
}

.footer-copyright a:hover {
    color: var(--text-white);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.5);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .site-header {
        padding: 1rem 1.5rem;
    }

    .menu-toggle {
        display: block;
    }

    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: rgba(26, 10, 46, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        transition: right 0.3s ease;
    }

    .main-navigation.active {
        right: 0;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 1.5rem;
    }

    .main-navigation a {
        font-size: 1.1rem;
    }

    .hero-section {
        padding: 6rem 1.5rem 3rem;
        min-height: auto;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .subscription-form {
        flex-direction: column;
        padding: 1rem;
        border-radius: 20px;
    }

    .subscription-form input[type="email"] {
        text-align: center;
    }

    .subscription-form button {
        width: 100%;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 1rem;
    }

    .hero-section {
        padding: 5rem 1rem 2rem;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }
}

/* ============================================
   WORDPRESS SPECIFIC STYLES
   ============================================ */
/* Admin bar fix */
body.admin-bar .site-header {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}

/* Screen reader text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent-cyan);
    color: var(--text-white);
    padding: 8px;
    z-index: 100000;
}

.skip-link:focus {
    top: 0;
}

/* Alignments */
.alignleft {
    float: left;
    margin-right: 1.5em;
    margin-bottom: 1em;
}

.alignright {
    float: right;
    margin-left: 1.5em;
    margin-bottom: 1em;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1em;
}

/* Widget styles */
.widget {
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-white);
}

/* Comment styles */
.comments-area {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    margin-top: 2rem;
}

.comment-list {
    list-style: none;
}

.comment {
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
}

.comment-author {
    font-weight: 600;
    color: var(--text-white);
}

.comment-content {
    margin-top: 0.5rem;
    color: var(--text-muted);
}

/* Form elements */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-white);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

button,
input[type="submit"] {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    border: none;
    border-radius: 8px;
    color: var(--text-white);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

button:hover,
input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

/* WooCommerce compatibility (if needed) */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--accent-cyan);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}
