@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@300;400;500;600;700&display=swap');

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

body {
    font-family: 'Rajdhani', sans-serif;
    line-height: 1.6;
    color: #00ffff;
    background: #0a0a0a;
    max-width: 1180px;
    margin: 0 auto;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3 {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

h1 {
    font-size: 3rem;
    color: #ff0080;
    text-shadow: 0 0 20px #ff0080, 0 0 40px #ff0080;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.2rem;
    color: #00ffff;
    text-shadow: 0 0 15px #00ffff;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    color: #ffff00;
    text-shadow: 0 0 10px #ffff00;
    margin-bottom: 1rem;
}

p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 400;
}

/* Hero Section - Block 1 */
#hero {
    min-height: 430px;
    background: linear-gradient(135deg, #1a0033 0%, #000066 25%, #330066 50%, #660033 75%, #330000 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 0;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(255, 0, 128, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 255, 255, 0.3) 0%, transparent 50%),
        linear-gradient(45deg, transparent 49%, rgba(255, 255, 0, 0.1) 50%, transparent 51%),
        linear-gradient(-45deg, transparent 49%, rgba(255, 0, 128, 0.1) 50%, transparent 51%);
    background-size: 400px 400px, 400px 400px, 20px 20px, 20px 20px;
    animation: matrix-bg 20s linear infinite;
}

@keyframes matrix-bg {
    0% { background-position: 0 0, 0 0, 0 0, 0 0; }
    100% { background-position: 400px 400px, -400px -400px, 20px 20px, -20px -20px; }
}

#hero .container {
    position: relative;
    z-index: 2;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(45deg, #ff0080, #00ffff);
    color: #000;
    text-decoration: none;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 0;
    border: 2px solid transparent;
    position: relative;
    transition: all 0.3s ease;
    margin-top: 2rem;
    font-size: 1.1rem;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff0080, #00ffff, #ffff00, #ff0080);
    z-index: -1;
    border-radius: 0;
    animation: gradient-border 2s linear infinite;
}

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

.cta-button:hover {
    background: linear-gradient(45deg, #00ffff, #ff0080);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 0, 128, 0.5);
}

/* Section Styles */
section {
    padding: 80px 0;
    position: relative;
}

/* Alternating Section Backgrounds */
#reviews {
    background: linear-gradient(180deg, #001122 0%, #002244 100%);
    border-top: 2px solid #00ffff;
    border-bottom: 2px solid #00ffff;
}

#specialists {
    background: linear-gradient(180deg, #220011 0%, #440022 100%);
    border-bottom: 2px solid #ff0080;
}

#newsletter {
    background: linear-gradient(180deg, #112200 0%, #224400 100%);
    border-top: 2px solid #ffff00;
    border-bottom: 2px solid #ffff00;
}

#products {
    background: linear-gradient(180deg, #001100 0%, #002200 100%);
    border-bottom: 2px solid #00ff00;
}

#contact {
    background: linear-gradient(180deg, #110022 0%, #220044 100%);
    border-top: 2px solid #ff0080;
}

/* Grid Layouts */
.reviews-grid,
.specialists-grid,
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}

/* Review Cards */
.review {
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid #00ffff;
    padding: 25px;
    border-radius: 0;
    position: relative;
    transition: all 0.3s ease;
}

.review::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00ffff, #ff0080);
}

.review:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 255, 255, 0.3);
}

.rating {
    color: #ffff00;
    font-size: 1.5rem;
    margin-top: 1rem;
    text-shadow: 0 0 10px #ffff00;
}

/* Specialist Cards */
.specialist {
    background: rgba(255, 0, 128, 0.1);
    border: 1px solid #ff0080;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.specialist::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff0080, #ffff00);
}

.specialist:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 0, 128, 0.3);
}

/* Newsletter Form */
.newsletter-form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #00ffff;
    color: #00ffff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    outline: none;
    transition: all 0.3s ease;
}

.newsletter-form input[type="email"]:focus {
    border-color: #ff0080;
    box-shadow: 0 0 20px rgba(255, 0, 128, 0.5);
}

.newsletter-form input[type="email"]::placeholder {
    color: #666;
}

.newsletter-form button {
    padding: 15px 30px;
    background: linear-gradient(45deg, #00ffff, #ff0080);
    color: #000;
    border: none;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.newsletter-form button:hover {
    background: linear-gradient(45deg, #ff0080, #00ffff);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.5);
}

/* Product Cards */
.product {
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid #00ff00;
    padding: 30px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.product.featured {
    background: rgba(255, 255, 0, 0.1);
    border: 2px solid #ffff00;
    transform: scale(1.05);
}

.product.featured::before {
    content: 'NAJPOPULARNIEJSZY';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffff00;
    color: #000;
    padding: 5px 15px;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 0.8rem;
}

.price {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    color: #ff0080;
    font-weight: 900;
    margin: 1rem 0;
    text-shadow: 0 0 15px #ff0080;
}

.product ul {
    list-style: none;
    text-align: left;
    margin-top: 2rem;
}

.product li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 255, 0, 0.3);
    position: relative;
    padding-left: 20px;
}

.product li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #00ff00;
    font-size: 0.8rem;
}

.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 255, 0, 0.3);
}

/* Article Styling */
.trading-article {
    background: rgba(255, 255, 0, 0.1);
    border: 2px solid #ffff00;
    border-radius: 0;
    padding: 40px;
    margin-top: 4rem;
    position: relative;
}

.trading-article::before {
    content: 'ARTYKUŁ EKSPERCKI';
    position: absolute;
    top: -15px;
    left: 30px;
    background: #ffff00;
    color: #000;
    padding: 5px 15px;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 0.9rem;
}

.trading-article h3 {
    color: #ffff00;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

/* Contact Section */
.contact-info {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-top: 3rem;
}

.address {
    background: rgba(255, 0, 128, 0.1);
    border: 1px solid #ff0080;
    padding: 30px;
}

.map iframe {
    border: 2px solid #00ffff;
    filter: hue-rotate(180deg) saturate(1.5);
}

/* Footer */
#copyright {
    background: linear-gradient(180deg, #000 0%, #111 100%);
    border-top: 3px solid #ff0080;
    padding: 30px 0;
    text-align: center;
}

#copyright p {
    font-family: 'Orbitron', monospace;
    color: #666;
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    .container {
        padding: 0 15px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    #hero {
        min-height: 350px;
        padding: 40px 0;
    }

    .cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }

    section {
        padding: 50px 0;
    }

    .reviews-grid,
    .specialists-grid,
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 15px;
    }

    .newsletter-form input[type="email"] {
        width: 100%;
    }

    .contact-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product.featured {
        transform: none;
    }

    .trading-article {
        padding: 25px;
        margin-top: 2rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    #hero {
        min-height: 300px;
        padding: 30px 0;
    }

    .review,
    .specialist,
    .product,
    .address {
        padding: 20px;
    }

    .trading-article {
        padding: 20px;
    }

    .trading-article h3 {
        font-size: 1.4rem;
    }
}

/* Accessibility and Interactive Elements */
button:focus,
input:focus,
.cta-button:focus {
    outline: 2px solid #ffff00;
    outline-offset: 2px;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation for Dynamic Elements */
@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.loading {
    animation: pulse 2s infinite;
}
