* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --red-primary: #c41e3a;
    --red-dark: #8b1538;
    --yellow-primary: #ffd700;
    --yellow-light: #ffed4e;
    --blue-light: #87ceeb;
    --blue-fade: #b0e0e6;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(180deg, #1a1a1a 0%, #2d2d2d 100%);
    min-height: 100vh;
    color: #fff;
    overflow-x: hidden;
}

/* Header Styles */
.main-header {
    background: linear-gradient(135deg, var(--red-primary) 0%, var(--red-dark) 100%);
    padding: 1.5rem 2rem;
    box-shadow: 0 4px 20px rgba(196, 30, 58, 0.5),
                0 0 30px rgba(255, 215, 0, 0.3);
    position: relative;
    z-index: 100;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.website-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--yellow-primary);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8),
                 0 0 40px rgba(255, 215, 0, 0.5),
                 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.website-name:hover {
    transform: scale(1.05);
    text-shadow: 0 0 30px rgba(255, 215, 0, 1),
                 0 0 60px rgba(255, 215, 0, 0.7),
                 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.home-button, .nav-button {
    background: linear-gradient(135deg, var(--yellow-primary) 0%, var(--yellow-light) 100%);
    color: var(--red-dark);
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4),
                0 0 20px rgba(255, 215, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.home-button:hover, .nav-button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.6),
                0 0 30px rgba(255, 215, 0, 0.4);
    background: linear-gradient(135deg, var(--yellow-light) 0%, var(--yellow-primary) 100%);
}

.home-button:active, .nav-button:active {
    transform: translateY(0) scale(0.98);
}

/* Gallery Container */
.gallery-container {
    width: 100%;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
    transition: background 0.3s ease;
}

.gallery-grid {
    width: 70%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    grid-auto-rows: auto;
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.image-item {
    background: #000;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
    margin-bottom: 2rem;
    padding: 2rem;
    width: 100%;
    max-width: 1400px;
}

.pagination-button {
    background: linear-gradient(135deg, var(--yellow-primary) 0%, var(--yellow-light) 100%);
    color: var(--red-dark);
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4),
                0 0 20px rgba(255, 215, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 120px;
}

.pagination-button:hover:not(:disabled) {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.6),
                0 0 30px rgba(255, 215, 0, 0.4);
    background: linear-gradient(135deg, var(--yellow-light) 0%, var(--yellow-primary) 100%);
}

.pagination-button:active:not(:disabled) {
    transform: translateY(0) scale(0.98);
}

.pagination-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-info {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--yellow-primary);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
    letter-spacing: 1px;
}

body.scrolled .pagination-button {
    background: linear-gradient(135deg, var(--blue-light) 0%, var(--blue-fade) 100%);
    color: #1a1a1a;
    box-shadow: 0 4px 15px rgba(135, 206, 235, 0.4),
                0 0 20px rgba(135, 206, 235, 0.2);
}

body.scrolled .pagination-button:hover {
    box-shadow: 0 6px 25px rgba(135, 206, 235, 0.6),
                0 0 30px rgba(135, 206, 235, 0.4);
}

body.scrolled .page-info {
    color: var(--blue-light);
    text-shadow: 0 0 10px rgba(135, 206, 235, 0.8);
}

/* Preview Page Styles */
.preview-container {
    min-height: calc(100vh - 200px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.image-preview-wrapper {
    width: 100%;
    max-width: 90vw;
    max-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.preview-image-container {
    width: 100%;
    max-width: 90vw;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5),
                0 0 60px rgba(255, 215, 0, 0.3);
    position: relative;
    min-height: 400px;
}

.preview-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    display: block;
}

.preview-placeholder {
    color: #666;
    font-size: 1.5rem;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.preview-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}


/* Footer Styles */
.main-footer {
    background: linear-gradient(180deg, var(--red-dark) 0%, #1a1a1a 100%);
    padding: 2.5rem 2rem;
    margin-top: 3rem;
    box-shadow: 0 -4px 20px rgba(196, 30, 58, 0.3),
                0 -2px 10px rgba(0, 0, 0, 0.5);
    position: relative;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--yellow-primary) 20%, 
        var(--yellow-light) 50%, 
        var(--yellow-primary) 80%, 
        transparent 100%);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.footer-content p {
    color: var(--yellow-primary);
    font-size: 1rem;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    letter-spacing: 1px;
}

/* Scroll-based color transition */
body.scrolled {
    background: linear-gradient(180deg, #1a1a1a 0%, #2d4a5d 100%);
}

body.scrolled .main-header {
    background: linear-gradient(135deg, var(--red-primary) 0%, #6b8fa3 100%);
    box-shadow: 0 4px 20px rgba(107, 143, 163, 0.5),
                0 0 30px rgba(135, 206, 235, 0.3);
}

body.scrolled .website-name {
    color: var(--blue-light);
    text-shadow: 0 0 20px rgba(135, 206, 235, 0.8),
                 0 0 40px rgba(135, 206, 235, 0.5),
                 2px 2px 4px rgba(0, 0, 0, 0.5);
}

body.scrolled .home-button,
body.scrolled .nav-button {
    background: linear-gradient(135deg, var(--blue-light) 0%, var(--blue-fade) 100%);
    color: #1a1a1a;
    box-shadow: 0 4px 15px rgba(135, 206, 235, 0.4),
                0 0 20px rgba(135, 206, 235, 0.2);
}

body.scrolled .home-button:hover,
body.scrolled .nav-button:hover {
    box-shadow: 0 6px 25px rgba(135, 206, 235, 0.6),
                0 0 30px rgba(135, 206, 235, 0.4);
}


body.scrolled .footer-content p {
    color: var(--blue-light);
    text-shadow: 0 0 10px rgba(135, 206, 235, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .website-name {
        font-size: 1.8rem;
    }
    
    .home-button, .nav-button {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .gallery-grid {
        width: 95%;
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .preview-navigation {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .website-name {
        font-size: 1.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

