﻿:root {
    --primary: #222;
    --primary-hover: #444;
    --accent: #0078d4;
    --accent-hover: #005fa3;
    --bg-light: #fafafa;
    --bg-white: #fff;
    --text-main: #222;
    --text-secondary: #444;
    --text-muted: #666;
    --shadow: 0 4px 24px rgba(0,0,0,0.07);
    --shadow-hover: 0 6px 24px rgba(0,0,0,0.13);
    --radius: 12px;
    --radius-lg: 16px;
    --transition: 0.2s;
    --font-main: 'Segoe UI', Arial, sans-serif;
}

body {
    font-family: var(--font-main);
    background: var(--bg-light);
    color: var(--text-main);
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-main);
    font-family: var(--font-main);
    font-weight: 700;
    margin-bottom: 1rem;
}

a, .about-link {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
    font-weight: 600;
}
a:hover, .about-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.btn, .cta-btn, .btn-primary {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.9rem 2.2rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition);
    text-decoration: none;
    display: inline-block;
    margin: 0 0.5rem;
    letter-spacing: 1px;
}
.btn:hover, .cta-btn:hover, .btn-primary:hover {
    background: var(--primary-hover);
}

.card, .about-section, .contact-container, .gallery-container {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 2.5rem 2rem;
    margin: 0 auto 2.5rem auto;
    max-width: 900px;
}

.alert {
    font-size: 1.1rem;
    border-radius: 8px;
    margin-top: 1.5rem;
}

.form-label {
    font-weight: 500;
    color: var(--text-secondary);
}
.form-control, input, textarea {
    border-radius: 6px;
    border: 1px solid #ccc;
    padding: 0.6rem 1rem;
    font-size: 1rem;
    margin-bottom: 0.7rem;
    width: 100%;
    box-sizing: border-box;
}
input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(0,120,212,0.1);
}

.contact-header, .about-header, .gallery-title {
    text-align: center;
    margin-bottom: 2rem;
}
.contact-header h2, .gallery-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-main);
}
.contact-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.about-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 2.5rem 1.5rem 2rem 1.5rem;
    margin-bottom: 2.5rem;
    gap: 2.5rem;
}
.about-photo {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    border: 4px solid #fff;
    background: #eee;
    transition: box-shadow var(--transition);
}
.about-photo:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.18);
}
.about-intro {
    max-width: 500px;
}
.about-name {
    font-size: 2.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    letter-spacing: 1px;
}
.about-tagline {
    font-size: 1.2rem;
    color: var(--accent);
    margin-bottom: 1.2rem;
    font-weight: 500;
}
.about-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    color: var(--text-main);
    letter-spacing: 0.5px;
}
.about-text {
    font-size: 1.13rem;
    color: var(--text-secondary);
    margin-bottom: 1.1rem;
    line-height: 1.7;
}
.about-section hr {
    margin: 2rem 0;
    border: none;
    border-top: 1.5px solid #eee;
}
.about-links {
    margin-top: 1.5rem;
}
.about-list {
    padding-left: 1.2rem;
    margin-bottom: 1.1rem;
}
.about-list li {
    margin-bottom: 0.7rem;
    font-size: 1.13rem;
    color: var(--text-secondary);
}

.gallery-container {
    width: 100%;
    max-width: 95%;
    margin: 0 auto;
    padding: 2rem 1rem;
    background: #fafafa;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    font-family: 'Segoe UI', Arial, sans-serif;
}

.gallery-title {
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-main);
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    background: var(--bg-white);
    transition: transform var(--transition), box-shadow var(--transition);
}
.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-hover);
}
.gallery-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    transition: filter var(--transition);
    user-select: none;
    pointer-events: auto;
}
.gallery-item:hover .gallery-img {
    filter: brightness(0.92) contrast(1.08);
}
.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(34,34,34,0.65);
    color: #fff;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    opacity: 0;
    transition: opacity var(--transition);
}
.gallery-item:hover .gallery-caption {
    opacity: 1;
}

.hero-section {
    color: #fff;
    padding: 5rem 1rem 4rem 1rem;
    text-align: center;
    border-radius: 0 0 18px 18px;
    box-shadow: var(--shadow);
    margin-bottom: 2.5rem;
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}
.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45));
    border-radius: 0 0 18px 18px;
}
.hero-section > * {
    position: relative;
}
.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}
.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: #f3f3f3;
}

.gallery-preview {
    margin: 3rem auto 0 auto;
    max-width: 1200px;
    padding: 0 1rem;
}
.gallery-preview-title {
    font-size: 1.7rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    color: var(--text-main);
    text-align: center;
}
.gallery-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}
.gallery-preview-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* --- Responsive Horizontal NavMenu --- */
.nav-horizontal {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-horizontal .nav {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
}

.nav-horizontal .nav-item {
    padding: 0 0.5rem;
}

.navbar-toggle-horizontal {
    display: none;
    background: var(--primary);
    border: none;
    color: #fff;
    font-size: 2rem;
    border-radius: 6px;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: 1rem;
}

@media (max-width: 900px) {
    .nav-horizontal .nav {
        display: none;
        position: absolute;
        top: 70px;
        right: 10px;
        background: var(--bg-white);
        flex-direction: column;
        box-shadow: 0 4px 24px rgba(0,0,0,0.13);
        border-radius: 10px;
        min-width: 180px;
        z-index: 2000;
        padding: 1rem 0.5rem;
    }
    .nav-horizontal.open .nav {
        display: flex;
    }
    .navbar-toggle-horizontal {
        display: flex;
    }
}

/* --- Responsive Vertical NavMenu --- */
.nav-scrollable-vertical {
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    background: var(--bg-white);
    width: 220px;
    position: fixed;
    top: 60px;
    left: 0;
    z-index: 1050;
    box-shadow: 2px 0 12px rgba(0,0,0,0.07);
    transition: left 0.3s;
}

.navbar-toggler-vertical {
    display: none;
    font-size: 2rem;
    color: #fff;
    background: var(--primary);
    border-radius: 6px;
    padding: 0 12px;
    margin-left: 1rem;
    cursor: pointer;
    user-select: none;
}

@media (max-width: 900px) {
    .nav-scrollable-vertical {
        left: -240px;
        width: 220px;
        top: 0;
        height: 100vh;
        box-shadow: 2px 0 12px rgba(0,0,0,0.13);
    }
    .navbar-toggler-vertical {
        display: inline-block;
    }
    #nav-vertical-toggle:checked ~ .nav-scrollable-vertical {
        left: 0;
    }
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .about-hero, .card, .about-section, .contact-container, .gallery-container {
        padding: 1.5rem 0.5rem;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .about-name {
        font-size: 1.5rem;
    }
    .gallery-title {
        font-size: 1.5rem;
    }
}
@media (max-width: 600px) {
    .about-hero {
        flex-direction: column;
        gap: 1.2rem;
    }
    .about-photo {
        width: 140px;
        height: 140px;
    }
    .hero-section {
        height: 220px;
        padding: 2rem 0.5rem 1.5rem 0.5rem;
    }
    .gallery-img {
        height: 180px;
    }
}

