:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --text-color: #1f2937;
    --background-color: #ffffff;
    --accent-color: #dbeafe;
    --spacing-unit: 1rem;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: block;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.cookiePolicy a:hover {
    cursor: pointer;
    color: var(--primary-color);
}

.nav-links a:hover {
    color: var(--primary-color);
    text-decoration: underline;
    text-decoration-color: var(--primary-color);
}

/* The Overlay (background) */

#myNav {
    display:none;
}
#dropMenu {
    display:none;
}
.overlay {
    /* Height & width depends on how you want to reveal the overlay (see JS below) */   
    height: 100%;
    width: 0;
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    background-color: rgb(255, 255, 255); /* Black fallback color */
    background-color: rgba(255, 255, 255, 0.9); /* Black w/opacity */
    overflow-x: hidden; /* Disable horizontal scroll */
    transition: 0.5s; /* 0.5 second transition effect to slide in or slide down the overlay (height or width, depending on reveal) */
}

/* Position the content inside the overlay */
.overlay-content {
position: relative;
top: 25%; /* 25% from the top */
width: 100%; /* 100% width */
text-align: center; /* Centered text/links */
margin-top: 30px; /* 30px top margin to avoid conflict with the close button on smaller screens */
}

.overlay-content a :hover {
    text-decoration: underline;
    text-decoration-color: #2563eb;
}

/* The navigation links inside the overlay */
.overlay a {
padding: 8px;
text-decoration: none;
font-size: 36px;
color: #000000;
display: block; /* Display block instead of inline */
transition: 0.3s; /* Transition effects on hover (color) */
}

/* When you mouse over the navigation links, change their color */
.overlay a:hover, .overlay a:focus {
color: var(--primary-color);
}

/* Position the close button (top right corner) */
.overlay .closebtn {
position: absolute;
top: 20px;
right: 45px;
font-size: 60px;
}

/* When the height of the screen is less than 450 pixels, change the font-size of the links and position the close button again, so they don't overlap */
@media screen and (max-height: 450px) {
.overlay a {font-size: 20px}
.overlay .closebtn {
    font-size: 40px;
    top: 15px;
    right: 35px;
}
}

section {
    opacity: 0;
    transition: opacity 1s ease-out;
}

section.visible {
    opacity:1;
}

div {
    opacity: 0;
    transition: opacity 1s ease-out;
}

div.visible {
    opacity:1;
    animation: slide-in-bottom 1s ease-in forwards;
}

.before {
    opacity: 0;
}

.before.visible {
    opacity:1;
    animation: slide-in-left 0.8s ease-in forwards;
}

.after {
    opacity: 0;
}

.after.visible {
    opacity:1;
    animation: slide-in-right 0.8s ease-in forwards;
}



/* Hero Section */
.hero {
    margin-top: 4rem;
    padding: 4rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 80vh;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 2rem;
}

.productivity-preview {
    opacity:0;
}

.productivity-preview.visible {
    opacity: 1;
    animation: slide-in-bottom 2s ease-out forwards;
}

/* Buttons */
.primary-cta a {
    text-decoration: none;
    color: white;
}

.secondary-cta a {
    text-decoration: none;
    color: white;
}

.cta-button, .primary-cta, .secondary-cta {
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.cta-button, .primary-cta {
    background: var(--primary-color);
    color: white;
    border: none;
}

.secondary-cta {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    margin-left: 1rem;
}

.cta-button:hover, .primary-cta:hover, .secondary-cta:hover {
    transform: translateY(-2px);
}

/* About Section */
.about {
    padding: 4rem 2rem;
    background: var(--accent-color);
}

.transformation-container {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
}

.manga-illustration {
    max-width: 300px;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    max-height:800px;
}

.manga-illustration:hover {
    transform: scale(1.05);
}

/* Features Section */
.features {
    padding: 4rem 2rem;
    animation: slide-in-bottom 1s ease-out forwards;
}

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

.feature-card {
    padding: 2rem;
    border-radius: 0.5rem;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

/* Future Updates Section */
.future-updates {
    background-color: var(--accent-color);
    padding: 4rem 2rem;
    animation: slide-in-bottom 1s ease-out forwards;
}

.future-updates h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.updates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.update-card {
    background-color: var(--background-color);
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.update-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.update-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.update-card p {
    color: var(--text-color);
    font-size: 0.9rem;
}

.feature-pics {
    display:block;
    max-width: 100px;
    height: 70px;
}

/* Contact Section */
.contact {
    opacity: 0;
    padding: 4rem 2rem;
    background-color: var(--background-color);
    text-align: center;
    transition: opacity 1s ease-out;
}

.contact.visble {
    opacity:1;
    animation: slide-in-bottom 1s ease-out forwards;
}

.contact h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact p {
    max-width: 600px;
    margin: 0 auto 2rem;
    color: var(--text-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.contact-form input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--accent-color);
    border-radius: 0.375rem;
    font-size: 1rem;
}


.submit-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: var(--secondary-color);
}

/* Animation Loading */
.loader {
    position: fixed;
    display: table;
    margin-left: auto;
    margin-right: auto;
    margin-top: auto;
    margin-bottom: auto;
    top: -50vh;
    justify-content: center;
    align-items: center;
    width: 65px;
    aspect-ratio: 1;
    position: relative;
    z-index: 9999;
}
.loader:before,
.loader:after {
    content: "";
    position: absolute;
    border-radius: 50px;
    box-shadow: 0 0 0 3px inset var(--primary-color);
    animation: l4 2.5s infinite;
}
.loader:after {
    animation-delay: -1.25s;
}
@keyframes l4 {
    0% {
      inset: 0 35px 35px 0;
    }
    12.5% {
      inset: 0 35px 0 0;
    }
    25% {
      inset: 35px 35px 0 0;
    }
    37.5% {
      inset: 35px 0 0 0;
    }
    50% {
      inset: 35px 0 0 35px;
    }
    62.5% {
      inset: 0 0 0 35px;
    }
    75% {
      inset: 0 0 35px 35px;
    }
    87.5% {
      inset: 0 0 35px 0;
    }
    100% {
      inset: 0 35px 35px 0;
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Footer */
.footer {
    background-color: var(--text-color);
    color: var(--background-color);
    padding: 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a, .footer-social a {
    color: var(--background-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover, .footer-social a:hover {
    color: var(--accent-color);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

/* Back to Top Arrow */
#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    opacity: 0;
    transition: opacity 0.3s ease, background-color 0.3s ease;
    z-index: 1000;
}

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

#back-to-top:hover {
    background-color: var(--secondary-color);
    cursor: pointer;
}

#back-to-top svg {
    width: 24px;
    height: 24px;
}

.mobile-menu {
    font-size: 30px;
    color: var(--primary-color);
}
.mobile-menu:hover {
    cursor:pointer;
}

#menu-btn {
    transition: translate 0.3s ease;
}

#menu-icon {
    font-size: 30px;
    color: var(--primary-color);
    transition: translate 0.3s ease;
    animation: slide-in-right 0.5s ease-out forwards
}

/* Cookie popup */
.cookie-overlay {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    background: #fff;
    z-index: 1000;
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    display: none;
}
  
.cookie-overlay.d-block {
    display: block;
}
  
.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
  
.accept-cookies, .close-cookies {
    margin-left: 1rem;
}

.accept-cookies:hover, .close-cookies:hover {
    transform: translateY(-1px);
}

.accept-cookies {
    padding: 10px;
    border-radius: 5px;
    background: var(--primary-color);
    color: white;
    border: none;
}

.close-cookies {
    padding: 10px;
    border-radius: 5px;
    background: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}
  

/* Responsive adjustments */
@media (max-width: 768px) {
    .updates-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-links, .footer-social {
        flex-direction: column;
        gap: 0.5rem;
    }

    .nav-links {
        display: block;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1rem;
        margin-top: 100px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .transformation-container {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .manga-illustration {
        max-width: 250px;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu {
        display: none;
    }

    #myNav {
        display:block;
    }

    #dropMenu {
        display: block;
    }
}


/* Animations */
@keyframes slide-in-bottom {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slide-in-right {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slide-in-left {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

.feature-card, .hero-content, .manga-illustration {
    animation: fadeIn 0.6s ease-out forwards;
}