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

h2 {
    font-weight: bold; 
}


/* Body styling */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* Navigation */
header {
    background: #111;
    color: #fff;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 10px 0;
    background: rgba(0, 0, 0, 0.7);
}

nav ul li {
    margin: 0 20px;
}

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

nav ul li a:hover {
    color: #f0a500;
}

/* Home Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('hero-bg.jpg');
    color: #fff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.profile-pic {
    border-radius: 50%;
    width: 300px;
    height: 300px;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.hero-content {
    margin-top: 100px;
    max-width: 700px;
}

.hero h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: 700;
}

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


/* About Section */
#about {
    padding: 80px 20px;
    background: #f7f7f7;
    text-align: center;
}

#about h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    font-weight: 600;
}

#about p {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Experience Section */
#experience {
    padding: 80px 20px;
    background: #e9e9e9;
}

.section-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    font-weight: 600;
    text-align: center;
}

.experience-grid {
    display: flex;
    flex-direction: column; 
    gap: 20px;
    align-items: center; 
}

.experience-item {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 1000px; 
    box-sizing: border-box;
    text-align: left; 
    margin-bottom: 20px; 
    transition: transform 0.3s, box-shadow 0.3s; 
}

.experience-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}
.job-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2c3e50;
}

.company-info {
    font-size: 1rem;
    color: #777;
    margin-bottom: 15px;
}

.job-responsibilities {
    list-style-type: disc;
    padding-left: 20px;
}

.job-responsibilities li {
    margin-bottom: 10px;
    font-size: 1rem;
    color: #555;
}

/* Projects Section */
#projects {
    padding: 80px 20px;
    background: #f7f7f7;
}

#projects h2 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 600;
}

.project-grid {
    display: flex;
    flex-direction: column; /* Stack items vertically */
    gap: 40px; /* Space between project items */
}

.project-item {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    display: flex; 
    flex-direction: row; 
    align-items: center; 
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    padding: 20px;
    box-sizing: border-box;
    width: 1000px; 
    margin: 0 auto; 
    height: 450px; 
}

.project-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.project-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center text vertically */
    max-width: 50%; /* Limit width to half */
    box-sizing: border-box;
    height: 100%; /* Full height of the parent container */
}

.project-info h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    font-weight: 600;
}

.project-info p {
    font-size: 1em;
    margin: 0;
}

.project-item img {
    max-width: 50%;
    object-fit: cover; 
    margin-left: auto;
    max-height: 90%;
}

.project-link {
    text-decoration: none;
    color: inherit; 
    transition: color 0.3s ease;
}

.project-link i {
    margin-left: 8px;
}

.project-link:hover {
    color: #f0a500; 
    text-decoration: none; 
}



/* Contact Section */
#contact {
    padding: 80px 20px;
    background: #e9e9e9;
}

#contact h2 {
    font-size: 2.5em;
    text-align: center;
    font-weight: 600;
}

form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

form label {
    margin: 10px 0 5px;
    font-weight: 600;
}

form input, form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

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

form button {
    background: #f0a500;
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

form button:hover {
    background: #e08e00;
    transform: scale(1.05);
}

/* Footer */
footer {
    background: #111;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    position: relative;
    width: 100%;
    bottom: 0;
}

/* Social Icons */
.socials {
    margin-bottom: 10px;
}

.social-icon {
    color: #fff;
    text-decoration: none;
    font-size: 1.5em;
    margin: 0 10px;
    transition: color 0.3s;
}

.social-icon:hover {
    color: #f0a500;
}

.form-message {
    text-decoration: none;
    font-weight: 600;
    margin-top: 20px;
    padding: 10px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    display: none; /* Initially hide the message container */
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Media Queries */
@media screen and (max-width: 1200px) {
    .project-item {
        width: 90%;
        height: auto;
        flex-direction: column; /* Stack image and text vertically */
        align-items: center;  
    }

    .project-info {
        max-width: 90%;
        text-align: center;
        padding: 20px 0;
    }

    .project-item img {
        max-width: 90%;
        margin: 0 auto;
        display: block; 
        padding-bottom: 20px; 
        
    }
    .experience-item{
        max-width: 90%;
    }
}

@media screen and (max-width: 768px) {

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

    .hero p {
        font-size: 1.2em;
    }

    nav ul {
        flex-direction: column;
        padding: 20px 0;
    }

    nav ul li {
        margin: 10px 0;
    }
    
    .experience-item {
        padding: 15px;
    }
    
    .job-title {
        font-size: 1.5rem;
    }
}

@media screen and (max-width: 480px) {
    .hero h1 {
        font-size: 2em;
    }

    .hero p {
        font-size: 1em;
    }

    .profile-pic {
        width: 200px;
        height: 200px;
    }

    .experience-item {
        padding: 10px;
    }

    .job-title {
        font-size: 1.25rem;
    }
    
    .project-info h3 {
        font-size: 1.25em;
    }

    .project-info p {
        font-size: 0.9em;
    }
    
    form input, form textarea, form button {
        padding: 10px;
        font-size: 14px;
    }
    
    form button {
        padding: 12px;
    }
}

@media screen and (max-width: 320px) {
    .hero h1 {
        font-size: 1.8em;
    }

    .hero p {
        font-size: 0.9em;
    }

    .experience-item {
        padding: 8px;
    }

    .job-title {
        font-size: 1rem;
    }
    
    .project-info h3 {
        font-size: 1.1em;
    }

    .project-info p {
        font-size: 0.8em;
    }
    
    form input, form textarea, form button {
        padding: 8px;
        font-size: 12px;
    }
    
    form button {
        padding: 10px;
    }
}


/* Media Queries for Navigation */
@media screen and (max-width: 768px) {
    nav ul {
        flex-direction: row;
        justify-content: space-around;
        padding: 10px 0;
    }

    nav ul li {
        margin: 0 10px;
    }

    nav ul li a {
        font-size: 16px;
    }
}

@media screen and (max-width: 480px) {
    nav ul {
        justify-content: space-between;
        padding: 8px 0;
    }

    nav ul li {
        margin: 0 5px;
    }

    nav ul li a {
        font-size: 14px;
    }
}

@media screen and (max-width: 320px) {
    nav ul {
        justify-content: space-evenly;
    }

    nav ul li a {
        font-size: 12px;
    }
}
