/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Navbar Styling */
.navbar {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    font-size: 1.2em;
}

.navbar a {
    text-decoration: none;
    color: #fff;
    padding: 5px 15px;
    transition: color 0.3s;
}

.navbar a:hover {
    color: #ddd;
}

/* Initial State for Sections */
.section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

/* Visible State for Sections */
.section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Offset for Sections */
.section {
    padding-top: 100px; /* Offsets content for fixed navbar */
}

/* Background Particles */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1; /* Make sure it's behind the content */
    overflow: hidden;
    top: 0;
    left: 0;
}

.zyraztudioslogo {
    height: 65px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
}

.page-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 25px;
    color: #ffffff;
    margin-top: 15px;
    margin-bottom: 15px;
}

.page-nav a {
    color: inherit;
    text-decoration: none;
    margin: 0 5px;
}

.page-nav a:hover {
    color: #85d0ff;
}

body {
    animation: swirl 20s linear infinite; /* Smooth background swirl */
    font-family: Arial, sans-serif;
    color: #ffffff;
    background-color: #4b0082;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh; /* Ensure body takes at least full viewport height */
}

h1, h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #ffffff;
}

/* Landing Section */
.landing {
    background: #6a11cbcc;
    color: white;
    padding: 30px 20px;
    text-align: center;
    font-family: 'Roboto', sans-serif;
    padding-top: 100px;
    box-shadow: 0 4px 10px #000000;
}

.landing h1 {
    font-size: 3em;
    margin-bottom: 10px;
    animation: fadeIn 2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tagline {
    font-size: 25px;
    color: #ffffff;
}

/* Hearts animation */
.hearts {
    display: flex;
    gap: 6px;
    justify-content: center;
}

.heart {
    font-size: 25px;
    display: inline-block;
    animation: rotateHeart 3s linear infinite;
    transform-origin: center center;
}

.heart:nth-child(1) { animation-delay: 1ms; }
.heart:nth-child(2) { animation-delay: 1s; }
.heart:nth-child(3) { animation-delay: 2s; }
.heart:nth-child(4) { animation-delay: 3s; }
.heart:nth-child(5) { animation-delay: 4s; }

@keyframes rotateHeart {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(360deg);
    }
}

/* Sections */
.section {
    flex: 1;
    padding: 60px;
    height: max-content;
    width: 90%;
    max-width: 900px;
    border: none;
    margin: 40px 0;
}

.section h2 {
    font-size: 2.5em;
    color: #ffffff;
}

.section p {
    font-size: 1.2em;
    line-height: 1.5;
}

/* Projects Section */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.project-card {
    padding: 20px;
    background-color: #252525;
    border-radius: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 10px #000000;
}

.project-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.project-card h3 {
    font-size: 1.8em;
    margin-bottom: 10px;
}

.project-card p {
    font-size: 1.1em;
    margin-bottom: 15px;
}

.project-link {
    display: inline-block;
    padding: 10px 15px;
    background-color: #3fa5ff;
    color: #ffffff;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
    margin-top: auto;
    box-shadow: 0 4px 10px #000000;
}

.project-link:hover {
    background-color: #85d0ff;
}

#portfolio h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5em;
    color: #ffffff;
}


/* Footer */
footer {
    width: 1000px;
    padding: 20px;
    font-size: 20px;
    text-align: center;
    color: #ffffff;
    background-color: #6a11cbcc;
    box-shadow: 0 4px 10px #000000;
}

footer .social-links {
    margin-bottom: 10px; /* Space between social links and copyright */
}

footer .copyright {
    margin-top: 15px;
    font-size: 18px;
}

.social-links a {
    margin: 0 15px;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    font-size: 30px;
}

.social-links a:hover {
    color: #85d0ff;
}

/* Custom Scrollbar for Webkit Browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 8px; /* Width of vertical scrollbar */
    height: 8px; /* Height of horizontal scrollbar */
}

::-webkit-scrollbar-track {
    background: #000000; /* Track color */
}

::-webkit-scrollbar-thumb {
    background: #3fa5ff; /* Thumb color */
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #85d0ff; /* Thumb color on hover */
}

/* Scrollbar for Firefox */
* {
    scrollbar-width: thin; /* Make scrollbar thinner */
    scrollbar-color: #6a38ff #000000; /* Thumb and track color */
}

#about-me {
    background-color: #6a11cbcc; /* Darker background for better contrast */
    color: #ffffff; /* Keep text white for readability */
    padding: 60px 20px; /* Added horizontal padding */
    border-radius: 8px; /* Smooth corners */
    margin: 40px 0; /* Space between sections */
    text-align: left; /* Align text to the left for a more formal look */
    box-shadow: 0 4px 10px #000000; /* Subtle shadow for depth */
}

#about-me h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-align: center; /* Center the title */
}

#about-me p {
    font-size: 1.1em; /* Slightly smaller for better flow */
    line-height: 1.5; /* Increase line height for readability */
    margin-bottom: 15px; /* Space between paragraphs */
}

#about-me ul {
    list-style-type: none; /* Remove default bullet points */
    padding: 0; /* Remove padding */
    margin: 20px 0; /* Margin for spacing */
}

#about-me li {
    font-size: 1.1em; /* Consistent size with paragraphs */
    margin: 10px 0; /* Space between list items */
    background-color: #6a38ffcc; /* Light background for list items */
    padding: 10px; /* Padding for list items */
    border-radius: 5px; /* Rounded corners for list items */
    box-shadow: 0 4px 10px #000000cc; /* Subtle shadow for depth */
}

/* Mobile Styles */
@media (max-width: 768px) {
    .navbar ul {
        flex-direction: column;
        align-items: center;
    }

    .section {
        padding: 30px;
        width: 100%;
    }

    .landing h1 {
        font-size: 2.5em;
    }

    .landing {
        padding: 20px;
    }

    footer {
        font-size: 0.8em;
    }

    h2 {
        font-size: 2em;
    }

    .project-card {
        padding: 15px;
    }

    .project-card h3 {
        font-size: 1.5em;
    }

    .zyraztudioslogo {
    height: auto;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    }
}

