@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;800&display=swap');

:root {
    --agp-red: #e30613;
    --agp-red-dark: #b8050f;
    --black: #0a0a0a;
    --dark-grey: #1a1a1a;
    --light-grey: #f5f5f5;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.text-red {
    color: var(--agp-red);
}

.badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(227, 6, 19, 0.1);
    border: 1px solid rgba(227, 6, 19, 0.3);
    border-radius: 50px;
    color: var(--agp-red);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 2rem;
    backdrop-filter: blur(5px);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 100px 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--agp-red);
    color: var(--white);
    padding: 1.2rem 2.8rem;
    font-size: 1rem;
    box-shadow: 0 10px 20px rgba(227, 6, 19, 0.3);
}

.btn-primary:hover {
    background-color: var(--white);
    color: var(--agp-red);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(227, 6, 19, 0.4);
}

.btn-outline {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 1.2rem 2.8rem;
    font-size: 1rem;
    backdrop-filter: blur(5px);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--black);
    transform: translateY(-3px);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

header.scrolled {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--white);
    font-weight: 800;
    font-size: 1.5rem;
}

.logo span {
    color: var(--agp-red);
    font-weight: 900;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition);
    opacity: 0.7;
}

.nav-links a:hover {
    color: var(--agp-red);
    opacity: 1;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--white);
    transition: var(--transition);
}

.menu-toggle:hover {
    color: var(--agp-red);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slider::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 10;
}

.hero-content {
    max-width: 850px;
}

.hero h1 {
    font-size: 5.5rem;
    line-height: 1.1;
    margin-bottom: 2.5rem;
    color: #ffffff;
    font-weight: 900;
    text-transform: uppercase;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 3.5rem;
    opacity: 1;
    color: #eeeeee;
    font-weight: 300;
    max-width: 700px;
    line-height: 1.4;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

/* Features Section */
#vlastnosti {
    background-color: var(--white);
    color: var(--black);
}

#vlastnosti .section-title h2 {
    color: var(--black);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid var(--glass-border);
    padding: 3rem 2rem;
    border-radius: 20px;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

#vlastnosti .feature-card {
    background: #fdfdfd;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

#vlastnosti .feature-card h3 {
    color: var(--black);
}

.feature-card p {
    opacity: 1;
    color: rgba(255, 255, 255, 0.9);
}

#vlastnosti .feature-card p {
    color: #555;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--agp-red);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--agp-red);
    margin-bottom: 1.5rem;
}

/* Products Section */
.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--agp-red);
    font-weight: 700;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: rgba(20, 20, 20, 0.8);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.product-info p,
.product-specs li {
    color: rgba(255, 255, 255, 0.9);
}

.product-card:hover {
    transform: scale(1.02);
    border-color: var(--agp-red);
}

.product-img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    background: #fff;
    padding: 20px;
}

.product-info {
    padding: 2rem;
}

.product-info h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.product-specs {
    list-style: none;
    margin-bottom: 2rem;
}

.product-specs li {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
}

.product-specs span {
    color: var(--agp-red);
    font-weight: 700;
}

/* Comparison Table */
.comparison-container {
    overflow-x: auto;
    margin-top: 3rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--glass);
    border-radius: 20px;
    overflow: hidden;
}

th,
td {
    padding: 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

th {
    background: var(--dark-grey);
    color: var(--agp-red);
    text-transform: uppercase;
}

tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Video Section */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(25, 25, 25, 0.9);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    transition: var(--transition);
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.08);
}

.faq-answer {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s ease;
    opacity: 0;
}

.faq-item.active .faq-answer {
    padding: 0 2rem 1.5rem 2rem;
    max-height: 500px;
    opacity: 1;
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--agp-red);
    transition: var(--transition);
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(rgba(227, 6, 19, 0.9), rgba(227, 6, 19, 0.9)), url('img/AGP-G5-bruska-na-beton.jpg') center/cover;
    text-align: center;
    padding: 120px 0;
}

.cta-section h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--white);
    opacity: 0.9;
}

.cta-section .btn-outline {
    background-color: var(--white);
    color: var(--agp-red);
    border: none;
    font-weight: 800;
}

.cta-section .btn-outline:hover {
    background-color: var(--black);
    color: var(--white);
    transform: translateY(-5px);
}

/* Footer */
footer {
    background: var(--dark-grey);
    padding: 80px 0 40px 0;
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    margin-bottom: 2rem;
    color: var(--white);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.6;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--agp-red);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--glass-border);
    opacity: 0.5;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero h1 {
        font-size: clamp(1.8rem, 10vw, 2.3rem);
        word-wrap: break-word;
        line-height: 1.1;
        margin-bottom: 2rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 3rem;
        line-height: 1.6;
        opacity: 0.9;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
    }

    .hero-btns .btn {
        width: 100%;
        text-align: center;
    }

    header {
        padding: 1rem 0;
    }

    .menu-toggle {
        display: block;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--black);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        right: 0;
    }

    section {
        padding: 60px 0;
    }

    .section-title h2 {
        font-size: 2.2rem;
    }

    .cta-section h2 {
        font-size: 2rem;
    }

    table {
        display: block;
        overflow-x: auto;
    }
}