/* Základní styly */
:root {
    --primary: #000000;
    --secondary: #eeedf1;
    --dark: #2A2A3C;
    --light: #F5F5F7;
    --accent: #FF6584;
    --text: #333344;
    --text-light: #888899;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigace */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 0.8rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

/* Button */

.btn-main {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background-color: var(--primary);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-main:hover {
    background-color: #272324; /
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}



/* Sekce */
section {
    min-height: 100vh;
    padding: 80px 1.5rem 1.5rem;
    opacity: 1;
    animation: fadeIn 0.5s forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hlavní stránka */
#hlavni {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding-top: 80px;
}

.hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 0.8rem;
    animation: slideIn 1s ease-out;
}

.hero-content p {
    font-size: 1.1rem;
    max-width: 600px;
    margin-bottom: 1.5rem;
    animation: slideIn 1s ease-out 0.2s both;
}

.cta-button {
    display: inline-block;
    padding: 10px 25px;
    background: white;
    color: var(--primary);
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    animation: slideIn 1s ease-out 0.4s both;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Sociální sítě */
#social {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 80px;
}

.social-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    max-width: 800px;
}

.social-card {
    background: #fff;
    border-radius: 15px;
    padding: 1.5rem;
    width: 180px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: #111;
    position: relative;
    overflow: hidden;
}

.social-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Ikony */
.social-icon {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
}

/* Text */
.social-card h3 {
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

/* Barvy jednotlivých sociálních sítí */
.instagram i { color: #E1306C; }
.youtube i { color: #FF0000; }
.discord i { color: #5865F2; }
.guns\.lol i { color: #00E676; } /* Escapovaná tečka ve třídě */

/* Hover efekty – jemné zesvětlení ikon */
.social-card:hover .instagram i { color: #ff5fa2; }
.social-card:hover .youtube i { color: #ff4d4d; }
.social-card:hover .discord i { color: #7a8aff; }
.social-card:hover .guns\.lol i { color: #66ffb2; }

/* Responsivita */
@media (max-width: 600px) {
    .social-card {
        width: 150px;
        padding: 1.2rem;
    }
    .social-icon {
        font-size: 2rem;
    }
}


/* O mně */
#o-mne {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 80px;
}

.about-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    max-width: 1000px;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}


.about-content {
    flex: 1;
    min-width: 280px;
}

.about-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
    color: var(--primary);
}

.about-content p {
    margin-bottom: 1.2rem;
    color: var(--text-light);
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.2rem;
}

.skill {
    background: var(--primary);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* Projekty */
#projekty {
    padding-top: 80px;
}

.projects-header {
    text-align: center;
    margin-bottom: 2rem;
}

.projects-header h2 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 0.8rem;
}

.projects-header p {
    color: var(--text-light);
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.project-image {
    height: 180px;
    background: var(--primary);
}

.project-content {
    padding: 1.2rem;
}

.project-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.project-description {
    color: var(--text-light);
    margin-bottom: 0.8rem;
    font-size: 0.85rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.project-tag {
    background: var(--light);
    color: var(--primary);
    padding: 4px 8px;
    border-radius: 15px;
    font-size: 0.75rem;
}

.project-link {
    display: inline-block;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Modal pro detail projektu */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.modal.active {
    display: flex;
    opacity: 1;
    animation: fadeIn 0.3s forwards;
}

.modal-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.8rem;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.modal.active .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

.modal-header {
    margin-bottom: 1.2rem;
}

.modal-header h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
}

.modal-tag {
    background: var(--light);
    color: var(--primary);
    padding: 4px 8px;
    border-radius: 15px;
    font-size: 0.75rem;
}

.modal-body p {
    margin-bottom: 1.2rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.discord-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: white;
    padding: 8px 16px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
    font-size: 0.9rem;
}

.discord-link:hover {
    background: var(--secondary);
}

/* Responzivita */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        gap: 0;
    }

    .nav-links a {
        padding: 0.8rem 1.5rem;
        display: block;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .about-container {
        flex-direction: column;
    }
    
    .social-card {
        width: 160px;
        padding: 1.2rem;
    }
    
    section {
        padding: 80px 1rem 1rem;
    }
}

@media (max-width: 480px) {
    .social-card {
        width: 140px;
        padding: 1rem;
    }
    
    .social-icon {
        font-size: 2rem;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .about-content h2, .projects-header h2 {
        font-size: 1.8rem;
    }
}