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

body, html {
    height: 100%;
    font-family: Arial, sans-serif;
    color: #333;
    scroll-behavior: smooth;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

nav .logo {
    color: #fff;
    font-size: 1.5em;
    font-weight: bold;
}

nav .nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

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

nav .nav-links li a:hover {
    color: #6C63FF;
}

/* Hamburger */
nav .hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

nav .hamburger span {
    height: 2px;
    width: 25px;
    background: #fff;
    margin-bottom: 5px;
    border-radius: 5px;
}

/* Header / Hero */
header {
    height: 100vh;
    background-image: url('header-bg.png');
    background-size: cover;
    background-position: center;
    position: relative;
    color: #fff;
}

header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.hero {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 1;
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

/* Button */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #6C63FF;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #5149c5;
}

/* Sections */
.section {
    padding: 80px 40px;
    background: #f5f5fa;
    text-align: center;
}

.section:nth-child(even) {
    background: #fff;
}

.section h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #333;
}

.section p {
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

/* Skills Grid */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.skill {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 250px;
}

.skill h3 {
    margin-bottom: 10px;
    color: #6C63FF;
}

.skill ul {
    list-style: none;
    padding-left: 0;
}

.skill ul li {
    margin-bottom: 5px;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.project {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.project img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.project h3 {
    padding: 20px;
    margin: 0;
    color: #6C63FF;
}

.project p {
    padding: 0 20px 20px;
    margin: 0;
    color: #555;
}

/* Contact form */
form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

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

form textarea {
    height: 150px;
    resize: vertical;
}

form button {
    align-self: center;
}

/* Footer */
footer {
    background: #1e1e2f;
    color: #ccc;
    padding: 20px;
    text-align: center;
}

footer a {
    color: #6C63FF;
    text-decoration: none;
}

/* Responsive Mobile Navigation */
@media (max-width: 768px) {
    nav .nav-links {
        position: absolute;
        top: 60px;
        right: 40px;
        background: rgba(0, 0, 0, 0.8);
        flex-direction: column;
        width: 200px;
        padding: 20px;
        border-radius: 10px;
        display: none;
    }

    nav .nav-links li {
        margin-bottom: 10px;
    }

    nav .nav-links.show {
        display: flex;
    }

    nav .hamburger {
        display: flex;
    }

    .hero h1 {
        font-size: 2.2em;
    }
}