/* style.css */
:root {
    --bg-dark: #0B1120;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent-primary: #818cf8;
    --accent-secondary: #c084fc;
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hover: rgba(255, 255, 255, 0.08);
}

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(129, 140, 248, 0.12), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(192, 132, 252, 0.12), transparent 25%);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
}

/* Typography & Hero Section */
.hero-section {
    padding: 100px 20px 60px;
    position: relative;
    z-index: 10;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    animation: fadeInDown 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-muted);
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s both;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Portfolio Layout */
.portfolio-container {
    width: 1100px;
    max-width: 100%;
    margin: 0 auto;
    flex-grow: 1;
    position: relative;
    z-index: 10;
}

/* Modern Glassmorphism Cards */
.portfolio-item {
    display: block;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    aspect-ratio: 4 / 3; 
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease, filter 0.6s ease;
}

.portfolio-item:hover {
    transform: translateY(-8px) scale(1.02);
    background: var(--glass-hover);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(129, 140, 248, 0.2);
    z-index: 2;
}

.portfolio-item:hover img {
    filter: brightness(0.4) saturate(1.2);
    transform: scale(1.08);
}

/* Floating Text internally */
.portfolio-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 600;
    font-size: 1.4rem;
    opacity: 0;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 20px;
    text-align: center;
}

.portfolio-text span {
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.portfolio-item:hover .portfolio-text {
    opacity: 1;
}

.portfolio-item:hover .portfolio-text span {
    transform: translateY(0);
}

/* Footer modernizovaný */
footer {
    text-align: center;
    margin-top: 60px;
    padding: 60px 20px 40px;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
    border-top: 1px solid var(--glass-border);
    position: relative;
    z-index: 10;
}

footer p {
    margin: 0 0 10px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

footer a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

footer a:hover {
    color: var(--accent-secondary);
    text-shadow: 0 0 10px rgba(192, 132, 252, 0.5);
}

/* Responsive fixes */
@media (max-width: 768px) {
    .portfolio-item {
        aspect-ratio: auto;
        min-height: 200px;
    }
}