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

body {
    font-family: 'Arial', sans-serif;
    background: #000;
    color: #fff;
    overflow-x: hidden;
    min-height: 100vh;
}

.background-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    filter: blur(60px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

header {
    text-align: center;
    margin-bottom: 3rem;
}

.logo {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.7;
}

.tagline {
    font-size: 1rem;
    opacity: 0.7;
    font-weight: 300;
}

.nav {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 100;
}

.nav-button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.nav-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.portfolio-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.4s ease;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.portfolio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
    z-index: 2;
}

.portfolio-card:hover::before {
    left: 100%;
}

.portfolio-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.card-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 15px;
}

.card-preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.portfolio-card:hover .card-preview-image {
    transform: scale(1.1);
    filter: brightness(0.7);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    transition: all 0.4s ease;
    z-index: 1;
}

.portfolio-card:hover .card-overlay {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
}

.card-image-container.no-image {
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image-container.no-image .card-overlay {
    position: static;
    background: none;
    text-align: center;
    padding: 2rem;
}

.card-title {
    font-size: 1.6rem;
    font-weight: 200;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.card-description {
    font-size: 1rem;
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.card-count {
    font-size: 0.9rem;
    opacity: 0.6;
    font-style: italic;
}

.gallery-page {
    display: none;
}

.gallery-page.active {
    display: block;
}

.gallery-header {
    text-align: center;
    margin-bottom: 3rem;
}

.gallery-title {
    font-size: 2.2rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.gallery-description {
    font-size: 1.1rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Image container and gallery styles */
.image-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.image-container:hover {
    transform: scale(1.02);
}

.gallery-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease, filter 0.3s ease;
    border-radius: 8px;
}

.image-container:hover .gallery-image {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Removed image overlay styles - no longer needed */

/* Lightbox styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

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

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
    font-weight: 300;
    z-index: 1001;
    padding: 10px;
    transition: opacity 0.3s ease;
}

.lightbox-close:hover {
    opacity: 0.7;
}

.lightbox-nav-left,
.lightbox-nav-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 120px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border-radius: 8px;
    opacity: 0.7;
}

.lightbox-nav-left {
    left: -80px;
}

.lightbox-nav-right {
    right: -80px;
}

.lightbox-nav-left:hover,
.lightbox-nav-right:hover {
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.nav-arrow {
    font-size: 2.5rem;
    font-weight: 300;
    user-select: none;
}

.lightbox-counter {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1rem;
    opacity: 0.8;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

/* Mobile lightbox adjustments */
@media (max-width: 768px) {
    .lightbox-content {
        max-width: 80vw; 
        max-height: 95vh;
    }
    
    .lightbox-image {
        max-width: 100%;
        max-height: 80vh; 
    }
    
    .lightbox-nav-left,
    .lightbox-nav-right {
        width: 40px;
        height: 80px;
        font-size: 1.2rem;
        opacity: 0.8;
        background: rgba(0, 0, 0, 0.6); 
    }
    
    .lightbox-nav-left {
        left: -50px; 
    }
    
    .lightbox-nav-right {
        right: -50px; 
    }
    
    .nav-arrow {
        font-size: 1.8rem;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
        font-size: 2rem;
    }
    
    .lightbox-counter {
        display: none; 
    }
}

/* Empty state styles */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    opacity: 0.7;
}

.empty-state p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.empty-state code {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

.back-button {
    position: fixed;
    top: 2rem;
    left: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    font-size: 0.9rem;
    letter-spacing: 1px;
    z-index: 100;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-3px);
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .logo {
        font-size: 2rem;
    }

    .nav, .back-button {
        position: relative;
        top: auto;
        right: auto;
        left: auto;
        margin: 1rem auto;
        display: block;
        width: fit-content;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .image-grid {
        grid-template-columns: 1fr;
    }
}

.fade-in {
    animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

footer {
  /* position: fixed;  */
  bottom: 0; 
  left: 0; 
  width: 100%; 
  color: rgb(112, 111, 111); /* Example text color */
  padding: 1px 0; /* Example padding */
  text-align: center; /* Centers the content within the footer */
  z-index: 1000; /* Ensures the footer is above other content */
}

/* Styling unvisited links */
a:link {
  color: rgb(112, 111, 111); /* Sets the text color */
  text-decoration: underline; /* Adds an underline */
}

/* Styling visited links */
a:visited {
  color: rgb(112, 111, 111);
}

/* Styling on hover */
a:hover {
  color: rgb(152, 152, 152);
  text-decoration: none; /* Removes the underline on hover */
}

/* Styling when active (clicked) */
a:active {
  color: rgb(112, 111, 111);
}

/* Styling when focused (e.g., via keyboard navigation) */
a:focus {
  outline: 2px solid rgb(101, 101, 101); /* Adds an outline for accessibility */
}