@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: white;
    color: black;
    line-height: 1.8;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 5%;
    display: flex;
    justify-content: flex-end;
    gap: 2rem;
    background: linear-gradient(to bottom, rgba(255,255,255,0.95), rgba(255,255,255,0.15));
    backdrop-filter: blur(10px);
    z-index: 1000;
    animation: slideDown 0.8s ease forwards;
}

.navbar a {
    text-decoration: none;
    color: black;
    font-weight: 600;
    position: relative;
    transition: color 0.4s ease;
}

.navbar a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: #0077ff;
    transition: width 0.4s ease;
}

.navbar a:hover {
    color: #0077ff;
}

.navbar a:hover::after {
    width: 100%;
}

/* Hero section */
.hero {
    height: 100vh;
    background: url('https://szymdows1.odoo.com/web/image/990-8c9d33c2/Szymdows%20AI%20pic1.webp') center/cover no-repeat fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 10%;
    animation: fadeInScale 1.5s ease-out forwards;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    animation: fadeInUp 1.2s ease forwards;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    max-width: 700px;
    opacity: 0;
    animation: fadeInUp 1.4s ease forwards;
    animation-delay: 0.3s;
}

.btn {
    background-color: black;
    color: white;
    padding: 0.9rem 1.8rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transform: translateY(0);
    transition: all 2s ease; /* Covers background, color, and transform */
    opacity: 0;
    animation: fadeInUp 1.6s ease forwards;
    animation-delay: 0.6s;
    background-size: 200% auto;
}

.btn:hover {
    background: linear-gradient(90deg, red, orange, yellow, green, cyan, blue, violet);
    background-size: 400% 400%;
    color: black;
    transform: translateY(-4px) scale(1.03);
}

/* Ensure smooth return on mouse leave */
.btn:not(:hover) {
    background-color: black;
    color: white;
}

/* Sections with enhanced animation */
section {
    padding: 5rem 10%;
    opacity: 0;
    transform: translateY(60px) scale(0.98);
    filter: blur(6px);
    transition: opacity 1s ease, transform 1s ease, filter 1s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

section h2 {
    font-size: 2.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
}

section h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: #0077ff;
    margin-top: 0.5rem;
    animation: growLine 1s ease forwards;
}

section p {
    font-size: 1.15rem;
    max-width: 800px;
    margin-bottom: 1.5rem;
}

/* Footer */
footer {
    background: black;
    color: white;
    text-align: center;
    padding: 2rem 5%;
    font-size: 0.9rem;
    margin-top: 2rem;
    animation: fadeIn 1s ease forwards;
}

/* Keyframes */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.97); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

@keyframes growLine {
    from { width: 0; }
    to { width: 50px; }
}