/* Global Styles */
html {
    scroll-behavior: smooth;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero section styles */
#hero {
    background-color: #1e293b;
    color: white;
    padding: 80px 20px;
}

/* .container {
    max-width: 1000px;
    margin: 0 auto;
} */

.hero-content {
    text-align: center;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.hero-content h1::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 25%;
    width: 50%;
    height: 3px;
    background-color: white;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Simple responsive adjustments */
@media (max-width: 600px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
}
/*breaking section*/

section {
    padding: 60px 0;
}

h1, h2, h3 {
    margin-bottom: 20px;
    color: #2D6A4F;
}

p {
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: #3498db;
    transition: color 0.3s;
}

a:hover {
    color: #2980b9;
}

/* Header */
header {
    background-color: black;
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
}

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

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: #fff;
    font-weight: 500;
}

.nav-links a:hover {
    color: #3498db;
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background-color: #9754cb;
    color: white;
    position: relative;
    padding-top: 60px;
    margin-top: 78px;
    background-image: url('home_page_pic.jpg'); /* Replace with actual image path */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.7); /* Adjust alpha for mist effect */
    z-index: 2;
}

#hero > * {
    position: relative;
    z-index: 3; /* Bring content above the overlay */
}

.hero-content {
    max-width: 600px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: white;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.scroll-button {
    padding: 12px 28px;
    font-size: 18px;
    background-color: #38ac86;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.scroll-button:hover {
    background-color: #0056b3;
}

/* About Section */
#about {
    padding-top: 78px;
    background-color: white;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-image {
    flex: 0 0 30%; /* Made smaller (was flex: 1) */
    max-width: 250px; /* Add max-width constraint */
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-text {
    flex: 1;
}

/* Skills Section */
#skills {
    background-color: #f8f9fa;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.skill-card {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.skill-card:hover {
    transform: translateY(-5px);
}

.skill-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #2D6A4F;
}

/* Projects Section */
#projects {
    background-color: white;
}

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

.project-card {
    background-color: #f8f9fa;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-image {
    height: 200px;
    width: 100%; /* Ensures the div takes full width of its container */
    background-color: #ddd;
    overflow: hidden; /* Prevents overflow of the image */
}

.project-image img {
    width: 100%; /* Ensures the image stretches to fit the width of the div */
    height: 100%; /* Ensures the image stretches to fit the height of the div */
    object-fit: cover; /* Prevents the image from overflowing while maintaining aspect ratio */
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    margin-top: 10px;
}

.tag {
    background-color: #e0f7fa;
    color: #0097a7;
    padding: 5px 10px;
    border-radius: 3px;
    margin-right: 5px;
    margin-bottom: 5px;
    font-size: 0.8rem;
}

/* Contact Section */
#contact {
    background-color: #28352e;
    color: white;
}

.contact-info {
    max-width: 600px;
    margin: 0 auto;
}

/* Footer */
footer {
    background-color: black;
    color: white;
    padding: 20px 0;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.social-links a {
    color: white;
    margin: 0 10px;
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* Hide navigation links on mobile without JS */
    }
    
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    
    .about-image {
        margin-bottom: 20px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    section {
        padding: 40px 0;
    }
}

@media (max-width: 576px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-container {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    section {
        padding: 30px 0;
    }
    
    .about-image {
        max-width: 180px;
    }
}

@media (max-width: 375px) {
    h2 {
        font-size: 1.5rem;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
}