/* Base styles and reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6c5ce7;
    --primary-light: #a29bfe;
    --secondary-color: #fd79a8;
    --text-color: #2d3436;
    --light-text: #636e72;
    --background: #ffffff;
    --light-bg: #f9f9f9;
    --dark-bg: #2d3436;
    --border-radius: 12px;
    --card-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-bg);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: var(--background);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
}

.site-title {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

nav ul {
    display: flex;
    gap: 1.5px;
    padding-right: -10px;
    
}

nav a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-color);
    padding: 0.5rem;
    border-radius: var(--border-radius);
    display: block;
    align-items: right;
    gap: 1px;
}

nav a:hover {
    color: var(--primary-color);
    background-color: rgba(108, 92, 231, 0.08);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 80vh;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.9), rgba(253, 121, 168, 0.9)), url('hero-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 2rem;
}

.hero-content {
    max-width: 800px;
}

.hero-content h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.hero-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: white;
    color: var(--primary-color);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Section Styling */
section {
    padding: 5rem 8%;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 0.8rem auto 0;
    border-radius: 2px;
}

/* About Section */
.about-section {
    background-color: var(--background);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    margin: 0 5%;
    padding: 3rem;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    color: var(--light-text);
}

/* Wallpaper Sections */
.wallpaper-section {
    background-color: var(--light-bg);
}

.wallpaper-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.wallpaper-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    background-color: var(--background);
}

.wallpaper-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.wallpaper-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    aspect-ratio: 9/16;
}

.wallpaper-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.wallpaper-item:hover img {
    transform: scale(1.05);
}

.wallpaper-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 2rem;
    transition: var(--transition);
}

.wallpaper-item:hover .wallpaper-overlay {
    opacity: 1;
}

.download-icon {
    background-color: var(--primary-color);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
    cursor: pointer;
}

.download-icon:hover {
    background-color: var(--secondary-color);
    transform: scale(1.1);
}

.section-footer {
    text-align: center;
    margin-top: 3rem;
}

.btn-view-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: transparent;
    color: var(--primary-color);
    padding: 0.8rem 2rem;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-view-more:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
}

.modal-content {
    display: block;
    max-width: 80%;
    max-height: 80vh;
    margin: 4% auto 0;
    border-radius: 10px;
}

.modal-info {
    color: white;
    text-align: center;
    max-width: 600px;
    margin: 1rem auto;
}

.modal-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-download, .btn-share {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-download {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.btn-share {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-download:hover, .btn-share:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Newsletter Section */
.newsletter {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 4rem 8%;
    text-align: center;
}

.newsletter-container {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.newsletter p {
    margin-bottom: 2rem;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

.newsletter-form button {
    background-color: var(--dark-bg);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0 2rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background-color: black;
    transform: translateY(-2px);
}

/* Footer Styles */
footer {
    background-color: var(--dark-bg);
    color: white;
    padding: 4rem 8% 2rem;
}

.footer-content {
    display: grid;
    
    gap: 2rem;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-section h3::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin-top: 0.5rem;
    border-radius: 2px;
}

.footer-section p {
    margin-bottom: 1rem;
    opacity: 0.8;
    font-size: 0.9rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    opacity: 0.8;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    opacity: 1;
    color: var(--primary-light);
    padding-left: 5px;
}

.footer-bottom {
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    z-index: 999;
}

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

.back-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    section {
        padding: 4rem 5%;
    }
    
    .hero-content h2 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 1rem 4%;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 30vh;
        height: 60vh;
        background-color: var(--background);
        flex-direction: column;
        padding: 1rem;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        z-index: 1001;
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav a {
        display: block;
        font-size: 1.1rem;
        padding: 1rem;
    }
    
    .menu-toggle {
        display: block;
        z-index: 1002;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .hero-text {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .about-section {
        margin: 0;
        padding: 3rem 2rem;
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: 0.5rem;
        max-width: 500px;
        margin: 0 auto;
    }
    
}

@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .wallpaper-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .modal-content {
        max-width: 95%;
    }
    
    .modal-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn-download, .btn-share {
        width: 80%;
    }
}


/* Additional Style Enhancements */

/* Subtle animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Image hover effects */
.wallpaper-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.2), rgba(253, 121, 168, 0.2));
    opacity: 0;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.wallpaper-container:hover::before {
    opacity: 1;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Loader animation */
.loader {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Category tags for wallpapers */
.wallpaper-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    z-index: 2;
}



/* Notifications */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}

.notification.active {
    transform: translateY(0);
    opacity: 1;
}

/* Success message for newsletter */
.success-message {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: var(--border-radius);
    animation: fadeInUp 0.5s ease;
}

/* No results message */
#no-results {
    text-align: center;
    padding: 2rem;
    font-size: 1.2rem;
    color: var(--light-text);
    display: none;
}

/* Card hover effect */
.wallpaper-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wallpaper-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Image lazy loading placeholder */
.wallpaper-container.loading {
    background: linear-gradient(90deg, #f0f0f0, #f8f8f8, #f0f0f0);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% { background-position: -100% 0; }
    100% { background-position: 200% 0; }
}
.section-description {
    font-size: x-large;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    margin: 0 0 0.5rem 0;
    color: var(--text-color);
    text-align: center;
}

.section-credits{
    text-align: center;
    font-size: large;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    margin: 0 0 0.5rem 0;
    color: var(--text-color);

}

.section-credits a {
    color: rgb(0, 94, 255); /* Change this to your desired color */
    text-decoration: none; /* Removes underline */
    font-weight: bold; /* Makes text bold */
}

.section-credits a:hover {
    color: rgb(0, 21, 139); /* Changes color on hover */
}
