/*
Theme Name: Grobotix
Description: A clean and modern WordPress theme for Grobotix AI - the AI-powered cannabis growing journal mobile app.
Version: 1.0
Author: Grobotix Team
*/

/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #121212;
    color: #ffffff;
    line-height: 1.6;
    font-weight: 400;
}

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

h1 {
    font-size: 3rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
    color: #e0e0e0;
}

a {
    color: #4CAF4F;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #66BB6A;
}

/* Container and Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
    scroll-margin-top: 100px; /* ensure anchors don't go under sticky header */
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background-color: #4CAF4F;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 79, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: #4CAF4F;
    border: 2px solid #4CAF4F;
}

.btn-secondary:hover {
    background-color: #4CAF4F;
    color: #ffffff;
}

.btn-dark-gray {
    background-color: #2d2d2d !important;
    background: #2d2d2d !important;
    color: #4CAF4F !important;
    border: 2px solid #2d2d2d !important;
}

.btn-dark-gray:hover {
    background-color: #1a1a1a !important;
    background: #1a1a1a !important;
    color: #4CAF4F !important;
    border-color: #1a1a1a !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 79, 0.3);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
    max-width: 275px;
}

/* Button with Icon Styles */
.btn-with-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 32px 40px !important;
    min-height: 180px;
    min-width: 220px;
}

.btn-with-icon span {
    font-size: 1.15rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.3;
}

.btn-icon {
    width: 64px;
    height: 64px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.btn-with-icon:hover .btn-icon {
    transform: scale(1.15);
}

/* Header Styles */
.announcement-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    background: #4CAF4F;
    color: #0f0f0f;
    padding: 8px 0;
    text-align: center;
}
.announcement-bar .announcement-link {
    color: #0f0f0f;
    font-weight: 600;
    text-decoration: none;
}
.announcement-bar .announcement-link:hover {
    text-decoration: underline;
}
.site-header {
    background-color: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 40px; /* offset for announcement bar */
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.site-header.scrolled {
    background-color: rgba(18, 18, 18, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

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

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

/* Navigation */
.main-navigation {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: #ffffff;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    white-space: nowrap;
}

.main-navigation a:hover {
    color: #4CAF4F;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #4CAF4F;
    transition: width 0.3s ease;
}

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

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: flex; /* show hamburger on all sizes */
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Footer Styles */
.site-footer {
    background-color: #0a0a0a;
    padding: 60px 0 30px;
    border-top: 1px solid #333;
}

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

.footer-section h3 {
    color: #4CAF4F;
    margin-bottom: 20px;
}

.footer-section p,
.footer-section a {
    color: #b0b0b0;
    margin-bottom: 10px;
}

.footer-section a:hover {
    color: #4CAF4F;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #333;
    color: #888;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        gap: 20px;
    }

    .hero-text {
        max-width: 700px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-stats {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

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

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

    .hero-text {
        max-width: 100%;
        padding: 0 20px;
    }

    .hero-content {
        gap: 15px;
    }

    .main-navigation {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .section {
        padding: 60px 0;
        scroll-margin-top: 70px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }

    .about-stats {
        flex-direction: column;
        gap: 20px;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
    }

    .download-features-wrapper {
        padding: 10px 0;
    }

    .download-features {
        animation: scroll-features 20s linear infinite;
        gap: 30px;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .feature-item {
        padding: 30px 20px;
    }

    .contact-form {
        padding: 30px 20px;
    }

    .btn-large {
        padding: 14px 24px;
        font-size: 1rem;
    }

    .btn-with-icon {
        padding: 24px 32px !important;
        min-height: 150px;
    }

    .btn-icon {
        width: 48px;
        height: 48px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-accent {
    color: #4CAF4F;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* Scroll Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animate-visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-fade-in {
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

.animate-fade-in.animate-visible {
    opacity: 1;
}

.animate-slide-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.animate-slide-left.animate-visible {
    opacity: 1;
    transform: translateX(0);
}

.animate-slide-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.animate-slide-right.animate-visible {
    opacity: 1;
    transform: translateX(0);
}

.animate-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-scale.animate-visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger animation delays for child elements */
.animate-stagger > *:nth-child(1) { transition-delay: 0.1s; }
.animate-stagger > *:nth-child(2) { transition-delay: 0.2s; }
.animate-stagger > *:nth-child(3) { transition-delay: 0.3s; }
.animate-stagger > *:nth-child(4) { transition-delay: 0.4s; }
.animate-stagger > *:nth-child(5) { transition-delay: 0.5s; }
.animate-stagger > *:nth-child(6) { transition-delay: 0.6s; }

/* Hero Section */
.hero-section {
    padding: 120px 0 80px;
    background-color: #121212;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(76, 175, 79, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
    gap: 20px;
}

.hero-text {
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-top: 60px;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: #e0e0e0;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 40px;
}

.hero-download-btn img {
    height: 60px;
    width: auto;
    max-width: 200px;
    transition: transform 0.3s ease;
}

.hero-download-btn:hover img {
    transform: scale(1.05);
}

.hero-image {
    text-align: center;
    width: 100%;
}

.hero-graphic {
    position: relative;
    display: block;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}

.hero-graphic img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

/* Features Section */
.features-section {
    background-color: #1a1a1a;
    margin-top: -200px;
}

.section-header {
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: #b0b0b0;
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.feature-item {
    background-color: #121212;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #333;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(76, 175, 79, 0.2);
    border-color: #4CAF4F;
}

.feature-icon {
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #4CAF4F;
}

.feature-item p {
    color: #b0b0b0;
    line-height: 1.6;
}

/* About Section */
.about-section {
    background-color: #121212;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #e0e0e0;
}

.community-features {
    margin-bottom: 2rem;
}

.community-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: #e0e0e0;
}

/* Inline SVG Icons - replaces FontAwesome (saves 216 KB) */
.icon-check {
    width: 1rem;
    height: 1rem;
    min-width: 16px;
    display: inline-block;
    vertical-align: middle;
}

.feature-check {
    color: #4CAF4F;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 2rem;
}

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

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: #b0b0b0;
    margin-bottom: 0;
}

.about-image {
    text-align: right;
}

.about-image img {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.community-download-buttons {
    display: flex;
    gap: 15px;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.community-download-btn img {
    height: 50px;
    width: auto;
    max-width: 180px;
    transition: transform 0.3s ease;
}

.community-download-btn:hover img {
    transform: scale(1.05);
}

/* Download Section */
.download-section {
    background-color: #000000;
    color: #ffffff;
}

.download-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.download-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.download-btn img {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease;
    max-width: 200px;
}

.download-btn:hover img {
    transform: scale(1.05);
}

.download-features-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 20px 0;
}

.download-features {
    display: flex;
    gap: 40px;
    animation: scroll-features 30s linear infinite;
    width: max-content;
}

.download-features:hover {
    animation-play-state: paused;
}

@keyframes scroll-features {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #4CAF4F 0%, #45a049 100%);
    color: #ffffff;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.btn-cta {
    background-color: #000000 !important;
    background: #000000 !important;
    color: #ffffff !important;
    border: 2px solid #000000 !important;
}

.btn-cta:hover {
    background-color: #1a1a1a !important;
    background: #1a1a1a !important;
    border-color: #1a1a1a !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.4);
}

.btn-arrow {
    color: #4CAF4F;
    font-weight: bold;
    font-size: 1.2em;
    margin-right: 8px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.btn-cta:hover .btn-arrow {
    transform: translateX(5px);
}

.download-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    padding: 10px 20px;
    background: #4a4a4a;
    border-radius: 30px;
    transition: background 0.3s ease;
}

.download-feature:hover {
    background: #5a5a5a;
}

.checkmark {
    background-color: #4CAF4F;
    color: #ffffff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

/* Contact Section */
.contact-section {
    background-color: #1a1a1a;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    padding: 30px;
    background-color: #222;
    border-radius: 12px;
    border: 1px solid #333;
    transition: border-color 0.3s ease;
}

.contact-item:hover {
    border-color: #4CAF4F;
}

.contact-item h3 {
    color: #4CAF4F;
    margin-bottom: 10px;
}

.contact-item p {
    color: #b0b0b0;
    margin-bottom: 10px;
}

.contact-item a {
    color: #ffffff;
    font-weight: 500;
}

.contact-download-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.contact-download-btn img {
    height: 40px;
    width: auto;
    max-width: 150px;
    transition: transform 0.3s ease;
}

.contact-download-btn:hover img {
    transform: scale(1.05);
}

.contact-form {
    background-color: #222;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #333;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background-color: #333;
    border: 1px solid #444;
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4CAF4F;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #888;
}

.form-message {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Mobile Navigation */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.mobile-nav-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-navigation ul {
    list-style: none;
    text-align: center;
}

.mobile-navigation li {
    margin-bottom: 30px;
}

.mobile-navigation a {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-navigation a:hover {
    color: #4CAF4F;
}

.mobile-nav-cta {
    margin-top: 40px;
}

/* Hamburger Menu */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    padding: 0;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Footer Enhancements */
.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #333;
    border-radius: 50%;
    color: #b0b0b0;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: #4CAF4F;
    color: #ffffff;
    transform: translateY(-2px);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

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

.footer-bottom-links a {
    color: #888;
    font-size: 0.9rem;
}

.footer-bottom-links a:hover {
    color: #4CAF4F;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.feature-item,
.stat-item,
.contact-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.feature-item.animate-in,
.stat-item.animate-in,
.contact-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Header Hide/Show Animation */
.site-header {
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.site-header.header-hidden {
    transform: translateY(-100%);
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: #ffffff;
    font-weight: 500;
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 300px;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    background-color: #4CAF4F;
}

.notification-error {
    background-color: #f44336;
}

/* Loading States */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Lazy Loading */
img.lazy {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img.lazy.loaded {
    opacity: 1;
}

/* Body Menu Open State */
body.menu-open {
    overflow: hidden;
}

/* Additional Hover Effects */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

/* Scroll Indicator */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #4CAF4F, #66BB6A);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #4CAF4F;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #45a049;
}

/* Page Template Styles */
.page-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #ffffff;
    padding: 80px 0 60px;
    text-align: center;
}

.page-header-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
}

.page-excerpt {
    font-size: 1.2rem;
    color: #b0b0b0;
    line-height: 1.6;
    margin: 0;
}

.page-content-section {
    padding: 80px 0;
    background-color: #0f0f0f;
}

.page-content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.page-article {
    background-color: #1a1a1a;
    border-radius: 12px;
    padding: 40px;
    border: 1px solid #333;
}

.page-featured-image {
    margin-bottom: 40px;
    text-align: center;
}

.page-featured-image .featured-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-content {
    color: #ffffff;
    line-height: 1.8;
}

.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4,
.page-content h5,
.page-content h6 {
    color: #4CAF4F;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.page-content h1 { font-size: 2.5rem; }
.page-content h2 { font-size: 2rem; }
.page-content h3 { font-size: 1.5rem; }
.page-content h4 { font-size: 1.25rem; }

.page-content p {
    margin-bottom: 1.5rem;
    color: #e0e0e0;
}

.page-content ul,
.page-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.page-content li {
    margin-bottom: 0.5rem;
    color: #e0e0e0;
}

.page-content a {
    color: #4CAF4F;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-content a:hover {
    color: #66BB6A;
    text-decoration: underline;
}

.page-content blockquote {
    border-left: 4px solid #4CAF4F;
    padding-left: 2rem;
    margin: 2rem 0;
    font-style: italic;
    color: #b0b0b0;
}

.page-content code {
    background-color: #333;
    color: #4CAF4F;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

.page-content pre {
    background-color: #222;
    color: #e0e0e0;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.page-links {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #333;
}

.page-links a {
    display: inline-block;
    padding: 8px 16px;
    background-color: #333;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    margin-right: 8px;
    transition: background-color 0.3s ease;
}

.page-links a:hover {
    background-color: #4CAF4F;
}

.page-meta {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #333;
    text-align: center;
}

.edit-link a {
    color: #888;
    font-size: 0.9rem;
    text-decoration: none;
}

.edit-link a:hover {
    color: #4CAF4F;
}

/* Responsive Design for Pages */
@media (max-width: 768px) {
    .page-header {
        padding: 60px 0 40px;
    }

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

    .page-excerpt {
        font-size: 1rem;
    }

    .page-content-section {
        padding: 40px 0;
    }

    .page-article {
        padding: 20px;
        margin: 0 15px;
    }

    .page-content h1 { font-size: 2rem; }
    .page-content h2 { font-size: 1.5rem; }
    .page-content h3 { font-size: 1.25rem; }
}

/* Post-Specific Styles */
.post-meta {
    display: flex;
    gap: 20px;
    margin: 1rem 0;
    flex-wrap: wrap;
    justify-content: center;
}

.post-meta span {
    color: #b0b0b0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-meta i {
    color: #4CAF4F;
}

.post-tags {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #333;
}

.post-tags h4 {
    color: #4CAF4F;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.post-tags .tag {
    display: inline-block;
    background-color: #333;
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-right: 8px;
    margin-bottom: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.post-tags .tag:hover {
    background-color: #4CAF4F;
}

.post-navigation {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #333;
}

.nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.nav-previous,
.nav-next {
    padding: 1.5rem;
    background-color: #222;
    border-radius: 8px;
    border: 1px solid #333;
    transition: border-color 0.3s ease;
}

.nav-previous:hover,
.nav-next:hover {
    border-color: #4CAF4F;
}

.nav-previous a,
.nav-next a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.nav-next {
    text-align: right;
}

.nav-subtitle {
    display: block;
    color: #888;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-title {
    display: block;
    color: #ffffff;
    font-weight: 600;
    line-height: 1.4;
}

/* Mobile Responsive for Posts */
@media (max-width: 768px) {
    .post-meta {
        justify-content: flex-start;
        gap: 15px;
    }

    .nav-links {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

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

/* Google Play Waitlist Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #1a1a1a;
    border-radius: 16px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid #333;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #888;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #ffffff;
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.modal-logo {
    height: 60px;
    width: auto;
    margin-bottom: 20px;
}

.modal-header h2 {
    color: #4CAF4F;
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.modal-header p {
    color: #e0e0e0;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.modal-header strong {
    color: #4CAF4F;
    font-weight: 600;
}

.google-waitlist-form {
    margin-bottom: 20px;
}

.google-waitlist-form .form-group {
    margin-bottom: 20px;
}

.google-waitlist-form input {
    width: 100%;
    padding: 15px;
    background-color: #333;
    border: 1px solid #444;
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.google-waitlist-form input:focus {
    outline: none;
    border-color: #4CAF4F;
}

.google-waitlist-form input::placeholder {
    color: #888;
}

.btn-large {
    width: 100%;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #4CAF4F 0%, #66BB6A 100%);
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-large:hover {
    background: linear-gradient(135deg, #45a049 0%, #5cb85c 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 175, 79, 0.3);
}

.btn-large:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.modal-footer {
    text-align: center;
    margin-top: 20px;
}

.modal-footer p {
    color: #b0b0b0;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

.google-waitlist-form .form-message {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
    text-align: center;
}

.google-waitlist-form .form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.google-waitlist-form .form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Modal animations */
.modal-overlay {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translate(-50%, -60%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

/* Mobile responsive for modal */
@media (max-width: 768px) {
    .modal-content {
        padding: 30px 20px;
        width: 95%;
        margin: 20px;
    }

    .modal-header h2 {
        font-size: 1.5rem;
    }

    .modal-logo {
        height: 50px;
    }
}


/* Mobile stacking adjustments (reinforced) */
@media (max-width: 768px) {
    .features-grid { grid-template-columns: 1fr !important; gap: 24px; }
    .about-content { grid-template-columns: 1fr !important; gap: 32px; }
    .about-image { text-align: center; }
    .about-image img { max-width: 100%; }
    .contact-content { grid-template-columns: 1fr !important; gap: 32px; }
}

/* Hero Carousel Styles */
.hero-carousel {
    position: relative;
    width: 100%;
    overflow: visible;
}

.carousel-slides-wrapper {
    position: relative;
    width: 100%;
    overflow: visible;
    /* height will be set dynamically by JavaScript to match tallest slide */
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0s 0.6s;
    pointer-events: none;
}

.carousel-slide.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.6s ease-in-out, visibility 0s 0s;
    pointer-events: auto;
    animation: fadeIn 0.6s ease-in-out;
}

.carousel-slide .hero-content {
    justify-content: flex-start;
}

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

/* Carousel Navigation Arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(18, 18, 18, 0.8);
    border: 2px solid rgba(76, 175, 79, 0.5);
    color: #4CAF4F;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    z-index: 10;
    user-select: none;
}

.carousel-arrow.prev {
    left: 20px;
}

.carousel-arrow.next {
    right: 20px;
}

.carousel-arrow:hover {
    background-color: #4CAF4F;
    color: #ffffff;
    border-color: #4CAF4F;
    transform: translateY(-50%) scale(1.1);
}

.carousel-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

/* Carousel Dots */
.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot:hover {
    background-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.carousel-dot.active {
    background-color: #4CAF4F;
    border-color: #4CAF4F;
    transform: scale(1.2);
}

/* Responsive Carousel Styles */
@media (max-width: 768px) {
    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .carousel-arrow.prev {
        left: 10px;
    }

    .carousel-arrow.next {
        right: 10px;
    }

    .carousel-dots {
        bottom: 20px;
    }

    .carousel-dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .carousel-arrow {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }

    .carousel-dots {
        bottom: 15px;
        gap: 8px;
    }

    .carousel-dot {
        width: 8px;
        height: 8px;
    }
}

/* Product Cards for Homepage */
.product-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.product-card {
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(76, 175, 79, 0.2);
    border-color: #4CAF4F;
}

.product-card-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.product-card h3 {
    color: #4CAF4F;
    margin-bottom: 15px;
}

.product-card p {
    color: #b0b0b0;
    margin-bottom: 20px;
}

.product-card .btn {
    margin-top: 10px;
}

@media (max-width: 768px) {
    .product-cards {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
