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

html {
    scroll-behavior: smooth;
}

body {
    background-color: #0a0a0a;
    color: #fff;
    line-height: 1.6;
    font-family: 'Lexend', sans-serif;
}

.hidden {
    display: none;
}

/* HEADER */
header {
    background: rgba(20, 20, 20, 0.9);
    position: fixed;
    width: 100%;
    z-index: 100;
    top: 0;
    left: 0;
    border-bottom: 1px solid #222;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: auto;
    padding: 1rem 2rem;
}

.logo {
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.logo-link {
    text-decoration: none;
    color: inherit;
    transition: all 200ms ease;
}

.logo-link:hover {
    transform: scale(1.05);
    opacity: 0.65;
}

.logo span {
    color: #00d9ff;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a,
.see-more {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover,
.see-more:hover {
    color: #00d9ff;
}

/* HERO */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a0a0a 60%, #1a1a1a);
    text-align: center;
    padding: 2rem;
}

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

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-content p {
    color: #ccc;
    margin-bottom: 1.5rem;
}

.btn {
    background: #00d9ff;
    color: #0a0a0a;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    transition: 0.3s;
}

.btn:hover {
    background: #007b91;
}

/* SECTIONS */
section {
    max-width: 1100px;
    margin: auto;
    padding: 6rem 2rem;
    text-align: center;
}

section h1 {
    font-size: 2.5rem;
    margin: 3.5rem;
}

.section {
    display: none;
    opacity: 0;
}

.section:first-child {
    display: block;
    opacity: 1;
}


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

.card {
    background: #111;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

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

.card img {
    width: 300px;
    height: 180px;
    object-fit: fill;
    display: block;
}

.card h3 {
    margin: 1rem 0 0.5rem;
}

.card p {
    color: #ccc;
    font-size: 0.95rem;
    padding: 0 1rem 1rem;
}

/* CONTACT */
form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
    margin: 2rem auto;
}

input,
textarea {
    background: #111;
    border: 2px solid #333;
    color: #fff;
    padding: 0.8rem;
    border-radius: 10px;
    transition: all 300ms ease;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #00d9ff;
}

button {
    background: #00d9ff;
    border: none;
    padding: 0.8rem;
    border-radius: 10px;
    cursor: pointer;
    color: #0a0a0a;
    font-weight: 600;
    transition: 0.3s;
}

button:hover {
    background: #007b91;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 1.5rem;
    background: #0a0a0a;
    border-top: 1px solid #222;
    color: #777;
}

@media screen and (max-width: 480px) {
    .nav-links {
        display: none;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.fade-in {
    animation: fadeIn 1s ease-in-out;
}

.fade-out {
    animation: fadeOut 1s ease-in-out;
}