* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    color: #333;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
}

/* Header */
header {
    background: #0f172a;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 22px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.hero h2 span {
    color: #fde047;
}

.btn {
    display: inline-block;
    margin-top: 20px;
    background: #fde047;
    color: #000;
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}

/* Section */
.section {
    padding: 60px 0;
}

.section h2 {
    text-align: center;
    margin-bottom: 20px;
}

.gray {
    background: #f1f5f9;
}

/* Skills */
.skills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.skills span {
    background: #2563eb;
    color: #fff;
    padding: 8px 15px;
    margin: 5px;
    border-radius: 20px;
}

/* Projects */
.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Form */
form {
    max-width: 500px;
    margin: auto;
    display: flex;
    flex-direction: column;
}

form input, form textarea {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

/* Footer */
footer {
    background: #0f172a;
    color: #fff;
    text-align: center;
    padding: 15px;
}

/* ===== Animations ===== */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.fade-up.show {
    opacity: 1;
    transform: translateY(0);
}

/* Hover Animations */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.15);
}

.skills span {
    transition: transform 0.3s ease, background 0.3s ease;
}

.skills span:hover {
    transform: scale(1.1);
    background: #1e40af;
}

.btn {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.25);
}

/* Hero Animation */
.hero h2 {
    animation: slideDown 1s ease forwards;
}

.hero p {
    animation: fadeIn 1.5s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}


/* Responsive */
@media (max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
        background: #0f172a;
        position: absolute;
        top: 60px;
        right: 20px;
        width: 200px;
        padding: 10px;
    }

    nav ul.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }
}
