/* Reset */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}


/* Navigation */

nav {
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 15px 0;
}

nav ul li {
    margin: 0 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

nav ul li a:hover {
    color: #00ffff;
}


/* General section style */

section {
    text-align: center;
    padding: 100px 20px;
    color: #fff;
}


/* Buttons */

.btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    color: #fff;
    background: linear-gradient(45deg, #00ffff, #ff00ff);
    border-radius: 50px;
    text-decoration: none;
    transition: 0.3s;
}

.btn:hover {
    transform: scale(1.1);
}


/* Parallax Sections */

.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.hero {
    background-image: url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e');
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.projects {
    background-image: url('https://images.unsplash.com/photo-1522075469751-3a6694fb2f61');
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}


/* About & Contact Sections */

.about,
.contact {
    background: linear-gradient(120deg, #111, #222);
    padding: 120px 20px;
}


/* Cards in Projects Section */

.cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.card {
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 15px;
    width: 250px;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-10px) scale(1.05);
    background: rgba(0, 255, 255, 0.3);
}


/* Parallax content overlay */

.parallax .content {
    background: rgba(0, 0, 0, 0.5);
    padding: 50px;
    border-radius: 10px;
}


/* Smooth scroll behavior */

html {
    scroll-behavior: smooth;
}


/* Fade-in animation */

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Staggered text animation */

.animate-text {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards;
}

.animate-text.delay {
    animation-delay: 0.5s;
}

.animate-text.delay2 {
    animation-delay: 1s;
}