/* Import Google Fonts - Dosis */
@import url('https://fonts.googleapis.com/css2?family=Dosis:wght@200;300;400;500;600;700;800&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-bg: #F5F1E8;
    --secondary-bg: #E8E4DC;
    --text-dark: #333333;
    --text-light: #666666;
    --accent-pink: #B8938E;
    --accent-green: #6B8E3D;
    --white: #FFFFFF;
    --border-color: #D4CFC5;
    --color_11: 255, 255, 255;

    /* Fonts - Dosis */
    --font-primary: 'Dosis', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 700;
}

html {
    scrollbar-gutter: stable;
}

body {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-light);
    background-color: var(--primary-bg);
    color: var(--text-dark);
    line-height: 1.4;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header and Navigation */
header {
    background: linear-gradient(90deg, #E9F0DF 0%, #FFEAE9 100%);
    padding: 10px 50px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: box-shadow 0.3s ease;
}

body {
    padding-top: 140px;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo img {
    width: 100px;
    height: 100px;
    transition: width 0.3s ease, height 0.3s ease;
}

.logo-text {
    display: flex;
    flex-direction: column;
    font-size: 38px;
    font-weight: 300;
    letter-spacing: -0.05em;
    color: rgb(112, 74, 74);
    line-height: 1.15;
    text-transform: uppercase;
    transition: font-size 0.3s ease;
    gap: 0;
}

.logo-text span {
    transition: all 0.3s ease;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

nav a {
    text-decoration: none;
    color: rgb(170, 168, 168);
    font-size: 21px;
    font-weight: 400;
    padding: 10px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.5s ease;
    position: relative;
}

nav a:hover {
    color: var(--text-dark);
    border-bottom-color: var(--text-dark);
}

nav a.active {
    color: var(--text-dark);
    border-bottom-color: transparent;
}

/* Main Content */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 50px 60px;
    flex: 1;
    width: 100%;
}

/* Portfolio Gallery Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 10px;
    margin-top: 0;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    text-decoration: none;
}

.portfolio-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0);
    transition: opacity 0.3s ease 0s, color 0.3s ease 0s, background-color 0.3s ease 0s;
    pointer-events: none;
    z-index: 1;
}

.portfolio-item:hover::before {
    background-color: rgba(255, 255, 255, 0.7);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease 0s;
}

.portfolio-item:hover img {
    transform: scale(1.10);
}

/* About Page Styles */
.about-banner {
    background-image: linear-gradient(rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08)), url('../images/about-banner.jpg');
    background-size: cover;
    background-position: center;
    padding: 80px 50px;
    margin-top: -140px;
    padding-top: 220px;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-bottom: 60px;
    width: 100vw;
}

/* Fix scrollbar shift for about page */
body:has(.about-banner) {
    overflow-x: hidden;
}

.about-banner-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-image {
    width: 250px;
    height: 250px;
    flex-shrink: 0;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.about-info h1 {
    font-size: 42px;
    font-weight: 400;
    margin-bottom: 10px;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.about-info p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
    font-size: 18px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.about-info a {
    color: var(--white);
    text-decoration: none;
}

.about-info a:hover {
    text-decoration: underline;
}

.about-info a:hover {
    text-decoration: underline;
}

/* About Section */
.about-section {
    margin-bottom: 25px;
}

.about-section h2 {
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.about-section p {
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.about-section p a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.about-section p a:hover {
    color: var(--text-dark);
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding-left: 250px;
}

.timeline-item {
    position: relative;
    padding-bottom: 60px;
    display: flex;
    gap: 40px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 8px;
    width: 12px;
    height: 12px;
    background-color: var(--text-dark);
    border-radius: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: -24px;
    top: 20px;
    width: 1px;
    height: calc(100% - 10px);
    background-color: var(--border-color);
}

.timeline-item:last-child::after {
    display: none;
}

.timeline-logo {
    position: absolute;
    left: -130px;
    top: -25px;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.timeline-date {
    width: 150px;
    text-align: left;
    font-weight: 500;
    color: var(--text-dark);
    flex-shrink: 0;
}

.timeline-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Timeline items without logo (exhibitions) */
.timeline-item.no-logo {
    /* No special styling needed, just removes the logo space */
}

.timeline-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.timeline-content h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.timeline-content h3 a:hover {
    color: var(--accent-color, #666);
}

.timeline-content p {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 5px;
}

/* Social Links */
.social-section {
    text-align: center;
    margin-top: 80px;
}

.social-section h2 {
    font-size: 36px;
    font-weight: 300;
    margin-bottom: 30px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    list-style: none;
}

.social-links a {
    display: block;
    width: 40px;
    height: 40px;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.social-links a:hover {
    opacity: 1;
}

.social-links img {
    width: 100%;
    height: 100%;
}

/* Project Detail Page */
.project-header {
    text-align: left;
    margin-bottom: 60px;
}

.project-header h1 {
    font-size: 48px;
    font-weight: 700;
    color: var(--accent-green);
    text-transform: uppercase;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.project-intro {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.project-description p {
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.project-meta {
    background-color: var(--secondary-bg);
    padding: 30px;
    height: fit-content;
}

.project-meta h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.project-meta p {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.project-meta strong {
    color: var(--text-dark);
    display: block;
    margin-top: 15px;
}

.project-content img {
    width: 100%;
    height: auto;
    margin-bottom: 40px;
}

.project-section {
    margin-bottom: 80px;
}

.project-section h2 {
    font-size: 32px;
    font-weight: 600;
    color: var(--accent-green);
    text-transform: uppercase;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

/* Image Gallery */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.image-gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

/* Footer */
footer {
    background-color: var(--secondary-bg);
    padding: 15px 50px;
    text-align: center;
    color: var(--text-light);
    font-size: 15px;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-hero {
        grid-template-columns: 1fr;
    }

    .project-intro {
        grid-template-columns: 1fr;
    }

    .timeline {
        padding-left: 180px;
    }

    .timeline-date {
        left: -180px;
        width: 150px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 20px 30px;
    }

    .header-content {
        flex-direction: column;
        gap: 20px;
    }

    main {
        padding: 40px 30px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    nav ul {
        gap: 20px;
    }

    .timeline {
        padding-left: 40px;
    }

    .timeline-date {
        position: static;
        text-align: left;
        width: 100%;
        margin-bottom: 10px;
    }

    .timeline-item {
        flex-direction: column;
    }

    .project-header h1 {
        font-size: 36px;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 28px;
    }

    .logo-icon {
        width: 60px;
        height: 60px;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* ============================================
   INTERACTIVE EFFECTS & ANIMATIONS
   ============================================ */

/* Smooth transitions for all elements */
* {
    transition: background-color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}

/* Body loading state */
body {
    opacity: 0;
    animation: fadeInBody 0.5s ease forwards;
}

body.loaded {
    opacity: 1;
}

@keyframes fadeInBody {
    to { opacity: 1; }
}

/* ============================================
   1. STICKY NAVBAR WITH SCROLL EFFECTS
   ============================================ */

header.scrolled {
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

header.scrolled .logo img {
    width: 60px;
    height: 60px;
}

header.scrolled .logo-text {
    font-size: 22px;
}

/* ============================================
   2. LIGHTBOX / IMAGE GALLERY
   ============================================ */

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

#lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    background: none;
    border: none;
    transition: transform 0.2s ease;
}

.lightbox-close:hover {
    transform: scale(1.2);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255,255,255,0.1);
    color: white;
    border: none;
    font-size: 30px;
    padding: 20px 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    backdrop-filter: blur(5px);
}

.lightbox-nav:hover {
    background-color: rgba(255,255,255,0.2);
}

.lightbox-prev {
    left: -60px;
}

.lightbox-next {
    right: -60px;
}

.lightbox-caption {
    color: white;
    text-align: center;
    padding: 15px;
    font-size: 16px;
    margin-top: 10px;
}

/* Clickable image indicator */
.lightbox-enabled {
    transition: transform 0.3s ease, filter 0.3s ease;
}

.lightbox-enabled:hover {
    filter: brightness(1.1);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

/* ============================================
   3. PORTFOLIO ITEMS - SIMPLE DISPLAY
   ============================================ */

.portfolio-item {
    position: relative;
    overflow: hidden;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-item-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    color: rgb(112, 74, 74);
    font-size: 20px;
    font-weight: 300;
    letter-spacing: 1px;
    z-index: 2;
    text-align: center;
    opacity: 0;
    transition: opacity 0.4s ease 0s, bottom 0.4s ease 0s, font-size 0.4s ease 0s, transform 0.4s ease 0s;
}

.portfolio-item:hover .portfolio-item-title {
    opacity: 1;
    bottom: 50%;
    transform: translateY(50%);
    font-size: 28px;
}

/* ============================================
   4. FADE-IN ANIMATIONS ON SCROLL
   ============================================ */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation for portfolio items */
.portfolio-item:nth-child(1) { transition-delay: 0.1s; }
.portfolio-item:nth-child(2) { transition-delay: 0.2s; }
.portfolio-item:nth-child(3) { transition-delay: 0.3s; }
.portfolio-item:nth-child(4) { transition-delay: 0.4s; }
.portfolio-item:nth-child(5) { transition-delay: 0.5s; }

/* ============================================
   5. BACK TO TOP BUTTON
   ============================================ */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--accent-pink);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--accent-green);
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

/* ============================================
   6. IMAGE HOVER ZOOM EFFECTS
   ============================================ */

.image-gallery img,
.project-content img {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
    cursor: pointer;
}

.image-gallery img:hover,
.project-content img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* ============================================
   7. SMOOTH SCROLL BEHAVIOR
   ============================================ */

html {
    scroll-behavior: smooth;
}

/* ============================================
   8. MOBILE MENU TOGGLE
   ============================================ */

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-dark);
    padding: 5px 10px;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--primary-bg);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        animation: slideDown 0.3s ease;
    }

    nav.mobile-open {
        display: block;
    }

    nav ul {
        flex-direction: column;
        padding: 20px;
        gap: 0;
    }

    nav li {
        padding: 15px 0;
        border-bottom: 1px solid var(--border-color);
    }

    nav li:last-child {
        border-bottom: none;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* ============================================
   9. TIMELINE ANIMATIONS
   ============================================ */

.timeline-item {
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInLeft 0.6s ease forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }
.timeline-item:nth-child(6) { animation-delay: 0.6s; }

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================
   10. LINK HOVER EFFECTS
   ============================================ */

a {
    position: relative;
    transition: color 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: transparent;
    transition: width 0.5s ease, background-color 0.5s ease;
}

nav a:hover::after {
    width: 100%;
    background-color: var(--text-dark);
}

nav a.active::after {
    width: 100%;
    background-color: var(--text-dark);
}

/* ============================================
   11. PROJECT META BOX HOVER
   ============================================ */

.project-meta {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-meta:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

/* ============================================
   12. SOCIAL LINKS HOVER
   ============================================ */

.social-links a {
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-5px) scale(1.1);
}

/* ============================================
   13. LOADING SPINNER (for images)
   ============================================ */

img {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

img[src] {
    background: none;
    animation: none;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================
   14. RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 768px) {
    header.scrolled {
        padding: 10px 20px;
    }

    .lightbox-nav {
        font-size: 24px;
        padding: 15px 10px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* ============================================
   15. PRINT STYLES
   ============================================ */

@media print {
    .back-to-top,
    .mobile-menu-toggle,
    .lightbox {
        display: none !important;
    }
}

/* ============================================
   TYPOGRAPHY IMPROVEMENTS - DIN Next Style
   ============================================ */

/* Headings with light weight like DIN Next */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-light);
    letter-spacing: 0.02em;
}

h1 {
    font-weight: 300;
    line-height: 1.2;
}

h2 {
    font-weight: 300;
    line-height: 1.3;
}

h3 {
    font-weight: 400;
    line-height: 1.4;
}

/* Logo text with lighter weight */
.logo-text {
    font-weight: 300;
    letter-spacing: 0.01em;
}

/* Navigation with slightly more weight */
nav a {
    font-weight: 400;
    letter-spacing: 0.03em;
}

/* Portfolio titles */
.portfolio-item-title {
    font-weight: 300;
    letter-spacing: 0.05em;
}

/* Project headers */
.project-header h1 {
    font-weight: 700;
    line-height: 1.1;
}

/* Body text - light and clean */
p {
    font-weight: 300;
    line-height: 1.6;
}

/* Strong/bold text */
strong, b {
    font-weight: 600;
}

/* Timeline and meta text */
.timeline-date,
.project-meta h3 {
    font-weight: 500;
}

/* About page headings */
.about-info h1 {
    font-weight: 300;
}

.about-section h2 {
    font-weight: 300;
}

/* Smooth font rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
