/*
  OIT Core - Custom Stylesheet
  Author: Gemini Code Assist
*/

/* --------------------------------------------------------------
  Variables
-------------------------------------------------------------- */
:root {
    --primary-color: #004080; /* Tmavšia modrá pre nadpisy a hlavné prvky */
    --secondary-color: #F7F9FC; /* Svetlo modro-šedá pre striedavé pozadie */
    --accent-color: #17A2B8; /* Tyrkysová pre akcenty, linky, tlačidlá */
    --text-color: #343A40; /* Tmavá šedá pre hlavný text */
    --light-text-color: #FFFFFF; /* Biela pre text na tmavom pozadí */
    --heading-color: #002A53; /* Ešte tmavšia modrá pre hlavné nadpisy */
    
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    
    --container-width: 1140px;
    --section-padding: 80px 0; /* Zväčšený padding */
    --border-radius: 5px;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* --------------------------------------------------------------
  Global Resets & Base Styles
-------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.7;
    background-color: var(--light-text-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--heading-color);
    margin-bottom: 0.75em;
    line-height: 1.3;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.6rem; }

p {
    margin-bottom: 1em;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

.section-padding {
    padding: var(--section-padding);
}

.bg-light {
    background-color: var(--secondary-color);
}

.section-title {
    text-align: center;
    margin-bottom: 50px; /* Väčší odstup pod nadpisom sekcie */
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.section-intro {
    max-width: 700px;
    margin: 0 auto 40px auto;
    text-align: center;
    font-size: 1.1rem;
}


/* --------------------------------------------------------------
  Buttons
-------------------------------------------------------------- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--light-text-color);
    border-color: var(--accent-color);
}

.btn-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--light-text-color);
    text-decoration: none;
    transform: translateY(-2px);
}

/* --------------------------------------------------------------
  Header & Navigation
-------------------------------------------------------------- */
#header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo img#logo {
    height: 40px; /* Prispôsobte výšku loga */
    width: auto;
}
.nav-logo span { /* Pre textové logo */
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}


.nav-menu {
    display: flex;
    align-items: center;
}

.nav-item {
    margin-left: 25px;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-color);
    padding: 8px 0;
    position: relative;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}
.nav-link:hover {
    color: var(--accent-color);
    text-decoration: none;
}

.nav-toggle {
    display: none; /* Skryté na desktope */
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
}

/* --------------------------------------------------------------
  Hero Section
-------------------------------------------------------------- */
.hero-section {
    min-height: 90vh; /* Menšia výška pre lepšiu viditeľnosť obsahu pod */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-text-color);
    position: relative;
    background: url('https://images.unsplash.com/photo-1518770660439-4636190af475?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1770&q=80') no-repeat center center/cover; /* Placeholder obrázok */
    /* Alternatívne pozadie:
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 30, 60, 0.7); /* Tmavší overlay pre lepší kontrast textu */
}

.hero-content {
    position: relative; /* Aby bol nad overlayom */
    z-index: 1;
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem; /* Väčší nadpis */
    font-weight: 700;
    margin-bottom: 0.5em;
    color: var(--light-text-color);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 1.5em;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
}

/* --------------------------------------------------------------
  Key Technologies Section (Cards)
-------------------------------------------------------------- */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.card {
    background-color: var(--light-text-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.card-title {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.card-text {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --------------------------------------------------------------
  Projects Section (Teasers)
-------------------------------------------------------------- */
.project-teasers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.teaser-box {
    background-color: var(--secondary-color);
    padding: 25px;
    border-radius: var(--border-radius);
    border-left: 5px solid var(--accent-color);
}

.teaser-box h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.teaser-box p {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.teaser-box span {
    font-style: italic;
    color: var(--text-color);
    opacity: 0.7;
}

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

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

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(23, 162, 184, 0.2);
}

.contact-form textarea {
    resize: vertical;
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}
.contact-info p {
    margin-bottom: 15px;
    font-size: 1.05rem;
}
.contact-info p i {
    color: var(--accent-color);
    margin-right: 10px;
    width: 20px; /* Zarovnanie ikoniek */
    text-align: center;
}


/* --------------------------------------------------------------
  Footer
-------------------------------------------------------------- */
#footer {
    background-color: var(--heading-color); /* Tmavé pozadie pre footer */
    color: rgba(255, 255, 255, 0.8);
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
}

#footer p {
    margin-bottom: 0;
}
#footer a {
    color: var(--accent-color);
}
#footer a:hover {
    color: var(--light-text-color);
}

/* --------------------------------------------------------------
  Animations (Fade-in)
-------------------------------------------------------------- */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --------------------------------------------------------------
  Formulare
-------------------------------------------------------------- */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    /* štýly pre inputy a textarea */
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    /* ... atď. ... */
}


/* --------------------------------------------------------------
  Responsive Design (Media Queries)
-------------------------------------------------------------- */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }
    .hero-subtitle {
        font-size: 1.2rem;
    }
    .contact-wrapper {
        grid-template-columns: 1fr; /* Stĺpce pod sebou */
    }
    .contact-info {
        margin-top: 30px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    .nav-menu {
        display: none; /* Skryté štandardne */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%; /* Pod hlavičkou */
        left: 0;
        background-color: var(--light-text-color);
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 10px 0;
    }

    .nav-menu.nav-menu_visible {
        display: flex; /* Zobrazené po kliknutí */
    }

    .nav-item {
        margin: 10px 0;
        text-align: center;
        width: 100%;
    }
    .nav-link {
        display: block;
        padding: 10px;
    }
    .nav-link::after {
        display: none; /* Odstrániť podčiarknutie pre mobilné menu */
    }
    .nav-link:hover {
        background-color: var(--secondary-color);
        color: var(--accent-color);
    }

    .nav-toggle {
        display: block; /* Zobraziť hamburger ikonu */
    }

    .hero-title {
        font-size: 2.2rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .btn {
        padding: 10px 22px;
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    .section-intro {
        font-size: 1rem;
    }

    .cards-container {
        grid-template-columns: 1fr; /* Karty pod sebou */
    }
    .project-teasers {
        grid-template-columns: 1fr; /* Teasery pod sebou */
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 80vh;
    }
    .hero-title {
        font-size: 1.8rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .contact-form {
        padding: 15px;
    }
}
