* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    line-height: 1.6;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #111;
    color: white;
    padding: 15px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    transition: transform 0.3s, color 0.3s;
}

nav ul li a:hover {
    color: rgb(88, 54, 212);
    transform: scale(1.2) translateY(-2px); /* 2D */
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background: white;
    margin: 5px;
}

.hero {
    height: 90vh;
    background: linear-gradient(to right, #6a11cb, #2575fc);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
    animation: fadeIn 2s;
}

.hero h1 {
    font-size: 3rem;
}

.hero p {
    margin-top: 10px;
}

.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    padding: 40px;
    gap: 20px;
    perspective: 1000px;
}

.card {
    background: #f4f4f4;
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.5s;
    transform-style: preserve-3d;
}

.card:hover {
    transform: rotateY(15deg) rotateX(10deg) translateY(-10px);
}

.card img {
    width: 100%;
    border-radius: 10px;
    transition: transform 0.5s;
}

.card:hover img {
    transform: scale(1.1) rotate(-3deg) translateY(-5px);
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

footer {
    background: #111;
    color: white;
    text-align: center;
    padding: 20px;
}

@media(max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
        background: #111;
        position: absolute;
        top: 60px;
        right: 0;
        width: 200px;
    }

    nav ul.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }
}