

/* Hero sekcija */
.hero {
    position: relative;
    text-align: center;
    color: white;
}

.hero-image {
    width: 100%;
    height: 80vh;
    display: block;
    object-fit: cover;
}

.overlayy {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: transparent;
    font-family: "stubi",arial;
    -webkit-text-stroke: 1px #0078ff;
    background-image: url("../img/line1.png");
    background-position: 0 0;
    background-clip: text;
    animation: stubi 10s linear infinite;
}

.hero-content p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

.btn-primary {
    background: #0056b3;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background: #003f7f;
}

/* Detalji sekcija */
.details-section {
    padding: 50px 20px;
    background: #fff;
    text-align: center;
}

.details-section h2 {
    color: #0056b3;
    margin-bottom: 40px;
    font-size: 2em;
}

.grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
/* Sekcije */
.containerWhy {
    width: 90%;
    margin: 0 auto;
    max-width: 1200px;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Specific Styling for h2 inside containerWhy */
.containerWhy h2 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 20px;
    color: #333;
}

/* Styling for the unordered list inside containerWhy */
.containerWhy ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Styling for list items (li) */
.containerWhy li {
    display: flex;
    align-items: center;
    margin: 15px 0;
    font-size: 1.1em;
    color: #333;
    flex-wrap: wrap; /* Allow wrapping of content if needed */
    gap: 10px; /* Add some space between icon and text */
}

/* Styling for icons */
.containerWhy li i {
    font-size: 1.5em;
    color: #4CAF50;
    margin-right: 10px;
}

/* Styling for the strong elements inside list items */
.containerWhy strong {
    color: #000;
}

/* Button Style */
.containerWhy .btn {
    display: inline-block;
    text-decoration: none;
    padding: 12px 25px;
    background-color: #4CAF50;
    color: white;
    border-radius: 5px;
    font-size: 1.1em;
    text-align: center;
    margin-top: 20px;
    transition: background-color 0.3s;
}

.containerWhy .btn:hover {
    background-color: #45a049;
}

/* Media Queries for responsiveness */
@media screen and (max-width: 768px) {
    /* Adjusting h2 font size for tablets */
    .containerWhy h2 {
        font-size: 1.5em;
    }

    /* Adjusting list item font size for tablets */
    .containerWhy li {
        font-size: 1em;
        flex-direction: column; /* Stack icon and text vertically on tablets */
        align-items: flex-start; /* Align text to the left */
        gap: 15px; /* More space between icon and text when stacked */
    }

    /* Adjusting button padding and font size for tablets */
    .containerWhy .btn {
        padding: 10px 20px;
        font-size: 1em;
    }
}

@media screen and (max-width: 480px) {
    /* Adjusting h2 font size for mobile */
    .containerWhy h2 {
        font-size: 1.2em;
    }

    /* Adjusting list item font size for mobile */
    .containerWhy li {
        font-size: 0.9em;
        flex-direction: column; /* Stack icon and text vertically on mobile */
        align-items: flex-start; /* Align text to the left */
        gap: 15px; /* More space between icon and text when stacked */
    }

    /* Adjusting button padding and font size for mobile */
    .containerWhy .btn {
        padding: 8px 15px;
        font-size: 0.9em;
    }
}
/* Kartice */
.card {
    background: #f1f1f1;
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 10px auto;
}

.card i {
    font-size: 3em;
    color: #0056b3;
    margin-bottom: 15px;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.card h3 {
    margin-bottom: 10px;
    color: #333;
}

.card p {
    color: #555;
}

/* Responsivnost */
@media (max-width: 768px) {
    .grid {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 90%;
    }
}

/* Default responsive iframe container */
.iframe-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* Aspect ratio: 16:9 */
    overflow: hidden;
    background: #f4f4f4;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Adjust for smartphones */
@media (max-width: 768px) {
    .iframe-container {
        height: 100vh;
        padding-top: 65%; /* Slightly taller aspect ratio */
        border: 2px solid #ccc; /* Optional: Make the border more prominent */
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* Stronger shadow for emphasis */
    }
}

*{
    transition: 0.3s;
}

/* Dyno Sekcija */
.wrapperD {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin: 20px 0;
}

.cardD {
    display: flex;
    max-width: 1200px;
    width: 100%;
    background-color: #f7f9fc;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-left: 6px solid #2b6cb0;
}

.image-boxD {
    flex: 1;
    position: relative;
}

.image-boxD img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contentD {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contentD h2 {
    font-size: 28px;
    color: #1a365d;
    text-align: left;
    margin-bottom: 12px;
}

.lineD {
    width: 160px;
    height: 4px;
    background-color: #4299e1;
    border-radius: 2px;
    margin-bottom: 20px;
}

.contentD p {
    font-size: 16px;
    line-height: 1.7;
    color: #4a5568;
}

/* Responsive */
@media (max-width: 768px) {
    .cardD {
        flex-direction: column-reverse;
    }

    .contentD {
        padding: 30px;
    }
}
