:root {
    --primary-color: #6B3E4D;
    --secondary-color: #8B5E6F;
    --accent-color: #9D7589;
    --dark-brown: #4A2C2A;
    --light-purple: #B89BA5;
    --bg-gradient-1: #6B3E4D;
    --bg-gradient-2: #8B5E6F;
    --bg-gradient-3: #B89BA5;
    --bg-gradient-4: #D4A5A5;
    --text-dark: #2d3436;
    --text-light: #ffffff;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    color: #e4e4e4;
    line-height: 1.6;
}

/* Navigation */
nav {
    background: linear-gradient(135deg, rgba(20, 20, 30, 0.98), rgba(30, 30, 45, 0.98));
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.logo:hover .logo-img {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.nav-links a.active {
    color: #ffffff;
    font-weight: 400;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.admin-link {
    font-size: 0.85rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.admin-link:hover {
    opacity: 1;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 70px);
        background: linear-gradient(135deg, rgba(20, 20, 30, 0.98), rgba(30, 30, 45, 0.98));
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 2rem;
        gap: 0;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
        transition: right 0.3s ease;
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        margin-bottom: 1rem;
    }

    .nav-links a {
        display: block;
        padding: 1rem;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.05);
    }

    .nav-links a:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: translateX(5px);
    }

    .nav-links a.active::after {
        display: none;
    }

    .nav-links a.active {
        background: rgba(255, 255, 255, 0.15);
    }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 3rem 2rem 2.5rem 2rem;
    background: transparent;
    border-radius: 0;
    margin: 2rem 0 1.5rem 0;
    box-shadow: none;
    animation: fadeInUp 0.8s ease;
    backdrop-filter: none;
    border: none;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 2rem;
}

.hero .welcome-text {
    font-weight: 300;
    font-size: 2.5rem;
    color: #f5f5f5;
    letter-spacing: 3px;
    margin: 0;
    opacity: 0.9;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-logo {
    animation: fadeIn 1s ease;
}

.hero-logo-img {
    height: 120px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: #f5f5f5;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    font-weight: 800;
    letter-spacing: -2px;
}

.hero p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.65);
    max-width: 700px;
    margin: 0 auto;
    text-shadow: none;
    line-height: 1.8;
    font-weight: 400;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.gallery-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(139, 94, 111, 0.3);
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    display: block;
    flex-shrink: 0;
}

.gallery-item-content {
    padding: 1.2rem;
    background: rgba(20, 20, 30, 0.3);
    flex: 1;
}

.gallery-item h3 {
    color: #f5f5f5;
    margin-bottom: 0.4rem;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.gallery-item p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    line-height: 1.4;
    font-weight: 400;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 2.8em;
    margin-bottom: 0.6rem;
}

.category-badge {
    display: inline-block;
    padding: 0.25rem 0.7rem;
    background: transparent;
    color: #A8899C;
    border-radius: 15px;
    font-size: 0.75rem;
    margin-top: 0.3rem;
    border: 1px solid rgba(139, 94, 111, 0.3);
    font-weight: 500;
}

.category-badge::before {
    content: '#';
    margin-right: 2px;
}

/* Responsive - 4 columns on large screens, 3 on medium, 2 on small, 1 on mobile */
@media (min-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 480px) and (max-width: 767px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* About & Contact Sections */
.content-section {
    background: transparent;
    border-radius: 0;
    padding: 2rem 0;
    margin: 2rem 0;
    box-shadow: none;
    animation: fadeInUp 0.8s ease;
    border: none;
}

.content-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    color: #f5f5f5;
    font-weight: 700;
    text-align: center;
    letter-spacing: -1px;
}

/* Form Styles */
.contact-form {
    max-width: 600px;
    margin: 2rem auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    color: #f5f5f5;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8B5E6F;
    box-shadow: 0 0 0 3px rgba(139, 94, 111, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* Buttons */
.btn {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #6B3E4D, #4A2C2A);
    color: white;
    box-shadow: 0 5px 15px rgba(107, 62, 77, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(107, 62, 77, 0.6);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Alert Messages */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin: 1rem 0;
    animation: fadeInUp 0.5s ease;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Footer */
footer {
    background: rgba(255, 255, 255, 0.04);
    padding: 2rem;
    text-align: center;
    margin-top: 4rem;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

footer p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: rgba(255, 255, 255, 1);
}

.footer-developer {
    margin-top: 0.5rem;
}

.footer-developer img {
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.8;
}

.footer-developer img:hover {
    transform: scale(1.1);
    opacity: 1;
}

/* Auth Pages */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 2rem 0;
}

.auth-box {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    max-width: 450px;
    width: 100%;
    animation: fadeInUp 0.6s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-box h1 {
    text-align: center;
    color: #f5f5f5;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.auth-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 2rem;
}

.auth-form .form-group {
    margin-bottom: 1.5rem;
}

.auth-form small {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.btn-block {
    width: 100%;
    margin-top: 1rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: rgba(255, 255, 255, 0.5);
}

.auth-footer a {
    color: #B89BA5;
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
    color: #D4A5A5;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .logo-img {
        height: 40px;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .hero {
        padding: 2rem 1rem;
    }
    
    .hero-content {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero .welcome-text {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }
    
    .hero-logo-img {
        height: 60px;
        max-width: 90%;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .gallery-item {
        margin-bottom: 0;
    }
    
    .gallery-item img {
        height: 250px;
    }
    
    .content-section {
        padding: 1.5rem 1rem;
        margin: 1rem;
    }
    
    .content-section h2 {
        font-size: 1.8rem;
    }
    
    .content-section h3 {
        font-size: 1.3rem;
    }
    
    .content-section p, .content-section ul {
        font-size: 0.95rem;
    }

    .auth-box {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .auth-box h1 {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    footer {
        padding: 2rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .hero .welcome-text {
        font-size: 1.2rem;
    }
    
    .gallery-item img {
        height: 200px;
    }
    
    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }
}
