/* --- ZÁKLADNÉ NASTAVENIA A PREMENNÉ --- */
:root {
    --bg-dark: #121212;
    --bg-light: #1d1d1d;
    --text-primary: #f0f0f0;
    --text-secondary: #a0a0a0;
    --accent-gradient: linear-gradient(90deg, #6a11cb 0%, #2575fc 100%);
    --card-bg: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

h1, h2, h3, h4 {
    font-weight: 600;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

p {
    color: var(--text-secondary);
}

.section-dark {
    padding: 5rem 0;
    background-color: var(--bg-dark);
}

.section-light {
    padding: 5rem 0;
    background-color: var(--bg-light);
}

.center-text {
    text-align: center;
    max-width: 600px;
    margin: -1rem auto 2.5rem auto;
}

/* --- NAVIGÁCIA A LOGO --- */
.main-nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    padding: 1.5rem 0;
}

.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

.logo-link {
    display: inline-block;
    transition: transform 0.3s ease;
    text-decoration: none !important;
}

.logo-text {
    display: inline-block;
    font-weight: bold;
    font-size: 1.8rem;
    background: linear-gradient(90deg, #6a11cb 0%, #2575fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-decoration: none !important;
    text-shadow: 0 0 10px rgba(106, 17, 203, 0.5), 
                 0 0 20px rgba(37, 117, 252, 0.3);
}

.logo-link:hover {
    transform: scale(1.1);
}
/* --- HERO SEKCIA --- */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: var(--bg-dark) url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"%3E%3Cg fill-rule="evenodd"%3E%3Cg fill="%23ffffff" fill-opacity="0.04"%3E%3Cpath opacity=".5" d="M96 95h4v1h-4v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9zm-1 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9z"/%3E%3Cpath d="M6 5V0h1v5h9V0h1v5h9V0h1v5h9V0h1v5h9V0h1v5h9V0h1v5h9V0h1v5h9V0h1v5h9V0h1v5h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v5h-1v-5h-9v5h-1v-5h-9v5h-1v-5h-9v5h-1v-5h-9v5h-1v-5h-9v5h-1v-5h-9v5H0v-1h5v-9H0v-1h5v-9H0v-1h5v-9H0v-1h5v-9H0v-1h5v-9H0v-1h5v-9H0v-1h5v-9H0v-1h5v-9H0V5h6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at center, rgba(18, 18, 18, 0.6) 0%, rgba(18, 18, 18, 1) 70%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 1rem;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.hero-content .subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    max-width: 600px;
    margin: 0 auto 2rem auto;
    color: var(--text-secondary);
}

.glitch {
  position: relative;
  color: var(--text-primary);
}
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-dark);
  overflow: hidden;
}
.glitch::before {
  left: 2px;
  text-shadow: -2px 0 #ff00c1;
  animation: glitch-anim-1 2s infinite linear alternate-reverse;
}
.glitch::after {
  left: -2px;
  text-shadow: -2px 0 #00fff9, 2px 2px #ff00c1;
  animation: glitch-anim-2 2s infinite linear alternate-reverse;
}
@keyframes glitch-anim-1 { 0% { clip-path: inset(15% 0 86% 0); } 100% { clip-path: inset(80% 0 8% 0); } }
@keyframes glitch-anim-2 { 0% { clip-path: inset(48% 0 45% 0); } 100% { clip-path: inset(10% 0 81% 0); } }


.cta-button {
    display: inline-block;
    background: var(--accent-gradient);
    color: var(--text-primary);
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.calculator-container {
    display: flex;
    flex-wrap: wrap;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2.5rem;
    gap: 2rem;
    backdrop-filter: blur(10px);
}

.options {
    flex: 2;
    min-width: 300px;
}

.price-result {
    flex: 1;
    background: var(--bg-dark);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.radio-group, .checkbox-group {
    margin-bottom: 0.75rem;
}

.options h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.options .margin-top {
    margin-top: 2rem;
}

.options label {
    color: var(--text-secondary);
    cursor: pointer;
    margin-left: 0.5rem;
    transition: color 0.3s;
}

.options input[type="radio"], .options input[type="checkbox"] {
    accent-color: #6a11cb;
    transform: scale(1.2);
}

.options label:hover {
    color: var(--text-primary);
}

.price-display {
    font-size: 3.5rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0.5rem 0;
}

.price-result p {
    font-size: 0.9rem;
}

.price-result .cta-button {
    margin-top: 1.5rem;
}

.info-note {
    font-size: 0.8rem;
    font-style: italic;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.hidden {
    display: none;
}

.gadgets-panel {
    display: none; 
}
.gadgets-panel.active {
    display: block; 
}

.about-me-container {
    display: flex;
    align-items: center;
    gap: 3rem;
}
.about-text {
    flex: 1;
}

.skills {
    margin-top: 1rem;
}

.skills span {
    display: inline-block;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 5px 15px;
    border-radius: 20px;
    margin: 5px 5px 5px 0;
    font-size: 0.9rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    height: 250px;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}
.portfolio-item:hover {
    transform: scale(1.05);
}

#form-message {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

#form-message.success {
    color: #25fc75;
}

#form-message.error {
    color: #cb1111;
}

.modal { 
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.7); 
    animation: fadeIn 0.5s; 
}

.modal-content { 
    background-color: var(--bg-light); 
    margin: 15% auto; 
    padding: 2rem; 
    border: 1px solid var(--border-color); 
    border-radius: 15px; 
    width: 90%; 
    max-width: 500px; 
    position: relative; 
    animation: slideDown 0.5s; 
}

.close-btn { 
    color: var(--text-secondary); 
    float: right; 
    font-size: 28px; 
    font-weight: bold; 
    transition: color 0.3s; 
}

.close-btn:hover, 
.close-btn:focus { 
    color: var(--text-primary); 
    text-decoration: none; 
    cursor: pointer; 
}

.modal-description {
    color: var(--text-secondary); 
    margin-bottom: 1.5rem;
}

.form-inputs-inline {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-inputs-inline input {
    width: 100%;
    padding: 12px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
}

.form-inputs-inline input::placeholder {
    color: var(--text-secondary);
}

@keyframes fadeIn { from {opacity: 0;} to {opacity: 1;} }
@keyframes slideDown { from {transform: translateY(-50px); opacity: 0;} to {transform: translateY(0); opacity: 1;} }

footer {
    text-align: center;
    padding: 2rem 0;
    background: var(--bg-light);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    h2 {
        font-size: 2rem;
    }
    .calculator-container {
        flex-direction: column;
    }
    .hero {
        height: auto;
        padding: 10rem 0 5rem 0; 
    }
    .about-me-container {
        flex-direction: column;
    }
    .form-inputs-inline {
        flex-direction: column;
    }
/* --- MOBILNÉ ŠTÝLY --- */
@media (max-width: 768px) {
    /* Základné nastavenia */
    .container {
        padding: 0 1.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .section-dark, .section-light {
        padding: 3rem 0;
    }
    
    .center-text {
        margin: -0.5rem auto 1.5rem auto;
    }
    
    /* Navigácia */
    .main-nav {
        padding: 1rem 0;
    }
    
    /* Hero sekcia */
    .hero {
        padding: 6rem 0 3rem 0;
        height: auto;
        min-height: 100vh;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
        letter-spacing: 1px;
    }
    
    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    /* Kalkulačka */
    .calculator-container {
        padding: 1.5rem;
        gap: 1.5rem;
    }
    
    .price-result {
        padding: 1.5rem;
    }
    
    .price-display {
        font-size: 2.5rem;
    }
    
    /* O mne */
    .about-me-container {
        flex-direction: column;
        gap: 2rem;
    }
    
    /* Portfólio */
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .portfolio-item {
        height: 200px;
    }
    
    /* Formuláre */
    .form-inputs-inline {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Modal */
    .modal-content {
        margin: 20% auto;
        padding: 1.5rem;
        width: 85%;
    }
    
    /* Tlačidlá */
    .cta-button {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
    
    /* Zmenšenie marginov a paddingov */
    .margin-top {
        margin-top: 1.5rem !important;
    }
    
    .radio-group, .checkbox-group {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 480px) {
    /* Extra malé obrazovky */
    h2 {
        font-size: 1.6rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .feature-icon {
        font-size: 2.5rem;
    }
    
    .feature-card h3 {
        font-size: 1.3rem;
    }
    
    .price-display {
        font-size: 2rem;
    }
    
    /* Optimalizácia textov */
    p, .subtitle, label {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    /* Zmenšenie paddingov */
    .calculator-container, 
    .feature-card, 
    .price-result {
        padding: 1.2rem;
    }
    
    /* Optimalizácia mriežky */
    .features-grid, 
    .portfolio-grid {
        gap: 1.2rem;
    }
}