/* Global Styles */
body {
    background: linear-gradient(135deg, rgba(176,0,42,0.02) 0%, rgba(255,30,86,0.02) 100%);
    margin: 0;
    padding: 0;
    font-family: 'Rubik', sans-serif;
    color: hsl(0, 0%, 63%); /* changed: metallic gray text */
}

/* Site Header */
.site-header {
    background-color: #B0002A; /* changed: deep red header */
    color: #fff;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(255,30,86,0.3); /* neon pink glow */
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* New Header Controls Container inside the site header */
.header-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Adjust main navigation position */
.main-nav {
    margin-right: 80px; /* Add space for language switcher */
}

/* Enhanced Navigation Links */
.nav-link {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    font-weight: 500;
    display: flex;
    gap: 6px;
    /* Removed height and line-height to restore original reviews button */
    /* height: 40px;
       line-height: 40px; */
}

.nav-link::before {
    content: '★';
    font-size: 14px;
}

.nav-link:hover {
    border-color: rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,30,86,0.3);
}

/* Desktop Navigation */
.nav-links {
    display: flex;
    gap: 10px;
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: relative;
}

.menu-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.8);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    transform: translate(-50%, 10px);
    background: linear-gradient(135deg, #B0002A 0%, #FF1E56 100%);
    min-width: 200px;
    border-radius: 10px;
    padding: 8px;
    margin-top: 5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    left: 50%; /* Add this line to ensure proper positioning */
}

.dropdown-menu a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.dropdown-menu a:hover {
    background: rgba(255,255,255,0.1);
    transform: translateX(5px);
}

/* Add RTL support for Hebrew */

.rtl-nav .dropdown-menu a {
    text-align: right;
}

.rtl-nav .dropdown-menu a:hover {
    transform: translateX(-5px);
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .mobile-nav {
        display: block;
    }
    
    .mobile-nav.active .dropdown-menu {
        display: block;
    }
    
    .rtl-nav.mobile-nav.active .dropdown-menu {
        display: block;
        left: 0;
        right: auto;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #FF1E56, transparent);
}

.hero-image {
    width: 180px;
    height: 180px;
    border-radius: 15px;
    margin-bottom: 30px;
    margin-top: 160px;
    border: 3px solid #FF1E56;
    box-shadow: 0 0 25px rgba(255,30,86,0.3);
    transform: rotate(-5deg);
    transition: transform 0.3s ease;
}

.hero-image:hover {
    transform: rotate(0deg) scale(1.05);
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #B0002A;
    text-shadow: 2px 2px 4px rgba(255,30,86,0.2);
    font-weight: 800;
}

.hero p {
    font-size: 1.4em;
    margin-bottom: 30px;
    color: #666;
    line-height: 1.6;
}

/* CTA Button (Hero & Contact) */
.cta-button,
.contact-btn {
    padding: 15px 40px;
    font-size: 1.1em;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    background: linear-gradient(135deg, #B0002A 0%, #FF1E56 100%);
    border: 2px solid transparent;
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cta-button::before,
.contact-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #FF1E56 0%, #B0002A 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 28px; /* Match parent's border-radius - border width */
}

.cta-button:hover,
.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(255,30,86,0.3);
    border-color: rgba(255,30,86,0.5);
}

.cta-button:hover::before,
.contact-btn:hover::before {
    opacity: 1;
}

.cta-button:active,
.contact-btn:active {
    transform: translateY(1px);
}

/* Section Headers */
section h2 {
    font-size: 2.8em;
    color: #B0002A;
    margin-bottom: 40px;
    text-shadow: 2px 2px 4px rgba(255,30,86,0.2);
    font-weight: 800;
    position: relative;
    display: inline-block;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #FF1E56, transparent);
}

/* Brand Showcase */
.brand-showcase {
    padding: 80px 20px;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.brand-showcase .brands {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    border: 1px solid rgba(255,30,86,0.1);
    box-shadow: 0 0 30px rgba(255,30,86,0.05);
    overflow: hidden;
    width: calc(100% - 60px);
    margin: 0 10px;
    position: relative;
}

.brand-showcase .brands-scroll {
    display: flex;
    gap: 20px;
    animation: scrollBrands 30s linear infinite;
    padding-right: 20px; /* Add padding to prevent gap at loop point */
}

.brand-showcase .brands:hover .brands-scroll {
    animation-play-state: paused;
}

@keyframes scrollBrands {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.brand-showcase img {
    max-width: 100px;
    min-width: 100px; /* added to maintain consistent width */
    height: 100px; /* added to maintain square aspect ratio */
    object-fit: cover; /* ensure images cover the area */
    transition: all 0.3s ease;
    border-radius: 100%;
    flex-shrink: 0; /* prevent images from shrinking */
}

.brand-showcase img:hover {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 0 20px rgba(255,30,86,0.3);
}

/* Services Section */
.services {
    padding: 80px 20px;
    background: linear-gradient(135deg, rgba(176,0,42,0.03) 0%, rgba(255,30,86,0.03) 100%);
    text-align: center; /* Add this line to center the title */
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-item {
    padding: 40px 30px;
    border: 2px solid transparent;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #B0002A, #FF1E56);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-item:hover::before {
    transform: scaleX(1);
}

.service-item:hover {
    transform: translateY(-5px);
    border-color: rgba(255,30,86,0.2);
    box-shadow: 0 8px 25px rgba(255,30,86,0.15);
}

.service-item h3 {
    font-size: 1.8em;
    color: #B0002A;
    margin-bottom: 10px;
}

.service-item p {
    font-size: 1.1em;
    color: #555;
    line-height: 1.8;
    margin-top: 15px;
}

.service-icon {
    display: block;
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(0 0 10px rgba(255,30,86,0.3)); /* Add glow effect to icons */
    transition: transform 0.3s ease;
}

.service-icon.discord {
    background-image: url('../media/icons/discord.svg');
}

.service-icon.web {
    background-image: url('../media/icons/web.svg');
}

.service-icon.api {
    background-image: url('../media/icons/api.svg');
}

/* Contact Section */
.contact {
    padding: 80px 20px;
    background: linear-gradient(135deg, rgba(176,0,42,0.04) 0%, rgba(255,30,86,0.04) 100%);
    text-align: center;
}
body.dark-mode .contact {
    background: linear-gradient(135deg, rgba(0,0,0,0.9) 0%, rgba(30,30,30,0.9) 100%);
}

.discord-contact {
    max-width: 700px;
    margin: 0 auto;
    padding: 50px 40px;
    box-shadow: 0 10px 30px rgba(255,30,86,0.1);
    border-radius: 20px;
}

.discord-info {
    margin-bottom: 25px;
}

.discord-logo {
    width: 100px;
    height: 100px;
    margin-bottom: 25px;
    filter: drop-shadow(0 0 15px rgba(255,30,86,0.4));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.discord-info h3 {
    font-size: 2em;
    color: #B0002A;
    margin-bottom: 15px;
}

.member-count {
    color: #FF1E56;
    font-size: 1.2em;
    font-weight: 600;
    margin: 20px 0;
}

.discord-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.discord-btn {
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.join-btn {
    background-color: #B0002A;
    color: white;
    border: 1px solid #FF1E56;
    box-shadow: 0 0 10px rgba(255,30,86,0.3);
}

.ticket-btn {
    background-color: transparent;
    color: #FF1E56;
    border: 1px solid #FF1E56;
}

.join-btn:hover {
    background-color: #FF1E56;
    box-shadow: 0 0 15px rgba(255,30,86,0.5);
}

.ticket-btn:hover {
    background-color: rgba(255,30,86,0.1);
    box-shadow: 0 0 15px rgba(255,30,86,0.3);
}

/* Redesigned Dark Mode Toggle Button in header */
.dark-mode-toggle {
    width: 40px;
    background: linear-gradient(135deg, rgba(176,0,42,0.03) 0%, rgba(255,30,86,0.03) 100%);
    flex: 1;
}

.reviews-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.review-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(255,30,86,0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255,30,86,0.1);
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255,30,86,0.2);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.review-header h3 {
    color: #B0002A;
    margin: 0;
    font-size: 1.2em;
}

.stars {
    color: #FF1E56;
    font-size: 1.2em;
}

.star {
    margin: 0 1px;
}

.star.empty {
    color: #ddd;
}

.review-content {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.reviews-page {
    min-height: 100vh;
    margin: 0;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


.lang-btn {
    width: 40px;
    height: 40px;
    padding: 2px;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 4px; /* slight rounded corners */
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.lang-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255,30,86,0.3);
}

.lang-btn img {
    width: 100%;
    height: 100%;
    border-radius: 4px; /* match parent's radius */
    object-fit: cover;
}

/* Redesigned Dark Mode Toggle Button in header */
.dark-mode-toggle {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff, #ccc);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: background 0.3s, box-shadow 0.3s;
    z-index: 2000;
}

.dark-mode-toggle img {
    width: 60%;
    height: 60%;
    transition: transform 0.3s ease;
}

.dark-mode-toggle:hover img {
    transform: scale(1.1);
}

body.dark-mode .dark-mode-toggle {
    background: linear-gradient(135deg, #333, #555);
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* Floating Reviews Button */
.floating-reviews {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 15px 25px;
    background: linear-gradient(135deg, #B0002A 0%, #FF1E56 100%);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(255,30,86,0.4);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    z-index: 100;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.floating-reviews::before {
    content: '★';
    font-size: 16px;
}

.floating-reviews:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255,30,86,0.6);
    border-color: rgba(255,255,255,0.5);
}

.floating-reviews:active {
    transform: translateY(-1px);
}

/* Section Title (for Reviews page) */
.section-title {
    font-size: 2.8em;
    color: #B0002A;
    margin-bottom: 40px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(255,30,86,0.2);
    font-weight: 800;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #FF1E56, transparent);
}

/* Back to Home Button */
.back-home {
    position: fixed;
    bottom: 30px;
    right: 30px; /* Changed from left to right */
    padding: 10px 20px; /* Reduced padding */
    background: linear-gradient(135deg, #B0002A 0%, #FF1E56 100%);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(255,30,86,0.4);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9em; /* Smaller font size */
    font-weight: 500;
    z-index: 100;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.back-home::before {
    content: '←';
    font-size: 16px;
}

/* Remove the floating-reviews button when on reviews page */
.reviews-page .floating-reviews {
    display: none;
}

/* Site Footer */
.site-footer {
    background-color: #B0002A; /* deep red */
    color: #A0A0A0; /* metallic gray */
    text-align: center;
    padding: 15px 20px;
    font-size: 0.9em;
    border-top: 1px solid #FF1E56; /* neon pink line */
}

/* Dark Mode Overrides */
body.dark-mode {
    background: #121212;
    color: #e0e0e0;
}
body.dark-mode .site-header {
    background-color: #1F1F1F;
    box-shadow: 0 2px 8px rgba(0,0,0,0.7);
}
body.dark-mode .nav-link {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
    color: #e0e0e0;
}
body.dark-mode .hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
}
body.dark-mode .reviews-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
}
body.dark-mode .services {
    background: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
}
body.dark-mode .review-card {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: #e0e0e0; /* Brighter text color */
}
body.dark-mode .service-item {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: #e0e0e0; /* Brighter text color */
}
body.dark-mode .hero p,
body.dark-mode .review-content,
body.dark-mode .service-item p {
    color: #e0e0e0; /* Brighter text color */
}
body.dark-mode .dropdown-menu {
    background: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
    border: 1px solid rgba(255,255,255,0.1);
}