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

html {
    scroll-behavior: smooth;
}

body {
    font-family:'Segoe UI',  sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, rgb(44, 62, 80), rgb(52, 152, 219));
    min-height: 100vh;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(252, 249, 249, 0.726);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1rem 0;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

nav a:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

/* Main Content */
main {
    margin-top: 60px;
}

/* Sections */
section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

h1, h2, h3 {
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    color: white;
    margin-bottom: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

/* .hero-content {
    animation: fadeInUp 1s ease;
} */

.profile-image {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 3rem;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.tagline {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
}

/* About Section */
.about {
    background: rgb(245, 245, 245);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin: 2rem auto;
}

.about h2 {
    color: black;
}

/* .about-content {
    gap: 10rem;
} */

.about-text p {
    margin-bottom: 1rem;
    color: gray;
    line-height: 1.8;
}

.about-details h3 {
    color: black;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.about-details ul {
    /* list-style: none; */
    padding-left: 1rem;
}

.about-details li {
    padding: 0.3rem 0;
    color: gray;
}

/* .about-details li::before {
    content: "▸ ";
    color: #667eea;
    font-weight: bold;
} */
 /* Projects Section */
.projects {
    background: transparent;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: rgb(245, 245, 245);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-1rem);
    /* box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25); */
}

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

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    color: black;
    margin-bottom: 1rem;
}

.project-info p {
    color: gray;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-link {
    display: inline-block;
    color: blue;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: #764ba2;
}

/* Skills Section */
.skills {
    background: rgb(245, 245, 245);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.skills h2 {
    color: black;
}

.skills-container {
    max-width: 800px;
    margin: 0 auto;
}

.skill-item {
    margin-bottom: 3rem;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.skill-name {
    font-weight: 500;
    color: black;
}

.skill-level {
    color: black;
    font-weight: bold;
}

.skill-bar {
    background: wheat;
    height: 10px;
    border-radius: 10px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(135deg, rgb(44, 62, 80), rgb(52, 152, 219));
    border-radius: 20px;
}

/* Contact Section */
.contact {
    background: transparent;
    max-width: 1280px;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: rgb(245, 245, 245);
    padding: 5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.contact h2 {
    margin-bottom: 2rem;
}

.contact-info h3 {
    color: black;
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: black;
}

.contact-item span:first-child {
    font-size: 1.5rem;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    color: black;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 2px solid gray;
    border-radius: 8px;
    font-size: 1rem;
    /* transition: border-color 0.3s ease; */
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: blue;
}

.form-group textarea {
    resize: vertical;
    font-family: inherit;
}

button[type="submit"] {
    background: linear-gradient(135deg, rgb(44, 62, 80), rgb(52, 152, 219));
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

button[type="submit"]:hover {
    transform: translateY(-5px);
    /* box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4); */
}

/* responsive  */
@media screen and (max-width: 576px){
    nav ul {
        gap: 0.5rem;
    }
    nav a {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
    
    section {
        padding: 2rem 1rem;
    }
    .contact-container {
        grid-template-columns: 1fr;
        padding: 2rem 1rem;
    }
}