/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #101010;
    color: #fff;
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: #f39c12;
}

header {
    background-color: #181818;
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: 0.3s;
}

.logo {
    font-size: 2.5rem;
    font-weight: bold;
    color: #fff;
}

.logo span {
    color: #f39c12;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    font-size: 1.2rem;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #f39c12;
}

.btn {
    background-color: #f39c12;
    color: #000;
    padding: 10px 25px;
    border-radius: 50px;
    display: inline-block;
    transition: 0.4s ease-in-out;
    font-weight: bold;
}

.btn:hover {
    background-color: #fff;
    color: #101010;
    transform: scale(1.1);
}

#home {
    height: 100vh;
    background-image: url('https://source.unsplash.com/random/1600x900');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-content h2 {
    font-size: 4rem;
    color: #fff;
    text-align: center;
    animation: fadeInDown 2s ease-in-out;
}

.home-content p {
    font-size: 1.5rem;
    margin: 20px 0;
    text-align: center;
    animation: fadeIn 3s ease-in-out;
}

.home-content .btn {
    animation: fadeInUp 3s ease-in-out;
}

#about {
    background-color: #1a1a1a;
    padding: 100px 50px;
    text-align: center;
}

#about h2 {
    font-size: 3rem;
    color: #f39c12;
    margin-bottom: 20px;
    animation: slideInLeft 1s ease-in-out;
}

#about p {
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.cards {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.card {
    background-color: #252525;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: 0.4s ease-in-out;
    animation: fadeInUp 1s ease-in-out;
}

.card:hover {
    transform: scale(1.05);
}

.project-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.project-card {
    background-color: #252525;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: 0.4s ease-in-out;
    animation: zoomIn 1.2s ease-in-out;
}

.project-card:hover {
    transform: scale(1.1);
}

#projects {
    padding: 100px 50px;
    text-align: center;
}

#projects h2 {
    font-size: 3rem;
    color: #f39c12;
    margin-bottom: 20px;
    animation: slideInRight 1s ease-in-out;
}

#contact {
    background-color: #1a1a1a;
    padding: 100px 50px;
    text-align: center;
}

#contact h2 {
    font-size: 3rem;
    color: #f39c12;
    margin-bottom: 20px;
    animation: fadeIn 1.5s ease-in-out;
}

#contact form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#contact input {
    width: 80%;
    padding: 15px;
    margin-bottom: 20px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
}

#contact button {
    width: 50%;
    padding: 15px;
    font-size: 1rem;
    border: none;
    border-radius: 50px;
    background-color: #f39c12;
    color: #000;
    cursor: pointer;
    transition: 0.4s ease-in-out;
}

#contact button:hover {
    background-color: #fff;
    color: #101010;
    transform: scale(1.1);
}

footer {
    text-align: center;
    padding: 1rem;
    background-color: #181818;
    color: #fff;
    animation: fadeInUp 1s ease-in-out;
}

/* Animations */
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    0% { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    0% { opacity: 0; transform: translateX(-100px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    0% { opacity: 0; transform: translateX(100px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes zoomIn {
    0% { opacity: 0; transform: scale(0.5); }
    100% { opacity: 1; transform: scale(1); }
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    nav ul {
        flex-direction: column;
        background-color: #181818;
    }

    nav ul li {
        margin: 10px 0;
    }

    .cards, .project-grid {
        flex-direction: column;
        align-items: center;
    }

    #contact input {
        width: 100%;
    }

    #contact button {
        width: 80%;
    }
}

@media screen and (max-width: 480px) {
    .logo {
        font-size: 2rem;
    }

    nav ul li a {
        font-size: 1rem;
    }

    .home-content h2 {
        font-size: 2.5rem;
    }

    .home-content p {
        font-size: 1rem;
    }

    #about h2, #projects h2, #contact h2 {
        font-size: 2.5rem;
    }

    #contact input {
        font-size: 0.9rem;
    }

    .btn {
        padding: 10px 20px;
    }
}

/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #101010;
    color: #fff;
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: #f39c12;
}

header {
    background-color: #181818;
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: 0.3s;
}

.logo {
    font-size: 2.5rem;
    font-weight: bold;
    color: #fff;
    animation: glow 3s infinite;
}

.logo span {
    color: #f39c12;
}

@keyframes glow {
    0% { text-shadow: 0 0 5px #f39c12, 0 0 10px #f39c12, 0 0 20px #f39c12; }
    50% { text-shadow: 0 0 20px #f39c12, 0 0 30px #f39c12, 0 0 40px #f39c12; }
    100% { text-shadow: 0 0 5px #f39c12, 0 0 10px #f39c12, 0 0 20px #f39c12; }
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    font-size: 1.2rem;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #f39c12;
}

.hamburger {
    display: none;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 25px;
}

nav {
    position: relative;
}

nav ul {
    display: flex;
}

nav.active ul {
    display: flex;
    flex-direction: column;
    background-color: #181818;
    position: absolute;
    width: 100%;
    top: 60px;
    left: 0;
}

.btn {
    background-color: #f39c12;
    color: #000;
    padding: 10px 25px;
    border-radius: 50px;
    display: inline-block;
    transition: 0.4s ease-in-out;
    font-weight: bold;
}

.btn:hover {
    background-color: #fff;
    color: #101010;
    transform: scale(1.1);
}

#home {
    height: 100vh;
    background-image: url('https://source.unsplash.com/random/1600x900');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-content h2 {
    font-size: 4rem;
    color: #fff;
    text-align: center;
    animation: fadeInDown 2s ease-in-out;
}

.home-content p {
    font-size: 1.5rem;
    margin: 20px 0;
    text-align: center;
    animation: fadeIn 3s ease-in-out;
}

.home-content .btn {
    animation: fadeInUp 3s ease-in-out;
}

#about {
    background-color: #1a1a1a;
    padding: 100px 50px;
    text-align: center;
}

#about h2 {
    font-size: 3rem;
    color: #f39c12;
    margin-bottom: 20px;
    animation: slideInLeft 1s ease-in-out;
}

#about p {
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.cards {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.card {
    background-color: #252525;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: 0.4s ease-in-out;
    animation: fadeInUp 1s ease-in-out;
}

.card:hover {
    transform: scale(1.05);
}

.project-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.project-card {
    background-color: #252525;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: 0.4s ease-in-out;
    animation: zoomIn 1.2s ease-in-out;
}

.project-card:hover {
    transform: scale(1.1);
}

#contact {
    background-color: #1a1a1a;
    padding: 100px 50px;
    text-align: center;
}

footer {
    text-align: center;
    padding: 1rem;
    background-color: #181818;
    color: #fff;
    animation: fadeInUp 1s ease-in-out;
}

/* Animations */
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    0% { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    0% { opacity: 0; transform: translateX(-100px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    0% { opacity: 0; transform: translateX(100px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes zoomIn {
    0% { opacity: 0; transform: scale(0.5); }
    100% { opacity: 1; transform: scale(1); }
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .hamburger {
        display: block;
    }

    nav ul {
        display: none;
    }

    nav.active ul {
        display: flex;
    }

    nav ul li {
        margin: 10px 0;
    }

    .cards, .project-grid {
        flex-direction: column;
        align-items: center;
    }

    #contact input {
        width: 100%;
    }

    #contact button {
        width: 80%;
    }
}

@media screen and (max-width: 480px) {
    .logo {
        font-size: 2rem;
    }

    nav ul li a {
        font-size: 1rem;
    }

    .home-content h2 {
        font-size: 2.5rem;
    }

    .home-content p {
        font-size: 1rem;
    }

    #about h2, #projects h2, #contact h2 {
        font-size: 2.5rem;
    }

    #contact input {
        font-size: 0.9rem;
    }

    .btn {
        padding: 10px 20px;
    }
}
