/* variables */
:root {
    /* Colors */
    --color-primary: #13aff0;
    --color-primary-dark: #0d8ecf;
    --color-accent: #F56A6A;
    --color-black: #000000;
    --color-white: #ffffff;
    --color-bg-light: #f9f9f9;
    --color-bg-card-info: #f1f2f9;
    
    /* Text Colors */
    --text-dark: #333333;
    --text-medium: #545454;
    --text-muted: #878e94;
    --text-footer-link: #cccccc;

    /* Fonts */
    --font-primary: 'Fredoka', sans-serif;
    --font-secondary: 'Roboto', sans-serif;

    /* Effects */
    --shadow-card: 0px 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-card-hover: 0px 15px 35px rgba(0, 0, 0, 0.15);
    --radius-default: 12px;
    --transition-default: 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

@font-face {
    font-family: 'Fredoka';
    font-style: normal;
    font-weight: 300;
    font-stretch: 100%;
    font-display: swap;
    src: url('../fonts/X7n64b87HvSqjb_WIi2yDCRwoQ_k7367_DWs89XyHw.woff2') format('woff2');
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-default);
}

/* layout */
.site-content {
    margin: 3rem auto;
    padding: 0 1.5rem;
    min-height: 60vh;
}

.card {
    background: var(--color-white);
    border-radius: var(--radius-default);
    padding: 3rem;
    box-shadow: var(--shadow-card);
    transition: box-shadow var(--transition-default), transform var(--transition-default);
    margin: 0 auto;
}

.card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-5px);
}

/* header */
.site-header {
    background: url('../images/header-bg.jpeg') no-repeat top center;
    background-size: cover;
    position: relative;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10;
}

.site-branding a {
    font-family: var(--font-primary);
    color: var(--color-white);
    font-size: 1.8rem;
    font-weight: 500;
}

.hamburger-menu {
    display: none;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1000;
    width: 50px;
    height: 50px;
}

.hamburger-menu svg { color: var(--color-white); font-size: 1.5rem; }

.main-navigation {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.85);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-default);
    z-index: 5;
}

.main-navigation.active { max-height: 300px; }
.main-navigation ul { list-style: none; display: flex; flex-direction: column; }
.main-navigation li { border-bottom: 1px solid rgba(255, 255, 255, 0.3); }

.main-navigation a {
    font-family: var(--font-primary);
    color: var(--color-white);
    font-weight: 400;
    font-size: 1.1rem;
    padding: 1rem 1.5rem;
    display: block;
    transition: background var(--transition-default), color var(--transition-default);
}

.main-navigation a:hover, .main-navigation a.active {
    color: var(--color-primary);
    background: rgba(255, 255, 255, 0.05);
}

@media (min-width: 769px) {
    .hamburger-menu { display: none !important; }
    .main-navigation {
        position: static;
        max-height: none !important;
        background: transparent !important;
        overflow: visible;
    }
    .main-navigation ul { flex-direction: row; }
    .main-navigation li { border-bottom: none; }
    .main-navigation a { padding: 0.5rem 0; margin-left: 2rem; }
    .main-navigation a:hover, .main-navigation a.active { background: transparent; }
}

@media (max-width: 768px) {
    .hamburger-menu { display: block; }
    .site-header { min-height: 100px; }
    .header-container { padding: 1rem 1.5rem; }
}

/* footer */
.site-footer { margin-top: 4rem; }

.footer-columns {
    background-color: var(--color-black);
    padding: 3rem 1.5rem;
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    width: 100%;
    margin: 0 auto;
}

.footer-col { flex: 1; }

.footer-col h4 {
    color: var(--color-white);
    font-family: var(--font-primary);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.75rem; }

.footer-col a {
    color: var(--text-footer-link);
    font-family: var(--font-secondary);
    font-size: 0.95rem;
    transition: color var(--transition-default);
}

.footer-col a:hover { color: var(--color-primary); }

.footer-copyright {
    background-color: var(--color-white);
    color: var(--color-black);
    text-align: center;
    padding: 1.25rem;
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    border-top: 1px solid #eee;
}

@media (max-width: 768px) {
    .footer-columns { padding: 2rem 1.5rem; }
    .footer-col:not(.quick-links-col) { display: none; }
    .quick-links-col { flex: none; width: 100%; }
    .quick-links-col ul { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center; }
    .quick-links-col li { margin-bottom: 0; }
    .quick-links-col h4 { display: none; }
}

/* home */
.hero-text {
    color: var(--text-medium);
    font-family: var(--font-primary);
    line-height: 1.75;
    font-size: 1rem;
    -webkit-font-smoothing: antialiased;
    margin-bottom: 1.5rem;
}

.hero-author { font-size: 0.95rem; }
.hero-author .by-text { color: var(--text-muted); padding-right: 0.313rem; }
.hero-author .author-name { color: var(--color-black); font-weight: 500; }

/* portfolio */
.portfolio-header { text-align: center; margin-bottom: 2rem; }
.portfolio-header h1 { color: var(--text-dark); margin-bottom: 0.5rem; }
.portfolio-header p { color: #666; font-family: var(--font-secondary); }

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--color-black);
    color: var(--color-black);
    padding: 0.5rem 1.25rem;
    border-radius: 5px;
    font-family: var(--font-primary);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-default);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--color-black);
    color: var(--color-white);
}

.portfolio-grid { column-count: 3; column-gap: 1.5rem; }

.portfolio-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    background: var(--color-white);
    border-radius: var(--radius-default);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: box-shadow var(--transition-default), transform var(--transition-default);
}

.portfolio-item:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-5px);
}

.portfolio-item img { width: 100%; height: auto; display: block; cursor: pointer; }

.portfolio-item-info { background: var(--color-bg-card-info); padding: 1.25rem; }

.portfolio-item-info h3 {
    color: var(--color-accent);
    font-family: var(--font-primary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.portfolio-item-info p {
    color: var(--text-medium);
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.portfolio-item.hide { display: none; }

@media (max-width: 992px) { .portfolio-grid { column-count: 2; } }
@media (max-width: 600px) { .portfolio-grid { column-count: 1; } }

/* about */
.about-page {
    max-width: 1200px;
    margin: 50px auto;
    padding: 30px 45px 80px;
    background: var(--color-white);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.about-section { overflow: hidden; }
.about-section h1, .about-section h2 { color: #111; line-height: 1.2; margin-top: 0; margin-bottom: 30px; }
.about-section h1 { font-size: 32px; }
.about-section h2 { font-size: 30px; margin-top: 55px; }
.about-section p { font-size: 14px; line-height: 1.7; color: #666; margin: 0 0 28px; }

.about-image { display: block; margin-bottom: 8px; }
.image-right { float: right; margin-left: 30px; }
.image-left { float: left; margin-right: 30px; }

.poi-image { width: 360px; height: 440px; object-fit: cover; }
.profile-image { width: 275px; height: 275px; object-fit: cover; }
.klara-image { width: 330px; height: 440px; object-fit: cover; }
.bane-image { width: 375px; height: 630px; object-fit: cover; }

.zombie-section { clear: both; text-align: center; }
.zombie-image { display: block; width: 500px; max-width: 100%; height: auto; margin: 0 auto 10px; }
.image-caption { text-align: center; font-size: 11px !important; font-style: italic; color: #666565 !important; margin: 0 !important; }
.clear { clear: both; }

@media (max-width: 700px) {
    .about-page { width: 100%; margin: 20px 0; padding: 25px 20px 50px; box-shadow: none; }
    .about-section h1 { font-size: 28px; }
    .about-section h2 { font-size: 26px; }
    .image-right, .image-left { float: none; width: 100%; height: auto; max-width: 450px; margin: 20px auto; }
    .zombie-section { padding-top: 10px; }
}

/* contact */
.contact-container { text-align: center; padding: 4rem 1rem; }
.contact-container h1 { font-family: var(--font-primary); color: var(--text-dark); margin-bottom: 2rem; }

.facebook-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: var(--color-primary);
    border-radius: 50%;
    transition: background var(--transition-default), transform var(--transition-default);
}

.facebook-link:hover { background: var(--color-primary-dark); transform: scale(1.1); }
.facebook-link svg { width: 40px; height: 40px; fill: var(--color-white); }

/* lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    opacity: 0;
    transition: opacity var(--transition-default);
}

.lightbox.active { display: flex; opacity: 1; }

.lightbox-content {
    margin: auto; max-width: 95%; max-height: 95vh;
    display: flex; align-items: center; justify-content: center;
    position: relative;
}

.lightbox img { max-width: 100%; max-height: 90vh; object-fit: contain; border-radius: 4px; }

.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--color-white);
    cursor: pointer;
    z-index: 10001;
    transition: background var(--transition-default), transform var(--transition-default);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
}

.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.lightbox-close { top: 20px; right: 30px; width: 44px; height: 44px; border-radius: 50%; font-size: 2rem; line-height: 1; }
.lightbox-prev { left: 20px; top: 50%; width: 50px; height: 50px; border-radius: 50%; }
.lightbox-next { right: 20px; top: 50%; width: 50px; height: 50px; border-radius: 50%; }

body.lightbox-open { overflow: hidden; }

@media (max-width: 768px) {
    .lightbox-close { top: 10px; right: 15px; width: 36px; height: 36px; font-size: 1.5rem; }
    .lightbox-prev { left: 10px; width: 40px; height: 40px; font-size: 1.2rem; }
    .lightbox-next { right: 10px; width: 40px; height: 40px; font-size: 1.2rem; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
