/* -------------------------------
   GENERAL RESET
--------------------------------*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Helvetica Neue", Arial, sans-serif;
}

body {
    background: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

/* -------------------------------
   HEADER
--------------------------------*/
header, .site-header {
    background: #000;
    color: #fff;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .logo, .site-header .logo {
    font-size: 1.5rem;
    font-weight: bold;
}

nav, .primary-nav {
    display: flex;
    gap: 20px;
}

nav a, .primary-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover, nav a.active, .primary-nav a:hover, .primary-nav a.active {
    color: #f4d03f;
}

/* Hamburger for mobile */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 4px 0;
    transition: 0.3s;
}

/* -------------------------------
   PORTFOLIO PAGE
--------------------------------*/
.portfolio-title {
    font-size: 2rem;
    text-align: center;
    margin: 40px 0 30px;
}

.section-title {
    font-size: 1.8rem;
    text-align: center;
    font-weight: bold;
    margin: 40px 0 20px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    padding-bottom: 50px;
}

.thumb {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: zoom-in;
    background: #111;
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    pointer-events: none; /* prevent drag/save */
}

/* Hover enlarge effect */
.thumb:hover img {
    transform: scale(1.15);
}

/* Orientation-specific classes */
.thumb img.portrait {
    aspect-ratio: 3/4;
    object-fit: cover;
}

.thumb img.landscape {
    aspect-ratio: 4/3;
    object-fit: cover;
}

.thumb:hover img.portrait,
.thumb:hover img.landscape {
    transform: scale(1.15);
}

/* Protection overlay */
.protect-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
    z-index: 10;
    pointer-events: auto;
    -webkit-user-select: none;
    user-select: none;
}

/* Fullscreen viewer */
.viewer {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
}

.viewer.active {
    display: flex;
}

.viewer img {
    max-width: 92%;
    max-height: 92%;
    border-radius: 10px;
    pointer-events: none;
}

#viewer-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2.6rem;
    color: #fff;
    cursor: pointer;
    z-index: 2200;
    font-weight: bold;
}

/* -------------------------------
   CONTACT / GENERAL CARDS
--------------------------------*/
.contact-container {
    max-width: 600px;
    margin: 100px auto;
    text-align: center;
    background: #fff;
    padding: 50px 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.contact-container h1 {
    margin-bottom: 20px;
    font-size: 2rem;
}

.contact-container p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.contact-container a.email-link {
    display: inline-block;
    padding: 12px 25px;
    background: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.contact-container a.email-link:hover {
    background: #f4d03f;
    color: #000;
}

/* -------------------------------
   FOOTER
--------------------------------*/
footer {
    background: #000;
    color: #fff;
    text-align: center;
    padding: 15px;
    margin-top: 40px;
}

/* -------------------------------
   MOBILE / TABLET
--------------------------------*/
@media (max-width: 768px) {
    nav, .primary-nav {
        display: none;
        flex-direction: column;
        background: #111;
        position: absolute;
        top: 60px;
        right: 0;
        width: 200px;
        padding: 20px;
    }

    nav.active, .primary-nav.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .thumb:hover img {
        transform: scale(1.05); /* smaller hover zoom on touch devices */
    }
}

/* -------------------------------
   IMAGE PROTECTION / MOBILE
--------------------------------*/
img {
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    user-select: none;
    pointer-events: none;
}
