n/* Reset some default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%); /* Cool dark gradient */
    color: #e0e0e0;
    min-height: 100vh;
}

header {
    background: rgba(26, 26, 46, 0.9); /* Semi-transparent dark header */
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 128, 255, 0.3);
}

nav {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(45deg, #0080ff, #4a90e2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

nav img {
    max-width: 150px;
    max-height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-left: 1rem;
    border: 2px solid rgba(0, 128, 255, 0.3);
    transition: all 0.3s ease;
}

nav img:hover {
    border-color: #0080ff;
    box-shadow: 0 0 15px rgba(0, 128, 255, 0.5);
    transform: scale(1.05);
}

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

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

nav ul li a::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, #0080ff, #4a90e2);
    transition: width 0.3s ease;
}

nav ul li a:hover::before {
    width: 100%;
}

nav ul li a:hover {
    color: #0080ff;
    text-shadow: 0 0 10px rgba(0, 128, 255, 0.5);
}

section {
    padding: 2rem 1rem;
    max-width: 1100px;
    margin: 0 auto 2rem auto;
    background: rgba(42, 42, 64, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 128, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

section:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 128, 255, 0.2);
}

h2 {
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #0080ff, #4a90e2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(45deg, #0080ff, #4a90e2) 1;
    padding-bottom: 0.5rem;
    font-size: 2rem;
    text-shadow: 0 0 20px rgba(0, 128, 255, 0.3);
}

#about {
    text-align: center;
}

.about-photo {
    width: 300px;
    height: 300px;
    border-radius: 15px;
    object-fit: contain;
    border: 4px solid rgba(0, 128, 255, 0.6);
    box-shadow: 0 10px 30px rgba(0, 128, 255, 0.4);
    transition: all 0.3s ease;
    margin: 0 auto 1.5rem auto;
    display: block;
    background-color: #1a1a2e;
}

.about-photo:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(0, 128, 255, 0.6);
    border-color: #0080ff;
}

#about p {
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
    font-size: 1.1rem;
    text-align: center;
}

.project {
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(26, 26, 46, 0.5);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.project:hover {
    background: rgba(26, 26, 46, 0.8);
    box-shadow: 0 5px 15px rgba(0, 128, 255, 0.2);
}

.project img {
    width: 100%;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: block;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    object-fit: contain;
}

.project img:hover {
    transform: scale(1.15) rotate(2deg);
    box-shadow: 0 8px 25px rgba(0, 128, 255, 0.4);
    filter: brightness(1.1);
}

ul {
    list-style-type: disc;
    padding-left: 1.5rem;
}

ul li {
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

ul li:hover {
    color: #0080ff;
}

form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #4a90e2;
}

form input[type="text"],
form input[type="email"],
form textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 128, 255, 0.3);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background: rgba(26, 26, 46, 0.5);
    color: #e0e0e0;
    transition: all 0.3s ease;
}

form input[type="text"]:focus,
form input[type="email"]:focus,
form textarea:focus {
    border-color: #0080ff;
    box-shadow: 0 0 10px rgba(0, 128, 255, 0.3);
    outline: none;
}

form textarea {
    resize: vertical;
    min-height: 100px;
}

form button {
    background: linear-gradient(45deg, #0080ff, #4a90e2);
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 128, 255, 0.3);
}

form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 128, 255, 0.4);
    background: linear-gradient(45deg, #0066cc, #1976d2);
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        background: rgba(26, 26, 46, 0.95);
        backdrop-filter: blur(10px);
        position: absolute;
        top: 60px;
        right: 0;
        width: 200px;
        display: none;
        border-radius: 0 0 10px 10px;
        border: 1px solid rgba(0, 128, 255, 0.3);
        border-top: none;
    }

    nav ul.show {
        display: flex;
    }

    nav ul li {
        margin: 1rem 0;
        text-align: center;
    }

    nav .menu-toggle {
        display: block;
        cursor: pointer;
        color: #fff;
        font-size: 1.5rem;
    }
}
